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

XAP_Prefs Class Reference

#include <xap_Prefs.h>

Inheritance diagram for XAP_Prefs:
UT_XML::Listener AP_Prefs AP_CocoaPrefs AP_QtPrefs AP_UnixPrefs AP_Win32Prefs

List of all members.

Classes

struct  Pref_Geometry
struct  tPrefsListenersPair

Public Member Functions

 XAP_Prefs ()
virtual ~XAP_Prefs (void)
bool loadPrefsFile (void)
bool loadSystemDefaultPrefsFile (const char *szSystemDefaultPrefsPathname)
bool savePrefsFile (void)
XAP_PrefsSchemegetNthScheme (UT_uint32 k) const
XAP_PrefsSchemegetNthPluginScheme (UT_uint32 k) const
XAP_PrefsSchemegetScheme (const gchar *szSchemeName) const
XAP_PrefsSchemegetPluginScheme (const gchar *szSchemeName) const
bool addScheme (XAP_PrefsScheme *pNewScheme)
bool addPluginScheme (XAP_PrefsScheme *pNewScheme)
XAP_PrefsSchemegetCurrentScheme (bool bCreate=false)
bool setCurrentScheme (const gchar *szSchemeName)
bool getPrefsValue (const gchar *szKey, const gchar **pszValue, bool bAllowBuiltin=true) const
bool getPrefsValue (const UT_String &stKey, UT_String &stValue, bool bAllowBuiltin=true) const
bool getPrefsValueBool (const gchar *szKey, bool *pbValue, bool bAllowBuiltin=true) const
bool getPrefsValueInt (const gchar *szKey, int &nValue, bool bAllowBuiltin=true) const
bool getAutoSavePrefs (void) const
void setAutoSavePrefs (bool bAuto)
bool getUseEnvLocale (void) const
void setUseEnvLocale (bool bUse)
UT_sint32 getMaxRecent (void) const
void setMaxRecent (UT_sint32 k)
UT_sint32 getRecentCount (void) const
const char * getRecent (UT_sint32 k) const
void addRecent (const char *szRecent)
void removeRecent (UT_sint32 k)
void setIgnoreNextRecent (void)
bool isIgnoreRecent (void)
bool setGeometry (UT_sint32 posx, UT_sint32 posy, UT_uint32 width, UT_uint32 height, UT_uint32 flags=0)
bool getGeometry (UT_sint32 *posx, UT_sint32 *posy, UT_uint32 *width, UT_uint32 *height, UT_uint32 *flags=0)
virtual void fullInit (void)=0
virtual bool loadBuiltinPrefs (void)=0
virtual const gchar * getBuiltinSchemeName (void) const =0
virtual const char * getPrefsPathname (void) const =0
void addListener (PrefsListener pFunc, void *data)
void removeListener (PrefsListener pFunc, void *data=0)
void startBlockChange ()
void endBlockChange ()
void log (const char *where, const char *what, XAPPrefsLog_Level level=Log)
XAP_FontSettingsgetFontSettings ()
void _markPrefChange (const gchar *szKey)
void startElement (const gchar *name, const gchar **atts)
void endElement (const gchar *name)
void charData (const gchar *s, int len)

Protected Member Functions

void _pruneRecent (void)
XAP_PrefsScheme_getNthScheme (UT_uint32 k, const UT_GenericVector< XAP_PrefsScheme * > &vecSchemes) const
void _sendPrefsSignal (UT_StringPtrMap *hash)

Protected Attributes

bool m_bAutoSavePrefs
bool m_bUseEnvLocale
UT_GenericVector
< XAP_PrefsScheme * > 
m_vecSchemes
UT_GenericVector
< XAP_PrefsScheme * > 
m_vecPluginSchemes
XAP_PrefsSchemem_currentScheme
XAP_PrefsSchemem_builtinScheme
UT_sint32 m_iMaxRecent
UT_GenericVector< char * > m_vecRecent
UT_GenericVector< UT_UTF8String * > m_vecLog
XAP_FontSettings m_fonts
UT_GenericVector
< tPrefsListenersPair * > 
m_vecPrefsListeners
UT_StringPtrMap m_ahashChanges
bool m_bInChangeBlock
Pref_Geometry m_geom

