Public Member Functions | Protected Member Functions | Private Attributes

AP_Frame Class Reference

#include <ap_Frame.h>

Inheritance diagram for AP_Frame:
XAP_Frame AP_CocoaFrame AP_QtFrame AP_UnixFrame AP_Win32Frame

List of all members.

Public Member Functions

 AP_Frame (XAP_FrameImpl *pFrameImpl)
 AP_Frame (AP_Frame *pFrame)
virtual ~AP_Frame ()
virtual bool initialize (XAP_FrameMode frameMode=XAP_NormalFrame)=0
virtual XAP_FramebuildFrame (XAP_Frame *pFrame)
virtual UT_Error loadDocument (AD_Document *pDoc)
virtual UT_Error loadDocument (const char *szFilename, int ieft)
virtual UT_Error loadDocument (const char *szFilename, int ieft, bool createNew)
virtual UT_Error loadDocument (GsfInput *input, int ieft)
virtual UT_Error importDocument (const char *szFilename, int ieft, bool markClean)
virtual bool initFrameData (void)
virtual void killFrameData (void)
UT_uint32 getNewZoom (XAP_Frame::tZoomType *tZoom)
virtual void setZoomPercentage (UT_uint32 iZoom)
virtual UT_uint32 getZoomPercentage (void)
virtual void quickZoom (UT_uint32 iZoom)
bool isShowMargin (void) const
void setShowMargin (bool b)
void setDoWordSelections (bool b)
bool getDoWordSelections (void) const
UT_sint32 registerListener (AP_FrameListener *pListener)
void unregisterListener (UT_sint32 iListenerId)

Protected Member Functions

UT_Error _loadDocument (const char *szFilename, IEFileType ieft, bool createNew)
UT_Error _loadDocument (GsfInput *input, IEFileType ieft)
virtual UT_Error _importDocument (const char *szFilename, int ieft, bool markClean)
UT_Error _replaceDocument (AD_Document *pDoc)
virtual UT_Error _showDocument (UT_uint32 iZoom=100)
virtual bool _createViewGraphics (GR_Graphics *&pG, UT_uint32 iZoom)=0
virtual void _replaceView (GR_Graphics *pG, FL_DocLayout *pDocLayout, AV_View *pView, AV_ScrollObj *pScrollObj, ap_ViewListener *pViewListener, AD_Document *pOldDoc, ap_Scrollbar_ViewListener *pScrollbarViewListener, AV_ListenerId lid, AV_ListenerId lidScrollbarViewListener, UT_uint32 iZoom)
virtual bool _createScrollBarListeners (AV_View *pView, AV_ScrollObj *&pScrollObj, ap_ViewListener *&pViewListener, ap_Scrollbar_ViewListener *&pScrollbarViewListener, AV_ListenerId &lid, AV_ListenerId &lidScrollbarViewListener)=0
virtual void _bindToolbars (AV_View *pView)=0
virtual void _setViewFocus (AV_View *pView)=0
virtual UT_sint32 _getDocumentAreaWidth ()=0
virtual UT_sint32 _getDocumentAreaHeight ()=0
void _signal (AP_FrameSignal sig)

Private Attributes

bool m_bShowMargin
bool m_bWordSelections
std::vector< AP_FrameListener * > m_listeners

Constructor & Destructor Documentation

AP_Frame::AP_Frame ( XAP_FrameImpl pFrameImpl  )  [inline]
AP_Frame::AP_Frame ( AP_Frame pFrame  )  [inline]
AP_Frame::~AP_Frame (  )  [virtual]

Member Function Documentation

virtual void AP_Frame::_bindToolbars ( AV_View pView  )  [protected, pure virtual]

Implemented in AP_CocoaFrame, AP_UnixFrame, AP_QtFrame, and AP_Win32Frame.

Referenced by _showDocument().

virtual bool AP_Frame::_createScrollBarListeners ( AV_View pView,
AV_ScrollObj *&  pScrollObj,
ap_ViewListener *&  pViewListener,
ap_Scrollbar_ViewListener *&  pScrollbarViewListener,
AV_ListenerId lid,
AV_ListenerId lidScrollbarViewListener 
) [protected, pure virtual]

