Public Member Functions | Protected Member Functions | Protected Attributes

LoadBindings Class Reference

#include <LoadBindings.h>

List of all members.

Public Member Functions

 LoadBindings (EV_EditMethodCallData *d, _FROM_URI)
 LoadBindings (EV_EditMethodCallData *d, _FROM_MEMORY)
 ~LoadBindings ()
bool Load ()
bool Set () const
const std::string & GetName () const

Protected Member Functions

int strcmp (const char *s1, const char *s2)
int strcmp (const char *s1, const xmlChar *s2)
int strcmp (const xmlChar *s1, const xmlChar *s2)
int strcmp (const xmlChar *s1, const char *s2)
EV_EditModifierState GetModifiers (xmlNodePtr node)
 Parses the control, shift and alt attribute's (if present) and converts them to a EV_EditModifierState value.
const char * FindAttribute (xmlNodePtr node, const char *name)
 Searches the specified node's attributes for a certain named attribute and returns its value, if present.
bool AddMapping (UT_uint32 binding, const char *command)
 Adds a new mapping to the internal binding map.
bool RemoveMapping (const char *command, UT_uint8 unbinding)
 Adds a new mapping removal.
void ReportError (const char *format,...) const
 Reports an error.
void ReportWarning (const char *format,...) const
 Reports a warning.

Protected Attributes

XAP_Appm_pApp
xmlDocPtr m_pXMLDoc
std::string m_sName
bool m_bReplace
BindingMap m_BindMap
UnbindMap m_UnbindMap

Constructor & Destructor Documentation

LoadBindings::LoadBindings ( EV_EditMethodCallData d,
_FROM_URI   
)
LoadBindings::LoadBindings ( EV_EditMethodCallData d,
_FROM_MEMORY   
)
LoadBindings::~LoadBindings (  ) 

References m_pXMLDoc.


Member Function Documentation

bool LoadBindings::AddMapping ( UT_uint32  binding,
const char *  command 
) [protected]

Adds a new mapping to the internal binding map.

References m_BindMap, ReportError(), and UT_DEBUGMSG.

Referenced by Load().

const char * LoadBindings::FindAttribute ( xmlNodePtr  node,
const char *  name 
) [protected]

Searches the specified node's attributes for a certain named attribute and returns its value, if present.

References strcmp().

Referenced by Load().

EV_EditModifierState LoadBindings::GetModifiers ( xmlNodePtr  node  )  [protected]

Parses the control, shift and alt attribute's (if present) and converts them to a EV_EditModifierState value.

References strcmp().

Referenced by Load().

const std::string& LoadBindings::GetName (  )  const [inline]

References m_sName.

bool LoadBindings::Load (  ) 
bool LoadBindings::RemoveMapping ( const char *  command,
UT_uint8  unbinding 
) [protected]

Adds a new mapping removal.

References m_UnbindMap, ReportWarning(), and UT_DEBUGMSG.

Referenced by Load().

void LoadBindings::ReportError ( const char *  format,
  ... 
) const [protected]

Reports an error.

Referenced by AddMapping(), and Load().

void LoadBindings::ReportWarning ( const char *  format,
  ... 
) const [protected]

Reports a warning.

Referenced by RemoveMapping(), and Set().

bool LoadBindings::Set (  )  const
int LoadBindings::strcmp ( const xmlChar *  s1,
const xmlChar *  s2 
) [inline, protected]

References strcmp().

int LoadBindings::strcmp ( const xmlChar *  s1,
const char *  s2 
) [inline, protected]

References strcmp().

int LoadBindings::strcmp ( const char *  s1,
const char *  s2 
) [inline, protected]
int LoadBindings::strcmp ( const char *  s1,
const xmlChar *  s2 
) [inline, protected]

References strcmp().


Member Data Documentation

Referenced by AddMapping(), and Set().

bool LoadBindings::m_bReplace [protected]

Referenced by Load(), and Set().

Referenced by Set().

xmlDocPtr LoadBindings::m_pXMLDoc [protected]

Referenced by Load(), LoadBindings(), and ~LoadBindings().

std::string LoadBindings::m_sName [protected]

Referenced by GetName(), Load(), and Set().

Referenced by RemoveMapping(), and Set().


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