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

ap_UnixFrameImpl.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  * Copyright (C) 2002 William Lachance
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
00018  * 02111-1307, USA.
00019  */
00020 
00021 #ifndef AP_UNIXFRAMEIMPL_H
00022 #define AP_UNIXFRAMEIMPL_H
00023 #include "xap_Frame.h"
00024 #include "ap_Frame.h"
00025 #include "ap_UnixFrame.h"
00026 #include "ie_types.h"
00027 #include "xap_UnixFrameImpl.h"
00028 #include "ap_DocView.h"
00029 
00030 
00031 class XAP_UnixApp;
00032 class AP_UnixFrame;
00033 
00034 enum apufi_ScrollType { apufi_scrollX, apufi_scrollY }; // can we use namespaces yet? this is quite ugly
00035 
00036 class AP_UnixFrameImpl : public XAP_UnixFrameImpl
00037 {
00038  public:
00039     AP_UnixFrameImpl(AP_UnixFrame *pUnixFrame); 
00040     virtual XAP_FrameImpl * createInstance(XAP_Frame *pFrame);
00041 
00042     virtual UT_RGBColor getColorSelBackground () const;
00043     virtual UT_RGBColor getColorSelForeground () const;
00044 
00045     GtkShadowType getShadowType () { return gtk_frame_get_shadow_type (GTK_FRAME (m_wSunkenBox)); }
00046     void setShadowType (GtkShadowType shadow) { gtk_frame_set_shadow_type (GTK_FRAME (m_wSunkenBox), shadow); }
00047 
00048     GtkWidget * getDrawingArea() const {return m_dArea;}
00049     static gboolean ap_focus_in_event (GtkWidget * drawing_area, GdkEventCrossing *event, AP_UnixFrameImpl * me);
00050     static gboolean ap_focus_out_event (GtkWidget * drawing_area, GdkEventCrossing *event, AP_UnixFrameImpl * me);
00051 
00052  protected:
00053     friend class AP_UnixFrame;
00054     void _showOrHideStatusbar(void);
00055     void _showOrHideToolbars(void);
00056 
00057     virtual void _hideMenuScroll(bool bHideMenuScroll);
00058 
00059 
00060     virtual void _refillToolbarsInFrameData();
00061     void _bindToolbars(AV_View * pView);
00062     virtual void _createWindow();
00063 
00064     virtual GtkWidget * _createDocumentWindow();
00065     virtual GtkWidget * _createStatusBarWindow();
00066 
00067     virtual void _setWindowIcon();
00068     void _setScrollRange(apufi_ScrollType scrollType, int iValue, gfloat fUpperLimit, gfloat fSize);
00069 
00070     GtkWidget * m_dArea;
00071     GtkAdjustment * m_pVadj;
00072     GtkAdjustment * m_pHadj;
00073     GtkWidget * m_hScroll;
00074     GtkWidget * m_vScroll;
00075     GtkWidget * m_topRuler;
00076     GtkWidget * m_leftRuler;
00077     GtkWidget * m_table;
00078     GtkWidget * m_innertable;
00079     GtkWidget * m_wSunkenBox;
00080     gulong      m_iHScrollSignal;
00081     gulong      m_iVScrollSignal;
00082 };
00083 #endif

Generated on Sat Dec 3 2011 for AbiWord by  doxygen 1.7.1