#include <xap_CocoaApp.h>
Classes | |
| 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_Frame * | newFrame ()=0 |
| virtual void | reallyExit () |
| virtual void | notifyFrameCountChange () |
| virtual XAP_DialogFactory * | getDialogFactory () |
| virtual XAP_Toolbar_ControlFactory * | getControlFactory () |
| virtual const XAP_StringSet * | getStringSet () 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_CocoaMenuBar * | getCocoaMenuBar (void) const |
| XAP_Frame * | _getFrontFrame (void) |
| XAP_CocoaToolbar_Icons * | getToolbarIcons () 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 | |
| EV_CocoaMenuBar * | m_pCocoaMenu |
| const char * | m_szMenuLayoutName |
| const char * | m_szMenuLabelSetName |
Private Attributes | |
| XAP_CocoaToolbar_Icons * | m_pCocoaToolbarIcons |
| AP_CocoaDialogFactory | m_dialogFactory |
| AP_CocoaToolbar_ControlFactory | m_controlFactory |
| windowGeometry | m_geometry |
| NSTimeInterval | m_eventTime |
| XAP_CocoaApp::XAP_CocoaApp | ( | const char * | szAppName | ) |
References _setAbiSuiteLibDir(), XAP_App::_setUUIDGenerator(), XAP_CocoaApp::windowGeometry::flags, XAP_App::getGraphicsFactory(), XAP_CocoaApp::windowGeometry::height, m_geometry, m_pCocoaToolbarIcons, GR_GraphicsFactory::registerAsDefault(), GR_GraphicsFactory::registerClass(), UT_ASSERT, XAP_CocoaApp::windowGeometry::width, XAP_CocoaApp::windowGeometry::x, and XAP_CocoaApp::windowGeometry::y.
| XAP_CocoaApp::~XAP_CocoaApp | ( | ) | [virtual] |
References DELETEP, FREEP, m_pCocoaToolbarIcons, m_szMenuLabelSetName, and m_szMenuLayoutName.
| 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 | ) |
References XAP_App::getFrame(), UT_ASSERT, and UT_DEBUGMSG.
| 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 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] |
References UT_isRegularFile(), and xxx_UT_DEBUGMSG.
Referenced by findAbiSuiteAppFile(), findAbiSuiteLibFile(), and XAP_CocoaToolbar_Icons::getFilenameForIcon.
| bool XAP_CocoaApp::findAbiSuiteLibFile | ( | std::string & | path, | |
| const char * | filename, | |||
| const char * | subdir = 0 | |||
| ) | [virtual] |
Reimplemented from XAP_App.
References findAbiSuiteBundleFile(), and XAP_App::findAbiSuiteLibFile().
Referenced by XAP_CocoaPlugin::findResourcePath:, and XAP_CocoaToolbar_Icons::getFilenameForIcon.
| virtual const char* XAP_CocoaApp::getAbiSuiteAppDir | ( | ) | const [pure virtual] |
Implements XAP_App.
| EV_CocoaMenuBar* XAP_CocoaApp::getCocoaMenuBar | ( | void | ) | const [inline] |
References m_pCocoaMenu.
Referenced by XAP_CocoaAppController::applicationDidFinishLaunching:.
| 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.
| void XAP_CocoaApp::getGeometry | ( | int * | x, | |
| int * | y, | |||
| UT_uint32 * | width, | |||
| UT_uint32 * | height, | |||
| windowGeometryFlags * | flags | |||
| ) | [virtual] |
| 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.
| 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.
| void XAP_CocoaApp::setGeometry | ( | int | x, | |
| int | y, | |||
| UT_uint32 | width, | |||
| UT_uint32 | height, | |||
| windowGeometryFlags | flags | |||
| ) | [virtual] |
| virtual void XAP_CocoaApp::setSelectionStatus | ( | AV_View * | pView | ) | [pure virtual] |
| void XAP_CocoaApp::setTimeOfLastEvent | ( | NSTimeInterval | eventTime | ) |
References m_eventTime, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
| XAP_App::BidiSupportType XAP_CocoaApp::theOSHasBidiSupport | ( | ) | const [virtual] |
Reimplemented from XAP_App.
Referenced by getControlFactory().
Referenced by getDialogFactory().
NSTimeInterval XAP_CocoaApp::m_eventTime [private] |
Referenced by getTimeOfLastEvent(), and setTimeOfLastEvent().
windowGeometry XAP_CocoaApp::m_geometry [private] |
Referenced by getGeometry(), setGeometry(), and XAP_CocoaApp().
EV_CocoaMenuBar* XAP_CocoaApp::m_pCocoaMenu [protected] |
Referenced by getCocoaMenuBar().
Referenced by getToolbarIcons(), initialize(), XAP_CocoaApp(), and ~XAP_CocoaApp().
const char* XAP_CocoaApp::m_szMenuLabelSetName [protected] |
Referenced by ~XAP_CocoaApp().
const char* XAP_CocoaApp::m_szMenuLayoutName [protected] |
Referenced by ~XAP_CocoaApp().
1.7.1