Public Member Functions | Private Member Functions | Private Attributes

AbiCommand Class Reference

#include <AbiCommand.h>

List of all members.

Public Member Functions

 AbiCommand (void)
 AbiCommand (bool bAbiCollab)
 ~AbiCommand (void)
void doCommands (void)
UT_sint32 parseTokens (UT_GenericVector< const UT_UTF8String * > *pToks)
bool printFiles (const UT_GenericVector< const UT_UTF8String * > *pToks)
bool replaceAll (const UT_GenericVector< const UT_UTF8String * > *pToks)
bool replaceNext (const UT_GenericVector< const UT_UTF8String * > *pToks)
bool movePoint (const UT_GenericVector< const UT_UTF8String * > *pToks)
bool deleteText (const UT_GenericVector< const UT_UTF8String * > *pToks)
bool insertText (const UT_GenericVector< const UT_UTF8String * > *pToks)
bool replaceDocument (PD_Document *pDoc)
bool loadDocument (UT_UTF8String &sPathToDoc)
bool newDocument (void)
PD_DocumentgetCurrentDocument ()
void clearTokenVector (UT_GenericVector< const UT_UTF8String * > &Toks)
bool invoke (const char *pszCommand)
bool tokenizeString (UT_GenericVector< const UT_UTF8String * > &tok, char *pStr)
void nullUpdate ()
bool removeGraphicalView (void)
void deleteCurrentDoc (void)
bool viewDoc (void)

Private Member Functions

PD_RDFModelHandle getRDFModel () const
PD_DocumentRDFHandle getRDF () const
FV_ViewgetView () const

Private Attributes

PD_Documentm_pCurDoc
UT_UTF8Stringm_pCurFile
AP_UnixFramem_pCurFrame
AV_Viewm_pCurView
CairoNull_Graphicsm_pG
FL_DocLayoutm_pLayout
XAP_Appm_pApp
bool m_bViewDoc
bool m_bRunAsServer
UT_uint32 m_iPID
bool m_bRunAsAbiCollab
UT_UTF8String m_sErrorFile
PD_RDFModelHandle m_rdf_context_model
PD_DocumentRDFMutationHandle m_rdf_mutation
std::set< std::string > m_rdf_xmlids

Constructor & Destructor Documentation

AbiCommand::AbiCommand ( void   ) 
AbiCommand::AbiCommand ( bool  bAbiCollab  ) 
AbiCommand::~AbiCommand ( void   ) 

Member Function Documentation

void AbiCommand::clearTokenVector ( UT_GenericVector< const UT_UTF8String * > &  vecToks  ) 

clear the token vector pointed to by pvecToks

References UT_GenericVector< T >::clear(), UT_GenericVector< T >::getItemCount(), and UT_GenericVector< T >::getNthItem().

Referenced by doCommands().

void AbiCommand::deleteCurrentDoc ( void   ) 
bool AbiCommand::deleteText ( const UT_GenericVector< const UT_UTF8String * > *  pToks  ) 
void AbiCommand::doCommands ( void   ) 
PD_Document * AbiCommand::getCurrentDocument ( void   ) 

Return a pointer to the current document

References m_pCurDoc.

PD_DocumentRDFHandle AbiCommand::getRDF (  )  const [private]
PD_RDFModelHandle AbiCommand::getRDFModel (  )  const [private]

References getRDF(), and m_rdf_context_model.

Referenced by parseTokens().

FV_View * AbiCommand::getView (  )  const [private]

References m_pCurView.

Referenced by parseTokens().

bool AbiCommand::insertText ( const UT_GenericVector< const UT_UTF8String * > *  pToks  ) 
bool AbiCommand::invoke ( const char *  pszCommand  ) 
bool AbiCommand::loadDocument ( UT_UTF8String sPathToDoc  ) 

Load the document identified by the path sPathToDoc into Abiword

References UT_UTF8String::assign(), abicollab::service::error(), m_pCurFile, printf, PD_Document::readFromFile(), replaceDocument(), UNREFP, UT_OK, and UT_UTF8String::utf8_str().

bool AbiCommand::movePoint ( const UT_GenericVector< const UT_UTF8String * > *  pToks  ) 
bool AbiCommand::newDocument ( void   ) 
void AbiCommand::nullUpdate ( void   ) 

References m_bViewDoc.

Referenced by viewDoc().

UT_sint32 AbiCommand::parseTokens ( UT_GenericVector< const UT_UTF8String * > *  pToks  ) 
bool AbiCommand::printFiles ( const UT_GenericVector< const UT_UTF8String * > *  pToks  ) 
bool AbiCommand::removeGraphicalView ( void   ) 
bool AbiCommand::replaceAll ( const UT_GenericVector< const UT_UTF8String * > *  pToks  ) 
bool AbiCommand::replaceDocument ( PD_Document pDoc  ) 
bool AbiCommand::replaceNext ( const UT_GenericVector< const UT_UTF8String * > *  pToks  ) 
bool AbiCommand::tokenizeString ( UT_GenericVector< const UT_UTF8String * > &  tok,
char *  pStr 
)

Break the string into tokens. Handles quotes and double quotes. char * pStr String from readline UT_GenericVector<const UT_UTF8String*> & reference to the vector we'll fill with UT_UTF8String * pointers.

References UT_GenericVector< T >::addItem(), line(), and starts_with().

Referenced by doCommands().

bool AbiCommand::viewDoc ( void   ) 

Member Data Documentation

Referenced by doCommands(), and parseTokens().

bool AbiCommand::m_bViewDoc [private]

Referenced by nullUpdate(), and viewDoc().

Referenced by parseTokens().

Referenced by getRDFModel(), and parseTokens().

Referenced by parseTokens().

std::set< std::string > AbiCommand::m_rdf_xmlids [private]

Referenced by parseTokens().

Referenced by doCommands(), and parseTokens().


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