Implemented in AP_CocoaFrame, AP_UnixFrame, AP_QtFrame, and AP_Win32Frame.

Referenced by _showDocument().

virtual bool AP_Frame::_createViewGraphics ( GR_Graphics *&  pG,
UT_uint32  iZoom 
) [protected, pure virtual]

Implemented in AP_CocoaFrame, AP_UnixFrame, AP_QtFrame, and AP_Win32Frame.

Referenced by _showDocument().

virtual UT_sint32 AP_Frame::_getDocumentAreaHeight (  )  [protected, pure virtual]

Implemented in AP_CocoaFrame, AP_UnixFrame, AP_QtFrame, and AP_Win32Frame.

Referenced by _replaceView().

virtual UT_sint32 AP_Frame::_getDocumentAreaWidth (  )  [protected, pure virtual]

Implemented in AP_CocoaFrame, AP_UnixFrame, AP_QtFrame, and AP_Win32Frame.

Referenced by _replaceView().

UT_Error AP_Frame::_importDocument ( const char *  szFilename,
int  ieft,
bool  markClean 
) [protected, virtual]
UT_Error AP_Frame::_loadDocument ( GsfInput *  input,
IEFileType  ieft 
) [protected]
UT_Error AP_Frame::_replaceDocument ( AD_Document pDoc  )  [protected]
virtual void AP_Frame::_setViewFocus ( AV_View pView  )  [protected, pure virtual]

Implemented in AP_CocoaFrame, AP_UnixFrame, AP_QtFrame, and AP_Win32Frame.

Referenced by _showDocument().

void AP_Frame::_signal ( AP_FrameSignal  sig  )  [protected]
bool AP_Frame::getDoWordSelections ( void   )  const [inline]

Referenced by Defun(), and sActualDragToXY().

UT_uint32 AP_Frame::getNewZoom ( XAP_Frame::tZoomType tZoom  ) 

This method returns the zoomPercentage of the new frame. Logic goes like this. If there is a valid last focussed frame return the zoom and zoom type for that. Otherwise use the preference value.

References UT_String::c_str(), XAP_App::getApp(), XAP_App::getClones(), UT_GenericVector< T >::getItemCount(), XAP_App::getLastFocussedFrame(), UT_GenericVector< T >::getNthItem(), XAP_App::getPrefsValue(), XAP_Frame::getViewNumber(), XAP_Frame::getZoomPercentage(), XAP_Frame::getZoomType(), UT_return_val_if_fail, and XAP_PREF_KEY_ZoomType.

Referenced by _replaceDocument(), importDocument(), and loadDocument().

UT_uint32 AP_Frame::getZoomPercentage ( void   )  [virtual]
bool AP_Frame::initFrameData ( void   )  [virtual]
virtual bool AP_Frame::initialize ( XAP_FrameMode  frameMode = XAP_NormalFrame  )  [pure virtual]

Implemented in AP_CocoaFrame, AP_UnixFrame, AP_QtFrame, and AP_Win32Frame.

Referenced by buildFrame().

bool AP_Frame::isShowMargin ( void   )  const [inline]
void AP_Frame::killFrameData ( void   )  [virtual]
UT_Error AP_Frame::loadDocument ( const char *  szFilename,
int  ieft 
) [virtual]

Implements XAP_Frame.

References loadDocument().

UT_sint32 AP_Frame::registerListener ( AP_FrameListener pListener  ) 
void AP_Frame::setDoWordSelections ( bool  b  )  [inline]
void AP_Frame::setShowMargin ( bool  b  )  [inline]
void AP_Frame::setZoomPercentage ( UT_uint32  iZoom  )  [virtual]

Reimplemented from XAP_Frame.

References _showDocument().

Referenced by _showDocument(), and quickZoom().

void AP_Frame::unregisterListener ( UT_sint32  iListenerId  ) 

References m_listeners, and UT_return_if_fail.


Member Data Documentation

bool AP_Frame::m_bShowMargin [private]

The documentation for this class was generated from the following files: