Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

XAP_CocoaApp Class Reference

#include <xap_CocoaApp.h>

Inheritance diagram for XAP_CocoaApp:

List of all members.


struct  windowGeometry

Public Types

enum  windowGeometryFlags { GEOMETRY_FLAG_POS = 1 << 0, GEOMETRY_FLAG_SIZE = 1 << 1 }

Public Member Functions

 XAP_CocoaApp (const char *szAppName)
virtual ~XAP_CocoaApp ()
virtual const char * getDefaultEncoding () const
virtual bool initialize (const char *szKeyBindingsKey, const char *szKeyBindingsDefaultValue)
virtual XAP_FramenewFrame ()=0
virtual void reallyExit ()
virtual void notifyFrameCountChange ()
virtual XAP_DialogFactorygetDialogFactory ()
getControlFactory ()
virtual const XAP_StringSetgetStringSet () const =0
virtual const char * getAbiSuiteAppDir () const =0
virtual void copyToClipboard (PD_DocumentRange *pDocRange, bool bUseClipboard=true)=0
virtual void pasteFromClipboard (PD_DocumentRange *pDocRange, bool bUseClipboard, bool bHonorFormatting=true)=0
virtual bool canPasteFromClipboard ()=0
virtual const char * getUserPrivateDirectory () const
virtual bool findAbiSuiteBundleFile (std::string &path, const char *filename, const char *subdir=0)
virtual bool findAbiSuiteLibFile (std::string &path, const char *filename, const char *subdir=0)
virtual bool findAbiSuiteAppFile (std::string &path, const char *filename, const char *subdir=0)
virtual void setSelectionStatus (AV_View *pView)=0
virtual void clearSelection ()=0
virtual bool getCurrentSelection (const char **formatList, void **ppData, UT_uint32 *pLen, const char **pszFormatFound)=0
virtual void cacheCurrentSelection (AV_View *)=0
virtual void setGeometry (int x, int y, UT_uint32 width, UT_uint32 height, windowGeometryFlags flags)
virtual void getGeometry (int *x, int *y, UT_uint32 *width, UT_uint32 *height, windowGeometryFlags *flags)
void setTimeOfLastEvent (NSTimeInterval eventTime)
NSTimeInterval getTimeOfLastEvent () const
virtual BidiSupportType theOSHasBidiSupport () const
EV_CocoaMenuBargetCocoaMenuBar (void) const
XAP_Frame_getFrontFrame (void)
XAP_CocoaToolbar_IconsgetToolbarIcons () const

Protected Member Functions

virtual const char * _findNearestFont (const char *pszFontFamily, const char *pszFontStyle, const char *pszFontVariant, const char *pszFontWeight, const char *pszFontStretch, const char *pszFontSize, const char *pszLang)
bool _loadFonts ()
void _setAbiSuiteLibDir ()

Protected Attributes

const char * m_szMenuLayoutName
const char * m_szMenuLabelSetName

Private Attributes

AP_CocoaDialogFactory m_dialogFactory
AP_CocoaToolbar_ControlFactory m_controlFactory
windowGeometry m_geometry
NSTimeInterval m_eventTime

Member Enumeration Documentation


Constructor & Destructor Documentation

XAP_CocoaApp::~XAP_CocoaApp (  )  [virtual]

Member Function Documentation

const char * XAP_CocoaApp::_findNearestFont ( const char *  pszFontFamily,
const char *  pszFontStyle,
const char *  pszFontVariant,
const char *  pszFontWeight,
const char *  pszFontStretch,
const char *  pszFontSize,
const char *  pszLang 
) [protected, virtual]
XAP_Frame * XAP_CocoaApp::_getFrontFrame ( void   ) 
bool XAP_CocoaApp::_loadFonts (  )  [protected]

Referenced by initialize().

void XAP_CocoaApp::_setAbiSuiteLibDir (  )  [protected]

References XAP_App::getAbiSuiteHome(), and UT_DEBUGMSG.

Referenced by XAP_CocoaApp().

