#include <pd_Document.h>
PD_Document is the representation for a document.
typedef std::map<std::string, PD_DataItemHandle> PD_Document::hash_data_items_t [private] |
PD_Document::PD_Document | ( | ) |
PD_Document::~PD_Document | ( | ) | [protected, virtual] |
bool PD_Document::_acceptRejectRevision | ( | bool | bReject, | |
UT_uint32 | iStart, | |||
UT_uint32 | iEnd, | |||
const PP_Revision * | pRev, | |||
PP_RevisionAttr & | RevAttr, | |||
pf_Frag * | pf, | |||
bool & | bDeleted | |||
) | [protected] |
carries out the actual change in PieceTable; called by acceptRejectRevision() and rejectAllHigherRevisions()
this method operates on a fragment at a time, but if it results in deletion from PT, more fragments might be deleted
References AD_Document::_setMarkRevisions(), changeSpanFmt(), changeStruxFmt(), deleteSpan(), PP_AttrProp::getAttributeCount(), PP_Revision::getId(), pf_Frag::getLength(), pf_Frag::getNext(), PP_AttrProp::getNthAttribute(), PP_AttrProp::getNthProperty(), PP_AttrProp::getPropertyCount(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), PP_Revision::getType(), PP_RevisionAttr::getXMLstring(), AD_Document::isMarkRevisions(), pf_Frag::PFT_Strux, PP_REVISION_ADDITION, PP_REVISION_ADDITION_AND_FMT, PP_REVISION_DELETION, PP_REVISION_FMT_CHANGE, PTC_AddFmt, PTC_RemoveFmt, PTX_Block, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, PP_RevisionAttr::removeAllHigherOrEqualIds(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by acceptAllRevisions(), acceptRejectRevision(), and rejectAllHigherRevisions().
bool PD_Document::_buildAuthorProps | ( | pp_Author * | pAuthor, | |
PP_PropertyVector & | props | |||
) | [private] |
References gchar, pp_Author::getAttrProp(), pp_Author::getAuthorInt(), PP_AttrProp::getNthProperty(), PP_AttrProp::getPropertyCount(), szName, UT_DEBUGMSG, and UT_std_string_sprintf().
Referenced by _sendAuthorCR().
bool PD_Document::_checkAndFixTable | ( | pf_Frag_Strux * | pfs | ) | [protected] |
This method looks to see if we have a table strux without a matching cell or an endtable without a matching endcell preceding it If we do it deletes the table/endtable.
References pt_PieceTable::deleteFragNoUpdate(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by repairDoc().
void PD_Document::_clearUndo | ( | ) | [protected, virtual] |
Implements AD_Document.
References pt_PieceTable::clearUndo(), m_pPieceTable, and UT_return_if_fail.
void PD_Document::_destroyDataItemData | ( | void | ) | [protected] |
References FREEP, m_hashDataItems, _dataItemPair::pToken, UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by ~PD_Document().
bool PD_Document::_exportFindVisDirectionRunAtPos | ( | PT_DocPosition | pos | ) | [private] |
bool PD_Document::_exportInitVisDirection | ( | PT_DocPosition | pos | ) | [private] |
References FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::findRunAtOffset(), UT_GenericVector< T >::getItemCount(), fl_DocListener::getLayout(), UT_GenericVector< T >::getNthItem(), fl_BlockLayout::getPosition(), PL_Listener::getType(), m_bLoading, m_pVDBl, m_pVDRun, m_vecListeners, and UT_return_val_if_fail.
Referenced by _exportFindVisDirectionRunAtPos(), and exportGetVisDirectionAtPos().
UT_Error PD_Document::_importFile | ( | const char * | szFilename, | |
int | ieft, | |||
bool | markClean, | |||
bool | bImportStylesFirst, | |||
bool | isImportFile, | |||
const char * | impProps | |||
) | [protected] |
References UT_DEBUGMSG, and UT_go_file_open().
Referenced by importFile(), and readFromFile().
UT_Error PD_Document::_importFile | ( | GsfInput * | input, | |
int | ieft, | |||
bool | markClean, | |||
bool | bImportStylesFirst, | |||
bool | bIsImportFile, | |||
const char * | impProps | |||
) | [protected] |
References _setClean(), AD_Document::_setFilename(), AD_Document::_setForceDirty(), _syncFileTypes(), XAP_Dialog_MessageBox::a_OK, XAP_Prefs::addRecent(), XAP_Dialog_MessageBox::b_O, buildTemplateList(), DELETEP, gchar, XAP_App::getApp(), PP_AttrProp::getAttribute(), getAttrProp(), AD_Document::getFilename(), AD_Document::getHighestRevisionId(), UT_GenericVector< T >::getItemCount(), XAP_App::getLastFocussedFrame(), XAP_App::getPrefs(), AD_Document::getRevisions(), AD_Document::getShowRevisionId(), getStatusBar(), AP_StatusBar::hideProgressBar(), importStyles(), AD_Document::isMarkRevisions(), AD_Document::isOrigUUID(), AD_Document::isShowRevisions(), IE_Imp::loadFile(), m_bLoading, m_bLockedStyles, m_hDocumentRDF, m_indexAP, m_lastOpenedType, m_pPieceTable, XAP_Frame::nullUpdate(), PROGRESS_INDEFINATE, PTS_Editing, PTS_Loading, repairDoc(), setAttrProp(), AD_Document::setLastOpenedTime(), pt_PieceTable::setPieceTableState(), AP_StatusBar::setStatusProgressType(), pt_PieceTable::setXIDThreshold(), XAP_Frame::showMessageBox(), AP_StatusBar::showProgressBar(), time, updateFields(), UT_ASSERT, UT_DEBUGMSG, UT_IS_IE_SUCCESS, and UT_OK.
bool PD_Document::_matchSection | ( | pf_Frag_Strux * | pfs, | |
UT_GenericVector< pf_Frag_Strux * > * | vecSections | |||
) | [protected] |
pfs point to a header footer section. This Method returns true if there is a section that has a reference to it's HdrFtr type and id
References getAttributeFromSDH(), UT_GenericVector< T >::getItemCount(), and UT_GenericVector< T >::getNthItem().
Referenced by repairDoc().
bool PD_Document::_pruneSectionAPI | ( | pf_Frag_Strux * | pfs, | |
const char * | szHType, | |||
UT_GenericVector< pf_Frag_Strux * > * | vecHdrFtrs | |||
) | [protected] |
This scans the HdrFtrs to see if there is a match for the header/footer type in the section strux pfs. Return true of a prune happened
References pt_PieceTable::changeStruxFormatNoUpdate(), getAttributeFromSDH(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pPieceTable, PTC_RemoveFmt, and UT_DEBUGMSG.
Referenced by repairDoc().
bool PD_Document::_removeHdrFtr | ( | pf_Frag_Strux * | pfs | ) | [protected] |
Remove the HdrFtr starting at pfs. No changeRecords are cre created. Only used for document repair during import.
References pt_PieceTable::deleteFragNoUpdate(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_DEBUGMSG.
Referenced by _removeRepeatedHdrFtr(), and repairDoc().
bool PD_Document::_removeRepeatedHdrFtr | ( | pf_Frag_Strux * | pfs, | |
UT_GenericVector< pf_Frag_Strux * > * | vecHdrFtrs, | |||
UT_sint32 | iStart | |||
) | [protected] |
Look for a Hdr/Ftr with exactly the same identification as that of the input strux. If we find a match delete the HdrFtr
References _removeHdrFtr(), UT_GenericVector< T >::deleteNthItem(), getAttributeFromSDH(), UT_GenericVector< T >::getItemCount(), and UT_GenericVector< T >::getNthItem().
Referenced by repairDoc().
UT_Error PD_Document::_save | ( | void | ) | [protected, virtual] |
UT_Error PD_Document::_saveAs | ( | const char * | szFilename, | |
int | ieft, | |||
const char * | expProps = NULL | |||
) | [protected, virtual] |
Implements AD_Document.
Referenced by saveAs().
UT_Error PD_Document::_saveAs | ( | const char * | szFilename, | |
int | ieft, | |||
bool | cpy, | |||
const char * | expProps = NULL | |||
) | [protected, virtual] |
Implements AD_Document.
References AD_Document::_adjustHistoryOnSave(), _setClean(), AD_Document::_setFilename(), _syncFileTypes(), XAP_Prefs::addRecent(), IE_Exp::constructExporter(), XAP_App::getApp(), XAP_App::getPrefs(), m_lastSavedAsType, PD_SIGNAL_DOCNAME_CHANGED, purgeRevisionTable(), IE_Exp::setProps(), signalListeners(), UT_DEBUGMSG, UT_SAVE_CANCELLED, and IE_Exp::writeFile().
UT_Error PD_Document::_saveAs | ( | GsfOutput * | output, | |
int | ieft, | |||
bool | cpy, | |||
const char * | expProps | |||
) | [protected, virtual] |
References AD_Document::_adjustHistoryOnSave(), _setClean(), AD_Document::_setFilename(), _syncFileTypes(), XAP_Prefs::addRecent(), IE_Exp::constructExporter(), XAP_App::getApp(), XAP_App::getPrefs(), m_lastSavedAsType, PD_SIGNAL_DOCNAME_CHANGED, purgeRevisionTable(), IE_Exp::setProps(), signalListeners(), UT_DEBUGMSG, UT_return_val_if_fail, UT_SAVE_CANCELLED, UT_SAVE_NAMEERROR, and IE_Exp::writeFile().
bool PD_Document::_sendAuthorCR | ( | const char * | attrName, | |
pp_Author * | pAuthor | |||
) | [private] |
private method share by send*AuthorCR()
attrName | the value of the PT_DOCPROP_ATTRIBUTE_NAME attribute |
References _buildAuthorProps(), createAndSendDocPropCR(), and UT_return_val_if_fail.
Referenced by sendAddAuthorCR(), and sendChangeAuthorCR().
void PD_Document::_setClean | ( | void | ) | [protected] |
References AD_Document::_setForceDirty(), m_pPieceTable, and pt_PieceTable::setClean().
Referenced by _importFile(), _save(), _saveAs(), finishRawCreation(), and newDocument().
bool PD_Document::_syncFileTypes | ( | bool | bReadSaveWriteOpen | ) | [protected] |
Synchronize the last opened/last saves filetypes.
bReadLastSavedAsType | True to write last opened and read last saved type; otherwise, write last saved type from last opened type. |
There are actually two filetypes - one for importers and one for exporters. This function tries to synchronize the one to the other.
References IE_Exp::fileTypeForSuffixes(), IE_Imp::fileTypeForSuffixes(), IEFT_Bogus, IEFT_Unknown, m_lastOpenedType, m_lastSavedAsType, IE_Imp::suffixesForFileType(), and IE_Exp::suffixesForFileType().
Referenced by _importFile(), _save(), and _saveAs().
bool PD_Document::acceptAllRevisions | ( | ) | [virtual] |
Implements AD_Document.
References _acceptRejectRevision(), beginUserAtomicGlob(), endUserAtomicGlob(), gchar, PP_AttrProp::getAttribute(), pt_PieceTable::getAttrProp(), PD_DocIterator::getFrag(), pf_Frag::getIndexAP(), pf_Frag::getLength(), PP_RevisionAttr::getNthRevision(), PD_DocIterator::getPosition(), PP_RevisionAttr::getRevisionsCount(), PD_DocIterator::getStatus(), m_pPieceTable, notifyPieceTableChangeEnd(), notifyPieceTableChangeStart(), PD_SIGNAL_UPDATE_LAYOUT, PP_RevisionAttr::pruneForCumulativeResult(), purgeFmtMarks(), PD_DocIterator::reset(), signalListeners(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
bool PD_Document::acceptRejectRevision | ( | bool | bReject, | |
UT_uint32 | iPos1, | |||
UT_uint32 | iPos2, | |||
UT_uint32 | iLevel | |||
) | [virtual] |
accepts or reject top visible revision between document positions iStart and iEnd.
bReject | true if revisions are to be rejected | |
iPos1 | document position to start at | |
iPos2 | document position to finish at | |
iLevel | the highest revision level to accept |
NB: For each fragment this function removes the highest revision <= iLevel. For example, if iLevel is 3 and fragment contains revisions 1,2, 4, revision 2 will be removed.
Implements AD_Document.
References _acceptRejectRevision(), beginUserAtomicGlob(), endUserAtomicGlob(), gchar, PP_AttrProp::getAttribute(), pt_PieceTable::getAttrProp(), PD_DocIterator::getFrag(), PP_RevisionAttr::getGreatestLesserOrEqualRevision(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getPos(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), m_pPieceTable, notifyPieceTableChangeEnd(), notifyPieceTableChangeStart(), PD_SIGNAL_UPDATE_LAYOUT, PD_DocIterator::reset(), signalListeners(), UT_ASSERT_HARMLESS, UT_MAX, UT_MIN, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and UTIter_OK.
Referenced by FV_View::cmdAcceptRejectRevision().
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecAuthors, and UT_DEBUGMSG.
Referenced by AccountHandler::_handlePacket(), addAuthorAttributeIfBlank(), changeDocPropeties(), IE_Imp_AbiWord_1::startElement(), and AbiCollabSessionManager::startSession().
bool PD_Document::addAuthorAttributeIfBlank | ( | PP_PropertyVector & | atts | ) | [private] |
Add the current documents UUID as the author to the attribute list if the author attribute is not present. Returns true if author attribute is already present. false if we add it.
References addAuthor(), findFirstFreeAuthorInt(), getMyAuthorInt(), m_iLastAuthorInt, PP_getAttribute(), PT_AUTHOR_NAME, sendAddAuthorCR(), setMyAuthorInt(), and UT_std_string_sprintf().
Referenced by changeSpanFmt(), insertObject(), insertSpan(), and insertStrux().
bool PD_Document::addAuthorAttributeIfBlank | ( | PP_AttrProp *& | p_AttrProp | ) | [private] |
Add the current documents UUID as the author to the ppAttrProps if the attribute is not set. returns true if author is set
References addAuthor(), findFirstFreeAuthorInt(), gchar, PP_AttrProp::getAttribute(), getMyAuthorInt(), m_iLastAuthorInt, PT_AUTHOR_NAME, sendAddAuthorCR(), PP_AttrProp::setAttribute(), setMyAuthorInt(), UT_std_string_sprintf(), and xxx_UT_DEBUGMSG.
void PD_Document::addBookmark | ( | const gchar * | pName | ) |
References m_vBookmarkNames.
Referenced by pt_PieceTable::_createObject().
void PD_Document::addList | ( | const fl_AutoNumPtr & | pAutoNum | ) |
References m_mapLists, and m_vecLists.
Referenced by IE_Imp_OPML::_createList(), IE_Imp_WordPerfect::_updateDocumentOrderedListDefinition(), IE_Imp_WordPerfect::_updateDocumentUnorderedListDefinition(), FL_DocLayout::addList(), appendList(), IE_Imp_RTF::ApplyParagraphAttributes(), and IE_Imp_DocBook::createList().
bool PD_Document::addListener | ( | PL_Listener * | pListener, | |
PL_ListenerId * | pListenerId | |||
) |
References UT_GenericVector< T >::addItem(), pt_PieceTable::addListener(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pPieceTable, m_vecListeners, UT_GenericVector< T >::setNthItem(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by AbiCollab::_setDocument(), FL_DocLayout::fillLayouts(), and ServiceAccountHandler::startSession().
void PD_Document::addPageReferencedImage | ( | UT_UTF8String & | sImageId, | |
UT_sint32 | iPage, | |||
double | xInch, | |||
double | yInch, | |||
const char * | pzProps | |||
) |
References UT_GenericVector< T >::addItem(), and m_pPendingImagePage.
Referenced by ODi_TextContent_ListenerState::startElement().
void PD_Document::addPageReferencedTextbox | ( | UT_ByteBuf & | sContent, | |
UT_sint32 | iPage, | |||
double | xInch, | |||
double | yInch, | |||
const char * | pzProps | |||
) |
References UT_GenericVector< T >::addItem(), and m_pPendingTextboxPage.
Referenced by ODi_TextContent_ListenerState::endElement().
bool PD_Document::addStyleAttributes | ( | const gchar * | szStyleName, | |
const PP_PropertyVector & | pAttribs | |||
) |
This methods changes the attributes of a style (basedon,followedby)
szStyleName | the const gchar * name of the style | |
pAttribs | The list of attributes of the updated style. |
References PD_Style::getBasedOn(), PD_Style::getFollowedBy(), pt_PieceTable::getStyle(), m_pPieceTable, and updateDocForStyleChange().
Referenced by AP_Dialog_Styles::_populateAbiPreview(), and AP_Dialog_Styles::updateCurrentStyle().
bool PD_Document::addStyleProperties | ( | const gchar * | szStyleName, | |
const PP_PropertyVector & | pProperties | |||
) |
References pt_PieceTable::getStyle(), m_pPieceTable, and updateDocForStyleChange().
Referenced by AP_Dialog_Styles::_populateAbiPreview(), and FV_View::FV_View().
bool PD_Document::addStyleProperty | ( | const gchar * | szStyleName, | |
const gchar * | szPropertyName, | |||
const gchar * | szPropertyValue | |||
) |
void PD_Document::allowChangeInsPoint | ( | void | ) |
References m_bAllowInsertPointChange.
Referenced by FV_View::_restoreCellParams(), FV_View::allowChangeInsPoint(), fl_HdrFtrSectionLayout::bl_doclistener_changeFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_changeObject(), fl_HdrFtrSectionLayout::bl_doclistener_changeSpan(), fl_HdrFtrSectionLayout::bl_doclistener_changeStrux(), fl_HdrFtrSectionLayout::bl_doclistener_deleteFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_deleteObject(), fl_HdrFtrSectionLayout::bl_doclistener_deleteSpan(), fl_HdrFtrSectionLayout::bl_doclistener_deleteStrux(), fl_HdrFtrSectionLayout::bl_doclistener_insertCell(), fl_HdrFtrSectionLayout::bl_doclistener_insertEndTable(), fl_HdrFtrSectionLayout::bl_doclistener_insertFirstBlock(), fl_HdrFtrSectionLayout::bl_doclistener_insertFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_insertObject(), fl_HdrFtrSectionLayout::bl_doclistener_insertSpan(), fl_HdrFtrSectionLayout::bl_doclistener_insertTable(), fl_HdrFtrSectionLayout::bl_doclistener_populateObject(), fl_HdrFtrSectionLayout::bl_doclistener_populateSpan(), FV_View::setShowPara(), and updateFields().
bool PD_Document::appendFmt | ( | const PP_PropertyVector & | vecAttributes | ) |
References pt_PieceTable::appendFmt(), checkForSuspect(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_appendFmt(), IE_Imp_RTF::_appendSpan(), IE_Imp_MsWord_97::_beginPara(), IE_Imp_MsWord_97::_insertHeaderSection(), ODi_TextContent_ListenerState::_startParagraphElement(), OXML_Element_Run::addToPT(), OXML_Element_Paragraph::addToPT(), IE_Imp_XHTML::appendFmt(), IE_Imp::appendFmt(), IE_Imp_RTF::ApplyCharacterAttributes(), IE_Imp_RTF::ApplyParagraphAttributes(), ODi_TextContent_ListenerState::endElement(), OpenWriter_ContentStream_Listener::endElement(), IE_Exp_DocRangeListener::populate(), ODi_TextContent_ListenerState::startElement(), and OpenWriter_ContentStream_Listener::startElement().
bool PD_Document::appendFmtMark | ( | void | ) |
bool PD_Document::appendLastStruxFmt | ( | PTStruxType | pts, | |
const PP_PropertyVector & | attrs, | |||
const std::string & | props, | |||
bool | bSkipEmbededSections | |||
) |
References pt_PieceTable::appendLastStruxFmt(), m_pPieceTable, updateStatus(), and UT_return_val_if_fail.
bool PD_Document::appendLastStruxFmt | ( | PTStruxType | pts, | |
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | props, | |||
bool | bSkipEmbededSections | |||
) |
appends given fmt to the last strux in document
References pt_PieceTable::appendLastStruxFmt(), m_pPieceTable, updateStatus(), and UT_return_val_if_fail.
bool PD_Document::appendList | ( | const PP_PropertyVector & | attributes | ) |
References addList(), id, m_mapLists, and type.
Referenced by IE_Imp_MsWord_97::_beginPara(), OXML_List::addToPT(), IE_Imp_Psion::applyParagraphAttributes(), ODi_ListLevelStyle::defineAbiList(), and OpenWriter_ContentStream_Listener::startElement().
bool PD_Document::appendObject | ( | PTObjectType | pto, | |
const PP_PropertyVector & | attributes | |||
) |
References pt_PieceTable::appendObject(), checkForSuspect(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendField(), IE_Imp_MsWord_97::_appendObject(), IE_Imp_MsWord_97::_appendObjectHdrFtr(), ODi_Frame_ListenerState::_drawObject(), ODi_TextContent_ListenerState::_insertBookmark(), OpenWriter_ContentStream_Listener::_insertBookmark(), IE_Imp_RTF::_parseFldinstBlock(), ODi_TextContent_ListenerState::_startParagraphElement(), OXML_Element_Paragraph::addToPT(), OXML_Element_Math::addToPT(), OXML_Element_Image::addToPT(), OXML_Element_Hyperlink::addToPT(), OXML_Element_Field::addToPT(), OXML_Element_Bookmark::addToPT(), OXML_Section::addToPTAsEndnote(), OXML_Section::addToPTAsFootnote(), IE_Imp_XHTML::appendObject(), IE_Imp::appendObject(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_RTF::EndAnnotation(), ODi_TextContent_ListenerState::endElement(), ODi_Frame_ListenerState::endElement(), OpenWriter_ContentStream_Listener::endElement(), IE_Imp_RTF::HandleAbiEmbed(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleBookmark(), IE_Imp_RTF::HandleField(), IE_Imp_RTF::HandleRDFAnchor(), IE_Exp_DocRangeListener::populate(), IE_Imp_RTF::StartAnnotation(), ODi_TextContent_ListenerState::startElement(), and OpenWriter_ContentStream_Listener::startElement().
bool PD_Document::appendSpan | ( | const UT_UCSChar * | p, | |
UT_uint32 | length | |||
) |
References pt_PieceTable::appendFmt(), pt_PieceTable::appendSpan(), checkForSuspect(), m_iLastDirMarker, m_pPieceTable, UCS_LRE, UCS_LRO, UCS_PDF, UCS_RLE, UCS_RLO, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendSpan(), IE_Imp_MsWord_97::_appendSpan(), IE_Imp_MsWord_97::_appendSpanHdrFtr(), ODi_TextContent_ListenerState::_flush(), OpenWriter_ContentStream_Listener::_flush(), ODi_TextContent_ListenerState::_flushPendingParagraphBreak(), ODi_TextContent_ListenerState::_startParagraphElement(), OXML_Section::addToPT(), OXML_Element_Text::addToPT(), OXML_Element_Paragraph::addToPT(), OXML_Element::addToPT(), IE_Imp_XHTML::appendSpan(), IE_Imp::appendSpan(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Exp_DocRangeListener::populate(), ODi_TextContent_ListenerState::startElement(), and OpenWriter_ContentStream_Listener::startElement().
bool PD_Document::appendStrux | ( | PTStruxType | pts, | |
const PP_PropertyVector & | attributes, | |||
pf_Frag_Strux ** | ppfs_ret = 0 | |||
) |
References pt_PieceTable::appendStrux(), checkForSuspect(), m_pPieceTable, PTX_EndCell, PTX_Section, updateStatus(), and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendField(), IE_Imp_RTF::_appendHdrFtr(), IE_Imp_MsWord_97::_appendObjectHdrFtr(), IE_Imp_MsWord_97::_appendSpanHdrFtr(), IE_Imp_MsWord_97::_appendStrux(), IE_Imp_MsWord_97::_appendStruxHdrFtr(), OpenWriter_ContentStream_Listener::_closeCell(), OpenWriter_ContentStream_Listener::_closeTable(), ODi_Frame_ListenerState::_drawTextBox(), ODi_TextContent_ListenerState::_flushPendingParagraphBreak(), ODi_TextContent_ListenerState::_insertAnnotation(), IE_Imp_MsWord_97::_insertBookmark(), IE_Imp_MsWord_97::_insertHeaderSection(), ODi_TextContent_ListenerState::_insureInBlock(), OpenWriter_ContentStream_Listener::_insureInBlock(), OpenWriter_ContentStream_Listener::_insureInSection(), ODi_TextContent_ListenerState::_openAbiSection(), OpenWriter_ContentStream_Listener::_openCell(), OpenWriter_ContentStream_Listener::_openTable(), ODi_Table_ListenerState::_parseCellStart(), IE_Imp_RTF::_parseFldinstBlock(), ODi_Table_ListenerState::_parseTableStart(), ODi_TextContent_ListenerState::_startParagraphElement(), IE_Imp_RTF::addFrame(), OXML_Section::addToPT(), OXML_Element_TextBox::addToPT(), OXML_Element_Table::addToPT(), OXML_Element_Paragraph::addToPT(), OXML_Element_Image::addToPT(), OXML_Element_Cell::addToPT(), OXML_Section::addToPTAsEndnote(), OXML_Section::addToPTAsFootnote(), OXML_Section::addToPTAsHdrFtr(), IE_Imp_XHTML::appendStrux(), IE_Imp::appendStrux(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_RTF::ApplySectionAttributes(), IE_Imp_RTF::CloseTable(), ie_imp_table::deleteRow(), ODi_TextContent_ListenerState::endElement(), ODi_TableOfContent_ListenerState::endElement(), ODi_Table_ListenerState::endElement(), ODi_Frame_ListenerState::endElement(), IE_Imp_RTF::FlushStoredChars(), IE_Imp_RTF::HandleAbiEmbed(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleBookmark(), IE_Imp_RTF::HandleCell(), IE_Imp_RTF::HandleField(), IE_Imp_RTF::HandleNote(), IE_Imp_RTF::HandleShape(), IE_Imp_RTF::InsertImage(), newDocument(), IE_Imp_RTF::OpenTable(), IE_Exp_DocRangeListener::populate(), IE_Exp_DocRangeListener::populateStrux(), repairDoc(), ODi_TextContent_ListenerState::startElement(), ODi_Style_MasterPage::startElement(), OpenWriter_ContentStream_Listener::startElement(), IE_Imp_TableHelper::tableStart(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
bool PD_Document::appendStruxFmt | ( | pf_Frag_Strux * | pfs, | |
const PP_PropertyVector & | attributes | |||
) |
References pt_PieceTable::appendStruxFmt(), m_pPieceTable, updateStatus(), and UT_return_val_if_fail.
Referenced by IE_Imp::appendStruxFmt().
bool PD_Document::appendStyle | ( | const PP_PropertyVector & | attributes | ) |
References pt_PieceTable::appendStyle(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_handleStyleSheet(), AP_Dialog_Styles::_populateAbiPreview(), OXML_Style::addToPT(), FV_View::appendStyle(), AP_Dialog_Styles::createNewStyle(), ODi_Style_Style::defineAbiStyle(), OpenWriter_StylesStream_Listener::endElement(), IE_Imp_RTF::HandleStyleDefinition(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), and AP_Dialog_Styles::updateCurrentStyle().
bool PD_Document::areDocumentContentsEqual | ( | const AD_Document & | D, | |
UT_uint32 & | pos | |||
) | const [virtual] |
Returns true if the contents of the two documents are identical if the function returns false, pos contains the document position at which first difference was encountered
Implements AD_Document.
References d, PD_DocIterator::getChar(), PD_DocIterator::getFrag(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getPos(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), pf_Frag::getType(), AD_Document::getType(), pf_Frag::isContentEqual(), m_pPieceTable, UT_MIN, UT_return_val_if_fail, and UTIter_OK.
bool PD_Document::areDocumentFormatsEqual | ( | const AD_Document & | D, | |
UT_uint32 & | pos | |||
) | const [virtual] |
Compare the format of the this document to another document; returns true if document formats are identical
If the function returns false, pos contains the document position at which first difference was encountered
NB: If the document contents are known not to be equal, it makes no sense to call this function.
Implements AD_Document.
References UT_GenericStringMap< T >::contains(), d, pt_PieceTable::getAttrProp(), PD_DocIterator::getFrag(), pf_Frag::getIndexAP(), pf_Frag::getLength(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), AD_Document::getType(), UT_GenericStringMap< T >::insert(), PP_AttrProp::isEquivalent(), m_pPieceTable, s, UT_MIN, UT_return_val_if_fail, UT_String_sprintf(), and UTIter_OK.
bool PD_Document::areDocumentStylesheetsEqual | ( | const AD_Document & | D | ) | const [virtual] |
Returns true if the stylesheets of both documents are identical
Implements AD_Document.
References UT_GenericStringMap< T >::contains(), d, pt_PieceTable::getAllStyles(), pt_PieceTable::getAttrProp(), PD_Style::getIndexAP(), AD_Document::getType(), UT_GenericStringMap< T >::insert(), PP_AttrProp::isEquivalent(), m_pPieceTable, s, UT_return_val_if_fail, and UT_std_string_sprintf().
bool PD_Document::areListUpdatesAllowed | ( | void | ) |
bool PD_Document::areStylesLocked | ( | ) | const [inline] |
Referenced by _toggleSpanOrBlock(), Defun1(), and Defun_EV_GetMenuItemState_Fn().
void PD_Document::beginUserAtomicGlob | ( | void | ) |
References pt_PieceTable::beginUserAtomicGlob(), and m_pPieceTable.
Referenced by FV_Base::_beginGlob(), FV_View::_changeCellParams(), FV_View::_charInsert(), FV_View::_deleteHyperlink(), FV_View::_deleteSelection(), FV_View::_deleteXMLID(), ABI_Collab_Import::_disableUpdates(), FV_View::_findReplace(), FV_View::_findReplaceReverse(), FV_View::_insertField(), FV_View::_MergeCells(), FV_VisualDragText::_mouseDrag(), acceptAllRevisions(), acceptRejectRevision(), AP_Dialog_Lists::Apply(), ApplySemanticStylesheets(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdCharInsert(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteEmbed(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertEmbed(), FV_View::cmdInsertGraphic(), FV_View::cmdInsertLatexMath(), FV_View::cmdInsertMathML(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdInsertTOC(), FV_View::cmdPaste(), FV_View::cmdPasteSelectionAt(), FV_View::cmdRemoveHdrFtr(), FV_View::cmdSplitCells(), FV_View::cmdStartList(), FV_View::cmdStopList(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUpdateEmbed(), FV_View::convertInLineToPositioned(), FV_View::convertPositionedToInLine(), FV_View::createThisHdrFtr(), fl_BlockLayout::doclistener_insertSpan(), FV_View::endDragSelection(), FV_View::findReplaceAll(), FV_View::insertAnnotation(), FV_View::insertFootnote(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_View::insertParagraphBreaknoListUpdate(), FV_View::insertSectionBreak(), FV_View::insertSymbol(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), rejectAllHigherRevisions(), FL_DocLayout::relocateFrame(), FV_View::removeThisHdrFtr(), FV_View::resetCharFormat(), FV_View::setAnnotationText(), FV_View::setBlockIndents(), FV_View::setCharFormat(), FV_View::setStyleAtPos(), FV_View::SetupSavePieceTableState(), and FV_View::toggleCase().
bool PD_Document::canDo | ( | bool | bUndo | ) | const [virtual] |
Implements AD_Document.
References pt_PieceTable::canDo(), and m_pPieceTable.
Referenced by FV_View::canDo().
void PD_Document::changeConnectedDocument | ( | PD_Document * | pDoc | ) |
Change all AbiCollab connections to point to the new document.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), m_vecListeners, and removeListener().
bool PD_Document::changeDocPropeties | ( | const PP_PropertyVector & | pAtts, | |
const PP_PropertyVector & | pProps | |||
) |
method used to import document property changes
References addAuthor(), AD_Document::addRevision(), ASSERT_PV_SIZE, gchar, PP_AttrProp::getAttribute(), pp_Author::getAttrProp(), getAuthorByInt(), PP_AttrProp::getNthProperty(), PP_AttrProp::getProperty(), PT_DOCPROP_ATTRIBUTE_NAME, PT_REVISION_ATTRIBUTE_NAME, PT_REVISION_DESC_ATTRIBUTE_NAME, PT_REVISION_TIME_ATTRIBUTE_NAME, PT_REVISION_VERSION_ATTRIBUTE_NAME, sendAddAuthorCR(), sendChangeAuthorCR(), PP_AttrProp::setAttributes(), setMetaDataProp(), setPageSizeFromFile(), PP_AttrProp::setProperties(), PP_AttrProp::setProperty(), UT_UCS4String::size(), szName, UT_UCS4String::ucs4_str(), UT_UTF8String::ucs4_str(), UT_DEBUGMSG, and UT_UCS4_strncpy().
Referenced by ABI_Collab_Import::_import().
bool PD_Document::changeLastStruxFmtNoUndo | ( | PT_DocPosition | dpos, | |
PTStruxType | pts, | |||
const PP_PropertyVector & | attrs, | |||
const PP_PropertyVector & | props, | |||
bool | bSkipEmbededSections | |||
) |
References pt_PieceTable::changeLastStruxFmtNoUndo(), m_pPieceTable, and UT_return_val_if_fail.
bool PD_Document::changeLastStruxFmtNoUndo | ( | PT_DocPosition | dpos, | |
PTStruxType | pts, | |||
const PP_PropertyVector & | attrs, | |||
const std::string & | props, | |||
bool | bSkipEmbededSections | |||
) |
References pt_PieceTable::changeLastStruxFmtNoUndo(), m_pPieceTable, and UT_return_val_if_fail.
bool PD_Document::changeObjectFormatNoUpdate | ( | PTChangeFmt | ptc, | |
pf_Frag_Object * | odh, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties | |||
) |
Change the attributes of an object without generating a Change Record. Use with extreme care.
References pt_PieceTable::changeObjectFormatNoUpdate(), and m_pPieceTable.
Referenced by fp_ImageRun::_lookupProperties(), fp_MathRun::_updatePropValuesIfNeeded(), and fp_EmbedRun::_updatePropValuesIfNeeded().
bool PD_Document::changeSpanFmt | ( | PTChangeFmt | ptc, | |
PT_DocPosition | dpos1, | |||
PT_DocPosition | dpos2, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties | |||
) |
References addAuthorAttributeIfBlank(), pt_PieceTable::changeSpanFmt(), deferNotifications(), isDoingTheDo(), m_pPieceTable, and processDeferredNotifications().
Referenced by _acceptRejectRevision(), fl_BlockLayout::_createListLabel(), FV_View::_deleteSelection(), FV_View::_fixInsertionPointAfterRevision(), ABI_Collab_Import::_import(), IE_Imp_RTF::_insertSpan(), AP_Dialog_Styles::_populateAbiPreview(), IE_Imp::appendFmt(), IE_Imp_RTF::ApplyCharacterAttributes(), FV_View::cmdUpdateEmbed(), FV_View::insertFootnote(), IE_Imp_PasteListener::populate(), FV_View::processSelectedBlocks(), FV_View::setCharFormat(), fp_TextRun::setDirOverride(), FV_View::setStyleAtPos(), fl_BlockLayout::StopListInBlock(), and FV_View::toggleCase().
bool PD_Document::changeStruxAttsNoUpdate | ( | pf_Frag_Strux * | sdh, | |
const char * | attr, | |||
const char * | attvalue | |||
) |
This medthod modifies the attributes of a section strux without generating a change record. Use with extreme care!!
References pt_PieceTable::changeSectionAttsNoUpdate(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendHdrFtr(), ODi_TextContent_ListenerState::_defineAbiTOCHeadingStyles(), IE_Imp_MsWord_97::_table_close(), IE_Imp_RTF::HandleDeltaMoveID(), fp_FrameContainer::setPreferedColumnNo(), fp_FrameContainer::setPreferedPageNo(), IE_Imp_AbiWord_1::startElement(), ie_imp_cell::writeCellPropsInDoc(), and ie_imp_table::writeTablePropsInDoc().
bool PD_Document::changeStruxFmt | ( | PTChangeFmt | ptc, | |
PT_DocPosition | dpos1, | |||
PT_DocPosition | dpos2, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties | |||
) |
This method changes *all* the strux fragments in the specified region.
References pt_PieceTable::changeStruxFmt(), isDoingTheDo(), and m_pPieceTable.
bool PD_Document::changeStruxFmt | ( | PTChangeFmt | ptc, | |
PT_DocPosition | dpos1, | |||
PT_DocPosition | dpos2, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties, | |||
PTStruxType | pts | |||
) |
References pt_PieceTable::changeStruxFmt(), isDoingTheDo(), and m_pPieceTable.
Referenced by _acceptRejectRevision(), FV_View::_changeCellAttach(), FV_View::_changeCellParams(), FV_View::_changeCellTo(), FV_View::_deleteSelection(), ABI_Collab_Import::_import(), FV_View::_restoreCellParams(), IE_Imp::appendStruxFmt(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_RTF::ApplySectionAttributes(), FV_View::changeListStyle(), IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdSplitCells(), fl_BlockLayout::doclistener_insertBlock(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), FG_GraphicVector::insertAtStrux(), FG_GraphicRaster::insertAtStrux(), FV_View::insertFootnote(), FV_View::insertHeaderFooter(), FV_FrameEdit::mouseRelease(), fl_BlockLayout::prependList(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), fl_BlockLayout::remItemFromList(), FV_View::removeStruxAttrProps(), fl_BlockLayout::resumeList(), FV_View::setAnnotationAuthor(), FV_View::setAnnotationText(), FV_View::setAnnotationTitle(), FV_View::setBlockFormat(), FV_View::setBlockIndents(), FV_View::setCellFormat(), FV_View::setCollapsedRange(), fl_BlockLayout::setDominantDirection(), FV_View::setFrameFormat(), FV_View::setSectionFormat(), FV_View::setStyleAtPos(), FV_View::setTableFormat(), FV_View::setTOCProps(), and fl_BlockLayout::StopListInBlock().
bool PD_Document::changeStruxFmtNoUndo | ( | PTChangeFmt | ptc, | |
pf_Frag_Strux * | sdh, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties | |||
) |
References pt_PieceTable::changeStruxFmtNoUndo(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by fl_DocSectionLayout::_HdrFtrChangeCallback().
bool PD_Document::changeStruxForLists | ( | pf_Frag_Strux * | sdh, | |
const char * | pszParentID | |||
) |
This Method is used to change just the parentID of each strux in a list without updating the fl_Layouts.
References pt_PieceTable::changeStruxForLists(), and m_pPieceTable.
Referenced by fl_AutoNum::_setParent().
bool PD_Document::changeStruxFormatNoUpdate | ( | PTChangeFmt | ptc, | |
pf_Frag_Strux * | sdh, | |||
const PP_PropertyVector & | attributes | |||
) |
References pt_PieceTable::changeStruxFormatNoUpdate(), and m_pPieceTable.
Referenced by IE_Imp_TableHelper::BlockFormat().
bool PD_Document::checkForSuspect | ( | void | ) |
This method is called after appendspan, appendObject, appendfmtMark and checks to see if there is an invalid strux just before. If it see one, it marks the strux as suspect for verification after the load is over. Really useful for importers.
References UT_GenericVector< T >::addItem(), getLastFrag(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_vecSuspectFrags.
Referenced by appendFmt(), appendFmtMark(), appendObject(), appendSpan(), appendStrux(), and repairDoc().
void PD_Document::clearAllPendingObjects | ( | void | ) |
References UT_GenericVector< T >::clear(), m_pPendingImagePage, m_pPendingTextboxPage, and UT_VECTOR_PURGEALL.
Referenced by FL_DocLayout::loadPendingObjects().
void PD_Document::clearDoingPaste | ( | void | ) |
References m_bDoingPaste.
Referenced by FV_View::cmdPaste(), FV_View::cmdTextToTable(), and FV_View::pasteFromLocalTo().
void PD_Document::clearIfAtFmtMark | ( | PT_DocPosition | dpos | ) |
References pt_PieceTable::clearIfAtFmtMark(), and m_pPieceTable.
Referenced by FV_View::_clearIfAtFmtMark().
void PD_Document::clearMailMergeMap | ( | ) |
References m_mailMergeMap.
Referenced by AP_CocoaPlugin_Document::setDocumentMailMergeFields:, and AP_CocoaPlugin_Document::unsetDocumentMailMergeFields.
bool PD_Document::convertPercentToInches | ( | const char * | szPercent, | |
UT_UTF8String & | sInches | |||
) |
References DIM_IN, getLastSectionSDH(), getPropertyFromSDH(), m_docPageSize, PD_MAX_REVISION, UT_convertInchesToDimensionString(), UT_convertToInches(), and fp_PageSize::Width().
Referenced by IE_Imp_XHTML::startElement().
bool PD_Document::createAndSendCR | ( | PT_DocPosition | dpos, | |
UT_sint32 | iType, | |||
bool | bSave, | |||
UT_Byte | iGlob | |||
) |
Create a changerecord object and broadcast it to all the listeners. If bsave is true save the CR in th eunod stack.
References pt_PieceTable::createAndSendCR(), and m_pPieceTable.
Referenced by ABI_Collab_Import::_import().
bool PD_Document::createAndSendDocPropCR | ( | const gchar ** | pAtts, | |
const gchar ** | pProps | |||
) | [virtual] |
Implements AD_Document.
References pt_PieceTable::createAndSendDocPropCR(), m_pPieceTable, and PP_std_copyProps().
Referenced by _sendAuthorCR(), setMetaDataProp(), and setPageSizeFromFile().
bool PD_Document::createAndSendDocPropCR | ( | const PP_PropertyVector & | pAtts, | |
const PP_PropertyVector & | pProps | |||
) |
This method creates DocProp Change Record and broadcasts it to the listeners
References pt_PieceTable::createAndSendDocPropCR(), and m_pPieceTable.
bool PD_Document::createDataItem | ( | const char * | szName, | |
bool | bBase64, | |||
const UT_ConstByteBufPtr & | pByteBuf, | |||
const std::string & | mime_type, | |||
PD_DataItemHandle * | ppHandle | |||
) | [virtual] |
Implements AD_Document.
References getDataItemDataByName(), pt_PieceTable::getVarSet(), getXID(), m_hashDataItems, m_pPieceTable, notifyListeners(), _dataItemPair::pBuf, _dataItemPair::pToken, PX_ChangeRecord::PXT_CreateDataItem, pt_VarSet::storeAP(), UT_Base64Decode(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by ABI_Collab_Import::_import(), AbiMathView_FileInsert(), ODi_Abi_Data::addImageDataItem(), ODi_Abi_Data::addObjectDataItem(), OXML_Image::addToPT(), OXML_Element_Math::addToPT(), FV_View::cmdInsertEmbed(), FV_View::cmdInsertLatexMath(), FV_View::cmdUpdateEmbed(), FG_GraphicVector::createDataItem(), FG_GraphicRaster::createDataItem(), IE_Imp_RTF::CreateDataItemfromStream(), ODi_Frame_ListenerState::endElement(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), FG_GraphicVector::insertAtStrux(), FG_GraphicRaster::insertAtStrux(), IE_Imp_RTF::InsertImage(), FG_GraphicVector::insertIntoDocument(), FG_GraphicRaster::insertIntoDocument(), FV_VisualInlineImage::mouseCopy(), IE_Imp_PasteListener::populateStrux(), IE_Imp_MSWrite::read_pic(), and ODe_RDFWriter::writeRDF().
UT_Error PD_Document::createRawDocument | ( | void | ) |
References buildTemplateList(), importStyles(), AD_Document::isOrigUUID(), m_hDocumentRDF, m_indexAP, m_pPieceTable, PTS_Loading, setAttrProp(), pt_PieceTable::setPieceTableState(), UT_ASSERT, UT_DEBUGMSG, and UT_OK.
Referenced by IE_Exp_OpenDocument::copyToBuffer(), IE_Exp_HTML::copyToBuffer(), FV_UnixVisualDrag::mouseDrag(), IE_Imp_XHTML::pasteFromBuffer(), IE_Imp_OpenDocument::pasteFromBuffer(), IE_Imp_EPUB::pasteFromBuffer(), and IE_Imp_EPUB::readStructure().
void PD_Document::deferNotifications | ( | void | ) |
References PL_Listener::deferNotifications(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecListeners.
Referenced by changeSpanFmt().
bool PD_Document::deleteFmtMark | ( | PT_DocPosition | dpos | ) |
References pt_PieceTable::deleteFmtMark(), and m_pPieceTable.
Referenced by ABI_Collab_Import::_import().
bool PD_Document::deleteFragNoUpdate | ( | pf_Frag * | pf | ) |
This method deletes a frag without throwing a change record. pf is the frag that gets deleted.. Use with extreme care. Should only be used for document import.
References pt_PieceTable::deleteFragNoUpdate(), and m_pPieceTable.
Referenced by ODi_TextContent_ListenerState::endElement(), and IE_Imp_RTF::HandleShape().
void PD_Document::deleteHdrFtrStrux | ( | pf_Frag_Strux * | sdh | ) |
This method deletes the HdrFtr strux pointed to by sdh
References pt_PieceTable::deleteHdrFtrStrux(), pf_Frag::getType(), m_pPieceTable, and UT_return_if_fail.
Referenced by FV_View::_removeThisHdrFtr().
bool PD_Document::deleteSpan | ( | PT_DocPosition | dpos1, | |
PT_DocPosition | dpos2, | |||
PP_AttrProp * | p_AttrProp_Before, | |||
UT_uint32 & | iRealDeleteCount, | |||
bool | bDeleteTableStruxes = false | |||
) |
References pt_PieceTable::deleteSpanWithTable(), isDoingTheDo(), and m_pPieceTable.
Referenced by _acceptRejectRevision(), FV_View::_deleteBookmark(), FV_View::_deleteCellAt(), FV_View::_deleteHyperlink(), fl_BlockLayout::_deleteListLabel(), FV_View::_deleteSelection(), FV_View::_deleteXMLID(), ABI_Collab_Import::_import(), FV_View::cmdCharDelete(), FV_View::cmdDeleteTable(), FV_View::cmdTextToTable(), FV_FrameEdit::deleteFrame(), FL_DocLayout::relocateFrame(), FV_View::setAnnotationText(), and FV_View::toggleCase().
bool PD_Document::deleteStrux | ( | PT_DocPosition | dpos, | |
PTStruxType | pts, | |||
bool | bRecordChange | |||
) |
This method deletes a strux of the type specified at the position requested. if bRecordChange is fale no change record is recorded. This method was created soled for the use of AbiCollab. Use with extreme care. Should only be needed by AbiCollab
References pt_PieceTable::deleteStruxNoUpdate(), pt_PieceTable::deleteStruxWithNotify(), pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), getStruxPosition(), pf_Frag::getType(), and m_pPieceTable.
Referenced by ABI_Collab_Import::_import().
bool PD_Document::deleteStruxNoUpdate | ( | pf_Frag_Strux * | sdh | ) |
This method deletes a strux without throwing a change record. sdh is the StruxDocHandle that gets deleted.. Use with extreme care. Should only be used for document import.
References pt_PieceTable::deleteStruxNoUpdate(), and m_pPieceTable.
Referenced by ie_imp_table::_removeAllStruxes(), IE_Imp_RTF::CloseTable(), ie_imp_table::deleteRow(), ie_imp_table::removeExtraneousCells(), and ie_imp_table::writeAllCellPropsInDoc().
void PD_Document::disableListUpdates | ( | void | ) |
References m_ballowListUpdates.
Referenced by FV_View::_changeCellParams(), FV_View::_charInsert(), ABI_Collab_Import::_disableUpdates(), AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdCharInsert(), FV_View::cmdCut(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdSplitCells(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUndo(), FV_View::createThisHdrFtr(), FV_FrameEdit::deleteFrame(), FV_View::endDragSelection(), FL_DocLayout::FL_DocLayout(), FV_View::insertAnnotation(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_FrameEdit::mouseRelease(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processSelectedBlocks(), FV_View::setAnnotationText(), FV_View::setCellFormat(), FV_View::setStyleAtPos(), and FV_View::SetupSavePieceTableState().
void PD_Document::dontIgnoreSignals | ( | void | ) | [inline] |
bool PD_Document::dumpDoc | ( | const char * | msg, | |
PT_DocPosition | currentpos, | |||
PT_DocPosition | endpos | |||
) |
References pt_PieceTable::dumpDoc(), and m_pPieceTable.
Referenced by PD_DocumentRDF::dumpObjectMarkersFromDocument().
void PD_Document::enableListUpdates | ( | void | ) |
References m_ballowListUpdates.
Referenced by FV_View::_charInsert(), ABI_Collab_Import::_enableUpdates(), FV_View::_restoreCellParams(), AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdCharInsert(), FV_View::cmdCut(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdSplitCells(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUndo(), FV_View::createThisHdrFtr(), FV_FrameEdit::deleteFrame(), FV_View::endDragSelection(), FL_DocLayout::fillLayouts(), FL_DocLayout::formatAll(), FV_View::insertAnnotation(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_FrameEdit::mouseRelease(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processSelectedBlocks(), FV_View::RestoreSavedPieceTableState(), FV_View::setCellFormat(), and FV_View::setStyleAtPos().
void PD_Document::endUserAtomicGlob | ( | void | ) |
References pt_PieceTable::endUserAtomicGlob(), and m_pPieceTable.
Referenced by FV_View::_charInsert(), FV_View::_deleteHyperlink(), FV_View::_deleteSelection(), FV_View::_deleteXMLID(), ABI_Collab_Import::_enableUpdates(), FV_Base::_endGlob(), FV_View::_findReplace(), FV_View::_findReplaceReverse(), FV_View::_insertField(), FV_View::_MergeCells(), FV_View::_restoreCellParams(), acceptAllRevisions(), acceptRejectRevision(), AP_Dialog_Lists::Apply(), ApplySemanticStylesheets(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdCharInsert(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteEmbed(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertEmbed(), FV_View::cmdInsertGraphic(), FV_View::cmdInsertGraphicAtStrux(), FV_View::cmdInsertLatexMath(), FV_View::cmdInsertMathML(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdInsertTOC(), FV_View::cmdPaste(), FV_View::cmdPasteSelectionAt(), FV_View::cmdRemoveHdrFtr(), FV_View::cmdSplitCells(), FV_View::cmdStartList(), FV_View::cmdStopList(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUpdateEmbed(), FV_View::convertInLineToPositioned(), FV_View::convertPositionedToInLine(), FV_View::createThisHdrFtr(), fl_BlockLayout::doclistener_insertSpan(), FV_View::endDragSelection(), FV_View::findReplaceAll(), FV_View::insertAnnotation(), FV_View::insertFootnote(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_View::insertParagraphBreaknoListUpdate(), FV_View::insertSectionBreak(), FV_View::insertSymbol(), FV_VisualDragText::mouseRelease(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), rejectAllHigherRevisions(), FL_DocLayout::relocateFrame(), FV_View::removeThisHdrFtr(), FV_View::resetCharFormat(), FV_View::RestoreSavedPieceTableState(), FV_View::setAnnotationText(), FV_View::setBlockIndents(), FV_View::setCharFormat(), FV_View::setStyleAtPos(), and FV_View::toggleCase().
bool PD_Document::enumDataItems | ( | UT_uint32 | k, | |
PD_DataItemHandle * | ppHandle, | |||
const char ** | pszName, | |||
UT_ConstByteBufPtr & | pByteBuf, | |||
std::string * | pMimeType | |||
) | const |
References m_hashDataItems, _dataItemPair::pBuf, _dataItemPair::pToken, and UT_return_val_if_fail.
Referenced by s_XSL_FO_Listener::_handleDataItems(), s_WML_Listener::_handleDataItems(), s_KWord_1_Listener::_handleDataItems(), s_DocBook_Listener::_handleDataItems(), s_AbiWord_1_Listener::_handleDataItems(), IE_Exp_OpenXML_Listener::addImages(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), IE_Imp_PasteListener::populateStrux(), ODe_ManifestWriter::writeManifest(), OO_ManifestWriter::writeManifest(), ODe_PicturesWriter::writePictures(), and OO_PicturesWriter::writePictures().
bool PD_Document::enumLists | ( | UT_uint32 | k, | |
fl_AutoNumConstPtr & | pAutoNum | |||
) |
References m_vecLists.
Referenced by s_XSL_FO_Listener::_handleLists(), s_AbiWord_1_Listener::_handleLists(), and IE_Exp_OpenXML_Listener::addLists().
bool PD_Document::enumStyles | ( | UT_uint32 | k, | |
const char ** | pszName, | |||
const PD_Style ** | ppStyle | |||
) | const |
References pt_PieceTable::enumStyles(), and m_pPieceTable.
Referenced by IE_Exp_HTML::_buildStyleTree(), s_AbiWord_1_Listener::_handleStyles(), AP_Win32Dialog_Styles::_onCommand(), AP_Win32Dialog_Styles::_onInitDialog(), AP_Win32Dialog_Styles::_populateCList(), AP_UnixDialog_Styles::_populateCList(), AP_UnixDialog_Styles::_populateModify(), IE_Exp_RTF::_selectStyles(), IE_Exp_OpenXML_Listener::addDocumentStyles(), Stylist_tree::buildStyles(), AP_Win32Dialog_Styles::eventBasedOn(), AP_Win32Dialog_Styles::eventFollowedBy(), ODe_Styles::fetchRegularStyleStyles(), AP_UnixToolbar_StyleCombo::populate(), AP_QtToolbar_StyleCombo::populate(), removeStyle(), AP_Win32Toolbar_StyleCombo::repopulate(), AP_UnixToolbar_StyleCombo::repopulate(), AP_QtToolbar_StyleCombo::repopulate(), and AP_CocoaToolbar_StyleCombo::repopulate().
bool PD_Document::enumStyles | ( | UT_GenericVector< PD_Style * > *& | pStyles | ) | const |
References pt_PieceTable::enumStyles(), and m_pPieceTable.
const PP_AttrProp * PD_Document::explodeRevisions | ( | std::unique_ptr< PP_RevisionAttr > & | pRevisions, | |
const PP_AttrProp * | pAP, | |||
bool | bShow, | |||
UT_uint32 | iId, | |||
bool & | bHiddenRevision | |||
) | const |
If the input pAP contains revision attribute, this function returns AP in which the revision attribute has been inflated into actual properties and attributes (the return AP lives in the PT varset, so it is not to be modified, deleted, etc., but the caller)
bShow indicates whether revisions are shown or hidden (view - dependent) iId is the id of revision to be shown (view - dependent)
on return bHiddenRevision indicates if the element associated with pAP is to be hidden or visible
References PP_AttrProp::explodeStyle(), gchar, PP_AttrProp::getAttribute(), PP_AttrProp::getAttributes(), getAttrProp(), PP_Revision::getId(), getPieceTable(), PP_AttrProp::getProperties(), PP_Revision::getType(), AD_Document::isMarkRevisions(), PP_AttrProp::markReadOnly(), PD_MAX_REVISION, PP_REVISION_FMT_CHANGE, PP_AttrProp::prune(), PP_AttrProp::setAttributes(), PP_AttrProp::setProperties(), PP_AttrProp::setRevisedIndex(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_MIN, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by getAttrProp(), getSpanAttrProp(), and fl_ShadowListener::populateStrux().
bool PD_Document::exportGetVisDirectionAtPos | ( | PT_DocPosition | pos, | |
UT_BidiCharType & | type | |||
) |
Some exporters (RTF) need to know the visual direction at each position in the document as it is being exported. The problem is that visual direction is a property of the layout not of the document itself (I shall not make any comments about badly designed file formats here!). Since our document is not directly aware of any of its layouts, we have to find a listener for FL_DocLayout that is registered with this document (it does not matter if there are more FL_DocLayout listeners registered, the visual direction will be same for all, so we grab the first one), and from the listener we can get access to the layout, down to the runs which carry the information that we need. Tomas, May 3, 2003
References _exportFindVisDirectionRunAtPos(), _exportInitVisDirection(), fp_Run::getVisDirection(), m_bLoading, m_iVDLastPos, m_pVDRun, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_outputData().
pf_Frag * PD_Document::findBookmark | ( | const char * | pName, | |
bool | bEnd = false , |
|||
pf_Frag * | pfStart = NULL | |||
) |
References pf_Frag_Object::getBookmark(), po_Bookmark::getBookmarkType(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), po_Bookmark::getName(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), getPieceTable(), pf_Frag::getType(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
bool PD_Document::findFirstDifferenceInContent | ( | PT_DocPosition & | pos, | |
UT_sint32 & | iOffset2, | |||
const PD_Document & | d | |||
) | const |
finds the position of the first difference in content between this document and document d, starting search at given position
pos | when called this variable should contian document offset at which to start searching; on success this variable will contain offset of the difference in present document | |
iOffset2 | when called contains offset to be added to pos to locate identical position in document d | |
d | the document to compare with |
References PD_DocIterator::getChar(), PD_DocIterator::getFrag(), pf_Frag::getLength(), pf_Frag::getPos(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), pf_Frag::getType(), pf_Frag::isContentEqual(), m_pPieceTable, UT_ASSERT_HARMLESS, UT_MIN, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and UTIter_OK.
UT_sint32 PD_Document::findFirstFreeAuthorInt | ( | void | ) | const |
References getAuthorByInt().
Referenced by AccountHandler::_handlePacket(), addAuthorAttributeIfBlank(), and AbiCollabSessionManager::startSession().
pf_Frag_Strux * PD_Document::findForwardStyleStrux | ( | const gchar * | szStyle, | |
PT_DocPosition | pos | |||
) |
This method scans the document forwards for a strux with the style name szStyle in it.
pStyle | a pointer to style to be scanned for. | |
pos | the document position to start from. |
References gchar, pt_PieceTable::getAttrProp(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getNext(), getStruxOfTypeFromPosition(), pf_Frag::getType(), m_pPieceTable, PT_STYLE_ATTRIBUTE_NAME, PTX_Block, and UT_return_val_if_fail.
Referenced by FV_View::setStyleAtPos().
pf_Frag * PD_Document::findFragOfType | ( | pf_Frag::PFType | iType, | |
UT_sint32 | iSubtype = -1 , |
|||
pf_Frag * | pfStart = NULL | |||
) | const |
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, UT_ASSERT_HARMLESS, UT_NOT_REACHED, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_findNextENoteSection(), IE_Imp_MsWord_97::_findNextFNoteSection(), and s_updateMailMergeFields().
pf_Frag_Strux * PD_Document::findHdrFtrStrux | ( | const gchar * | pszHdrFtr, | |
const gchar * | pszHdrFtrID | |||
) |
This method scans the document to look for a HdrFtr strux.
const | char * pszHdrFtr The particular attribute that identifies the strux as "header" "footer" "header-even" etc. | |
const | char * pszHdrFtrID the unique string to match with Docsection. |
References gchar, pt_PieceTable::getAttrProp(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, PT_ID_ATTRIBUTE_NAME, PT_TYPE_ATTRIBUTE_NAME, and UT_return_val_if_fail.
Referenced by IE_Exp_RTF::exportHdrFtr().
pf_Frag_Strux * PD_Document::findPreviousStyleStrux | ( | const gchar * | szStyle, | |
PT_DocPosition | pos | |||
) |
This method scans the document backwards for a struc with the style name szStyle in it.
pStyle | a pointer to style to be scanned for. | |
pos | the document position to start from. |
References gchar, pt_PieceTable::getAttrProp(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Frag::getPrev(), getStruxOfTypeFromPosition(), pf_Frag::getType(), m_pPieceTable, PT_STYLE_ATTRIBUTE_NAME, PTX_Block, and UT_return_val_if_fail.
Referenced by FV_View::setStyleAtPos().
bool PD_Document::findWhereSimilarityResumes | ( | PT_DocPosition & | pos, | |
UT_sint32 & | iOffset2, | |||
UT_uint32 & | iKnownLength, | |||
const PD_Document & | d | |||
) | const |
Starting to search this document at position pos where the two documents are known to become different, attepts to find location at which similarities resume
pos,: | when called, should contain offset in present document at which the difference starts; on successfult return it will contain offset in present document where similarities resume | |
iOffset2,: | when called contains offset to be added to position pos in order to correctly position start of the search in document d; on return it contains offset to be add to pos in order to obtain correct location of the resumption of similarites in document d | |
iKnownLength,: | on return contains the minium guaranteed length of the similarity | |
d | the document to which this document is to be compared |
References PD_DocIterator::find(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), m_pPieceTable, PD_DocIterator::setPosition(), and UT_return_val_if_fail.
void PD_Document::finishRawCreation | ( | void | ) |
References _setClean(), m_pPieceTable, PTS_Editing, repairDoc(), pt_PieceTable::setPieceTableState(), and updateFields().
Referenced by IE_Exp_OpenDocument::copyToBuffer(), IE_Exp_HTML::copyToBuffer(), FV_UnixVisualDrag::mouseDrag(), IE_Imp_XHTML::pasteFromBuffer(), IE_Imp_OpenDocument::pasteFromBuffer(), IE_Imp_EPUB::pasteFromBuffer(), and IE_Imp_EPUB::readStructure().
bool PD_Document::fixListHierarchy | ( | void | ) |
References m_mapLists, and m_vecLists.
Referenced by ODi_Office_Styles::_defineAbiStyles().
void PD_Document::fixMissingXIDs | ( | ) |
References pt_PieceTable::fixMissingXIDs(), and m_pPieceTable.
Referenced by IE_Exp_AbiWord_1::IE_Exp_AbiWord_1().
void PD_Document::forceDirty | ( | ) | [virtual] |
force the document into being dirty and signal this to our listeners
Reimplemented from AD_Document.
References AD_Document::_setForceDirty(), isDirty(), PD_SIGNAL_DOCDIRTY_CHANGED, and signalListeners().
Referenced by AccountHandler::_handlePacket(), AbiCollabSaveInterceptor::_saveFailed(), Defun1(), and PD_DocumentRDF::maybeSetDocumentDirty().
UT_sint32 PD_Document::getAdjustmentForCR | ( | const PX_ChangeRecord * | pcr | ) | const |
References PX_ChangeRecord_SpanChange::getLength(), PX_ChangeRecord::getType(), PX_ChangeRecord::PXT_AddStyle, PX_ChangeRecord::PXT_ChangeDocProp, PX_ChangeRecord::PXT_ChangeFmtMark, PX_ChangeRecord::PXT_ChangeObject, PX_ChangeRecord::PXT_ChangePoint, PX_ChangeRecord::PXT_ChangeSpan, PX_ChangeRecord::PXT_ChangeStrux, PX_ChangeRecord::PXT_CreateDataItem, PX_ChangeRecord::PXT_DeleteFmtMark, PX_ChangeRecord::PXT_DeleteObject, PX_ChangeRecord::PXT_DeleteSpan, PX_ChangeRecord::PXT_DeleteStrux, PX_ChangeRecord::PXT_GlobMarker, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, PX_ChangeRecord::PXT_InsertStrux, PX_ChangeRecord::PXT_ListUpdate, PX_ChangeRecord::PXT_RemoveList, PX_ChangeRecord::PXT_RemoveStyle, PX_ChangeRecord::PXT_StopList, PX_ChangeRecord::PXT_UpdateField, and PX_ChangeRecord::PXT_UpdateLayout.
Referenced by px_ChangeHistory::getRedo(), and px_ChangeHistory::getUndo().
bool PD_Document::getAllowChangeInsPoint | ( | void | ) | const |
void PD_Document::getAllUsedStyles | ( | UT_GenericVector< PD_Style * > * | pVecStyles | ) |
This method scans the document for all styles used in the document, including styles in the basedon heiracy and the followedby list
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::findItem(), gchar, pt_PieceTable::getAttrProp(), PD_Style::getBasedOn(), pf_Fragments::getFirst(), PD_Style::getFollowedBy(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pt_PieceTable::getStyle(), pf_Frag::getType(), m_pPieceTable, pp_BASEDON_DEPTH_LIMIT, PT_STYLE_ATTRIBUTE_NAME, and UT_return_if_fail.
Referenced by s_AbiWord_1_Listener::_handleStyles(), PL_Psion_Listener::_processStyles(), IE_Exp_RTF::_selectStyles(), ODe_Styles::fetchRegularStyleStyles(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), importStyles(), and OO_StylesWriter::writeStyles().
std::list< AV_View * > PD_Document::getAllViews | ( | ) | const |
References UT_GenericVector< T >::size().
Referenced by ABI_Collab_Import::_disableUpdates(), ApplySemanticStylesheets(), removeCaret(), setShowAuthors(), and AbiCollabService_Export::signal().
void PD_Document::getAllViews | ( | UT_GenericVector< AV_View * > * | vecViews | ) | const |
return a vector of all the views attached to this document.
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::getItemCount(), fl_DocListener::getLayout(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), FL_DocLayout::getView(), and m_vecListeners.
bool PD_Document::getAnnotationProp | ( | const std::string & | key, | |
std::string & | outProp | |||
) | const [virtual] |
Implements AD_Document.
References UT_ASSERT, and UT_NOT_IMPLEMENTED.
PT_AttrPropIndex PD_Document::getAPIFromSDH | ( | pf_Frag_Strux * | sdh | ) |
Get API fromthe supplied StruxDocHandle
NB: this method does not take into account revisions settings; you either have to further process the AP at the index using the explodeRevisions() methods or you can retrieve specific props and attrs using getPropertyFromSDH() and getAttributeFromSDH().
References pf_Frag::getIndexAP().
Referenced by s_RTF_ListenerWriteDoc::_open_table(), IE_Exp_RTF::_write_rtf_header(), PD_DocumentRDF::addXMLIDsForBlockAndTableCellForPosition(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdSplitCells(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), ie_Table::setCellRowCol(), and AP_Dialog_FormatFrame::setCurFrameProps().
PT_AttrPropIndex PD_Document::getAPIFromSOH | ( | pf_Frag_Object * | odh | ) |
Return Attribute Property Index associated with the pf_Frag_Object pointed to by odh
References pf_Frag::getIndexAP().
Referenced by fp_MathRun::_getLayoutPropFromObject(), fp_EmbedRun::_getLayoutPropFromObject(), fp_ImageRun::_lookupProperties(), fp_MathRun::_updatePropValuesIfNeeded(), fp_EmbedRun::_updatePropValuesIfNeeded(), and fp_EmbedRun::update().
bool PD_Document::getAttributeFromSDH | ( | pf_Frag_Strux * | sdh, | |
bool | bShowRevisions, | |||
UT_uint32 | iRevisionLevel, | |||
const char * | szAttribute, | |||
const char ** | pszRetValue | |||
) |
This method returns the value associated with attribute szAttribute at picetable strux given by sdh. NB: attributes and props are view-specific because of revision attributes
pf_Frag_Strux* | sdh (pf_Frag_Strux) where we want to find the value | |
bool | bShowRevisions -- revisions setting for the view (FV_View::isShowRevisions()) | |
UT_uint32 | iRevisionLevel -- the revision level of the view (FV_View::getRevisionLevel()) | |
const | char * szAttribute the attribute we're looking for. | |
const | char ** pszValue the value of the attribute. |
Don't FREEP *pszRetValue!!!
References gchar, getAttrProp(), pf_Frag::getIndexAP(), and UT_return_val_if_fail.
Referenced by _matchSection(), _pruneSectionAPI(), _removeRepeatedHdrFtr(), FV_View::_removeThisHdrFtr(), fl_AutoNum::fixHierarchy(), and FV_View::isImageAtStrux().
bool PD_Document::getAttrProp | ( | PT_AttrPropIndex | indexAP, | |
const PP_AttrProp ** | ppAP | |||
) | const |
References pt_PieceTable::getAttrProp(), and m_pPieceTable.
Referenced by PL_Psion_Listener::_addInLine(), ABI_Collab_Export::_buildPacket(), IE_Exp_HTML::_buildStyleTree(), ODe_AbiDocListener::_closeBookmark(), ODe_AbiDocListener::_closeRDFAnchor(), fl_BlockLayout::_doInsertFieldRun(), s_WML_Listener::_emitTOC(), ODe_AbiDocListener::_endAnnotation(), s_RTF_ListenerWriteDoc::_fillCellProps(), s_RTF_ListenerWriteDoc::_fillTableProps(), s_RTF_ListenerWriteDoc::_getColumnWidthInches(), fp_MathRun::_getLayoutPropFromObject(), fp_EmbedRun::_getLayoutPropFromObject(), ODe_AbiDocListener::_getObjectKey(), IE_Exp_HTML_Listener::_getObjectKey(), IE_Exp_HTML_Listener::_handleAnnotationData(), s_XSL_FO_Listener::_handleBookmark(), s_WML_Listener::_handleBookmark(), s_DocBook_Listener::_handleBookmark(), Text_Listener::_handleDirMarker(), s_DocBook_Listener::_handleDocument(), s_XSL_FO_Listener::_handleEmbedded(), s_WML_Listener::_handleEmbedded(), s_DocBook_Listener::_handleEmbedded(), s_XSL_FO_Listener::_handleField(), s_WML_Listener::_handleField(), s_DocBook_Listener::_handleField(), s_DocBook_Listener::_handleFootnote(), s_XSL_FO_Listener::_handleFrame(), s_DocBook_Listener::_handleHdrFtr(), s_XSL_FO_Listener::_handleHyperlink(), s_WML_Listener::_handleHyperlink(), s_DocBook_Listener::_handleHyperlink(), s_XSL_FO_Listener::_handleImage(), s_WML_Listener::_handleImage(), IE_Exp_HTML_Listener::_handleImage(), s_DocBook_Listener::_handleImage(), s_XSL_FO_Listener::_handleMath(), s_WML_Listener::_handleMath(), s_DocBook_Listener::_handleMath(), s_XSL_FO_Listener::_handlePageSize(), s_XSL_FO_Listener::_handlePositionedImage(), s_DocBook_Listener::_handlePositionedImage(), s_DocBook_Listener::_handleTOC(), ODe_AbiDocListener::_insertEmbeddedImage(), IE_Exp_HTML_Listener::_insertEmbeddedImage(), PL_Psion_Listener::_insertImage(), IE_Exp_HTML_Listener::_insertImage(), ODe_AbiDocListener::_insertInlinedImage(), ODe_AbiDocListener::_insertMath(), IE_Exp_HTML_Listener::_insertMath(), IE_Exp_HTML_Listener::_insertPosImage(), IE_Exp_HTML_Listener::_insertTOC(), fp_ImageRun::_lookupProperties(), FL_DocLayout::_lookupProperties(), IE_Exp_HTML_Listener::_makeStylesheet(), ABI_Collab_Export::_mapPropsAtts(), ODe_AbiDocListener::_openAnnotation(), IE_Exp_HTML_Listener::_openAnnotation(), ODe_AbiDocListener::_openBlock(), s_XSL_FO_Listener::_openBlock(), WordPerfect_Listener::_openBlock(), Passepartout_Listener::_openBlock(), OO_Listener::_openBlock(), s_KWord_1_Listener::_openBlock(), IE_Exp_HTML_Listener::_openBlock(), ODe_AbiDocListener::_openBookmark(), IE_Exp_HTML_Listener::_openBookmark(), ODe_AbiDocListener::_openCell(), IE_Exp_HTML_Listener::_openCell(), ODe_AbiDocListener::_openEndnote(), IE_Exp_HTML_Listener::_openEndnote(), ODe_AbiDocListener::_openField(), IE_Exp_HTML_Listener::_openField(), Passepartout_Listener::_openFont(), ODe_AbiDocListener::_openFootnote(), IE_Exp_HTML_Listener::_openFootnote(), ODe_AbiDocListener::_openFrame(), s_RTF_ListenerWriteDoc::_openFrame(), IE_Exp_HTML_Listener::_openFrame(), IE_Exp_HTML_Listener::_openHeading(), ODe_AbiDocListener::_openHyperlink(), IE_Exp_HTML_Listener::_openHyperlink(), IE_Exp_HTML_Listener::_openList(), s_WML_Listener::_openParagraph(), PL_Psion_Listener::_openParagraph(), s_LaTeX_Listener::_openParagraph(), s_DocBook_Listener::_openParagraph(), ODe_AbiDocListener::_openRDFAnchor(), IE_Exp_HTML_Listener::_openRow(), ODe_AbiDocListener::_openSection(), s_WML_Listener::_openSection(), s_LaTeX_Listener::_openSection(), IE_Exp_HTML_Listener::_openSection(), s_DocBook_Listener::_openSection(), ODe_AbiDocListener::_openSpan(), s_XSL_FO_Listener::_openSpan(), WordPerfect_Listener::_openSpan(), s_WML_Listener::_openSpan(), s_RTF_ListenerWriteDoc::_openSpan(), s_RTF_ListenerGetProps::_openSpan(), OO_Listener::_openSpan(), s_LaTeX_Listener::_openSpan(), s_KWord_1_Listener::_openSpan(), IE_Exp_HTML_Listener::_openSpan(), s_HRText_Listener::_openSpan(), s_DocBook_Listener::_openSpan(), ODe_AbiDocListener::_openTable(), IE_Exp_HTML_Listener::_openTable(), s_RTF_ListenerWriteDoc::_openTag(), s_HRText_Listener::_openTag(), s_AbiWord_1_Listener::_openTag(), IE_Exp_HTML_Listener::_openTextbox(), ODe_AbiDocListener::_openTOC(), s_LaTeX_Listener::_outputBabelPackage(), s_RTF_ListenerWriteDoc::_rtf_open_block(), s_RTF_ListenerWriteDoc::_rtf_open_section(), s_RTF_ListenerGetProps::_searchCellAPI(), s_RTF_ListenerGetProps::_searchTableAPI(), PL_Psion_Listener::_setStyleLayout(), fp_MathRun::_updatePropValuesIfNeeded(), fp_EmbedRun::_updatePropValuesIfNeeded(), IE_Exp_RTF::_write_parafmt(), IE_Exp_RTF::_write_rtf_header(), s_RTF_ListenerWriteDoc::_writeAnnotation(), s_RTF_ListenerWriteDoc::_writeBookmark(), s_RTF_ListenerWriteDoc::_writeFieldPreamble(), s_RTF_ListenerWriteDoc::_writeHyperlink(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), s_KWord_1_Listener::_writeMarginSize(), s_RTF_ListenerWriteDoc::_writeRDFAnchor(), s_RTF_ListenerWriteDoc::_writeTOC(), IE_Exp_OpenXML_Listener::addDocumentStyles(), IE_Exp_OpenXML_Listener::addLists(), ODe_Styles::addStyle(), PD_DocumentRDF::addXMLIDsForBlockAndTableCellForPosition(), fl_SectionLayout::bl_doclistener_insertSection(), fl_DocListener::change(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdSplitCells(), Defun1(), Defun_EV_GetMenuItemState_Fn(), fl_DocSectionLayout::doclistener_changeStrux(), fl_BlockLayout::doclistener_insertSection(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), ODe_Styles::fetchRegularStyleStyles(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), FV_View::FV_View(), FV_View::getAllAttrProp(), fl_Layout::getAttrProp(), s_AbiWord_1_Listener::getObjectKey(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), GR_LasemMathManager::loadEmbedData(), GR_GOChartManager::loadEmbedData(), PP_AttrProp::miniDump(), Passepartout_Listener::Passepartout_Listener(), PD_Bookmark::PD_Bookmark(), ODe_AbiDocListener::populate(), IE_Imp_PasteListener::populate(), s_RTF_ListenerWriteDoc::populate(), IE_Exp_OpenXML_Listener::populate(), OO_Listener::populate(), s_LaTeX_Listener::populate(), IE_Exp_HTML_BookmarkListener::populate(), IE_Exp_HTML_Listener::populate(), IE_Exp_DocRangeListener::populate(), s_AbiWord_1_Listener::populate(), ODe_AbiDocListener::populateStrux(), TOC_Listener::populateStrux(), IE_Imp_PasteListener::populateStrux(), s_XSL_FO_Listener::populateStrux(), Text_Listener::populateStrux(), s_RTF_ListenerWriteDoc::populateStrux(), s_RTF_ListenerGetProps::populateStrux(), PL_Psion_Listener::populateStrux(), Passepartout_Listener::populateStrux(), IE_Exp_OpenXML_Listener::populateStrux(), s_LaTeX_Listener::populateStrux(), s_KWord_1_Listener::populateStrux(), IE_Exp_HTML_HeaderFooterListener::populateStrux(), s_HRText_Listener::populateStrux(), IE_Exp_DocRangeListener::populateStrux(), fl_ShadowListener::populateStrux(), fl_DocListener::populateStrux(), PP_evalProperty(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), RDFAnchor::RDFAnchor(), PD_XMLIDCreator::rebuildCache(), s_doLangDlg(), ie_PartTable::setCellApi(), AP_Dialog_FormatFrame::setCurFrameProps(), ie_PartTable::setTableApi(), IE_Exp_HTML_StyleListener::styleCheck(), Text_Listener::Text_Listener(), PD_RDFModelFromStartEndPos::updateAPList(), and OO_StylesWriter::writeStyles().
bool PD_Document::getAttrProp | ( | PT_AttrPropIndex | apIndx, | |
const PP_AttrProp ** | ppAP, | |||
std::unique_ptr< PP_RevisionAttr > & | pRevisions, | |||
bool | bShowRevisions, | |||
UT_uint32 | iRevisionId, | |||
bool & | bHiddenRevision | |||
) | const |
const PP_AttrProp * PD_Document::getAttrProp | ( | ) | const |
References m_indexAP, and VARSET.
Referenced by _importFile(), explodeRevisions(), getAttributeFromSDH(), getAttrProp(), getPropertyFromSDH(), getSpanAttrProp(), and purgeRevisionTable().
PT_AttrPropIndex PD_Document::getAttrPropIndex | ( | void | ) | const [inline] |
UT_GenericVector<pp_Author*>& PD_Document::getAuthors | ( | ) | [inline] |
Referenced by AccountHandler::_handlePacket(), and AbiCollabSessionManager::startSession().
bool PD_Document::getBlockBuf | ( | pf_Frag_Strux * | sdh, | |
UT_GrowBuf * | pgb | |||
) | const |
References pt_PieceTable::getBlockBuf(), and m_pPieceTable.
Referenced by fl_BlockLayout::getBlockBuf().
pf_Frag_Strux * PD_Document::getBlockFromPosition | ( | PT_DocPosition | pos | ) | const |
References pt_PieceTable::getBlockFromPosition(), and m_pPieceTable.
po_Bookmark * PD_Document::getBookmark | ( | pf_Frag_Strux * | sdh, | |
UT_uint32 | offset | |||
) |
References pf_Frag_Object::getBookmark(), pf_Frag::getType(), pf_Frag::PFT_Object, and UT_return_val_if_fail.
Referenced by fl_Layout::getBookmark().
UT_sint32 PD_Document::getBookmarkCount | ( | ) | const [inline] |
bool PD_Document::getBounds | ( | bool | bEnd, | |
PT_DocPosition & | docPos | |||
) | const |
References pt_PieceTable::getBounds(), and m_pPieceTable.
Referenced by IE_Imp_MsWord_97::_table_close(), IE_Exp_HTML::_writeDocument(), fl_HdrFtrSectionLayout::addPage(), fl_TableLayout::bl_doclistener_insertTable(), fl_SectionLayout::bl_doclistener_insertTable(), fl_Squiggles::clear(), FV_View::countWords(), fl_BlockLayout::doclistener_deleteFmtMark(), fl_BlockLayout::doclistener_insertFrame(), fl_BlockLayout::doclistener_insertSection(), fl_BlockLayout::doclistener_insertTable(), pt_PieceTable::dumpDoc(), ODi_TextContent_ListenerState::endElement(), IE_Exp_RTF::exportHdrFtr(), FL_DocLayout::fillLayouts(), fl_HdrFtrShadow::findBlockAtPosition(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), FV_View::findSetStartAt(), FV_View::getEditableBounds(), ABI_Collab_Import::getEndOfDoc(), fl_CellLayout::getLength(), fl_TableLayout::getLength(), fl_BlockLayout::getLength(), fl_HdrFtrSectionLayout::isPointInHere(), IE_Imp_RTF::OpenTable(), IE_Imp_XHTML::pasteFromBuffer(), IE_Imp_RTF::pasteFromBuffer(), IE_Exp_HTML_HeaderFooterListener::populateStrux(), and IE_Imp_EPUB::readStructure().
pf_Frag_Strux * PD_Document::getCellSDHFromRowCol | ( | pf_Frag_Strux * | tableSDH, | |
bool | bShowRevisions, | |||
UT_uint32 | iRevisionLevel, | |||
UT_sint32 | row, | |||
UT_sint32 | col | |||
) |
The method returns the SDH of the cell at the location given by (rows,columns) in table pointed to by tableSDH. Returns NULL if the requested location is not contained in the cell.
pf_Frag_Strux* | tableSDH SDH of the table in question | |
UT_sint32 | row row location. | |
UT_sint32 | col column location |
References getEndTableStruxFromTableSDH(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), getPropertyFromSDH(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, UT_ASSERT, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_newRow(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdTextToTable(), Defun1(), FV_View::findCellPosAt(), s_RTF_ListenerWriteDoc::getRightOfCell(), FV_View::setCellFormat(), and ie_Table::setCellRowCol().
UT_sint32 PD_Document::getCRNumber | ( | ) | const [inline] |
Referenced by AccountHandler::_handlePacket(), AbiCollab::_restartAsMaster(), and AbiCollab::startRecording().
bool PD_Document::getDataItemData | ( | PD_DataItemHandle | pHandle, | |
const char ** | pszName, | |||
UT_ConstByteBufPtr & | pByteBuf, | |||
const void ** | ppToken | |||
) | const |
References _dataItemPair::pBuf, _dataItemPair::pToken, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_TODO.
bool PD_Document::getDataItemDataByName | ( | const char * | szName, | |
UT_ConstByteBufPtr & | pByteBuf, | |||
std::string * | pMimeType, | |||
PD_DataItemHandle * | ppHandle | |||
) | const [virtual] |
Implements AD_Document.
References m_hashDataItems, _dataItemPair::pBuf, _dataItemPair::pToken, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by ABI_Collab_Export::_buildPacket(), s_LaTeX_Listener::_handleImage(), IE_Exp_HTML_Listener::_handleImage(), s_DocBook_Listener::_handleImage(), s_DocBook_Listener::_handlePositionedImage(), PL_Psion_Listener::_insertImage(), ODe_AbiDocListener::_insertMath(), IE_Exp_HTML_Listener::_insertMath(), s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_openTag(), s_AbiWord_1_Listener::_openTag(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), createDataItem(), IE_Imp_RTF::CreateDataItemfromStream(), FG_GraphicVector::createFromChangeRecord(), FG_GraphicRaster::createFromChangeRecord(), FG_Graphic::createFromChangeRecord(), FG_GraphicVector::createFromStrux(), FG_GraphicRaster::createFromStrux(), FG_Graphic::createFromStrux(), Defun1(), dlgEditLatexEquation(), IE_Exp_HTML_DataExporter::encodeDataBase64(), getDataItemFileExtension(), FV_VisualInlineImage::getPNGImage(), FV_FrameEdit::getPNGImage(), GR_LasemMathManager::loadEmbedData(), GR_GOChartManager::loadEmbedData(), FV_VisualInlineImage::mouseCopy(), IE_Exp_OpenXML_Listener::populate(), s_LaTeX_Listener::populate(), s_AbiWord_1_Listener::populate(), IE_Exp_HTML_MultipartExporter::saveData(), IE_Exp_HTML_FileExporter::saveData(), and FV_View::saveSelectedImage().
bool PD_Document::getDataItemFileExtension | ( | const char * | szDataID, | |
std::string & | sExt, | |||
bool | bDot = true | |||
) | const |
This function accepts a data ID and assigns the file extension of the corresponding data item.
szDataID | The incoming data ID to look up | |
sExt | The extension string that is populated on success | |
bDot | A boolean to determine whether the extension string will be prefixed with a dot ('.'). Defaults to true. |
References getDataItemDataByName(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by s_XSL_FO_Listener::_handleImage(), s_WML_Listener::_handleImage(), IE_Exp_HTML_Listener::_handleImage(), s_XSL_FO_Listener::_handlePositionedImage(), ODe_AbiDocListener::_insertInlinedImage(), OXML_Element_Image::serialize(), ODe_ManifestWriter::writeManifest(), and ODe_PicturesWriter::writePictures().
const char * PD_Document::getDefaultStyle | ( | ) | const |
PD_DocumentRDFHandle PD_Document::getDocumentRDF | ( | void | ) | const |
References m_hDocumentRDF.
Referenced by FV_View::_deleteXMLID(), s_AbiWord_1_Listener::_handleRDF(), IE_Imp_OpenDocument::_handleRDFStreams(), ABI_Collab_Import::_import(), ODi_TextContent_ListenerState::_insertAnnotation(), _rdfApplyStylesheet(), IE_Exp_RTF::_write_rtf_header(), IE_Exp_OpenDocument::_writeDocument(), PD_DocumentRDF::addLocations(), ApplySemanticStylesheets(), PD_DocumentRDF::begin(), FV_View::cmdInsertXMLID(), IE_Exp_OpenDocument::copyToBuffer(), IE_Exp_HTML::copyToBuffer(), PD_DocumentRDF::createRestrictedModelForXMLIDs(), PD_XMLIDCreator::createUniqueXMLID(), Defun(), Defun1(), Defun_EV_GetMenuItemState_Fn(), PD_DocumentRDF::getContacts(), PD_DocumentRDF::getEvents(), AP_Dialog_RDFEditor::getModel(), AP_Dialog_RDFQuery::getRDF(), AP_Dialog_RDFEditor::getRDF(), AP_Dialog_Goto::getRDF(), AbiCommand::getRDF(), FV_View::gotoTarget(), OnInsertReferenceBase(), IE_Imp_OpenDocument::pasteFromBuffer(), IE_Imp_RDF_Calendar::pasteFromBufferSS(), IE_Imp_RDF_VCard::pasteFromBufferSS(), IE_Imp_RTF::ReadRDFTriples(), PD_DocumentRDF::relinkRDFToNewXMLID(), PD_RDFDialogsGTK::runInsertReferenceDialog(), IE_Imp_AbiWord_1::startElement(), and ODe_RDFWriter::writeRDF().
UT_sint32 PD_Document::getEmbeddedOffset | ( | pf_Frag_Strux * | sdh, | |
PT_DocPosition | posoff, | |||
pf_Frag_Strux *& | sdhEmbedded | |||
) |
This method returns the offset to a an embedded strux And a pointer to the embedded strux found. If no emebedded strux is found in the block we return -1 ans NULL
References pt_PieceTable::getFragPosition(), pf_Frag::getNext(), pt_PieceTable::getStruxPosition(), pf_Frag_Strux::getStruxType(), pt_PieceTable::isFootnote(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by fl_BlockLayout::getEmbeddedOffset().
pf_Frag_Strux * PD_Document::getEndCellStruxFromCellSDH | ( | pf_Frag_Strux * | cellSDH | ) |
This method returns the end cell strux associated with the cell strux cellSDH Returns NULL on failure to find it.
References getEndTableStruxFromTableSDH(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by FV_View::_deleteCellAt(), FV_View::_MergeCells(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), ie_imp_table::deleteRow(), and fl_CellLayout::getLength().
pf_Frag_Strux * PD_Document::getEndTableStruxFromTablePos | ( | PT_DocPosition | tablePos | ) |
This method returns the end table strux associated with the table strux tableSDH Returns NULL on failure to find it.
References getEndTableStruxFromTableSDH(), getStruxOfTypeFromPosition(), and PTX_SectionTable.
Referenced by FV_View::setCellFormat().
pf_Frag_Strux * PD_Document::getEndTableStruxFromTableSDH | ( | pf_Frag_Strux * | tableSDH | ) |
This method returns the end table strux associated with the table strux tableSDH Returns NULL on failure to find it.
References pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdMergeCells(), FV_View::cmdSplitCells(), getCellSDHFromRowCol(), getEndCellStruxFromCellSDH(), getEndTableStruxFromTablePos(), getRowsColsFromTableSDH(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), and FV_View::isInTable().
bool PD_Document::getField | ( | pf_Frag_Strux * | sdh, | |
UT_uint32 | offset, | |||
fd_Field *& | pField | |||
) |
References pf_Frag::getField(), pf_Frag::getType(), pf_Frag::PFT_Object, pf_Frag::PFT_Text, and UT_return_val_if_fail.
Referenced by fl_Layout::getField().
pf_Frag * PD_Document::getFragFromPosition | ( | PT_DocPosition | docPos | ) | const |
References pt_PieceTable::getFragFromPosition(), and m_pPieceTable.
Referenced by PD_DocumentRDF::addXMLIDsForBlockAndTableCellForPosition(), PD_DocumentRDF::getAllIDs(), PD_DocumentRDF::getIDRange(), fl_BlockLayout::getLength(), FV_View::isParaBreakNeededAtPos(), IE_Imp_RTF::pasteFromBuffer(), s_RTF_ListenerWriteDoc::populate(), and PD_RDFModelFromStartEndPos::updateAPList().
This function evaluates the xid value for the given frament and version level.
The XID is a document-unique identifier of the frag; when we compare documents, we are interested not in document uniqueness but global uniqueness. We convert the document-unique xid to a globaly unique id by combining the xid with the UUID of document version: identical xid's in two documents represent identical elements if, and only if, the version UUIDs for the version of the document in which the element was created are identical. Therefore, as a part of the version record, we store the highest xid used in the document. This way we can determine in which version of the document the frag was created, based on its xid.
Frags that have xid aboved the version threshold need to be treated as frags without xid.
References AD_Document::findHistoryRecord(), AD_Document::getDocVersion(), getTopXID(), pf_Frag::getXID(), UT_return_val_if_fail, and v.
UT_sint32 PD_Document::getLastAuthorInt | ( | void | ) | const |
Returns the most recently received author int
References m_iLastAuthorInt.
Referenced by FV_View::updateCarets().
pf_Frag * PD_Document::getLastFrag | ( | ) | const |
References pt_PieceTable::getFragments(), pf_Fragments::getLast(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_appendStrux(), IE_Imp_MsWord_97::_ensureInBlock(), IE_Imp_MsWord_97::_flush(), IE_Imp_MsWord_97::_insertBookmark(), IE_Imp_MsWord_97::_insertHeaderSection(), checkForSuspect(), ODi_TextContent_ListenerState::endElement(), IE_Imp_RTF::HandleAnnotation(), IE_Imp_RTF::HandleShape(), s_updateMailMergeFields(), IE_Imp_RTF::StartAnnotation(), and IE_Imp_TableHelper::tableStart().
UT_uint32 PD_Document::getLastOpenedType | ( | ) | const [inline] |
Referenced by AbiCommand::parseTokens().
virtual UT_uint32 PD_Document::getLastSavedAsType | ( | ) | const [inline, virtual] |
Implements AD_Document.
pf_Frag_Strux * PD_Document::getLastSectionMutableSDH | ( | void | ) |
This method returns the last pf_Frag_Strux as a pf_Frag_Strux* before the end of the piecetable.
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendHdrFtr(), and IE_Imp_AbiWord_1::startElement().
const pf_Frag_Strux * PD_Document::getLastSectionSDH | ( | void | ) | const |
This method returns the last pf_Frag_Strux as a pf_Frag_Strux* before the end of the piecetable.
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by convertPercentToInches().
pf_Frag_Strux * PD_Document::getLastStruxOfType | ( | PTStruxType | pts | ) |
This method returns the last pf_Frag_Strux as a pf_Frag_Strux* before the end of the piecetable.
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, PTX_EndTable, PTX_SectionTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_table_close(), ie_imp_table::deleteRow(), IE_Imp_RTF::HandleCell(), ie_imp_table_control::NewRow(), and IE_Imp_RTF::OpenTable().
fl_AutoNumPtr PD_Document::getListByID | ( | UT_uint32 | id | ) | const |
References m_mapLists.
Referenced by fl_BlockLayout::_lookupProperties(), IE_Imp_WordPerfect::_updateDocumentOrderedListDefinition(), IE_Imp_WordPerfect::_updateDocumentUnorderedListDefinition(), IE_Exp_RTF::_write_parafmt(), IE_Imp_RTF::ApplyParagraphAttributes(), fl_AutoNum::findAndSetParentItem(), fl_AutoNum::fixHierarchy(), fl_AutoNum::fl_AutoNum(), fl_ContainerLayout::getLevelInList(), FL_DocLayout::getListByID(), IE_Imp_RTF::mapID(), and fl_BlockLayout::StartList().
UT_uint32 PD_Document::getListsCount | ( | void | ) | const |
References m_vecLists.
Referenced by fl_AutoNum::_updateItems(), IE_Exp_RTF::_write_listtable(), IE_Exp_OpenXML_Listener::addLists(), IE_Imp_RTF::ApplyParagraphAttributes(), FL_DocLayout::fillLayouts(), fl_AutoNum::findAndSetParentItem(), fl_AutoNum::getAutoNumFromSdh(), fl_AutoNum::getLastItemInHeiracy(), FL_DocLayout::getListsCount(), fl_AutoNum::insertItem(), IE_Imp_RTF::mapID(), fl_AutoNum::prependItem(), fl_AutoNum::removeItem(), FV_View::setStyleAtPos(), and fl_BlockLayout::StartList().
std::string PD_Document::getMailMergeField | ( | const std::string & | key | ) | const |
References m_mailMergeMap.
Referenced by fp_FieldMailMergeRun::calculateValue().
const std::string& PD_Document::getMailMergeLink | ( | ) | const [inline] |
Referenced by AP_CocoaPlugin_Document::documentMailMergeSource, and AP_Dialog_MailMerge::init().
const std::map<std::string, std::string>& PD_Document::getMailMergeMap | ( | ) | const [inline] |
const std::map<std::string,std::string>& PD_Document::getMetaData | ( | ) | const [inline] |
Referenced by s_AbiWord_1_Listener::_handleMetaData().
bool PD_Document::getMetaDataProp | ( | const std::string & | key, | |
std::string & | outProp | |||
) | const [virtual] |
Implements AD_Document.
References m_metaDataMap.
Referenced by s_WML_Listener::_handleMetaData(), s_DocBook_Listener::_handleMetaData(), IE_Exp_HTML_Listener::_insertMeta(), IE_Exp_HTML_Listener::_insertTitle(), s_RTF_ListenerWriteDoc::_rtf_info(), FV_View::_updateDatesBeforeSave(), IE_Exp_S5::_writeHeader(), fp_FieldMetaRun::calculateValue(), Defun1(), UT_runDialog_AskForPathname::run(), s_AskForPathname(), ODe_MetaDataWriter::writeMetaData(), and OO_MetaDataWriter::writeMetaData().
UT_sint32 PD_Document::getMyAuthorInt | ( | void | ) | const |
Returns the integer mapping for this session
References m_iMyAuthorInt.
Referenced by addAuthorAttributeIfBlank(), and FV_View::addCaret().
UT_sint32 PD_Document::getNewFtrHeight | ( | void | ) | const [inline] |
Referenced by fl_DocSectionLayout::_lookupProperties().
UT_sint32 PD_Document::getNewHdrHeight | ( | void | ) | const [inline] |
Referenced by fl_DocSectionLayout::_lookupProperties().
UT_sint32 PD_Document::getNextCRNumber | ( | void | ) |
References m_iCRCounter.
Referenced by PX_ChangeRecord::setCRNumber().
bool PD_Document::getNextStrux | ( | pf_Frag_Strux * | sdh, | |
pf_Frag_Strux ** | nextsdh | |||
) |
get the next strux after the strux given.
Skip embedded strux's
References pf_Frag::getNext(), pt_PieceTable::isEndFootnote(), pt_PieceTable::isFootnote(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by ie_imp_table::deleteRow(), fl_BlockLayout::getLength(), FV_View::isPointLegal(), and ie_imp_table::writeAllCellPropsInDoc().
bool PD_Document::getNextStruxOfType | ( | pf_Frag_Strux * | sdh, | |
PTStruxType | pts, | |||
pf_Frag_Strux ** | nextsdh | |||
) |
Return the sdh of type pts immediately after sdh.
References pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), PTX_SectionTable, and UT_return_val_if_fail.
Referenced by FV_View::_findGetNextBlockBuffer(), FV_Selection::addCellToSelection(), fl_HdrFtrSectionLayout::addPage(), IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdMergeCells(), FV_View::cmdSplitCells(), Defun1(), FV_FrameEdit::deleteFrame(), IE_Exp_RTF::exportHdrFtr(), fl_BlockLayout::getEnclosingBlock(), fl_TOCLayout::getLength(), fl_FrameLayout::getLength(), fl_EmbedLayout::getLength(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), FV_View::insertAnnotationDescription(), fl_CellLayout::isCellSelected(), fl_AutoNum::isContainedByList(), IE_Exp_HTML_HeaderFooterListener::populateStrux(), s_DocBook_Listener::populateStrux(), FL_DocLayout::relocateFrame(), FV_View::selectAnnotation(), FV_View::setAnnotationText(), fl_BlockLayout::shuffleEmbeddedIfNeeded(), and fl_BlockLayout::updateEnclosingBlockIfNeeded().
References UT_GenericVector< T >::getNthItem(), and m_vecAuthors.
Referenced by s_AbiWord_1_Listener::_handleAuthors().
const std::string& PD_Document::getNthBookmark | ( | UT_sint32 | n | ) | const [inline] |
fl_ContainerLayout * PD_Document::getNthFmtHandle | ( | pf_Frag_Strux * | sdh, | |
UT_uint32 | n | |||
) |
References pf_Frag_Strux::getFmtHandle(), UT_GenericVector< T >::getItemCount(), and m_vecListeners.
Referenced by FV_View::_changeCellParams(), s_RTF_ListenerWriteDoc::_getFieldValue(), FV_View::_restoreCellParams(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdAdvanceNextPrevCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdSplitCells(), FV_View::findCellPosAt(), FV_View::getBlockFromSDH(), fl_BlockLayout::getEmbeddedOffset(), and FV_View::isInTable().
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_pPendingImagePage.
Referenced by FL_DocLayout::loadPendingObjects().
fl_AutoNumPtr PD_Document::getNthList | ( | UT_uint32 | i | ) | const |
References m_vecLists.
Referenced by fl_AutoNum::_updateItems(), IE_Exp_RTF::_write_listtable(), IE_Imp_RTF::ApplyParagraphAttributes(), FL_DocLayout::fillLayouts(), fl_AutoNum::findAndSetParentItem(), fl_AutoNum::getAutoNumFromSdh(), fl_AutoNum::getLastItemInHeiracy(), FL_DocLayout::getNthList(), fl_AutoNum::insertItem(), IE_Imp_RTF::mapID(), fl_AutoNum::prependItem(), fl_AutoNum::removeItem(), FV_View::setStyleAtPos(), and fl_BlockLayout::StartList().
TextboxPage * PD_Document::getNthTextboxPage | ( | UT_sint32 | iTextboxPage | ) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_pPendingTextboxPage.
Referenced by FL_DocLayout::loadPendingObjects().
UT_sint32 PD_Document::getNumAuthors | ( | void | ) | const |
References UT_GenericVector< T >::getItemCount(), and m_vecAuthors.
const fp_PageSize* PD_Document::getPageSize | ( | void | ) | const [inline] |
Referenced by IE_Exp_OpenXML_Listener::setPageSize().
pt_PieceTable* PD_Document::getPieceTable | ( | void | ) | const [inline] |
const UT_UCSChar * PD_Document::getPointer | ( | PT_BufIndex | bi | ) | const |
References pt_PieceTable::getPointer(), and m_pPieceTable.
Referenced by ABI_Collab_Export::_buildPacket(), fl_BlockLayout::doclistener_insertSpan(), fl_BlockLayout::doclistener_populateSpan(), ODe_AbiDocListener::populate(), TOC_Listener::populate(), IE_Imp_PasteListener::populate(), s_XSL_FO_Listener::populate(), WordPerfect_Listener::populate(), s_WML_Listener::populate(), Text_Listener::populate(), s_RTF_ListenerWriteDoc::populate(), s_RTF_ListenerGetProps::populate(), PL_Psion_Listener::populate(), Passepartout_Listener::populate(), IE_Exp_OpenXML_Listener::populate(), OO_Listener::populate(), s_MsWord_97_Listener::populate(), s_MIF_Listener::populate(), s_LaTeX_Listener::populate(), s_KWord_1_Listener::populate(), IE_Exp_HTML_Listener::populate(), s_HRText_Listener::populate(), IE_Exp_DocRangeListener::populate(), s_DocBook_Listener::populate(), s_Applix_Listener::populate(), and s_AbiWord_1_Listener::populate().
pf_Frag_Strux * PD_Document::getPrevNumberedHeadingStyle | ( | pf_Frag_Strux * | sdh | ) |
Find previous style of type numbered heading or basedon numbered heading
sdh | The StruxDocHandle of the fragment where we start to look from. |
References PD_Style::getBasedOn(), PD_Style::getName(), pf_Frag::getPrev(), getStyleFromSDH(), and pf_Frag::getType().
Referenced by FV_View::setStyleAtPos().
bool PD_Document::getPrevStruxOfType | ( | pf_Frag_Strux * | sdh, | |
PTStruxType | pts, | |||
pf_Frag_Strux ** | prevsdh | |||
) |
Return the sdh of type pts immediately prior to sdh.
References pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), and UT_return_val_if_fail.
Referenced by IE_Imp_TableHelper::BlockFormat(), fl_AutoNum::isContainedByList(), IE_Imp_TableHelper::tableStart(), and IE_Imp_TableHelper::tdStart().
bool PD_Document::getPropertyFromSDH | ( | const pf_Frag_Strux * | sdh, | |
bool | bShowRevisions, | |||
UT_uint32 | iRevisionLevel, | |||
const char * | szProperty, | |||
const char ** | pszRetValue | |||
) | const |
This method returns the value associated with attribute szProperty at picetable strux given by sdh. NB: attributes and props are view-specific because of revision attributes
pf_Frag_Strux* | sdh (pf_Frag_Strux) where we want to find the value | |
bool | bShowRevisions -- revisions setting for the view (FV_View::isShowRevisions()) | |
UT_uint32 | iRevisionLevel -- the revision level of the view (FV_View::getRevisionLevel()) | |
const | char * szProperty the Property we're looking for. | |
const | char ** pszValue the value of the property. |
Don't FREEP *pszRetValue!!!
References gchar, getAttrProp(), pf_Frag::getIndexAP(), and UT_return_val_if_fail.
Referenced by IE_Exp_RTF::_output_ListRTF(), IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdDeleteCell(), convertPercentToInches(), FV_View::getCellLineStyle(), FV_View::getCellParams(), FV_View::getCellProperty(), getCellSDHFromRowCol(), s_RTF_ListenerWriteDoc::getRightOfCell(), getRowsColsFromTableSDH(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), and miniDump().
bool PD_Document::getRowsColsFromTableSDH | ( | pf_Frag_Strux * | tableSDH, | |
bool | bShowRevisions, | |||
UT_uint32 | iRevisionLevel, | |||
UT_sint32 * | numRows, | |||
UT_sint32 * | numCols | |||
) |
The method returns the number of rows and columns in table pointed to by tableSDH
pf_Frag_Strux* | tableSDH SDH of the table in question | |
UT_sint32 | * numRows pointer to the number of rows returned | |
UT_sint32 | * numCols pointer to the number of cols returned |
References getEndTableStruxFromTableSDH(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), getPropertyFromSDH(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, UT_ASSERT, and UT_return_val_if_fail.
Referenced by ie_PartTable::_setRowsCols(), FV_View::cmdMergeCells(), FV_View::cmdSelectColumn(), FV_View::cmdTableToText(), Defun1(), and FV_View::setCellFormat().
bool PD_Document::getSpanAttrProp | ( | pf_Frag_Strux * | sdh, | |
UT_uint32 | offset, | |||
bool | bLeftSide, | |||
const PP_AttrProp ** | ppAP | |||
) | const |
References pt_PieceTable::getSpanAttrProp(), and m_pPieceTable.
Referenced by s_RTF_ListenerWriteDoc::_closeBlock(), FV_View::getAttrPropForPoint(), getSpanAttrProp(), and fl_Layout::getSpanAttrProp().
bool PD_Document::getSpanAttrProp | ( | pf_Frag_Strux * | sdh, | |
UT_uint32 | offset, | |||
bool | bLeftSide, | |||
const PP_AttrProp ** | ppAP, | |||
std::unique_ptr< PP_RevisionAttr > & | pRevisions, | |||
bool | bShowRevisions, | |||
UT_uint32 | iRevisionId, | |||
bool & | bHiddenRevision | |||
) | const |
retrieves span AP corresponding to revision settings
pRevisions : [out] the representation of the rev. attribute associated with the AP; if the caller does not need this, the pointer can be set to null
References explodeRevisions(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), PP_AttrProp::getRevisedIndex(), PP_AttrProp::getRevisionHidden(), PP_AttrProp::getRevisionState(), getSpanAttrProp(), PP_RevisionState::isEqual(), AD_Document::isMarkRevisions(), and UT_return_val_if_fail.
AP_StatusBar * PD_Document::getStatusBar | ( | void | ) |
References XAP_App::getApp(), XAP_Frame::getFrameData(), XAP_App::getLastFocussedFrame(), and AP_FrameData::m_pStatusBar.
Referenced by _importFile(), and updateStatus().
bool PD_Document::getStruxFromPosition | ( | PL_ListenerId | listenerId, | |
PT_DocPosition | docPos, | |||
fl_ContainerLayout ** | psfh | |||
) | const |
References pt_PieceTable::getStruxFromPosition(), and m_pPieceTable.
bool PD_Document::getStruxOfTypeFromPosition | ( | PL_ListenerId | listenerId, | |
PT_DocPosition | docPos, | |||
PTStruxType | pts, | |||
fl_ContainerLayout ** | psfh | |||
) | const |
References pt_PieceTable::getStruxOfTypeFromPosition(), and m_pPieceTable.
Referenced by FV_View::_deleteCellAt(), FV_View::_findGetNextBlockBuffer(), s_RTF_ListenerWriteDoc::_getFieldValue(), FV_View::_getMouseContext(), ABI_Collab_Import::_import(), IE_Imp_Text::_insertBlock(), FV_View::_MergeCells(), s_RTF_ListenerWriteDoc::_open_table(), IE_Exp_RTF::_write_rtf_header(), IE_Imp_RTF::ApplyParagraphAttributes(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdAdvanceNextPrevCell(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdMergeCells(), FV_View::cmdSelectColumn(), FV_View::cmdSplitCells(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), Defun1(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), fl_HdrFtrShadow::findBlockAtPosition(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), FV_View::findCellPosAt(), findForwardStyleStrux(), findPreviousStyleStrux(), FV_View::getCellLineStyle(), FV_View::getCellParams(), FV_View::getCellProperty(), fl_BlockLayout::getEnclosingBlock(), getEndTableStruxFromTablePos(), FV_View::getFrameLayout(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), IE_Imp_RTF::HandleDeltaMoveID(), FV_View::isImageAtStrux(), FV_View::isInTable(), fl_HdrFtrSectionLayout::isPointInHere(), FV_View::isPointLegal(), IE_Imp_RTF::mapID(), FV_Selection::pasteRowOrCol(), FV_View::setBlockFormat(), FV_View::setCellFormat(), AP_Dialog_FormatFrame::setCurFrameProps(), FV_FrameEdit::setDragType(), FV_View::setTableFormat(), and fl_BlockLayout::updateEnclosingBlockIfNeeded().
bool PD_Document::getStruxOfTypeFromPosition | ( | PT_DocPosition | docPos, | |
PTStruxType | pts, | |||
pf_Frag_Strux ** | sdh | |||
) | const |
return the SDH of the last strux of the given type immediately prior to the given absolute document position.
This sdh is actually a (void *) pointer to a pf_Frag_Strux
References pt_PieceTable::getStruxOfTypeFromPosition(), and m_pPieceTable.
PT_DocPosition PD_Document::getStruxPosition | ( | pf_Frag_Strux * | sdh | ) | const |
References pt_PieceTable::getStruxPosition(), and m_pPieceTable.
Referenced by FV_View::_deleteCellAt(), FV_View::_findGetNextBlockBuffer(), FV_View::_MergeCells(), s_RTF_ListenerWriteDoc::_open_table(), FV_View::_populateThisHdrFtr(), FV_Selection::addCellToSelection(), fl_HdrFtrSectionLayout::addPage(), AP_Dialog_Lists::Apply(), fp_FieldTOCNumRun::calculateValue(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), fp_FieldListLabelRun::calculateValue(), FV_View::changeListStyle(), IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdMergeCells(), FV_View::cmdSelectColumn(), FV_View::cmdSplitCells(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), compareListItems(), fl_ContainerLayout::containsAnnotationLayouts(), fl_ContainerLayout::containsFootnoteLayouts(), Defun1(), FV_FrameEdit::deleteFrame(), deleteStrux(), fl_BlockLayout::doclistener_insertSection(), IE_Exp_RTF::exportHdrFtr(), fl_AutoNum::findAndSetParentItem(), FV_View::findCellPosAt(), FV_View::getAnnotationText(), fl_TOCLayout::getDocPosition(), fl_FrameLayout::getDocPosition(), fl_EmbedLayout::getDocPosition(), fl_BlockLayout::getEnclosingBlock(), fl_TOCLayout::getLength(), fl_CellLayout::getLength(), fl_TableLayout::getLength(), fl_FrameLayout::getLength(), fl_EmbedLayout::getLength(), fl_BlockLayout::getLength(), fl_ContainerLayout::getPosition(), fl_BlockLayout::getPosition(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), FV_View::insertAnnotationDescription(), fl_CellLayout::isCellSelected(), fl_AutoNum::isContainedByList(), FV_View::isInTable(), FV_View::isPointLegal(), listUpdate(), FV_FrameEdit::mouseRelease(), FV_Selection::pasteRowOrCol(), IE_Exp_HTML_HeaderFooterListener::populateStrux(), s_DocBook_Listener::populateStrux(), FL_DocLayout::relocateFrame(), removeList(), FV_View::selectAnnotation(), FV_View::setAnnotationAuthor(), FV_View::setAnnotationText(), FV_View::setAnnotationTitle(), FV_View::setBlockIndents(), FV_View::setCellFormat(), FV_View::setTableFormat(), fl_BlockLayout::shuffleEmbeddedIfNeeded(), StopList(), updateAllLayoutsInDoc(), and fl_BlockLayout::updateEnclosingBlockIfNeeded().
PTStruxType PD_Document::getStruxType | ( | pf_Frag_Strux * | sdh | ) | const |
Return strux type of the StruxDocHandle
References pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_closeBlock(), FV_View::isPointLegal(), and ie_imp_table::writeAllCellPropsInDoc().
bool PD_Document::getStyle | ( | const char * | szName, | |
PD_Style ** | ppStyle | |||
) | const |
References pt_PieceTable::getStyle(), and m_pPieceTable.
Referenced by fl_TOCLayout::_createAndFillTOCEntry(), _getStyle(), fl_TOCLayout::_isStyleInTOC(), fp_TextRun::_lookupProperties(), IE_Exp_HTML_Listener::_makeStylesheet(), AP_Win32Dialog_Styles::_onCommand(), AP_Win32Dialog_Styles::_onInitDialog(), s_RTF_ListenerWriteDoc::_openSpan(), AP_Dialog_Styles::_populateAbiPreview(), AP_UnixDialog_Styles::_populateModify(), pt_PieceTable::_realChangeSpanFmt(), pt_PieceTable::_realChangeStruxFmt(), s_WML_Listener::_styleDescendsFrom(), IE_TOCHelper::_tocNameLevelHelper(), IE_Exp_RTF::_write_charfmt(), IE_Exp_HTML_StyleTree::add(), ODe_Styles::addStyle(), AP_Dialog_Styles::createNewStyle(), AP_UnixDialog_Styles::event_ModifyClicked(), PP_AttrProp::explodeStyle(), fl_TOCLayout::fillTOC(), fl_BlockLayout::fl_BlockLayout(), FV_View::insertParagraphBreak(), FV_View::isNumberedHeadingHere(), pt_VarSet::mergeAP(), PP_evalProperty(), PP_evalPropertyType(), s_LaTeX_Listener::s_LaTeX_Listener(), FV_View::setStyleAtPos(), OpenWriter_StylesStream_Listener::startElement(), fl_BlockLayout::StartList(), fl_BlockLayout::StopListInBlock(), and AP_Dialog_Styles::updateCurrentStyle().
size_t PD_Document::getStyleCount | ( | void | ) |
References pt_PieceTable::getStyleCount(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Exp_HTML::_buildStyleTree(), s_AbiWord_1_Listener::_handleStyles(), AP_Win32Dialog_Styles::_onInitDialog(), AP_Win32Dialog_Styles::_populateCList(), AP_UnixDialog_Styles::_populateCList(), IE_Exp_RTF::_selectStyles(), IE_Exp_OpenXML_Listener::addDocumentStyles(), Stylist_tree::buildStyles(), ODe_Styles::fetchRegularStyleStyles(), removeStyle(), AP_Win32Toolbar_StyleCombo::repopulate(), and AP_Dialog_Stylist::updateDialog().
PD_Style * PD_Document::getStyleFromSDH | ( | pf_Frag_Strux * | sdh | ) |
The method returns the style defined in a sdh. If there is no style it returns NULL
References gchar, pt_PieceTable::getAttrProp(), pf_Frag::getIndexAP(), pt_PieceTable::getStyle(), m_pPieceTable, PT_STYLE_ATTRIBUTE_NAME, and UT_return_val_if_fail.
Referenced by ABI_Collab_Import::_import(), getPrevNumberedHeadingStyle(), and FV_View::setStyleAtPos().
bool PD_Document::getStyleProperty | ( | const gchar * | szStyleName, | |
const gchar * | szPropertyName, | |||
const gchar *& | szPropertyValue | |||
) |
Referenced by FV_View::cmdInsertTable().
UT_uint32 PD_Document::getTopXID | ( | ) | const [virtual] |
Implements AD_Document.
References pt_PieceTable::getTopXID(), and m_pPieceTable.
Referenced by getFragXIDforVersion(), and s_AbiWord_1_Listener::s_AbiWord_1_Listener().
virtual AD_DOCUMENT_TYPE PD_Document::getType | ( | void | ) | const [inline, virtual] |
Implements AD_Document.
UT_uint32 PD_Document::getUID | ( | UT_UniqueId::idType | t | ) | [inline] |
Referenced by IE_Imp_MsWord_97::_beginPara(), fl_BlockLayout::_createListLabel(), IE_Imp_MsWord_97::_handleHeaders(), IE_Imp_MsWord_97::_handleNotes(), IE_Exp_RTF::_output_MultiLevelRTF(), IE_Exp_RTF::_output_SimpleListRTF(), AbiMathView_FileInsert(), ODi_Abi_Data::addImageDataItem(), ODi_Abi_Data::addObjectDataItem(), OXML_Element_Math::addToPT(), AP_Dialog_Lists::Apply(), AP_Dialog_FormatTable::askForGraphicPathName(), AP_Dialog_FormatFrame::askForGraphicPathName(), RTF_msword97_level::buildAbiListProperties(), PD_DocumentRDFMutation::createBNode(), ODi_Style_List::defineAbiList(), ODi_Frame_ListenerState::endElement(), IE_Imp_XHTML::endElement(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleHeaderFooter(), IE_Imp_RTF::HandleListLevel(), IE_Imp_RTF::HandleNoteReference(), insertAnnotation(), FV_View::insertFootnote(), FV_View::insertHeaderFooter(), IE_Imp_RTF::InsertImage(), IE_Imp_Psion::insertImage(), IE_Imp_RTF::mapID(), FV_VisualInlineImage::mouseCopy(), ODe_Text_Listener::openAnnotation(), ODi_Style_List::redefine(), RTF_msword97_level::RTF_msword97_level(), ODi_TextContent_ListenerState::startElement(), ODi_Style_MasterPage::startElement(), and fl_BlockLayout::StartList().
const std::string& PD_Document::getUserName | ( | ) | const [inline] |
Referenced by insertAnnotation().
UT_uint32 PD_Document::getXID | ( | ) | const [virtual] |
Implements AD_Document.
References pt_PieceTable::getXID(), and m_pPieceTable.
Referenced by createDataItem().
bool PD_Document::hasEmbedStruxOfTypeInRange | ( | PT_DocPosition | posStart, | |
PT_DocPosition | posEnd, | |||
PTStruxType | iType | |||
) | const |
References pt_PieceTable::hasEmbedStruxOfTypeInRange(), m_pPieceTable, PTX_SectionAnnotation, PTX_SectionEndnote, PTX_SectionFootnote, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by fl_ContainerLayout::containsAnnotationLayouts(), and fl_ContainerLayout::containsFootnoteLayouts().
bool PD_Document::hasListStopped | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::StopListInBlock().
bool PD_Document::hasMath | ( | void | ) |
Returns true if the document as any math or SVG runs within it.
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), getPieceTable(), and pf_Frag::getType().
Referenced by IE_Exp_HTML_DefaultWriterFactory::constructDocumentWriter().
void PD_Document::ignoreSignals | ( | void | ) | [inline] |
UT_Error PD_Document::importFile | ( | GsfInput * | input, | |
int | ieft, | |||
bool | markClean = false , |
|||
bool | bImportStylesFirst = true , |
|||
const char * | impProps = NULL | |||
) |
References _importFile().
UT_Error PD_Document::importFile | ( | const char * | szFilename, | |
int | ieft, | |||
bool | markClean = false , |
|||
bool | bImportStylesFirst = true , |
|||
const char * | impProps = NULL | |||
) | [virtual] |
Implements AD_Document.
References _importFile().
Referenced by newDocument(), and IE_Imp_EPUB::readStructure().
UT_Error PD_Document::importStyles | ( | const char * | szFilename, | |
int | ieft, | |||
bool | bDocProps = false | |||
) | [virtual] |
References IE_Imp::constructImporter(), getAllUsedStyles(), UT_GenericVector< T >::getItemCount(), PD_Style::getName(), UT_GenericVector< T >::getNthItem(), IE_Imp::importFile(), PD_Style::isCharStyle(), m_pPieceTable, IE_Imp::setLoadDocProps(), IE_Imp::setLoadStylesOnly(), IE_Imp::supportsLoadStylesOnly(), updateDocForStyleChange(), UT_DEBUGMSG, and UT_isRegularFile().
Referenced by _importFile(), createRawDocument(), and Defun1().
bool PD_Document::insertFmtMark | ( | PTChangeFmt | ptc, | |
PT_DocPosition | dpos, | |||
PP_AttrProp * | p_AttrProp | |||
) |
References pt_PieceTable::insertFmtMark(), isDoingTheDo(), and m_pPieceTable.
Referenced by FV_View::_charInsert(), and FV_View::insertFootnote().
bool PD_Document::insertFmtMarkBeforeFrag | ( | pf_Frag * | pF | ) |
References UT_GenericVector< T >::addItem(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pt_PieceTable::insertFmtMarkBeforeFrag(), m_pPieceTable, m_vecSuspectFrags, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendSpan(), IE_Imp_RTF::ApplyCharacterAttributes(), IE_Imp_RTF::HandleCell(), and IE_Imp_TableHelper::InlineFormat().
bool PD_Document::insertFmtMarkBeforeFrag | ( | pf_Frag * | pF, | |
const PP_PropertyVector & | attributes | |||
) |
References pt_PieceTable::insertFmtMarkBeforeFrag(), m_pPieceTable, and UT_return_val_if_fail.
bool PD_Document::insertObject | ( | PT_DocPosition | dpos, | |
PTObjectType | pto, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties | |||
) |
Referenced by IE_Imp_RTF::_appendField(), fl_BlockLayout::_createListLabel(), ABI_Collab_Import::_import(), FV_View::_insertField(), IE_Imp_RTF::_parseFldinstBlock(), IE_Imp::appendObject(), FV_View::cmdInsertBookmark(), FV_View::cmdInsertEmbed(), FV_View::cmdInsertHyperlink(), FV_View::cmdInsertLatexMath(), FV_View::cmdInsertMathML(), FV_View::cmdInsertXMLID(), FV_View::cmdUpdateEmbed(), FV_View::convertPositionedToInLine(), IE_Imp_RTF::EndAnnotation(), IE_Imp_RTF::HandleAbiEmbed(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleBookmark(), IE_Imp_RTF::HandleField(), IE_Imp_RTF::HandleRDFAnchor(), FV_View::insertAnnotation(), IE_Imp_RTF::InsertImage(), FG_GraphicVector::insertIntoDocument(), FG_GraphicRaster::insertIntoDocument(), FV_View::insertPageNum(), FV_VisualInlineImage::mouseRelease(), IE_Imp_PasteListener::populate(), and FV_View::processPageNumber().
bool PD_Document::insertObject | ( | PT_DocPosition | dpos, | |
PTObjectType | pto, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties, | |||
fd_Field ** | pField | |||
) |
bool PD_Document::insertObjectBeforeFrag | ( | pf_Frag * | pF, | |
PTObjectType | pto, | |||
const PP_PropertyVector & | attributes | |||
) |
References UT_GenericVector< T >::addItem(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pt_PieceTable::insertObjectBeforeFrag(), m_pPieceTable, m_vecSuspectFrags, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendField(), IE_Imp_MsWord_97::_appendObject(), IE_Imp_MsWord_97::_appendObjectHdrFtr(), IE_Imp_RTF::HandleAbiEmbed(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleBookmark(), IE_Imp_RTF::HandleRDFAnchor(), and IE_Imp_TableHelper::Object().
bool PD_Document::insertSpan | ( | PT_DocPosition | dpos, | |
const UT_UCSChar * | pbuf, | |||
UT_uint32 | length, | |||
PP_AttrProp * | p_AttrProp = NULL , |
|||
UT_uint32 * | insertedSpanLength = NULL | |||
) |
Note that the text will be set to exactly the properties of given by p_AttrProp. If pAttrProp is set to NULL, the text will be set to exactly the properties of the style of the current paragraph.
References addAuthorAttributeIfBlank(), pt_PieceTable::insertFmtMark(), pt_PieceTable::insertSpan(), isDoingTheDo(), m_iLastDirMarker, m_pPieceTable, PTC_AddFmt, PTC_RemoveFmt, PTC_SetExactly, PP_AttrProp::setProperty(), UCS_LRE, UCS_LRO, UCS_PDF, UCS_RLE, UCS_RLO, and UT_DEBUGMSG.
Referenced by FV_View::_charInsert(), fl_BlockLayout::_createListLabel(), FV_View::_findReplace(), FV_View::_findReplaceReverse(), ABI_Collab_Import::_import(), IE_Imp_RTF::_insertSpan(), IE_Imp::appendSpan(), IE_Imp_RTF::ApplyParagraphAttributes(), PD_RDFSemanticStylesheet::format(), FV_View::insertAnnotation(), FV_View::insertFootnote(), insertSpan(), IE_Imp_PasteListener::populate(), FV_View::setAnnotationText(), and FV_View::toggleCase().
bool PD_Document::insertSpan | ( | PT_DocPosition | dpos, | |
const std::string & | s, | |||
PP_AttrProp * | p_AttrProp = NULL | |||
) |
References insertSpan(), UT_UCS4String::length(), and UT_UCS4String::ucs4_str().
bool PD_Document::insertSpanBeforeFrag | ( | pf_Frag * | pF, | |
const UT_UCSChar * | p, | |||
UT_uint32 | length | |||
) |
References UT_GenericVector< T >::addItem(), pt_PieceTable::appendFmt(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pt_PieceTable::insertSpanBeforeFrag(), m_iLastDirMarker, m_pPieceTable, m_vecSuspectFrags, UCS_LRE, UCS_LRO, UCS_PDF, UCS_RLE, UCS_RLO, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendSpan(), IE_Imp_MsWord_97::_appendSpan(), IE_Imp_MsWord_97::_appendSpanHdrFtr(), and IE_Imp_TableHelper::Inline().
bool PD_Document::insertStrux | ( | PT_DocPosition | dpos, | |
PTStruxType | pts, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties, | |||
pf_Frag_Strux ** | ppfs_ret = NULL | |||
) |
References addAuthorAttributeIfBlank(), pt_PieceTable::insertStrux(), isDoingTheDo(), and m_pPieceTable.
bool PD_Document::insertStrux | ( | PT_DocPosition | dpos, | |
PTStruxType | pts, | |||
pf_Frag_Strux ** | ppfs_ret = 0 | |||
) |
References pt_PieceTable::insertStrux(), isDoingTheDo(), and m_pPieceTable.
Referenced by FV_View::_deleteSelection(), ABI_Collab_Import::_import(), FV_View::_insertCellAt(), FV_View::_insertSectionBreak(), IE_Imp_RTF::_insertSpan(), IE_Imp::appendStrux(), FV_View::cmdCharInsert(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertTable(), FV_View::cmdInsertTOC(), FV_View::cmdSplitCells(), FV_View::cmdTextToTable(), FV_View::convertInLineToPositioned(), IE_Imp_RTF::FlushStoredChars(), FV_View::insertAnnotation(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertParaBreakIfNeededAtPos(), FV_View::insertParagraphBreak(), FV_View::insertParagraphBreaknoListUpdate(), IE_Imp_RTF::insertStrux(), FL_DocLayout::loadPendingObjects(), FV_FrameEdit::mouseRelease(), IE_Imp_RTF::pasteFromBuffer(), IE_Imp_PasteListener::populateStrux(), FV_View::processPageNumber(), IE_Imp_EPUB::readStructure(), FL_DocLayout::relocateFrame(), and FV_View::setCharFormat().
bool PD_Document::insertStruxBeforeFrag | ( | pf_Frag * | pF, | |
PTStruxType | pts, | |||
const PP_PropertyVector & | attributes, | |||
pf_Frag_Strux ** | ppfs_ret = 0 | |||
) |
References UT_GenericVector< T >::addItem(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pt_PieceTable::insertStruxBeforeFrag(), m_pPieceTable, m_vecSuspectFrags, PTX_EndCell, updateStatus(), and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendField(), IE_Imp_MsWord_97::_appendObjectHdrFtr(), IE_Imp_MsWord_97::_appendSpanHdrFtr(), IE_Imp_MsWord_97::_appendStrux(), IE_Imp_MsWord_97::_appendStruxHdrFtr(), IE_Imp_RTF::_parseFldinstBlock(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_TableHelper::Block(), IE_Imp_RTF::FlushStoredChars(), IE_Imp_RTF::HandleAbiEmbed(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleAnnotation(), IE_Imp_RTF::HandleBookmark(), IE_Imp_RTF::HandleField(), repairDoc(), IE_Imp_TableHelper::tableStart(), IE_Imp_TableHelper::tdEnd(), and IE_Imp_TableHelper::tdStart().
bool PD_Document::insertStruxNoUpdateBefore | ( | pf_Frag_Strux * | sdh, | |
PTStruxType | pts, | |||
const PP_PropertyVector & | attributes | |||
) |
This method inserts a strux of type pts immediately before the sdh given. Attributes of the strux can be optionally passed. This method does not throw a change record and should only be used under exceptional circumstances to repair the piecetable during loading. It was necessary to import RTF tables.
References pf_Frag_Strux::getStruxType(), pt_PieceTable::insertStruxNoUpdateBefore(), and m_pPieceTable.
Referenced by IE_Imp_RTF::CloseTable(), IE_Imp_RTF::HandleCell(), and ie_imp_table_control::NewRow().
void PD_Document::invalidateCache | ( | void | ) |
References m_iVDLastPos, m_pVDBl, and m_pVDRun.
Referenced by IE_Exp::IE_Exp(), and IE_Imp::IE_Imp().
bool PD_Document::isBlockAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a Block strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::cmdInsertTable(), FV_View::extSelToXYword(), and FV_VisualDragText::getImageFromSelection().
bool PD_Document::isBookmarkRelativeLink | ( | const gchar * | pName | ) | const |
Returns true if pName looks like a relative link, rather than a bookmark.
Current heuristic: if pName contains a ., then it's a rel link; otherwise it's a bookmark.
References gchar, and UT_ASSERT_HARMLESS.
Referenced by FV_View::cmdInsertHyperlink().
bool PD_Document::isBookmarkUnique | ( | const gchar * | pName | ) | const |
Returns true if pName doesn't correspond to a currently existing bookmark.
References m_vBookmarkNames.
Referenced by FV_View::_deleteBookmark(), fl_TOCLayout::addBlock(), FV_View::cmdInsertBookmark(), FV_View::cmdInsertHyperlink(), fl_TOCLayout::fillTOC(), FV_View::gotoTarget(), and fl_TOCLayout::verifyBookmarkAssumptions().
bool PD_Document::isCellAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a cell strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::_charMotion(), IE_Imp_RTF::_insertSpan(), FV_View::cmdSelectNoNotify(), FV_View::extSelToXYword(), FV_VisualDragText::getImageFromSelection(), and FV_View::isInTable().
bool PD_Document::isCoalescingMasked | ( | ) | const [inline] |
Referenced by pt_PieceTable::_deleteSpanWithNotify(), and pt_PieceTable::_realInsertSpan().
bool PD_Document::isConnected | ( | void | ) |
Return true if the document has an abicollab connection
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), and m_vecListeners.
Referenced by Defun(), and s_closeWindow().
bool PD_Document::isDirty | ( | void | ) | const [virtual] |
Implements AD_Document.
References pt_PieceTable::isDirty(), AD_Document::isForcedDirty(), and m_pPieceTable.
Referenced by AbiCollabSessionManager::_setupFrame(), Defun(), forceDirty(), AbiCollabSaveInterceptor::intercept(), Stateful_ViewListener::notify(), FV_View::notifyListeners(), s_closeWindow(), and AbiCollabService_Export::signal().
bool PD_Document::isDoingPaste | ( | void | ) |
bool PD_Document::isDoingTheDo | ( | void | ) | const |
References pt_PieceTable::isDoingTheDo(), and m_pPieceTable.
Referenced by changeSpanFmt(), changeStruxFmt(), deleteSpan(), fl_BlockLayout::doclistener_insertBlock(), fl_BlockLayout::doclistener_insertSpan(), insertFmtMark(), insertObject(), insertSpan(), insertStrux(), and FL_DocLayout::relocateFrame().
bool PD_Document::isDontImmediateLayout | ( | void | ) | const [inline] |
Referenced by FV_View::_deleteSelection(), and fl_DocSectionLayout::updateLayout().
bool PD_Document::isEndFootnoteAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is an EndFootnote strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pt_PieceTable::isEndFootnote(), and m_pPieceTable.
Referenced by FV_View::_charMotion(), FV_View::cmdInsertTable(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), fl_BlockLayout::getNextTableElement(), FV_View::isPointLegal(), FV_VisualDragText::mouseRelease(), and FV_View::setCharFormat().
bool PD_Document::isEndFrameAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is an endFrame strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::_charInsert(), FV_View::_deleteSelection(), FV_View::_makePointLegal(), FV_View::cmdCharDelete(), FV_View::cmdInsertTable(), FV_View::isInFrame(), FV_View::isParaBreakNeededAtPos(), FV_View::isPointLegal(), FV_View::moveInsPtTo(), and FV_View::processPageNumber().
bool PD_Document::isEndTableAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is an EndTable strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::_charMotion(), FV_View::_deleteSelection(), FV_View::cmdInsertTable(), FV_View::cmdSelectNoNotify(), FV_View::extSelToXYword(), FV_VisualDragText::getImageFromSelection(), FV_View::isParaBreakNeededAtPos(), and FV_View::isPointLegal().
bool PD_Document::isExportAuthorAtts | ( | void | ) | const |
True if the Author attributes should be exported.
References m_bExportAuthorAtts.
Referenced by s_AbiWord_1_Listener::_openTag(), s_AbiWord_1_Listener::s_AbiWord_1_Listener(), and AbiCollabSessionManager::serializeDocument().
bool PD_Document::isFootnoteAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a Footnote strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pt_PieceTable::isFootnote(), and m_pPieceTable.
Referenced by FV_View::_charMotion(), FV_View::_findPositionCoords(), FV_View::_setPoint(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), fl_BlockLayout::getNextTableElement(), and FV_View::isPointLegal().
bool PD_Document::isFrameAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a frame strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::_charInsert(), FV_View::_charMotion(), FV_View::_deleteSelection(), FV_View::_getMouseContext(), IE_Imp_RTF::_insertSpan(), FV_View::_makePointLegal(), FV_View::cmdCharDelete(), FV_View::getFrameLayout(), FV_View::isInFrame(), FV_View::isPointLegal(), and FV_VisualDragText::mouseRelease().
bool PD_Document::isHdrFtrAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a HdrFtr strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::_charMotion(), FV_View::isParaBreakNeededAtPos(), and FV_View::moveInsPtTo().
bool PD_Document::isIdUnique | ( | UT_UniqueId::idType | t, | |
UT_uint32 | i | |||
) | const [inline] |
bool PD_Document::isInsertHyperLinkValid | ( | PT_DocPosition | pos | ) | const |
Returns true if it is legal to insert a hperlink at this position. Looks to see if there is An open hyperlink or annotation upstream.
References gchar, pt_PieceTable::getAttrProp(), pt_PieceTable::getFragFromPosition(), pf_Frag_Object::getObjectType(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, PT_ANNOTATION_NUMBER, PT_HYPERLINK_TARGET_NAME, PT_RDF_XMLID, and UT_return_val_if_fail.
bool PD_Document::isMarginChangeOnly | ( | void | ) | const |
References m_bMarginChangeOnly.
Referenced by FL_DocLayout::changeDocSections(), and FL_DocLayout::rebuildFromHere().
bool PD_Document::isRedrawHappenning | ( | void | ) | const [inline] |
Referenced by fl_DocSectionLayout::_HdrFtrChangeCallback().
bool PD_Document::isSectionAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a Section strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::_charMotion(), FV_View::cmdInsertTable(), and FV_View::isParaBreakNeededAtPos().
bool PD_Document::isShowAuthors | ( | void | ) | const [inline] |
bool PD_Document::isStruxBeforeThis | ( | pf_Frag_Strux * | sdh, | |
PTStruxType | pts | |||
) |
This method examines the frag immediately before the given sdh and decides if it matches the strux type given.
References pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), and pf_Frag::getType().
bool PD_Document::isTableAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a table strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::_charMotion(), FV_View::_deleteSelection(), IE_Imp_RTF::_insertSpan(), FV_View::cmdInsertTable(), FV_View::cmdSelectNoNotify(), FV_View::extSelToXYword(), FV_VisualDragText::getImageFromSelection(), and FV_View::isInTable().
bool PD_Document::isTOCAtPos | ( | PT_DocPosition | pos | ) |
This method returns true if there is a TOC or endTOC strux at exactly this position.
References pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by FV_View::cmdCharDelete(), FV_View::cmdInsertTable(), FV_View::insertAnnotation(), FV_View::insertFootnote(), IE_Imp_RTF::insertStrux(), and FV_View::isPointLegal().
bool PD_Document::isVDNDinProgress | ( | ) | const [inline] |
Referenced by pt_PieceTable::deleteSpan().
void PD_Document::listUpdate | ( | pf_Frag_Strux * | sdh | ) |
References pf_Frag::getIndexAP(), getStruxPosition(), pf_Frag::getXID(), notifyListeners(), PX_ChangeRecord::PXT_ListUpdate, and UT_return_if_fail.
Referenced by fl_AutoNum::_updateItems(), FV_View::changeListStyle(), fl_BlockLayout::prependList(), fl_BlockLayout::remItemFromList(), fl_BlockLayout::resumeList(), and fl_BlockLayout::StopListInBlock().
void PD_Document::lockStyles | ( | bool | b | ) |
References m_bLockedStyles, and setAttributes().
Referenced by Defun1().
bool PD_Document::mailMergeFieldExists | ( | const std::string & | key | ) | const |
References m_mailMergeMap.
Referenced by fp_FieldMailMergeRun::calculateValue().
PD_XMLIDCreatorHandle PD_Document::makeXMLIDCreator | ( | ) |
Referenced by IE_Imp_RTF::IE_Imp_RTF().
void PD_Document::miniDump | ( | pf_Frag_Strux * | sdh, | |
UT_sint32 | nstruxes | |||
) |
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getNext(), pf_Frag::getPrev(), getPropertyFromSDH(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, PD_MAX_REVISION, UT_DEBUGMSG, and UT_UNUSED.
Referenced by fl_BlockLayout::_assertRunListIntegrityImpl(), s_RTF_ListenerWriteDoc::_newRow(), fl_DocListener::change(), fl_HdrFtrShadow::findMatchingContainer(), IE_Imp_RTF::HandleRow(), fl_DocListener::insertStrux(), pt_PieceTable::insertStruxNoUpdateBefore(), fl_DocListener::populate(), fl_ShadowListener::populateStrux(), and fl_DocListener::populateStrux().
UT_Error PD_Document::newDocument | ( | void | ) | [virtual] |
Implements AD_Document.
References _setClean(), appendStrux(), buildTemplateList(), IEFT_Unknown, importFile(), AD_Document::isOrigUUID(), m_indexAP, m_pPieceTable, m_sUserName, PD_META_KEY_CREATOR, PTS_Editing, PTS_Loading, PTX_Block, PTX_Section, setAttrProp(), AD_Document::setDocVersion(), AD_Document::setEditTime(), AD_Document::setLastOpenedTime(), setMetaDataProp(), pt_PieceTable::setPieceTableState(), time, UT_ASSERT, and UT_OK.
Referenced by AP_Preview_Abi::AP_Preview_Abi(), FV_View::copyTextToClipboard(), Defun1(), AbiCommand::newDocument(), and AbiCommand::parseTokens().
bool PD_Document::notifyListeners | ( | const pf_Frag_Strux * | pfs, | |
const PX_ChangeRecord * | pcr | |||
) | const |
References PL_Listener::change(), PX_ChangeRecord::getCRNumber(), PX_ChangeRecord::getDocument(), pf_Frag_Strux::getFmtHandle(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), m_iUpdateCount, m_vecListeners, PX_ChangeRecord::setCRNumber(), and PX_ChangeRecord::setDocument().
Referenced by pt_PieceTable::_changePointWithNotify(), pt_PieceTable::_deleteFmtMarkWithNotify(), pt_PieceTable::_deleteObjectWithNotify(), pt_PieceTable::_deleteSpanWithNotify(), pt_PieceTable::_deleteStruxWithNotify(), pt_PieceTable::_doTheDo(), pt_PieceTable::_fmtChangeFmtMarkWithNotify(), pt_PieceTable::_fmtChangeObjectWithNotify(), pt_PieceTable::_fmtChangeSpanWithNotify(), pt_PieceTable::_fmtChangeStruxWithNotify(), pt_PieceTable::_insertFmtMarkAfterBlockWithNotify(), pt_PieceTable::_insertFmtMarkFragWithNotify(), pt_PieceTable::_realInsertObject(), pt_PieceTable::_realInsertSpan(), pt_PieceTable::_realInsertStrux(), fd_Field::_throwChangeRec(), pt_PieceTable::beginMultiStepGlob(), pt_PieceTable::beginUserAtomicGlob(), pt_PieceTable::changeStruxFmtNoUndo(), PD_DocumentRDFMutation::commit(), pt_PieceTable::createAndSendCR(), pt_PieceTable::createAndSendDocPropCR(), createDataItem(), pt_PieceTable::endMultiStepGlob(), pt_PieceTable::endUserAtomicGlob(), listUpdate(), removeList(), removeStyle(), StopList(), updateAllLayoutsInDoc(), and updateDocForStyleChange().
bool PD_Document::notifyListeners | ( | const pf_Frag_Strux * | pfs, | |
pf_Frag_Strux * | pfsNew, | |||
const PX_ChangeRecord * | pcr | |||
) | const |
References PX_ChangeRecord::getCRNumber(), PX_ChangeRecord::getDocument(), pf_Frag_Strux::getFmtHandle(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), PL_Listener::insertStrux(), m_iUpdateCount, m_vecListeners, s_BindHandles(), PX_ChangeRecord::setCRNumber(), PX_ChangeRecord::setDocument(), and UT_ASSERT_HARMLESS.
void PD_Document::notifyPieceTableChangeEnd | ( | void | ) |
References AD_Document::_setPieceTableChanging().
Referenced by ABI_Collab_Import::_enableUpdates(), fl_DocSectionLayout::_HdrFtrChangeCallback(), FV_View::_restorePieceTableState(), acceptAllRevisions(), acceptRejectRevision(), ApplySemanticStylesheets(), FV_View::cmdCut(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdUndo(), FV_View::createThisHdrFtr(), FV_View::insertHeaderFooter(), FV_View::insertSectionBreak(), FV_View::populateThisHdrFtr(), rejectAllHigherRevisions(), and FV_View::RestoreSavedPieceTableState().
void PD_Document::notifyPieceTableChangeStart | ( | void | ) |
References AD_Document::_setPieceTableChanging(), m_bRedrawHappenning, m_iVDLastPos, m_pVDBl, m_pVDRun, UT_DEBUGMSG, and UT_usleep.
Referenced by ABI_Collab_Import::_disableUpdates(), fl_DocSectionLayout::_HdrFtrChangeCallback(), FV_View::_restorePieceTableState(), FV_View::_saveAndNotifyPieceTableChange(), acceptAllRevisions(), acceptRejectRevision(), ApplySemanticStylesheets(), FV_View::cmdCut(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdUndo(), FV_View::createThisHdrFtr(), FV_View::insertHeaderFooter(), FV_View::insertSectionBreak(), FV_View::populateThisHdrFtr(), and rejectAllHigherRevisions().
void PD_Document::processDeferredNotifications | ( | void | ) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecListeners, and PL_Listener::processDeferredNotifications().
Referenced by changeSpanFmt().
bool PD_Document::purgeFmtMarks | ( | ) |
This function crawls over the entire document and removes all fmt marks. It is principally meant to do PT clean up on import (for example, the structure of MS Word documents is such that we end up with a myriad of superfluous fmt marks in the document), and should be called by an importer at the end of import process.
References m_pPieceTable, and pt_PieceTable::purgeFmtMarks().
Referenced by IE_Imp_MsWord_97::_docProc(), acceptAllRevisions(), and rejectAllHigherRevisions().
void PD_Document::purgeRevisionTable | ( | bool | bUnconditional = false |
) | [virtual] |
Clears out the revisions table if no revisions are left in the document
Implements AD_Document.
References AD_Document::_purgeRevisionTable(), UT_GenericStringMap< T >::contains(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), PD_DocIterator::getFrag(), pf_Frag::getIndexAP(), pf_Frag::getLength(), AD_Document::getRevisions(), PD_DocIterator::getStatus(), UT_GenericStringMap< T >::insert(), PT_REVISION_ATTRIBUTE_NAME, UT_DEBUGMSG, UT_return_if_fail, and UT_String_sprintf().
UT_Error PD_Document::readFromFile | ( | const char * | szFilename, | |
int | ieft, | |||
const char * | impProps = NULL | |||
) | [virtual] |
Implements AD_Document.
References _importFile().
Referenced by abi_widget_load_file(), abi_widget_load_file_from_memory(), AP_Convert::convertTo(), Defun1(), AP_CocoaPlugin_FramelessDocument::documentFromFile:importOptions:, AbiCommand::loadDocument(), makeDocument(), AP_UnixApp::makePngPreview(), AbiCommand::parseTokens(), AP_Convert::print(), s_pasteFile(), and TFTEST_MAIN().
UT_Error PD_Document::readFromFile | ( | GsfInput * | input, | |
int | ieft, | |||
const char * | impProps = NULL | |||
) |
References _importFile().
bool PD_Document::redoCmd | ( | UT_uint32 | repeatCount | ) | [virtual] |
Implements AD_Document.
References m_pPieceTable, and pt_PieceTable::redoCmd().
Referenced by FV_View::cmdRedo().
bool PD_Document::rejectAllHigherRevisions | ( | UT_uint32 | iLevel | ) | [virtual] |
Implements AD_Document.
References _acceptRejectRevision(), beginUserAtomicGlob(), endUserAtomicGlob(), gchar, PP_AttrProp::getAttribute(), pt_PieceTable::getAttrProp(), PD_DocIterator::getFrag(), pf_Frag::getIndexAP(), pf_Frag::getLength(), PP_RevisionAttr::getLowestGreaterOrEqualRevision(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), m_pPieceTable, notifyPieceTableChangeEnd(), notifyPieceTableChangeStart(), PD_SIGNAL_UPDATE_LAYOUT, purgeFmtMarks(), PD_DocIterator::reset(), signalListeners(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
void PD_Document::removeBookmark | ( | const gchar * | pName | ) |
References m_vBookmarkNames.
Referenced by pt_PieceTable::_deleteComplexSpan().
void PD_Document::removeCaret | ( | const std::string & | sCaretID | ) |
References getAllViews(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and FV_View::removeCaret().
Referenced by AbiCollab::_removeCollaborator().
void PD_Document::removeConnections | ( | void | ) |
Remove all AbiCollab connections. We should do this before the document is destructed.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), m_vecListeners, and removeListener().
Referenced by ~PD_Document().
void PD_Document::removeList | ( | const fl_AutoNumPtr & | pAutoNum, | |
pf_Frag_Strux * | sdh | |||
) |
References pf_Frag::getIndexAP(), getStruxPosition(), m_mapLists, m_vecLists, notifyListeners(), PX_ChangeRecord::PXT_RemoveList, and UT_return_if_fail.
Referenced by fl_BlockLayout::_lookupProperties().
bool PD_Document::removeListener | ( | PL_ListenerId | listenerId | ) |
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getNext(), pf_Frag::getType(), m_pPieceTable, m_vecListeners, pf_Frag_Strux::setFmtHandle(), UT_GenericVector< T >::setNthItem(), and xxx_UT_DEBUGMSG.
Referenced by changeConnectedDocument(), removeConnections(), ServiceAccountHandler::removeExporter(), AbiCollab::~AbiCollab(), and FL_DocLayout::~FL_DocLayout().
bool PD_Document::removeStyle | ( | const gchar * | pszName | ) |
This method removes the style of name pszName from the styles definition and removes all instances of it from the document including the basedon heiracy and the followed-by sequences.
References PD_Style::addAttributes(), UT_GenericVector< T >::addItem(), prevStuff::bChangeIndexAP, enumStyles(), prevStuff::fragLength, prevStuff::fragType, gchar, PD_Style::getAttribute(), pt_PieceTable::getAttrProp(), PD_Style::getBasedOn(), pf_Fragments::getFirst(), PD_Style::getFollowedBy(), pt_PieceTable::getFragments(), PD_Style::getIndexAP(), UT_GenericVector< T >::getItemCount(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getNext(), UT_GenericVector< T >::getNthItem(), pt_PieceTable::getStyle(), getStyleCount(), pf_Frag::getType(), pf_Frag::getXID(), prevStuff::indexAPFrag, prevStuff::lastFragStrux, m_pPieceTable, notifyListeners(), pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PT_NAME_ATTRIBUTE_NAME, PT_STYLE_ATTRIBUTE_NAME, PX_ChangeRecord::PXT_ChangeStrux, pt_PieceTable::removeStyle(), prevStuff::thisFrag, prevStuff::thisPos, prevStuff::thisStruxPos, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_VECTOR_PURGEALL.
bool PD_Document::repairDoc | ( | void | ) |
Scan the vector of suspect frags and add blocks if they're needed. Returns true if there are changes to the document.
References _checkAndFixTable(), _matchSection(), _pruneSectionAPI(), _removeHdrFtr(), _removeRepeatedHdrFtr(), UT_GenericVector< T >::addItem(), appendStrux(), checkForSuspect(), UT_GenericVector< T >::deleteNthItem(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), UT_GenericVector< T >::getItemCount(), pf_Fragments::getLast(), pf_Frag::getNext(), UT_GenericVector< T >::getNthItem(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), insertStruxBeforeFrag(), pt_PieceTable::isEndFootnote(), m_pPieceTable, m_vecSuspectFrags, PTX_Block, PTX_EndTable, PTX_Section, and UT_DEBUGMSG.
Referenced by _importFile(), and finishRawCreation().
bool PD_Document::replaceDataItem | ( | const char * | szName, | |
const UT_ConstByteBufPtr & | pByteBuf | |||
) | [virtual] |
Replace the contents of the pre-existing data item with this new data item (pByteBuf). Used when updating a preview of an embedded object.
Implements AD_Document.
References m_hashDataItems, _dataItemPair::pBuf, and UT_return_val_if_fail.
UT_Error PD_Document::saveAs | ( | GsfOutput * | output, | |
int | ieft, | |||
bool | cpy = false , |
|||
const char * | expProps = NULL | |||
) |
bool PD_Document::sendAddAuthorCR | ( | pp_Author * | pAuthor | ) |
References _sendAuthorCR().
Referenced by AccountHandler::_handlePacket(), addAuthorAttributeIfBlank(), changeDocPropeties(), and AbiCollabSessionManager::startSession().
bool PD_Document::sendChangeAuthorCR | ( | pp_Author * | pAuthor | ) |
References _sendAuthorCR().
Referenced by changeDocPropeties(), and AbiCollabSessionManager::startSession().
bool PD_Document::setAllStyleAttributes | ( | const gchar * | szStyleName, | |
const PP_PropertyVector & | attribs | |||
) |
This methods changes the attributes /properties of a style (basedon,followedby) plus the properties. We have to save the indexAP of the pre-existing style and broadcast it out witht e change records.
szStyleName | the const gchar * name of the style | |
attribs | The list of attributes/properties of the updated style. |
References PD_Style::getBasedOn(), PD_Style::getFollowedBy(), pt_PieceTable::getStyle(), m_pPieceTable, and updateDocForStyleChange().
Referenced by AP_Dialog_Styles::applyModifiedStyleToDoc().
void PD_Document::setAnnotationProp | ( | const std::string & | key, | |
const std::string & | value | |||
) | [virtual] |
Implements AD_Document.
References UT_ASSERT, and UT_NOT_IMPLEMENTED.
bool PD_Document::setAttributes | ( | const PP_PropertyVector & | ppAttr | ) |
References m_indexAP, PTC_AddFmt, and VARSET.
Referenced by lockStyles(), s_AbiWord_1_Listener::s_AbiWord_1_Listener(), and setAttrProp().
bool PD_Document::setAttrProp | ( | const PP_PropertyVector & | ppAttr | ) |
Sets document attributes and properties can only be used while loading documents
const | gchar ** ppAttr: array of attribute/value pairs |
if ppAttr == NULL and m_indexAP == 0xffffffff, the function creates a new AP and sets it to the default values hardcoded in it
if ppAttr == NULL and m_indexAP != 0xffffffff, the function does nothing
if ppAttr != NULL the function overlays passed attributes over the existing attributes (creating a new AP first if necessary)
When initialising document attributes and props, we need to set m_indexAP to 0xffffffff and then call setAttributes(NULL).
Importers should just call setAttributes(NULL) in the initialisation stage, this ensures that default values are set without overwriting existing values if those were set by the caller of the importer.
Tomas, Dec 6, 2003
References ABIWORD_FILEFORMAT_VERSION, AP_PREF_KEY_DefaultDirectionRtl, XAP_App::getApp(), UT_LocaleInfo::getLanguage(), pt_PieceTable::getPieceTableState(), XAP_App::getPrefs(), XAP_Prefs::getPrefsValueBool(), UT_LocaleInfo::getTerritory(), m_indexAP, m_pPieceTable, PP_getAttribute(), PTC_AddFmt, XAP_App::s_szBuild_Version, setAttributes(), setProperties(), pt_PieceTable::setXIDThreshold(), UT_DEBUGMSG, UT_return_val_if_fail, and VARSET.
Referenced by _importFile(), IE_Imp_MsWord_97::_loadFile(), IE_Imp_RTF::_parseFile(), createRawDocument(), and newDocument().
void PD_Document::setAutoRevisioning | ( | bool | autorev | ) | [virtual] |
Reimplemented from AD_Document.
References PD_SIGNAL_REFORMAT_LAYOUT, and signalListeners().
Referenced by Defun1(), and IE_Imp_AbiWord_1::endElement().
void PD_Document::setClean | ( | void | ) | [inline] |
Referenced by AbiCollabSaveInterceptor::save(), and ServiceAccountHandler::startSession().
void PD_Document::setCoalescingMask | ( | bool | mask | ) | [inline] |
Referenced by AbiCollab::AbiCollab().
void PD_Document::setCRNumber | ( | UT_sint32 | iCRCounter | ) | [inline] |
Referenced by FakeAccountHandler::_loadDocument().
bool PD_Document::setDataItemToken | ( | PD_DataItemHandle | pHandle, | |
void * | pToken | |||
) | const |
References _dataItemPair::pToken, and UT_return_val_if_fail.
void PD_Document::setDoingPaste | ( | void | ) |
References m_bDoingPaste.
Referenced by FV_View::cmdPaste(), and FV_View::pasteFromLocalTo().
void PD_Document::setDontChangeInsPoint | ( | void | ) |
References m_bAllowInsertPointChange, m_bLoading, and UT_DEBUGMSG.
Referenced by FV_View::_changeCellParams(), fl_HdrFtrSectionLayout::bl_doclistener_changeFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_changeObject(), fl_HdrFtrSectionLayout::bl_doclistener_changeSpan(), fl_HdrFtrSectionLayout::bl_doclistener_changeStrux(), fl_HdrFtrSectionLayout::bl_doclistener_deleteFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_deleteObject(), fl_HdrFtrSectionLayout::bl_doclistener_deleteSpan(), fl_HdrFtrSectionLayout::bl_doclistener_deleteStrux(), fl_HdrFtrSectionLayout::bl_doclistener_insertCell(), fl_HdrFtrSectionLayout::bl_doclistener_insertEndTable(), fl_HdrFtrSectionLayout::bl_doclistener_insertFirstBlock(), fl_HdrFtrSectionLayout::bl_doclistener_insertFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_insertObject(), fl_HdrFtrSectionLayout::bl_doclistener_insertSpan(), fl_HdrFtrSectionLayout::bl_doclistener_insertTable(), fl_HdrFtrSectionLayout::bl_doclistener_populateObject(), fl_HdrFtrSectionLayout::bl_doclistener_populateSpan(), FV_View::setDontChangeInsPoint(), FV_View::setShowPara(), and updateFields().
void PD_Document::setDontImmediatelyLayout | ( | bool | b | ) | [inline] |
Referenced by FV_View::_changeCellParams(), FV_View::_deleteSelection(), ABI_Collab_Import::_disableUpdates(), FV_View::_doPaste(), ABI_Collab_Import::_enableUpdates(), FV_View::_restoreCellParams(), ApplySemanticStylesheets(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdSplitCells(), FV_View::cmdTextToTable(), FV_View::cmdUndo(), FV_View::endDragSelection(), FL_DocLayout::fillLayouts(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), fl_DocListener::populateStrux(), and FV_View::setCellFormat().
void PD_Document::setExportAuthorAtts | ( | bool | bExport | ) |
References m_bExportAuthorAtts.
void PD_Document::setHasListStopped | ( | bool | bStop | ) | [inline] |
Referenced by StopList(), and fl_BlockLayout::StopListInBlock().
void PD_Document::setMailMergeField | ( | const std::string & | key, | |
const std::string & | value | |||
) |
void PD_Document::setMailMergeLink | ( | const char * | file | ) | [inline] |
Referenced by AP_App::openCmdLineFiles(), and AP_CocoaPlugin_Document::setDocumentMailMergeSource:.
void PD_Document::setMarginChangeOnly | ( | bool | b | ) |
References m_bMarginChangeOnly.
Referenced by fl_DocSectionLayout::_HdrFtrChangeCallback().
void PD_Document::setMarkRevisions | ( | bool | bMark | ) | [virtual] |
Reimplemented from AD_Document.
References AD_Document::isMarkRevisions(), PD_SIGNAL_REVISION_MODE_CHANGED, and signalListeners().
Referenced by IE_Imp_MsWord_97::_docProc(), Defun(), and IE_Imp_AbiWord_1::startElement().
void PD_Document::setMarkRevisionsNoNotify | ( | bool | bMark | ) | [inline] |
References AD_Document::setMarkRevisions().
void PD_Document::setMetaDataProp | ( | const std::string & | key, | |
const std::string & | value | |||
) | [virtual] |
Implements AD_Document.
References createAndSendDocPropCR(), and m_metaDataMap.
Referenced by s_AbiWord_1_Listener::_handleMetaData(), FV_View::_updateDatesBeforeSave(), cb_print_property(), changeDocPropeties(), IE_Imp_XML::charData(), IE_Imp_OPML::charData(), IE_Imp_DocBook::charData(), Defun1(), do_SetMetadata(), ODi_MetaStream_ListenerState::endElement(), IE_Imp_XHTML::endElement(), OpenWriter_MetaStream_Listener::endElement(), IE_Imp_RTF::HandleInfoMetaData(), newDocument(), ODi_MetaStream_ListenerState::ODi_MetaStream_ListenerState(), OpenWriter_MetaStream_Listener::OpenWriter_MetaStream_Listener(), IE_Imp_WordPerfect::setDocumentMetaData(), IE_Imp_XHTML::startElement(), and IE_Imp_WML::startElement().
bool PD_Document::setMinUID | ( | UT_UniqueId::idType | t, | |
UT_uint32 | i | |||
) | [inline] |
void PD_Document::setMyAuthorInt | ( | UT_sint32 | iAuthor | ) |
References m_iMyAuthorInt.
Referenced by addAuthorAttributeIfBlank(), AbiCollabSessionManager::joinSession(), and AbiCollabSessionManager::startSession().
void PD_Document::setNewFtrHeight | ( | UT_sint32 | newHeight | ) | [inline] |
Referenced by fl_DocSectionLayout::setHdrFtrHeightChange().
void PD_Document::setNewHdrHeight | ( | UT_sint32 | newHeight | ) | [inline] |
Referenced by fl_DocSectionLayout::setHdrFtrHeightChange().
bool PD_Document::setPageSizeFromFile | ( | const PP_PropertyVector & | attributes | ) |
References createAndSendDocPropCR(), m_bLoading, m_docPageSize, fp_PageSize::Set(), and UT_DEBUGMSG.
Referenced by IE_Imp_StarOffice::_loadFile(), ODi_TextContent_ListenerState::_openAbiSection(), OXML_Document::applyPageProps(), changeDocPropeties(), ODi_Style_PageLayout::definePageSizeTag(), and OpenWriter_StylesStream_Listener::startElement().
bool PD_Document::setProperties | ( | const PP_PropertyVector & | ppProps | ) |
References m_indexAP, PTC_AddFmt, and VARSET.
Referenced by IE_Imp_MsWord_97::_handleNotes(), IE_Imp_OpenDocument::_setDocumentProperties(), FV_View::cmdSave(), FV_View::cmdSaveAs(), Defun1(), s_doLangDlg(), setAttrProp(), IE_Imp_RTF::TranslateKeywordID(), and AP_Dialog_FormatFootnotes::updateDocWithValues().
void PD_Document::setRedrawHappenning | ( | bool | bIsHappening | ) | [inline] |
Referenced by FL_DocLayout::_redrawUpdate().
void PD_Document::setShowAuthors | ( | bool | bAuthors | ) |
void PD_Document::setVDNDinProgress | ( | bool | b | ) | [inline] |
Referenced by FV_VisualDragText::mouseCut().
bool PD_Document::signalListeners | ( | UT_uint32 | iSignal | ) | const |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_bIgnoreSignals, m_iUpdateCount, m_vecListeners, PD_SIGNAL_UPDATE_LAYOUT, and PL_Listener::signal().
Referenced by ABI_Collab_Import::_enableUpdates(), FV_View::_generalUpdate(), fl_DocSectionLayout::_HdrFtrChangeCallback(), ABI_Collab_Import::_import(), AP_Win32Dialog_Styles::_onCommand(), _saveAs(), AbiCollabSaveInterceptor::_saveFailed(), acceptAllRevisions(), acceptRejectRevision(), Defun(), AP_UnixDialog_Styles::event_DeleteClicked(), AP_UnixDialog_Styles::event_ModifyClicked(), forceDirty(), FV_View::insertHeaderFooter(), rejectAllHigherRevisions(), AP_Win32Dialog_Styles::runModal(), s_closeWindow(), s_doStylesDlg(), AbiCollabSaveInterceptor::save(), setAutoRevisioning(), setMarkRevisions(), ServiceAccountHandler::startSession(), and AP_Dialog_FormatFootnotes::updateDocWithValues().
void PD_Document::StopList | ( | pf_Frag_Strux * | sdh | ) |
References pf_Frag::getIndexAP(), getStruxPosition(), pf_Frag::getXID(), notifyListeners(), PX_ChangeRecord::PXT_StopList, and setHasListStopped().
Referenced by FV_View::_deleteSelection(), AP_Dialog_Lists::Apply(), IE_Imp_RTF::ApplyParagraphAttributes(), FV_View::changeListStyle(), FV_View::cmdCharDelete(), FV_View::cmdStopList(), FV_View::insertParagraphBreak(), and FV_View::setStyleAtPos().
bool PD_Document::tellListener | ( | PL_Listener * | pListener | ) |
References m_pPieceTable, pt_PieceTable::tellListener(), and UT_return_val_if_fail.
Referenced by IE_Exp_HTML::_buildStyleTree(), IE_Exp_HTML::_createChapter(), IE_Exp_HTML::_createMultipart(), IE_Exp_WordPerfect::_writeDocument(), IE_Exp_Text::_writeDocument(), IE_Exp_Psion::_writeDocument(), IE_Exp_Passepartout::_writeDocument(), IE_Exp_MsWord_97::_writeDocument(), IE_Exp_MIF::_writeDocument(), IE_Exp_Applix::_writeDocument(), IE_Exp_AbiWord_1::_writeDocument(), IE_Exp_RTF::_writeDocumentLocal(), IE_Exp_HTML_NavigationHelper::IE_Exp_HTML_NavigationHelper(), IE_Exp_OpenXML_Listener::IE_Exp_OpenXML_Listener(), IE_TOCHelper::IE_TOCHelper(), IE_Imp_XHTML::pasteFromBuffer(), IE_Imp_OpenDocument::pasteFromBuffer(), IE_Imp_EPUB::pasteFromBuffer(), IE_Imp_EPUB::readStructure(), and TFTEST_MAIN().
bool PD_Document::tellListenerSubset | ( | PL_Listener * | pListener, | |
PD_DocumentRange * | pDocRange, | |||
PL_ListenerCoupleCloser * | closer = 0 | |||
) |
References PD_DocumentRange::m_pDoc, m_pPieceTable, pt_PieceTable::tellListenerSubset(), and UT_return_val_if_fail.
Referenced by IE_Exp_HTML::_buildStyleTree(), fl_TOCLayout::_createAndFillTOCEntry(), IE_Exp_HTML::_createChapter(), IE_Exp_WordPerfect::_writeDocument(), IE_Exp_Text::_writeDocument(), IE_Exp_Passepartout::_writeDocument(), IE_Exp_MsWord_97::_writeDocument(), IE_Exp_MIF::_writeDocument(), IE_Exp_Applix::_writeDocument(), IE_Exp_AbiWord_1::_writeDocument(), IE_Exp_RTF::_writeDocumentLocal(), fl_HdrFtrSectionLayout::addPage(), IE_Exp_OpenDocument::copyToBuffer(), IE_Exp_HTML::copyToBuffer(), IE_Exp_HTML_HeaderFooterListener::doHdrFtr(), and IE_Exp_RTF::exportHdrFtr().
void PD_Document::tellPTDoNotTweakPosition | ( | bool | b | ) |
References m_pPieceTable, pt_PieceTable::setDoNotTweakPosition(), and UT_return_if_fail.
Referenced by FV_View::toggleCase().
bool PD_Document::undoCmd | ( | UT_uint32 | repeatCount | ) | [virtual] |
Implements AD_Document.
References m_pPieceTable, pt_PieceTable::undoCmd(), and undoCount().
Referenced by ABI_Collab_Import::_handleCollision(), and FV_View::cmdUndo().
UT_uint32 PD_Document::undoCount | ( | bool | bUndo | ) | const [virtual] |
References m_pPieceTable, and pt_PieceTable::undoCount().
Referenced by undoCmd(), and FV_View::undoCount().
void PD_Document::updateAllLayoutsInDoc | ( | pf_Frag_Strux * | sdh | ) |
This method updates all the layouts associated with the document.
References pf_Frag::getIndexAP(), getStruxPosition(), pf_Frag::getXID(), notifyListeners(), and PX_ChangeRecord::PXT_ChangeStrux.
void PD_Document::updateDirtyLists | ( | void | ) |
References m_mapLists, and m_vecLists.
Referenced by FV_View::_charInsert(), ABI_Collab_Import::_enableUpdates(), FV_View::_restoreCellParams(), AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdCharInsert(), FV_View::cmdCut(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdSplitCells(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUndo(), FV_View::createThisHdrFtr(), FV_FrameEdit::deleteFrame(), FV_View::endDragSelection(), FL_DocLayout::fillLayouts(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_FrameEdit::mouseRelease(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processSelectedBlocks(), FV_View::RestoreSavedPieceTableState(), FV_View::setCellFormat(), and FV_View::setStyleAtPos().
bool PD_Document::updateDocForStyleChange | ( | const gchar * | szStyle, | |
bool | isParaStyle | |||
) |
This method loops through the entire document updating each location where the style exists.
szStyle | the name of style that has changed. | |
isParaStyle | true if the style is a paragraph type. |
References gchar, pt_PieceTable::getAttrProp(), PD_Style::getBasedOn(), pf_Frag_Text::getBufIndex(), pt_VarSet::getBufIndex(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pt_PieceTable::getStyle(), pf_Frag::getType(), pt_PieceTable::getVarSet(), m_pPieceTable, notifyListeners(), PT_STYLE_ATTRIBUTE_NAME, PX_ChangeRecord::PXT_ChangeSpan, PX_ChangeRecord::PXT_ChangeStrux, UT_ASSERT_HARMLESS, and UT_return_val_if_fail.
Referenced by AP_Win32Dialog_Styles::_onCommand(), addStyleAttributes(), addStyleProperties(), AP_UnixDialog_Styles::event_ModifyClicked(), importStyles(), AP_Win32Dialog_Styles::runModal(), setAllStyleAttributes(), and AP_Dialog_Styles::updateCurrentStyle().
bool PD_Document::updateFields | ( | void | ) |
References allowChangeInsPoint(), pf_Frag::getField(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), pf_Frag::getType(), m_pPieceTable, setDontChangeInsPoint(), fd_Field::update(), and UT_return_val_if_fail.
Referenced by _importFile(), finishRawCreation(), and pt_PieceTable::undoCmd().
void PD_Document::updateStatus | ( | void | ) |
References XAP_App::getApp(), XAP_App::getLastFocussedFrame(), getStatusBar(), XAP_App::getStringSet(), XAP_StringSet::getValue(), m_iStruxCount, XAP_Frame::nullUpdate(), AP_StatusBar::setStatusMessage(), AP_StatusBar::setStatusProgressValue(), UT_UTF8String_sprintf(), and xxx_UT_DEBUGMSG.
Referenced by appendLastStruxFmt(), appendStrux(), appendStruxFmt(), and insertStruxBeforeFrag().
bool PD_Document::verifySectionID | ( | const gchar * | pszId | ) |
This method scans the document to check that the id of a header/footer section actually exists in a section somewhere in the document.
References gchar, pt_PieceTable::getAttrProp(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getNext(), PP_RevisionAttr::getNthRevision(), PP_RevisionAttr::getRevisionsCount(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by IE_Imp_AbiWord_1::startElement().
bool PD_Document::m_bAllowInsertPointChange [private] |
Referenced by allowChangeInsPoint(), getAllowChangeInsPoint(), and setDontChangeInsPoint().
bool PD_Document::m_ballowListUpdates [private] |
Referenced by areListUpdatesAllowed(), disableListUpdates(), and enableListUpdates().
bool PD_Document::m_bCoalescingMask [private] |
bool PD_Document::m_bDoingPaste [private] |
Referenced by clearDoingPaste(), isDoingPaste(), and setDoingPaste().
bool PD_Document::m_bDontImmediatelyLayout [private] |
bool PD_Document::m_bExportAuthorAtts [private] |
Referenced by isExportAuthorAtts(), and setExportAuthorAtts().
bool PD_Document::m_bHasListStopped [private] |
bool PD_Document::m_bIgnoreSignals [private] |
Referenced by signalListeners().
bool PD_Document::m_bLoading [private] |
bool PD_Document::m_bLockedStyles [private] |
Referenced by _importFile(), lockStyles(), and PD_Document().
bool PD_Document::m_bMarginChangeOnly [private] |
Referenced by isMarginChangeOnly(), and setMarginChangeOnly().
bool PD_Document::m_bRedrawHappenning [private] |
Referenced by notifyPieceTableChangeStart().
bool PD_Document::m_bShowAuthors [private] |
Referenced by setShowAuthors().
bool PD_Document::m_bVDND [private] |
Referenced by IE_Imp_MsWord_97::_beginSect(), s_RTF_ListenerWriteDoc::_getColumnWidthInches(), s_KWord_1_Listener::_handleAttributes(), s_XSL_FO_Listener::_handlePageSize(), s_KWord_1_Listener::_handlePageSize(), s_AbiWord_1_Listener::_handlePageSize(), IE_Exp_HTML_Listener::_openSection(), IE_Imp_RTF::_parseFile(), s_RTF_ListenerWriteDoc::_rtf_docfmt(), IE_Exp_Cairo::_writeDocument(), AP_Preview_Abi::AP_Preview_Abi(), convertPercentToInches(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), ODe_Style_PageLayout::fetchAttributesFromAbiDoc(), FL_DocLayout::fillLayouts(), AP_Dialog_Columns::getPageHeight(), FV_View::getPageSize(), AP_Dialog_Columns::getPageWidth(), FV_View::getTopRulerInfo(), AP_Frame::quickZoom(), s_LaTeX_Listener::s_LaTeX_Listener(), setPageSizeFromFile(), IE_Imp_KWord_1::startElement(), IE_Imp_RTF::TranslateKeywordID(), and FL_DocLayout::updateOnViewModeChange().
Referenced by _destroyDataItemData(), createDataItem(), enumDataItems(), getDataItemDataByName(), and replaceDataItem().
Referenced by _importFile(), createRawDocument(), and getDocumentRDF().
UT_sint32 PD_Document::m_iCRCounter [private] |
Referenced by getNextCRNumber().
UT_sint32 PD_Document::m_iLastAuthorInt [private] |
Referenced by addAuthorAttributeIfBlank(), and getLastAuthorInt().
UT_UCS4Char PD_Document::m_iLastDirMarker [private] |
Referenced by appendSpan(), insertSpan(), and insertSpanBeforeFrag().
UT_sint32 PD_Document::m_iMyAuthorInt [private] |
Referenced by getMyAuthorInt(), and setMyAuthorInt().
PT_AttrPropIndex PD_Document::m_indexAP [private] |
Referenced by _importFile(), createRawDocument(), getAttrProp(), newDocument(), setAttributes(), setAttrProp(), and setProperties().
UT_sint32 PD_Document::m_iNewFtrHeight [private] |
UT_sint32 PD_Document::m_iNewHdrHeight [private] |
UT_sint32 PD_Document::m_iStruxCount [private] |
Referenced by updateStatus().
UT_sint32 PD_Document::m_iUpdateCount [mutable, private] |
Referenced by notifyListeners(), and signalListeners().
PT_DocPosition PD_Document::m_iVDLastPos [private] |
Referenced by exportGetVisDirectionAtPos(), invalidateCache(), and notifyPieceTableChangeStart().
IEFileType PD_Document::m_lastOpenedType [private] |
Referenced by _importFile(), and _syncFileTypes().
IEFileType PD_Document::m_lastSavedAsType [private] |
Referenced by _save(), _saveAs(), and _syncFileTypes().
std::string PD_Document::m_mailMergeLink [private] |
std::map<std::string, std::string> PD_Document::m_mailMergeMap [private] |
Referenced by clearMailMergeMap(), getMailMergeField(), mailMergeFieldExists(), and setMailMergeField().
std::unordered_map<UT_uint32, fl_AutoNumPtr> PD_Document::m_mapLists [private] |
Referenced by addList(), appendList(), fixListHierarchy(), getListByID(), removeList(), and updateDirtyLists().
std::map<std::string, std::string> PD_Document::m_metaDataMap [private] |
Referenced by getMetaDataProp(), and setMetaDataProp().
UT_GenericVector<ImagePage *> PD_Document::m_pPendingImagePage [private] |
Referenced by addPageReferencedImage(), clearAllPendingObjects(), getNthImagePage(), and ~PD_Document().
Referenced by addPageReferencedTextbox(), clearAllPendingObjects(), getNthTextboxPage(), and ~PD_Document().
pt_PieceTable* PD_Document::m_pPieceTable [private] |
Referenced by _checkAndFixTable(), _clearUndo(), _importFile(), _pruneSectionAPI(), _removeHdrFtr(), _setClean(), acceptAllRevisions(), acceptRejectRevision(), addListener(), addStyleAttributes(), addStyleProperties(), appendFmt(), appendFmtMark(), appendLastStruxFmt(), appendObject(), appendSpan(), appendStrux(), appendStruxFmt(), appendStyle(), areDocumentContentsEqual(), areDocumentFormatsEqual(), areDocumentStylesheetsEqual(), beginUserAtomicGlob(), canDo(), changeLastStruxFmtNoUndo(), changeObjectFormatNoUpdate(), changeSpanFmt(), changeStruxAttsNoUpdate(), changeStruxFmt(), changeStruxFmtNoUndo(), changeStruxForLists(), changeStruxFormatNoUpdate(), clearIfAtFmtMark(), createAndSendCR(), createAndSendDocPropCR(), createDataItem(), createRawDocument(), deleteFmtMark(), deleteFragNoUpdate(), deleteHdrFtrStrux(), deleteSpan(), deleteStrux(), deleteStruxNoUpdate(), dumpDoc(), endUserAtomicGlob(), enumStyles(), findFirstDifferenceInContent(), findForwardStyleStrux(), findFragOfType(), findHdrFtrStrux(), findPreviousStyleStrux(), findWhereSimilarityResumes(), finishRawCreation(), fixMissingXIDs(), getAllUsedStyles(), getAttrProp(), getBlockBuf(), getBlockFromPosition(), getBounds(), getCellSDHFromRowCol(), getEmbeddedOffset(), getEndCellStruxFromCellSDH(), getEndTableStruxFromTableSDH(), getFragFromPosition(), getLastFrag(), getLastSectionMutableSDH(), getLastSectionSDH(), getLastStruxOfType(), getNextStrux(), getPointer(), getRowsColsFromTableSDH(), getSpanAttrProp(), getStruxFromPosition(), getStruxOfTypeFromPosition(), getStruxPosition(), getStyle(), getStyleCount(), getStyleFromSDH(), getTopXID(), getXID(), hasEmbedStruxOfTypeInRange(), importStyles(), insertFmtMark(), insertFmtMarkBeforeFrag(), insertObject(), insertObjectBeforeFrag(), insertSpan(), insertSpanBeforeFrag(), insertStrux(), insertStruxBeforeFrag(), insertStruxNoUpdateBefore(), isBlockAtPos(), isCellAtPos(), isDirty(), isDoingTheDo(), isEndFootnoteAtPos(), isEndFrameAtPos(), isEndTableAtPos(), isFootnoteAtPos(), isFrameAtPos(), isHdrFtrAtPos(), isInsertHyperLinkValid(), isSectionAtPos(), isTableAtPos(), isTOCAtPos(), miniDump(), newDocument(), purgeFmtMarks(), redoCmd(), rejectAllHigherRevisions(), removeListener(), removeStyle(), repairDoc(), setAllStyleAttributes(), setAttrProp(), tellListener(), tellListenerSubset(), tellPTDoNotTweakPosition(), undoCmd(), undoCount(), updateDocForStyleChange(), updateFields(), verifySectionID(), and ~PD_Document().
const fl_BlockLayout* PD_Document::m_pVDBl [private] |
fp_Run* PD_Document::m_pVDRun [private] |
std::string PD_Document::m_sUserName [private] |
Referenced by newDocument(), and PD_Document().
UT_UniqueId PD_Document::m_UID [private] |
std::vector<std::string> PD_Document::m_vBookmarkNames [private] |
Referenced by addBookmark(), isBookmarkUnique(), and removeBookmark().
UT_GenericVector<pp_Author *> PD_Document::m_vecAuthors [private] |
Referenced by addAuthor(), getAuthorByInt(), getNthAuthor(), getNumAuthors(), and ~PD_Document().
UT_GenericVector<PL_Listener *> PD_Document::m_vecListeners [private] |
std::vector<fl_AutoNumPtr> PD_Document::m_vecLists [private] |
Referenced by addList(), enumLists(), fixListHierarchy(), getListsCount(), getNthList(), removeList(), and updateDirtyLists().
UT_GenericVector<pf_Frag *> PD_Document::m_vecSuspectFrags [private] |