Private Member Functions

void _startElement_SystemDefaultFile (const gchar *name, const gchar **atts)

Private Attributes

bool m_bLoadSystemDefaultFile
bool m_bIgnoreThisOne
struct {
   bool   m_parserStatus
   bool   m_bFoundAbiPreferences
   bool   m_bFoundSelect
   gchar *   m_szSelectedSchemeName
   bool   m_bFoundRecent
   bool   m_bFoundGeometry
   bool   m_bFoundFonts
m_parserState

Constructor & Destructor Documentation

XAP_Prefs::~XAP_Prefs ( void   )  [virtual]

Member Function Documentation

XAP_PrefsScheme * XAP_Prefs::_getNthScheme ( UT_uint32  k,
const UT_GenericVector< XAP_PrefsScheme * > &  vecSchemes 
) const [protected]
void XAP_Prefs::_markPrefChange ( const gchar *  szKey  ) 
void XAP_Prefs::_pruneRecent ( void   )  [protected]
void XAP_Prefs::_startElement_SystemDefaultFile ( const gchar *  name,
const gchar **  atts 
) [private]
bool XAP_Prefs::addPluginScheme ( XAP_PrefsScheme pNewScheme  ) 
void XAP_Prefs::charData ( const gchar *  s,
int  len 
) [virtual]

Implements UT_XML::Listener.

void XAP_Prefs::endElement ( const gchar *  name  )  [virtual]

Implements UT_XML::Listener.

virtual void XAP_Prefs::fullInit ( void   )  [pure virtual]

Implemented in AP_Prefs.

bool XAP_Prefs::getAutoSavePrefs ( void   )  const
virtual const gchar* XAP_Prefs::getBuiltinSchemeName ( void   )  const [pure virtual]

Implemented in AP_Prefs.

Referenced by addScheme(), savePrefsFile(), and startElement().

XAP_FontSettings& XAP_Prefs::getFontSettings (  )  [inline]
UT_sint32 XAP_Prefs::getMaxRecent ( void   )  const

References m_iMaxRecent.

XAP_PrefsScheme * XAP_Prefs::getNthPluginScheme ( UT_uint32  k  )  const
XAP_PrefsScheme * XAP_Prefs::getNthScheme ( UT_uint32  k  )  const

References _getNthScheme(), and m_vecSchemes.

Referenced by getScheme(), and savePrefsFile().

XAP_PrefsScheme * XAP_Prefs::getPluginScheme ( const gchar *  szSchemeName  )  const
virtual const char* XAP_Prefs::getPrefsPathname ( void   )  const [pure virtual]

Implemented in AP_Prefs.

Referenced by loadPrefsFile(), and savePrefsFile().

bool XAP_Prefs::getPrefsValue ( const UT_String stKey,
UT_String stValue,
bool  bAllowBuiltin = true 
) const
bool XAP_Prefs::getPrefsValueInt ( const gchar *  szKey,
int &  nValue,
bool  bAllowBuiltin = true 
) const
UT_sint32 XAP_Prefs::getRecentCount ( void   )  const
XAP_PrefsScheme * XAP_Prefs::getScheme ( const gchar *  szSchemeName  )  const
bool XAP_Prefs::getUseEnvLocale ( void   )  const

References m_bUseEnvLocale.

bool XAP_Prefs::isIgnoreRecent ( void   )  [inline]
virtual bool XAP_Prefs::loadBuiltinPrefs ( void   )  [pure virtual]

Implemented in AP_Win32Prefs, and AP_Prefs.

bool XAP_Prefs::loadSystemDefaultPrefsFile ( const char *  szSystemDefaultPrefsPathname  ) 
void XAP_Prefs::setAutoSavePrefs ( bool  bAuto  ) 
bool XAP_Prefs::setCurrentScheme ( const gchar *  szSchemeName  ) 
void XAP_Prefs::setMaxRecent ( UT_sint32  k  ) 
void XAP_Prefs::setUseEnvLocale ( bool  bUse  ) 

References m_bUseEnvLocale.

void XAP_Prefs::startBlockChange (  ) 

Member Data Documentation

Referenced by addRecent(), and XAP_Prefs().


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