LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::DocumentStylePoolManager Class Reference

#include <DocumentStylePoolManager.hxx>

Inheritance diagram for sw::DocumentStylePoolManager:
[legend]
Collaboration diagram for sw::DocumentStylePoolManager:
[legend]

Public Member Functions

 DocumentStylePoolManager (SwDoc &i_rSwdoc)
 
virtual SwTextFormatCollGetTextCollFromPool (sal_uInt16 nId, bool bRegardLanguage=true) override
 Return "Auto-Collection with ID. More...
 
virtual SwFormatGetFormatFromPool (sal_uInt16 nId) override
 Return the AutomaticFormat with the supplied Id. More...
 
virtual SwFrameFormatGetFrameFormatFromPool (sal_uInt16 nId) override
 Return required automatic format. More...
 
virtual SwCharFormatGetCharFormatFromPool (sal_uInt16 nId) override
 
virtual SwPageDescGetPageDescFromPool (sal_uInt16 nId, bool bRegardLanguage=true) override
 Return required automatic page style. More...
 
virtual SwNumRuleGetNumRuleFromPool (sal_uInt16 nId) override
 
virtual bool IsPoolTextCollUsed (sal_uInt16 nId) const override
 Check if this AutoCollection is already/still in use in this Document. More...
 
virtual bool IsPoolFormatUsed (sal_uInt16 nId) const override
 Check if this AutoCollection is already/still in use. More...
 
virtual bool IsPoolPageDescUsed (sal_uInt16 nId) const override
 Check if this AutoCollection is already/still in use in this Document. More...
 
virtual ~DocumentStylePoolManager () override
 

Private Member Functions

 DocumentStylePoolManager (DocumentStylePoolManager const &)=delete
 
DocumentStylePoolManageroperator= (DocumentStylePoolManager const &)=delete
 

Private Attributes

SwDocm_rDoc
 

Additional Inherited Members

- Protected Member Functions inherited from IDocumentStylePoolAccess
virtual ~IDocumentStylePoolAccess ()
 

Detailed Description

Definition at line 29 of file DocumentStylePoolManager.hxx.

Constructor & Destructor Documentation

sw::DocumentStylePoolManager::DocumentStylePoolManager ( SwDoc i_rSwdoc)

Definition at line 569 of file DocumentStylePoolManager.cxx.

sw::DocumentStylePoolManager::~DocumentStylePoolManager ( )
overridevirtual

Definition at line 2527 of file DocumentStylePoolManager.cxx.

sw::DocumentStylePoolManager::DocumentStylePoolManager ( DocumentStylePoolManager const &  )
privatedelete

Member Function Documentation

SwCharFormat * sw::DocumentStylePoolManager::GetCharFormatFromPool ( sal_uInt16  nId)
overridevirtual

Implements IDocumentStylePoolAccess.

Definition at line 1673 of file DocumentStylePoolManager.cxx.

References GetFormatFromPool().

Referenced by GetNumRuleFromPool().

SwFormat * sw::DocumentStylePoolManager::GetFormatFromPool ( sal_uInt16  nId)
overridevirtual

Return the AutomaticFormat with the supplied Id.

If it doesn't exist, create it.

Implements IDocumentStylePoolAccess.

Definition at line 1395 of file DocumentStylePoolManager.cxx.