virtual void XAP_CocoaApp::cacheCurrentSelection ( AV_View  )  [pure virtual]

Implements XAP_App.

virtual bool XAP_CocoaApp::canPasteFromClipboard (  )  [pure virtual]

Implements XAP_App.

virtual void XAP_CocoaApp::clearSelection (  )  [pure virtual]
virtual void XAP_CocoaApp::copyToClipboard ( PD_DocumentRange pDocRange,
bool  bUseClipboard = true 
) [pure virtual]

Implements XAP_App.

bool XAP_CocoaApp::findAbiSuiteAppFile ( std::string &  path,
const char *  filename,
const char *  subdir = 0 
) [virtual]

Reimplemented from XAP_App.

References findAbiSuiteBundleFile(), and XAP_App::findAbiSuiteLibFile().

bool XAP_CocoaApp::findAbiSuiteBundleFile ( std::string &  path,
const char *  filename,
const char *  subdir = 0 
) [virtual]
bool XAP_CocoaApp::findAbiSuiteLibFile ( std::string &  path,
const char *  filename,
const char *  subdir = 0 
) [virtual]
virtual const char* XAP_CocoaApp::getAbiSuiteAppDir (  )  const [pure virtual]

Implements XAP_App.

EV_CocoaMenuBar* XAP_CocoaApp::getCocoaMenuBar ( void   )  const [inline]
XAP_Toolbar_ControlFactory * XAP_CocoaApp::getControlFactory ( void   )  [virtual]

Implements XAP_App.

References m_controlFactory.

virtual bool XAP_CocoaApp::getCurrentSelection ( const char **  formatList,
void **  ppData,
UT_uint32 pLen,
const char **  pszFormatFound 
) [pure virtual]
const char * XAP_CocoaApp::getDefaultEncoding (  )  const [virtual]

Returns the GUI string encoding.

Implements XAP_App.

XAP_DialogFactory * XAP_CocoaApp::getDialogFactory ( void   )  [virtual]

Implements XAP_App.

References m_dialogFactory.

virtual const XAP_StringSet* XAP_CocoaApp::getStringSet (  )  const [pure virtual]

Implements XAP_App.

NSTimeInterval XAP_CocoaApp::getTimeOfLastEvent (  )  const [inline]

References m_eventTime.

XAP_CocoaToolbar_Icons* XAP_CocoaApp::getToolbarIcons (  )  const [inline]

References m_pCocoaToolbarIcons.

const char * XAP_CocoaApp::getUserPrivateDirectory ( void   )  const [virtual]

Implements XAP_App.

bool XAP_CocoaApp::initialize ( const char *  szKeyBindingsKey,
const char *  szKeyBindingsDefaultValue 
) [virtual]

Reimplemented from XAP_App.

References _loadFonts(), and m_pCocoaToolbarIcons.

virtual XAP_Frame* XAP_CocoaApp::newFrame (  )  [pure virtual]

Implements XAP_App.

void XAP_CocoaApp::notifyFrameCountChange (  )  [virtual]

Reimplemented from XAP_App.

virtual void XAP_CocoaApp::pasteFromClipboard ( PD_DocumentRange pDocRange,
bool  bUseClipboard,
bool  bHonorFormatting = true 
) [pure virtual]

Implements XAP_App.

void XAP_CocoaApp::reallyExit ( void   )  [virtual]

Implements XAP_App.

virtual void XAP_CocoaApp::setSelectionStatus ( AV_View pView  )  [pure virtual]
void XAP_CocoaApp::setTimeOfLastEvent ( NSTimeInterval  eventTime  ) 
XAP_App::BidiSupportType XAP_CocoaApp::theOSHasBidiSupport (  )  const [virtual]

Reimplemented from XAP_App.

Member Data Documentation

const char* XAP_CocoaApp::m_szMenuLabelSetName [protected]

Referenced by ~XAP_CocoaApp().

const char* XAP_CocoaApp::m_szMenuLayoutName [protected]

Referenced by ~XAP_CocoaApp().

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