LibreOffice Module writerfilter (master) 1
|
A list of RTFSprm with a copy constructor that performs a deep copy. More...
#include <rtfsprm.hxx>
Public Types | |
using | Pointer_t = tools::SvRef< RTFSprms > |
using | Entry_t = std::pair< Id, RTFValue::Pointer_t > |
using | Iterator_t = std::vector< Entry_t >::iterator |
using | ReverseIterator_t = std::vector< Entry_t >::reverse_iterator |
Public Member Functions | |
RTFSprms () | |
~RTFSprms () override | |
RTFSprms (RTFSprms const &)=default | |
RTFSprms (RTFSprms &&)=default | |
RTFSprms & | operator= (RTFSprms const &)=default |
RTFSprms & | operator= (RTFSprms &&)=default |
RTFValue::Pointer_t | find (Id nKeyword, bool bFirst=true, bool bForWrite=false) |
void | set (Id nKeyword, const RTFValue::Pointer_t &pValue, RTFOverwrite eOverwrite=RTFOverwrite::YES) |
Does the same as ->push_back(), except that it can overwrite or ignore existing entries. More... | |
bool | erase (Id nKeyword) |
void | eraseLast (Id nKeyword) |
RTFSprms | cloneAndDeduplicate (RTFSprms &rReference, Id nStyleType, bool bImplicitPPr=false, RTFSprms *pDirect=nullptr) const |
Removes elements which are already in the reference set. More... | |
void | duplicateList (const RTFValue::Pointer_t &pAbstract) |
Inserts default values to override attributes of pAbstract. More... | |
void | deduplicateList (const std::map< int, int > &rInvalidListLevelFirstIndents) |
Removes duplicated values based on in-list properties. More... | |
std::size_t | size () const |
bool | empty () const |
Entry_t & | back () |
Iterator_t | begin () |
Iterator_t | end () |
void | clear () |
bool | equals (const RTFValue &rOther) const |
![]() | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Private Member Functions | |
void | ensureCopyBeforeWrite () |
Private Attributes | |
tools::SvRef< RTFSprmsImpl > | m_pSprms |
Additional Inherited Members | |
![]() | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
A list of RTFSprm with a copy constructor that performs a deep copy.
Definition at line 38 of file rtfsprm.hxx.
using writerfilter::rtftok::RTFSprms::Entry_t = std::pair<Id, RTFValue::Pointer_t> |
Definition at line 42 of file rtfsprm.hxx.
using writerfilter::rtftok::RTFSprms::Iterator_t = std::vector<Entry_t>::iterator |
Definition at line 43 of file rtfsprm.hxx.
Definition at line 41 of file rtfsprm.hxx.
using writerfilter::rtftok::RTFSprms::ReverseIterator_t = std::vector<Entry_t>::reverse_iterator |
Definition at line 44 of file rtfsprm.hxx.
writerfilter::rtftok::RTFSprms::RTFSprms | ( | ) |
Definition at line 457 of file rtfsprm.cxx.
|
overridedefault |
|
default |
|
default |
|
inline |
Definition at line 72 of file rtfsprm.hxx.
References m_pSprms.
|
inline |
Definition at line 73 of file rtfsprm.hxx.
References m_pSprms.
void writerfilter::rtftok::RTFSprms::clear | ( | ) |
Definition at line 464 of file rtfsprm.cxx.
References m_pSprms.
Referenced by writerfilter::rtftok::RTFDocumentImpl::beforePopState(), writerfilter::rtftok::RTFDocumentImpl::dispatchDestination(), writerfilter::rtftok::RTFDocumentImpl::dispatchSymbol(), writerfilter::rtftok::RTFDocumentImpl::dispatchValue(), writerfilter::rtftok::RTFDocumentImpl::resetAttributes(), and writerfilter::rtftok::RTFDocumentImpl::resetSprms().
RTFSprms writerfilter::rtftok::RTFSprms::cloneAndDeduplicate | ( | RTFSprms & | rReference, |
Id | nStyleType, | ||
bool | bImplicitPPr = false , |
||
RTFSprms * | pDirect = nullptr |
||
) | const |
Removes elements which are already in the reference set.
Also insert default values to override attributes of style (yes, really; that's what Word does).
bImplicitPPr | implicit dereference of top-level pPr SPRM |
pDirect | pointer to the root of the direct formatting SPRM tree, if any |
Definition at line 412 of file rtfsprm.cxx.
References writerfilter::rtftok::cloneAndDeduplicateSprm(), ensureCopyBeforeWrite(), and i.
Referenced by writerfilter::rtftok::RTFDocumentImpl::deduplicateStyleTable(), and writerfilter::rtftok::RTFDocumentImpl::getProperties().
void writerfilter::rtftok::RTFSprms::deduplicateList | ( | const std::map< int, int > & | rInvalidListLevelFirstIndents | ) |
Removes duplicated values based on in-list properties.
Definition at line 353 of file rtfsprm.cxx.
References writerfilter::rtftok::eraseNestedAttribute(), writerfilter::rtftok::getNestedAttribute(), writerfilter::rtftok::getNestedSprm(), and nParagraphValue.
Referenced by writerfilter::rtftok::RTFDocumentImpl::getProperties().
void writerfilter::rtftok::RTFSprms::duplicateList | ( | const RTFValue::Pointer_t & | pAbstract | ) |
Inserts default values to override attributes of pAbstract.
Definition at line 378 of file rtfsprm.cxx.
References writerfilter::rtftok::getDefaultSPRM(), writerfilter::rtftok::getListLevel(), writerfilter::rtftok::getNestedAttribute(), writerfilter::rtftok::getNestedSprm(), and writerfilter::rtftok::putNestedAttribute().
Referenced by writerfilter::rtftok::RTFDocumentImpl::getProperties().
|
inline |
Definition at line 71 of file rtfsprm.hxx.
References m_pSprms.
Referenced by writerfilter::rtftok::cloneAndDeduplicateSprm(), and writerfilter::rtftok::RTFDocumentImpl::resolvePict().
|
inline |
Definition at line 74 of file rtfsprm.hxx.
References m_pSprms.
|
private |
Definition at line 445 of file rtfsprm.cxx.
References m_pSprms.
Referenced by cloneAndDeduplicate(), erase(), eraseLast(), find(), and set().
bool writerfilter::rtftok::RTFSprms::equals | ( | const RTFValue & | rOther | ) | const |
Definition at line 437 of file rtfsprm.cxx.
References m_pSprms.
bool writerfilter::rtftok::RTFSprms::erase | ( | Id | nKeyword | ) |
Definition at line 136 of file rtfsprm.cxx.
References ensureCopyBeforeWrite(), i, and m_pSprms.
Referenced by writerfilter::rtftok::cloneAndDeduplicateSprm(), writerfilter::rtftok::RTFDocumentImpl::dispatchFlag(), writerfilter::rtftok::eraseNestedAttribute(), writerfilter::rtftok::RTFDocumentImpl::runProps(), and writerfilter::rtftok::RTFDocumentImpl::sectBreak().
void writerfilter::rtftok::RTFSprms::eraseLast | ( | Id | nKeyword | ) |
Definition at line 149 of file rtfsprm.cxx.
References base, ensureCopyBeforeWrite(), i, and m_pSprms.
Referenced by writerfilter::rtftok::RTFDocumentImpl::dispatchSymbol().
RTFValue::Pointer_t writerfilter::rtftok::RTFSprms::find | ( | Id | nKeyword, |
bool | bFirst = true , |
||
bool | bForWrite = false |
||
) |
Definition at line 74 of file rtfsprm.cxx.
References ensureCopyBeforeWrite(), and m_pSprms.
Referenced by writerfilter::rtftok::RTFDocumentImpl::afterPopState(), writerfilter::rtftok::RTFDocumentImpl::beforePopState(), writerfilter::rtftok::RTFDocumentImpl::checkNeedPap(), writerfilter::rtftok::cloneAndDeduplicateSprm(), writerfilter::rtftok::RTFDocumentImpl::createStyleProperties(), writerfilter::rtftok::RTFDocumentImpl::deduplicateStyleTable(), writerfilter::rtftok::RTFDocumentImpl::dispatchFlag(), writerfilter::rtftok::RTFDocumentImpl::dispatchSymbol(), writerfilter::rtftok::RTFDocumentImpl::dispatchTableValue(), writerfilter::rtftok::RTFDocumentImpl::dispatchValue(), writerfilter::rtftok::eraseNestedAttribute(), writerfilter::rtftok::getLastAttributes(), writerfilter::rtftok::getNestedAttribute(), writerfilter::rtftok::getNestedSprm(), writerfilter::rtftok::isSPRMDeduplicateDenylist(), writerfilter::rtftok::RTFDocumentImpl::popState(), writerfilter::rtftok::RTFDocumentImpl::prepareProperties(), writerfilter::rtftok::putBorderProperty(), writerfilter::rtftok::putNestedAttribute(), writerfilter::rtftok::RTFDocumentImpl::replayBuffer(), writerfilter::rtftok::RTFDocumentImpl::runProps(), writerfilter::rtftok::RTFDocumentImpl::sectBreak(), and writerfilter::rtftok::RTFDocumentImpl::text().
void writerfilter::rtftok::RTFSprms::set | ( | Id | nKeyword, |
const RTFValue::Pointer_t & | pValue, | ||
RTFOverwrite | eOverwrite = RTFOverwrite::YES |
||
) |
Does the same as ->push_back(), except that it can overwrite or ignore existing entries.
Definition at line 98 of file rtfsprm.cxx.
References ensureCopyBeforeWrite(), m_pSprms, writerfilter::rtftok::NO_APPEND, writerfilter::rtftok::NO_IGNORE, writerfilter::rtftok::YES, and writerfilter::rtftok::YES_PREPEND.
Referenced by writerfilter::rtftok::RTFDocumentImpl::afterPopState(), writerfilter::rtftok::RTFDocumentImpl::beforePopState(), writerfilter::rtftok::cloneAndDeduplicateSprm(), writerfilter::rtftok::RTFDocumentImpl::createStyleProperties(), writerfilter::rtftok::RTFDocumentImpl::dispatchCharacterSprmValue(), writerfilter::rtftok::RTFDocumentImpl::dispatchDestination(), writerfilter::rtftok::RTFDocumentImpl::dispatchFlag(), writerfilter::rtftok::RTFDocumentImpl::dispatchParagraphSprmValue(), writerfilter::rtftok::RTFDocumentImpl::dispatchSymbol(), writerfilter::rtftok::RTFDocumentImpl::dispatchTableSprmValue(), writerfilter::rtftok::RTFDocumentImpl::dispatchTableValue(), writerfilter::rtftok::RTFDocumentImpl::dispatchToggle(), writerfilter::rtftok::RTFDocumentImpl::dispatchValue(), writerfilter::rtftok::getDefaultSPRM(), writerfilter::rtftok::RTFFrame::getSprms(), writerfilter::rtftok::RTFDocumentImpl::handleEmbeddedObject(), writerfilter::rtftok::RTFDocumentImpl::handleFontTableEntry(), writerfilter::rtftok::lcl_copyFlatten(), writerfilter::rtftok::lcl_getBookmarkProperties(), writerfilter::rtftok::RTFDocumentImpl::popState(), writerfilter::rtftok::RTFDocumentImpl::prepareProperties(), writerfilter::rtftok::RTFDocumentImpl::pushState(), writerfilter::rtftok::putBorderProperty(), writerfilter::rtftok::putNestedAttribute(), writerfilter::rtftok::RTFDocumentImpl::replayBuffer(), writerfilter::rtftok::RTFDocumentImpl::resetTableRowProperties(), writerfilter::rtftok::RTFSdrImport::resolve(), writerfilter::rtftok::RTFDocumentImpl::resolvePict(), writerfilter::rtftok::RTFDocumentImpl::sectBreak(), and writerfilter::rtftok::RTFDocumentImpl::text().
|
inline |
Definition at line 70 of file rtfsprm.hxx.
References m_pSprms.
|
private |
Definition at line 80 of file rtfsprm.hxx.
Referenced by back(), begin(), clear(), empty(), end(), ensureCopyBeforeWrite(), equals(), erase(), eraseLast(), find(), set(), and size().