00001 /* AbiSource Application Framework 00002 * Copyright (C) 1998 AbiSource, Inc. 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 * 02110-1301 USA. 00018 */ 00019 00020 00021 00022 #ifndef XAP_VIEWLISTENER_H 00023 #define XAP_VIEWLISTENER_H 00024 00025 /* pre-emptive dismissal; ut_types.h is needed by just about everything, 00026 * so even if it's commented out in-file that's still a lot of work for 00027 * the preprocessor to do... 00028 */ 00029 #ifndef UT_TYPES_H 00030 #include "ut_types.h" 00031 #endif 00032 00033 #include "xav_Listener.h" 00034 00035 class AV_View; 00036 00037 class XAP_Frame; 00038 00039 /* 00040 The ap_ViewListener class handles UI change notifications from an AV_View 00041 to its associated XAP_Frame. 00042 */ 00043 00044 // TODO shouldn't this class be xap_ ?? 00045 00046 class ABI_EXPORT ap_ViewListener : public AV_Listener 00047 { 00048 public: 00049 ap_ViewListener(XAP_Frame* pFrame); 00050 virtual ~ap_ViewListener(); 00051 00052 virtual bool notify(AV_View * pView, const AV_ChangeMask mask); 00053 virtual AV_ListenerType getType(void) { return AV_LISTENER_VIEW;} 00054 00055 protected: 00056 XAP_Frame* m_pFrame; 00057 }; 00058 00059 #endif /* XAP_VIEWLISTENER_H */