Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions

AP_Win32App Class Reference

#include <ap_Win32App.h>

Inheritance diagram for AP_Win32App:

List of all members.

Public Member Functions

 AP_Win32App (HINSTANCE hInstance, const char *szAppName)
virtual ~AP_Win32App (void)
virtual bool initialize (void)
virtual XAP_FramenewFrame (void)
virtual bool shutdown (void)
virtual bool getPrefsValueDirectory (bool bAppSpecific, const gchar *szKey, const gchar **pszValue) const
virtual const XAP_StringSetgetStringSet (void) const
virtual const char * getAbiSuiteAppDir (void) const
virtual void copyToClipboard (PD_DocumentRange *pDocRange, bool bUseClipboard=true)
virtual GR_GraphicsnewDefaultScreenGraphics () const
virtual void pasteFromClipboard (PD_DocumentRange *pDocRange, bool bUseClipboard, bool bHonorFormatting)
virtual bool canPasteFromClipboard (void)
virtual void cacheCurrentSelection (AV_View *)
virtual void errorMsgBadArg (const char *msg)
virtual void errorMsgBadFile (XAP_Frame *pFrame, const char *file, UT_Error error)
virtual bool doWindowlessArgs (const AP_Args *, bool &bSuccess)
virtual HICON getIcon (void)
virtual HICON getSmallIcon (void)
virtual UT_Error fileOpen (XAP_Frame *pFrame, const char *pNewFile)
UT_VectorgetInstalledUILanguages (void)
bool doesStringSetExist (const char *pLocale)
bool handleModelessDialogMessage (MSG *msg)
virtual void catchSignals (int signum) ABI_NORETURN

Static Public Member Functions

static int WinMain (const char *szAppName, HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
static UT_Win32LocaleString s_fromUCS4ToWinLocale (const UT_UCS4Char *szIn)
static UT_UCS4String s_fromWinLocaleToUCS4 (const char *szIn)
static UT_Win32LocaleString s_fromUTF8ToWinLocale (const char *szIn)
static UT_UTF8String s_fromWinLocaleToUTF8 (const char *szIn)

Protected Member Functions

bool _pasteFormatFromClipboard (PD_DocumentRange *pDocRange, const char *szFormat, const char *szType, bool bWide)
IEFileType _getFileTypeFromDesc (const char *desc)

Protected Attributes


Static Protected Attributes

static const bool m_bForceAnsi = false

Private Member Functions

bool _copyFmtToClipboard (PD_DocumentRange *pDocRange, UINT iFmt)
bool _copyFmtToClipboard (PD_DocumentRange *pDocRange, const char *pszFmt)

Constructor & Destructor Documentation

AP_Win32App::AP_Win32App ( HINSTANCE  hInstance,
const char *  szAppName 

References m_pClipboard, and m_pStringSet.

Referenced by WinMain().

AP_Win32App::~AP_Win32App ( void   )  [virtual]

Member Function Documentation

bool AP_Win32App::_copyFmtToClipboard ( PD_DocumentRange pDocRange,
UINT  iFmt 
) [private]

copy data in required format to the clipboard

References XAP_Win32Clipboard::convertToFormatString(), m_pClipboard, and UT_return_val_if_fail.

Referenced by copyToClipboard().

IEFileType AP_Win32App::_getFileTypeFromDesc ( const char *  desc  )  [protected]
virtual void AP_Win32App::cacheCurrentSelection ( AV_View  )  [inline, virtual]
void AP_Win32App::catchSignals ( int  signum  )  [virtual]


void AP_Win32App::copyToClipboard ( PD_DocumentRange pDocRange,
bool  bUseClipboard = true 
) [virtual]
void AP_Win32App::errorMsgBadArg ( const char *  msg  )  [virtual]
void AP_Win32App::errorMsgBadFile ( XAP_Frame pFrame,
const char *  file,
UT_Error  error 
) [virtual]

Reimplemented from AP_App.

References s_CouldNotLoadFileMessage().

UT_Error AP_Win32App::fileOpen ( XAP_Frame pFrame,
const char *  pNewFile 
) [virtual]

References IEFT_Unknown.

const char * AP_Win32App::getAbiSuiteAppDir ( void   )  const [virtual]

Referenced by getPrefsValueDirectory().

HICON AP_Win32App::getIcon ( void   )  [virtual]

References UT_DEBUGMSG.

bool AP_Win32App::getPrefsValueDirectory ( bool  bAppSpecific,
const gchar *  szKey,
const gchar **  pszValue 
) const [virtual]
HICON AP_Win32App::getSmallIcon ( void   )  [virtual]

References UT_DEBUGMSG.

const XAP_StringSet * AP_Win32App::getStringSet ( void   )  const [virtual]

References m_pStringSet.

bool AP_Win32App::handleModelessDialogMessage ( MSG *  msg  ) 

Referenced by WinMain().

GR_Graphics * AP_Win32App::newDefaultScreenGraphics (  )  const [virtual]
XAP_Frame * AP_Win32App::newFrame ( void   )  [virtual]
UT_Win32LocaleString AP_Win32App::s_fromUCS4ToWinLocale ( const UT_UCS4Char szIn  )  [static]
UT_UCS4String AP_Win32App::s_fromWinLocaleToUCS4 ( const char *  szIn  )  [static]

References sRslt, and UT_UCS4_strcpy_char().

Referenced by s_fromWinLocaleToUTF8().

bool AP_Win32App::shutdown ( void   )  [virtual]

Referenced by WinMain().

Member Data Documentation

const bool AP_Win32App::m_bForceAnsi = false [static, protected]

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