#include <AbiCommand.h>
| AbiCommand::AbiCommand | ( | void | ) |
| AbiCommand::AbiCommand | ( | bool | bAbiCollab | ) |
| AbiCommand::~AbiCommand | ( | void | ) |
References deleteCurrentDoc(), DELETEP, and m_pCurFile.
| void AbiCommand::doCommands | ( | void | ) |
References clearTokenVector(), FREEP, UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_bRunAsServer, m_sErrorFile, parseTokens(), printf, tokenizeString(), and UT_UTF8String::utf8_str().
Referenced by AbiCommand_invoke().
References UT_UTF8String::assign(), AV_View::cmdUnselectSelection(), AP_Convert::convertTo(), deleteText(), abicollab::service::error(), ev_EditMethod_exists(), ev_EditMethod_invoke(), extension, IE_Exp::fileTypeForSuffix(), FREEP, UT_GenericVector< T >::getItemCount(), PD_Document::getLastOpenedType(), UT_GenericVector< T >::getNthItem(), AV_View::getPoint(), IEFT_Unknown, insertText(), m_bRunAsServer, m_iPID, m_pApp, m_pCurDoc, m_pCurFile, m_pCurView, m_sErrorFile, AP_UnixApp::makePngPreview(), movePoint(), PD_Document::newDocument(), printf, printFiles(), PD_Document::readFromFile(), replaceAll(), replaceDocument(), replaceNext(), RES_TO_STATUS, UT_UTF8String::size(), UNREFP, UT_calloc(), UT_OK, UT_UTF8String::utf8_str(), and viewDoc().
Referenced by doCommands().
| bool AbiCommand::printFiles | ( | UT_Vector * | pToks | ) |
References FL_DocLayout::countPages(), DELETEP, FL_DocLayout::fillLayouts(), FL_DocLayout::formatAll(), FL_DocLayout::getHeight(), UT_GenericVector< T >::getItemCount(), FV_View::getLayout(), UT_GenericVector< T >::getNthItem(), FV_View::getPageSize(), FL_DocLayout::getWidth(), fp_PageSize::isPortrait(), m_pApp, m_pCurDoc, FL_DocLayout::recalculateTOCFields(), s_actuallyPrint(), UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by parseTokens().
| bool AbiCommand::replaceAll | ( | UT_Vector * | pToks | ) |
References FREEP, UT_GenericVector< T >::getNthItem(), m_pCurView, UT_UTF8String::size(), UT_calloc(), UT_UCS4_strcpy_char(), and UT_UTF8String::utf8_str().
Referenced by parseTokens().
| bool AbiCommand::replaceNext | ( | UT_Vector * | pToks | ) |
References FREEP, UT_GenericVector< T >::getNthItem(), m_pCurView, UT_UTF8String::size(), UT_calloc(), UT_UCS4_strcpy_char(), and UT_UTF8String::utf8_str().
Referenced by parseTokens().
| bool AbiCommand::movePoint | ( | UT_Vector * | pToks | ) |
References FV_DOCPOS_BOB, FV_DOCPOS_BOD, FV_DOCPOS_BOL, FV_DOCPOS_BOP, FV_DOCPOS_BOS, FV_DOCPOS_BOW, FV_DOCPOS_EOB, FV_DOCPOS_EOD, FV_DOCPOS_EOL, FV_DOCPOS_EOP, FV_DOCPOS_EOS, UT_GenericVector< T >::getNthItem(), m_pCurView, and UT_UTF8String::utf8_str().
Referenced by parseTokens().
| bool AbiCommand::deleteText | ( | UT_Vector * | pToks | ) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pCurView, and UT_UTF8String::utf8_str().
Referenced by parseTokens().
| bool AbiCommand::insertText | ( | UT_Vector * | pToks | ) |
References FREEP, UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pCurView, UT_UTF8String::size(), UT_calloc(), UT_UCS4_strcpy_char(), and UT_UTF8String::utf8_str().
Referenced by parseTokens().
| bool AbiCommand::replaceDocument | ( | PD_Document * | pDoc | ) |
References deleteCurrentDoc(), extension, FL_DocLayout::fillLayouts(), m_pApp, m_pCurDoc, m_pCurFrame, m_pCurView, m_pG, m_pLayout, XAP_App::newGraphics(), XAP_Frame::setAutoSaveFileExt(), XAP_Frame::setDoc(), XAP_Frame::setView(), and UT_UTF8String::utf8_str().
Referenced by loadDocument(), newDocument(), and parseTokens().
| bool AbiCommand::loadDocument | ( | UT_UTF8String & | sPathToDoc | ) |
Load the document identified by the path sPathToDoc into Abiword
References UT_UTF8String::assign(), abicollab::service::error(), IEFT_Unknown, m_pApp, m_pCurFile, printf, PD_Document::readFromFile(), replaceDocument(), UNREFP, UT_OK, and UT_UTF8String::utf8_str().
| bool AbiCommand::newDocument | ( | void | ) |
Create a new Document
References UT_UTF8String::assign(), abicollab::service::error(), m_pApp, m_pCurFile, PD_Document::newDocument(), printf, replaceDocument(), UNREFP, and UT_OK.
| PD_Document * AbiCommand::getCurrentDocument | ( | void | ) |
Return a pointer to the current document
References m_pCurDoc.
| void AbiCommand::clearTokenVector | ( | UT_Vector & | 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().
| bool AbiCommand::invoke | ( | const char * | pszCommand | ) |
References EV_EditMethodContainer::findEditMethodByName(), EV_EditMethod::Fn(), XAP_App::getEditMethodContainer(), m_pApp, and m_pCurView.
Referenced by viewDoc().
| bool AbiCommand::tokenizeString | ( | UT_Vector & | tok, | |
| char * | pStr | |||
| ) |
Break the string into tokens. Handles quotes and double quotes. char * pStr String from readline UT_Vector & reference to the vector we'll fill with UT_UTF8String * pointers.
References UT_GenericVector< T >::addItem().
Referenced by doCommands().
| void AbiCommand::nullUpdate | ( | void | ) |
| bool AbiCommand::removeGraphicalView | ( | void | ) |
| void AbiCommand::deleteCurrentDoc | ( | void | ) |
References DELETEP, XAP_App::forgetFrame(), m_pApp, m_pCurDoc, m_pCurFrame, m_pCurView, m_pG, m_pLayout, and UNREFP.
Referenced by replaceDocument(), and ~AbiCommand().
| bool AbiCommand::viewDoc | ( | void | ) |
References XAP_Frame::getViewNumber(), invoke(), m_bViewDoc, m_pCurFrame, and nullUpdate().
Referenced by parseTokens().
PD_Document* AbiCommand::m_pCurDoc [private] |
Referenced by deleteCurrentDoc(), getCurrentDocument(), parseTokens(), printFiles(), and replaceDocument().
UT_UTF8String* AbiCommand::m_pCurFile [private] |
Referenced by loadDocument(), newDocument(), parseTokens(), and ~AbiCommand().
AP_UnixFrame* AbiCommand::m_pCurFrame [private] |
Referenced by deleteCurrentDoc(), replaceDocument(), and viewDoc().
AV_View* AbiCommand::m_pCurView [private] |
Referenced by deleteCurrentDoc(), deleteText(), insertText(), invoke(), movePoint(), parseTokens(), replaceAll(), replaceDocument(), and replaceNext().
UnixNull_Graphics* AbiCommand::m_pG [private] |
Referenced by deleteCurrentDoc(), and replaceDocument().
FL_DocLayout* AbiCommand::m_pLayout [private] |
Referenced by deleteCurrentDoc(), and replaceDocument().
XAP_App* AbiCommand::m_pApp [private] |
Referenced by AbiCommand(), deleteCurrentDoc(), invoke(), loadDocument(), newDocument(), parseTokens(), printFiles(), and replaceDocument().
bool AbiCommand::m_bViewDoc [private] |
Referenced by nullUpdate(), and viewDoc().
bool AbiCommand::m_bRunAsServer [private] |
Referenced by doCommands(), and parseTokens().
UT_uint32 AbiCommand::m_iPID [private] |
Referenced by parseTokens().
bool AbiCommand::m_bRunAsAbiCollab [private] |
UT_UTF8String AbiCommand::m_sErrorFile [private] |
Referenced by doCommands(), and parseTokens().
1.5.5