References aCharFormatSetRange, aFrameFormatSetRange, ATT_MIN_SIZE, CM_05, CM_1, COL_BLACK(), COL_BLUE(), COL_CYAN(), COL_RED(), COLL_GET_RANGE_BITS, DEF_LINE_WIDTH_0, DFLT_ESC_AUTO_SUPER, sw::DocumentSettingManager::get(), SwDoc::GetAttrPool(), SwDoc::GetCharFormats(), vcl::Font::GetCharSet(), numfunc::GetDefBulletFont(), GetDfltAttr(), SwDoc::GetDfltCharFormat(), SwDoc::GetDfltFrameFormat(), SwDoc::GetDocumentSettingManager(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SwDoc::GetFrameFormats(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), GetMetricVal(), vcl::Font::GetPitch(), SwDoc::GetSpzFrameFormats(), vcl::Font::GetStyleName(), HTML_MODE, IDocumentState::IsModified(), ITALIC_NORMAL, LANGUAGE_NONE, LEFT, LINESTYLE_DOTTED, LINESTYLE_NONE, LINESTYLE_SINGLE, m_rDoc, SwDoc::MakeCharFormat_(), SwDoc::MakeFrameFormat_(), MM50, POOLGRP_CHARFMT, POOLGRP_FRAMEFMT, POOLGRP_NOCOLLID, RES_BOX, RES_CHRATR_CASEMAP, RES_CHRATR_CJK_FONTSIZE, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_COLOR, RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_EMPHASIS_MARK, RES_CHRATR_ESCAPEMENT, RES_CHRATR_FONT, RES_CHRATR_FONTSIZE, RES_CHRATR_LANGUAGE, RES_CHRATR_POSTURE, RES_CHRATR_ROTATE, RES_CHRATR_UNDERLINE, RES_CHRATR_WEIGHT, RES_LR_SPACE, RES_OPAQUE, RES_POOLCHR_BEGIN, RES_POOLCHR_BUL_LEVEL, RES_POOLCHR_DROPCAPS, RES_POOLCHR_ENDNOTE, RES_POOLCHR_ENDNOTE_ANCHOR, RES_POOLCHR_FOOTNOTE, RES_POOLCHR_FOOTNOTE_ANCHOR, RES_POOLCHR_HTML_BEGIN, RES_POOLCHR_HTML_CITIATION, RES_POOLCHR_HTML_CODE, RES_POOLCHR_HTML_EMPHASIS, RES_POOLCHR_HTML_END, RES_POOLCHR_HTML_KEYBOARD, RES_POOLCHR_HTML_SAMPLE, RES_POOLCHR_HTML_STRONG, RES_POOLCHR_HTML_TELETYPE, RES_POOLCHR_HTML_VARIABLE, RES_POOLCHR_IDX_MAIN_ENTRY, RES_POOLCHR_INET_NORMAL, RES_POOLCHR_INET_VISIT, RES_POOLCHR_JUMPEDIT, RES_POOLCHR_LABEL, RES_POOLCHR_LINENUM, RES_POOLCHR_NORMAL_BEGIN, RES_POOLCHR_NORMAL_END, RES_POOLCHR_NUM_LEVEL, RES_POOLCHR_PAGENO, RES_POOLCHR_RUBYTEXT, RES_POOLCHR_TOXJUMP, RES_POOLCHR_VERT_NUM, RES_POOLFRM_BEGIN, RES_POOLFRM_END, RES_POOLFRM_FORMEL, RES_POOLFRM_FRAME, RES_POOLFRM_GRAPHIC, RES_POOLFRM_LABEL, RES_POOLFRM_MARGINAL, RES_POOLFRM_OLE, RES_POOLFRM_WATERSIGN, RES_PROTECT, RES_UL_SPACE, IDocumentState::ResetModified(), SvxBoxItem::SetAllDistances(), SetAllScriptItem(), SwFormat::SetAuto(), SwFormat::SetAutoUpdateFormat(), SwFormat::SetFormatAttr(), SvxBoxItem::SetLine(), SwFormat::SetPoolFormatId(), SvxProtectItem::SetPosProtect(), SvxProtectItem::SetSizeProtect(), SwResId(), TOP, WEIGHT_BOLD, and XATTR_FILLSTYLE.

Referenced by GetCharFormatFromPool(), and GetFrameFormatFromPool().

SwFrameFormat * sw::DocumentStylePoolManager::GetFrameFormatFromPool ( sal_uInt16  nId)
overridevirtual

Return required automatic format.

Implements IDocumentStylePoolAccess.

Definition at line 1668 of file DocumentStylePoolManager.cxx.

References GetFormatFromPool().

SwNumRule * sw::DocumentStylePoolManager::GetNumRuleFromPool ( sal_uInt16  nId)
overridevirtual

Implements IDocumentStylePoolAccess.

Definition at line 1851 of file DocumentStylePoolManager.cxx.

References cBulletChar, CM_01, CM_1, GetCharFormatFromPool(), numfunc::GetDefaultPositionAndSpaceMode(), numfunc::GetDefBulletFont(), SwDoc::getIDocumentState(), GetMetricVal(), SwDoc::GetNumRuleTable(), IDocumentState::IsModified(), SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LABEL_WIDTH_AND_POSITION, SvxNumberFormat::LISTTAB, m_rDoc, SwDoc::MakeNumRule(), MAXLEVEL, nPos, RES_POOLCHR_NUM_LEVEL, RES_POOLNUMRULE_BEGIN, RES_POOLNUMRULE_BUL1, RES_POOLNUMRULE_BUL2, RES_POOLNUMRULE_BUL3, RES_POOLNUMRULE_BUL4, RES_POOLNUMRULE_BUL5, RES_POOLNUMRULE_END, RES_POOLNUMRULE_NUM1, RES_POOLNUMRULE_NUM2, RES_POOLNUMRULE_NUM3, RES_POOLNUMRULE_NUM4, RES_POOLNUMRULE_NUM5, IDocumentState::ResetModified(), SAL_N_ELEMENTS, SwNumRule::Set(), SvxNumberFormat::SetAbsLSpace(), SwNumRule::SetAutoRule(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetBulletFont(), SwNumFormat::SetCharFormat(), SvxNumberFormat::SetFirstLineIndent(), SvxNumberFormat::SetFirstLineOffset(), SvxNumberFormat::SetIncludeUpperLevels(), SvxNumberFormat::SetIndentAt(), SvxNumberFormat::SetLabelFollowedBy(), SvxNumberFormat::SetListtabPos(), SvxNumberFormat::SetNumAdjust(), SvxNumberType::SetNumberingType(), SwNumRule::SetPoolFormatId(), SvxNumberFormat::SetPositionAndSpaceMode(), SvxNumberFormat::SetStart(), SvxNumberFormat::SetSuffix(), SwVectorModifyBase< Value >::size(), SvxNumberFormat::SPACE, SVX_NUM_ARABIC, SVX_NUM_CHAR_SPECIAL, SVX_NUM_CHARS_LOWER_LETTER, SVX_NUM_CHARS_UPPER_LETTER, SVX_NUM_ROMAN_LOWER, SVX_NUM_ROMAN_UPPER, SwResId(), and u.

SwPageDesc * sw::DocumentStylePoolManager::GetPageDescFromPool ( sal_uInt16  nId,
bool  bRegardLanguage = true 
)
overridevirtual
SwTextFormatColl * sw::DocumentStylePoolManager::GetTextCollFromPool ( sal_uInt16  nId,
bool  bRegardLanguage = true 
)
overridevirtual

Return "Auto-Collection with ID.

Create, if it does not yet exist. If string pointer is defined request only description of attributes, do not create style sheet!

Implements IDocumentStylePoolAccess.

Definition at line 573 of file DocumentStylePoolManager.cxx.

References aTextFormatCollSetRange, SvxULSpaceItem::Clone(), SvxLRSpaceItem::Clone(), CM_01, CM_05, CM_1, COL_GRAY(), sw::DocumentSettingManager::get(), GetAppLanguage(), SwTextFormatColl::GetAssignedOutlineStyleLevel(), SwDoc::GetAttrPool(), SwNumRule::GetBullIndent(), vcl::Font::GetCharSet(), SwDoc::GetDefault(), OutputDevice::GetDefaultFont(), GetDefaultFrameDirection(), SwDoc::GetDfltTextFormatColl(), SwDoc::GetDocumentSettingManager(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SwLangHelper::GetLanguage(), SwFormat::GetLRSpace(), GetMetricVal(), SwNumRule::GetNumIndent(), vcl::Font::GetPitch(), GetPoolParent(), SwDoc::GetTextFormatColls(), SwFormat::GetULSpace(), HTML_MODE, HTML_PARSPACE, i, SvxTabStopItem::Insert(), SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), IsConditionalByPoolId(), ITALIC_NORMAL, LANGUAGE_ARABIC_SAUDI_ARABIA, LANGUAGE_DONTKNOW, LANGUAGE_ENGLISH_US, LANGUAGE_KOREAN, lBullFirstLineOffset, LINE_SPACE_DEFAULT_HEIGHT, lNumFirstLineOffset, m_rDoc, SwVectorModifyBase< Value >::push_back(), RES_BOX, RES_CHRATR_CJK_FONT, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_FONT, RES_CHRATR_FONTSIZE, RES_CHRATR_LANGUAGE, RES_CHRATR_POSTURE, RES_CHRATR_WEIGHT, RES_KEEP, RES_LR_SPACE, RES_PARATR_ADJUST, RES_PARATR_LINESPACING, RES_PARATR_SCRIPTSPACE, RES_PARATR_TABSTOP, RES_POOLCOLL_BUL_LEVEL1, RES_POOLCOLL_BUL_LEVEL1E, RES_POOLCOLL_BUL_LEVEL1S, RES_POOLCOLL_BUL_LEVEL2, RES_POOLCOLL_BUL_LEVEL2E, RES_POOLCOLL_BUL_LEVEL2S, RES_POOLCOLL_BUL_LEVEL3, RES_POOLCOLL_BUL_LEVEL3E, RES_POOLCOLL_BUL_LEVEL3S, RES_POOLCOLL_BUL_LEVEL4, RES_POOLCOLL_BUL_LEVEL4E, RES_POOLCOLL_BUL_LEVEL4S, RES_POOLCOLL_BUL_LEVEL5, RES_POOLCOLL_BUL_LEVEL5E, RES_POOLCOLL_BUL_LEVEL5S, RES_POOLCOLL_BUL_NONUM1, RES_POOLCOLL_BUL_NONUM2, RES_POOLCOLL_BUL_NONUM3, RES_POOLCOLL_BUL_NONUM4, RES_POOLCOLL_BUL_NONUM5, RES_POOLCOLL_CONFRONTATION, RES_POOLCOLL_DOC_BEGIN, RES_POOLCOLL_DOC_END, RES_POOLCOLL_DOC_SUBTITEL, RES_POOLCOLL_DOC_TITEL, RES_POOLCOLL_ENDNOTE, RES_POOLCOLL_EXTRA_BEGIN, RES_POOLCOLL_EXTRA_END, RES_POOLCOLL_FOOTER, RES_POOLCOLL_FOOTERL, RES_POOLCOLL_FOOTERR, RES_POOLCOLL_FOOTNOTE, RES_POOLCOLL_FRAME, RES_POOLCOLL_GREETING, RES_POOLCOLL_HEADER, RES_POOLCOLL_HEADERFOOTER, RES_POOLCOLL_HEADERL, RES_POOLCOLL_HEADERR, RES_POOLCOLL_HEADLINE1, RES_POOLCOLL_HEADLINE10, RES_POOLCOLL_HEADLINE2, RES_POOLCOLL_HEADLINE3, RES_POOLCOLL_HEADLINE4, RES_POOLCOLL_HEADLINE5, RES_POOLCOLL_HEADLINE6, RES_POOLCOLL_HEADLINE7, RES_POOLCOLL_HEADLINE8, RES_POOLCOLL_HEADLINE9, RES_POOLCOLL_HEADLINE_BASE, RES_POOLCOLL_HTML_BEGIN, RES_POOLCOLL_HTML_BLOCKQUOTE, RES_POOLCOLL_HTML_DD, RES_POOLCOLL_HTML_DT, RES_POOLCOLL_HTML_END, RES_POOLCOLL_HTML_HR, RES_POOLCOLL_HTML_PRE, RES_POOLCOLL_JAKETADRESS, RES_POOLCOLL_LABEL, RES_POOLCOLL_LABEL_ABB, RES_POOLCOLL_LABEL_DRAWING, RES_POOLCOLL_LABEL_FIGURE, RES_POOLCOLL_LABEL_FRAME, RES_POOLCOLL_LABEL_TABLE, RES_POOLCOLL_LISTS_BEGIN, RES_POOLCOLL_LISTS_END, RES_POOLCOLL_MARGINAL, RES_POOLCOLL_NUM_LEVEL1, RES_POOLCOLL_NUM_LEVEL1E, RES_POOLCOLL_NUM_LEVEL1S, RES_POOLCOLL_NUM_LEVEL2, RES_POOLCOLL_NUM_LEVEL2E, RES_POOLCOLL_NUM_LEVEL2S, RES_POOLCOLL_NUM_LEVEL3, RES_POOLCOLL_NUM_LEVEL3E, RES_POOLCOLL_NUM_LEVEL3S, RES_POOLCOLL_NUM_LEVEL4, RES_POOLCOLL_NUM_LEVEL4E, RES_POOLCOLL_NUM_LEVEL4S, RES_POOLCOLL_NUM_LEVEL5, RES_POOLCOLL_NUM_LEVEL5E, RES_POOLCOLL_NUM_LEVEL5S, RES_POOLCOLL_NUM_NONUM1, RES_POOLCOLL_NUM_NONUM2, RES_POOLCOLL_NUM_NONUM3, RES_POOLCOLL_NUM_NONUM4, RES_POOLCOLL_NUM_NONUM5, RES_POOLCOLL_NUMBUL_BASE, RES_POOLCOLL_REGISTER_BASE, RES_POOLCOLL_REGISTER_BEGIN, RES_POOLCOLL_REGISTER_END, RES_POOLCOLL_SENDADRESS, RES_POOLCOLL_SIGNATURE, RES_POOLCOLL_STANDARD, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, RES_POOLCOLL_TEXT, RES_POOLCOLL_TEXT_BEGIN, RES_POOLCOLL_TEXT_END, RES_POOLCOLL_TEXT_IDENT, RES_POOLCOLL_TEXT_MOVE, RES_POOLCOLL_TEXT_NEGIDENT, RES_POOLCOLL_TOX_AUTHORITIES1, RES_POOLCOLL_TOX_AUTHORITIESH, RES_POOLCOLL_TOX_CNTNT1, RES_POOLCOLL_TOX_CNTNT10, RES_POOLCOLL_TOX_CNTNT2, RES_POOLCOLL_TOX_CNTNT3, RES_POOLCOLL_TOX_CNTNT4, RES_POOLCOLL_TOX_CNTNT5, RES_POOLCOLL_TOX_CNTNT6, RES_POOLCOLL_TOX_CNTNT7, RES_POOLCOLL_TOX_CNTNT8, RES_POOLCOLL_TOX_CNTNT9, RES_POOLCOLL_TOX_CNTNTH, RES_POOLCOLL_TOX_IDX1, RES_POOLCOLL_TOX_IDX2, RES_POOLCOLL_TOX_IDX3, RES_POOLCOLL_TOX_IDXBREAK, RES_POOLCOLL_TOX_IDXH, RES_POOLCOLL_TOX_ILLUS1, RES_POOLCOLL_TOX_ILLUSH, RES_POOLCOLL_TOX_OBJECT1, RES_POOLCOLL_TOX_OBJECTH, RES_POOLCOLL_TOX_TABLES1, RES_POOLCOLL_TOX_TABLESH, RES_POOLCOLL_TOX_USER1, RES_POOLCOLL_TOX_USER10, RES_POOLCOLL_TOX_USER2, RES_POOLCOLL_TOX_USER3, RES_POOLCOLL_TOX_USER4, RES_POOLCOLL_TOX_USER5, RES_POOLCOLL_TOX_USER6, RES_POOLCOLL_TOX_USER7, RES_POOLCOLL_TOX_USER8, RES_POOLCOLL_TOX_USER9, RES_POOLCOLL_TOX_USERH, RES_UL_SPACE, SAL_N_ELEMENTS, SetAllScriptItem(), SwFormatLineNumber::SetCountLines(), SwTextFormatColl::SetFormatAttr(), SvxLRSpaceItem::SetLeft(), SvxBoxItem::SetLine(), SvxULSpaceItem::SetLower(), SwTextFormatColl::SetNextTextFormatColl(), SwFormat::SetPoolFormatId(), SvxLineSpacingItem::SetPropLineSpace(), SvxLRSpaceItem::SetRight(), SvxLRSpaceItem::SetTextFirstLineOfst(), SvxLRSpaceItem::SetTextLeft(), SvxULSpaceItem::SetUpper(), SwVectorModifyBase< Value >::size(), STR_POOLCOLL_EXTRA_ARY, STYLES_NODEFAULT, SwResId(), and WEIGHT_BOLD.

bool sw::DocumentStylePoolManager::IsPoolFormatUsed ( sal_uInt16  nId) const
overridevirtual
bool sw::DocumentStylePoolManager::IsPoolPageDescUsed ( sal_uInt16  nId) const
overridevirtual
bool sw::DocumentStylePoolManager::IsPoolTextCollUsed ( sal_uInt16  nId) const
overridevirtual
DocumentStylePoolManager& sw::DocumentStylePoolManager::operator= ( DocumentStylePoolManager const &  )
privatedelete

Member Data Documentation

SwDoc& sw::DocumentStylePoolManager::m_rDoc
private

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