• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_UnixFrame.h

Go to the documentation of this file.
00001 /* AbiWord
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 #ifndef AP_UNIXFRAME_H
00021 #define AP_UNIXFRAME_H
00022 
00023 class GR_Graphics;
00024 
00025 #include "xap_Frame.h"
00026 #include "ap_Frame.h"
00027 #include "ie_types.h"
00028 
00029 class XAP_UnixApp;
00030 class AP_UnixFrame;
00031 
00032 /*****************************************************************/
00033 
00034 class AP_UnixFrame : public AP_Frame
00035 {
00036 public:
00037     AP_UnixFrame();
00038     AP_UnixFrame(AP_UnixFrame * f);
00039     virtual ~AP_UnixFrame(void);
00040 
00041     virtual XAP_Frame *         cloneFrame(void);
00042     virtual bool                initialize(XAP_FrameMode frameMode=XAP_NormalFrame);
00043 
00044     virtual void                setXScrollRange(void);
00045     virtual void                setYScrollRange(void);
00046     virtual void                translateDocumentToScreen(UT_sint32 &x, UT_sint32 &y);
00047     virtual void                setStatusMessage(const char * szMsg);
00048 
00049     virtual void                toggleRuler(bool bRulerOn);
00050     virtual void                            toggleTopRuler(bool bRulerOn);
00051     virtual void                            toggleLeftRuler(bool bRulerOn);
00052     virtual void                toggleBar(UT_uint32 iBarNb, bool bBarOn);
00053     virtual void                toggleStatusBar(bool bStatusBarOn);
00054     virtual UT_sint32 getDocumentAreaXoff();
00055     virtual UT_sint32 getDocumentAreaYoff();
00056 
00057 protected:
00058     friend class AP_UnixFrameImpl;
00059 
00060     // implementation of helper methods for AP_Frame::_showDocument
00061     virtual bool _createViewGraphics(GR_Graphics *& pG, UT_uint32 iZoom);
00062     virtual void _bindToolbars(AV_View *pView);
00063     virtual void _setViewFocus(AV_View *pView);
00064     virtual bool _createScrollBarListeners(AV_View * pView, AV_ScrollObj *& pScrollObj,
00065                            ap_ViewListener *& pViewListener, ap_Scrollbar_ViewListener *& pScrollbarViewListener,
00066                            AV_ListenerId &lid, AV_ListenerId &lidScrollbarViewListener);
00067     virtual UT_sint32 _getDocumentAreaWidth();
00068     virtual UT_sint32 _getDocumentAreaHeight();
00069 
00070     // scrolling function
00071     static void _scrollFuncX(void * pData, UT_sint32 xoff, UT_sint32 xlimit);
00072     static void _scrollFuncY(void * pData, UT_sint32 yoff, UT_sint32 ylimit);
00073 
00074 };
00075 
00076 #endif /* AP_UNIXFRAME_H */
00077 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1