LibreOffice Module sw (master) 1
|
#include <docstyle.hxx>
Public Member Functions | |
SwDocStyleSheet (SwDoc &rDoc, SwDocStyleSheetPool &rPool) | |
SwDocStyleSheet (const SwDocStyleSheet &) | |
void | Reset () |
void | SetFamily (SfxStyleFamily eFam) |
bool | IsPhysical () const |
void | SetPhysical (bool bPhys) |
virtual void | SetHidden (bool bHidden) override |
virtual bool | IsHidden () const override |
void | SetGrabBagItem (const css::uno::Any &rVal) |
void | GetGrabBagItem (css::uno::Any &rVal) const |
void | SetItemSet (const SfxItemSet &rSet, const bool bBroadcast=true, const bool bResetIndentAttrsAtParagraphStyle=false) |
add optional parameter <bResetIndentAttrsAtParagraphStyle>, default value false, which indicates that the indent attributes at a paragraph style should be reset in case that a list style is applied to the paragraph style and no indent attributes are applied. More... | |
virtual SfxItemSet & | GetItemSet () override |
virtual std::optional< SfxItemSet > | GetItemSetForPreview () override |
void | MergeIndentAttrsOfListStyle (SfxItemSet &rSet) |
new method for paragraph styles to merge indent attributes of applied list style into the given item set, if the list style indent attributes are applicable. More... | |
virtual const OUString & | GetParent () const override |
virtual const OUString & | GetFollow () const override |
const OUString & | GetLink () const |
virtual sal_uLong | GetHelpId (OUString &rFile) override |
virtual void | SetHelpId (const OUString &r, sal_uLong nId) override |
void | PresetName (const OUString &rName) |
Preset the members without physical access. More... | |
void | PresetNameAndFamily (SfxStyleFamily eFamily, const OUString &rName) |
void | PresetParent (const OUString &rName) |
void | PresetFollow (const OUString &rName) |
virtual bool | SetName (const OUString &rNewName, bool bReindexNow=true) override |
virtual bool | SetParent (const OUString &rStr) override |
virtual bool | SetFollow (const OUString &rStr) override |
void | SetLink (const OUString &rStr) |
virtual bool | HasFollowSupport () const override |
virtual bool | HasParentSupport () const override |
virtual bool | HasClearParentSupport () const override |
virtual OUString | GetDescription (MapUnit eUnit) override |
virtual OUString | GetUsedBy () override |
SwCharFormat * | GetCharFormat () |
SwTextFormatColl * | GetCollection () |
SwFrameFormat * | GetFrameFormat () |
const SwPageDesc * | GetPageDesc () |
const SwNumRule * | GetNumRule () |
void | SetNumRule (const SwNumRule &rRule) |
SwTableAutoFormat * | GetTableFormat () |
virtual bool | IsUsed () const override |
Public Member Functions inherited from SfxStyleSheetBase | |
const OUString & | GetName () const |
virtual bool | SetName (const OUString &rNewName, bool bReindexNow=true) |
virtual const OUString & | GetParent () const |
virtual bool | SetParent (const OUString &) |
virtual const OUString & | GetFollow () const |
virtual bool | SetFollow (const OUString &) |
virtual bool | HasFollowSupport () const |
virtual bool | HasParentSupport () const |
virtual bool | HasClearParentSupport () const |
virtual bool | IsUsed () const |
virtual OUString | GetDescription (MapUnit eMetric) |
virtual OUString | GetUsedBy () |
SfxStyleSheetBasePool * | GetPool () |
SfxStyleFamily | GetFamily () const |
SfxStyleSearchBits | GetMask () const |
void | SetMask (SfxStyleSearchBits mask) |
bool | IsUserDefined () const |
virtual bool | IsHidden () const |
virtual void | SetHidden (bool bValue) |
virtual sal_uLong | GetHelpId (OUString &rFile) |
virtual void | SetHelpId (const OUString &r, sal_uLong nId) |
virtual SfxItemSet & | GetItemSet () |
virtual std::optional< SfxItemSet > | GetItemSetForPreview () |
virtual bool | isScStyleSheet () const |
Private Types | |
enum | FillStyleType { FillOnlyName , FillAllInfo , FillPhysical , FillPreview } |
Fill StyleSheet with data. More... | |
Private Member Functions | |
SAL_DLLPRIVATE void | Create () |
Make empty shell a real StyleSheet (Core). More... | |
SAL_DLLPRIVATE bool | FillStyleSheet (FillStyleType eFType, std::optional< SfxItemSet > *o_ppFlatSet=nullptr) |
virtual | ~SwDocStyleSheet () override |
Private Attributes | |
SwCharFormat * | m_pCharFormat |
SwTextFormatColl * | m_pColl |
SwFrameFormat * | m_pFrameFormat |
const SwPageDesc * | m_pDesc |
const SwNumRule * | m_pNumRule |
SwTableAutoFormat * | m_pTableFormat |
const SwBoxAutoFormat * | m_pBoxFormat |
SwDoc & | m_rDoc |
SfxItemSet | m_aCoreSet |
bool | m_bPhysical |
OUString | m_aLink |
Friends | |
class | SwDocStyleSheetPool |
class | SwStyleSheetIterator |
Additional Inherited Members | |
Protected Member Functions inherited from SfxStyleSheetBase | |
SfxStyleSheetBase (const OUString &, SfxStyleSheetBasePool *, SfxStyleFamily eFam, SfxStyleSearchBits mask) | |
SfxStyleSheetBase (const SfxStyleSheetBase &) | |
virtual | ~SfxStyleSheetBase () override |
Protected Attributes inherited from SfxStyleSheetBase | |
SfxStyleSheetBasePool * | m_pPool |
SfxStyleFamily | nFamily |
OUString | aName |
OUString | aParent |
OUString | aFollow |
OUString | aHelpFile |
SfxItemSet * | pSet |
SfxStyleSearchBits | nMask |
sal_uLong | nHelpId |
bool | bMySet |
bool | bHidden |
Definition at line 46 of file docstyle.hxx.
|
private |
Fill StyleSheet with data.
Enumerator | |
---|---|
FillOnlyName | |
FillAllInfo | |
FillPhysical | |
FillPreview |
Definition at line 68 of file docstyle.hxx.
|
overrideprivatevirtualdefault |
SwDocStyleSheet::SwDocStyleSheet | ( | SwDoc & | rDoc, |
SwDocStyleSheetPool & | rPool | ||
) |
Definition at line 570 of file docstyle.cxx.
References Auto, Char, SfxStyleSheetBase::nHelpId, XATTR_FILL_FIRST(), and XATTR_FILL_LAST().
|
default |
References Reset.
|
private |
Make empty shell a real StyleSheet (Core).
Definition at line 2280 of file docstyle.cxx.
References SfxStyleSheetBase::aName, SfxItemSet::ClearItem(), SwTableAutoFormatTable::FindAutoFormat(), numfunc::GetDefaultPositionAndSpaceMode(), SwDoc::GetDfltCharFormat(), SwDoc::GetDfltFrameFormat(), SwDoc::getIDocumentListsAccess(), SwDoc::GetNumRuleTable(), SwDoc::GetTableStyles(), SwDoc::GetTextFormatColls(), SwDoc::GetUniqueNumRuleName(), lcl_FindCharFormat(), lcl_FindFrameFormat(), lcl_FindNumRule(), lcl_FindPageDesc(), lcl_FindParaFormat(), lcl_FindTableStyle(), m_aCoreSet, m_bPhysical, m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, m_pTableFormat, m_rDoc, SwDoc::MakeCharFormat(), SwDoc::MakeCondTextFormatColl(), SwDoc::MakeFrameFormat(), SwDoc::MakeNumRule(), SwDoc::MakePageDesc(), SwDoc::MakeTableStyle(), SwDoc::MakeTextFormatColl(), SfxStyleSheetBase::nFamily, SfxStyleSheetBase::nMask, SAL_WARN_IF, SwFormat::SetAuto(), SwNumRule::SetAutoRule(), and SwNumRule::SetName().
|
private |
Definition at line 2038 of file docstyle.cxx.
References SfxStyleSheetBase::aHelpFile, SfxStyleSheetBase::aName, ChrFmt, COLL_DOC_BITS, COLL_EXTRA_BITS, COLL_GET_RANGE_BITS, COLL_HTML_BITS, COLL_LISTS_BITS, COLL_REGISTER_BITS, COLL_TEXT_BITS, FillAllInfo, FillPhysical, FillPreview, FrmFmt, SwDoc::GetDfltCharFormat(), SwDoc::GetDocPattern(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), SwTextFormatColl::GetLinkedCharFormat(), SwCharFormat::GetLinkedParaFormat(), SwFormat::GetName(), SwTextFormatColl::GetNextTextFormatColl(), SwFormat::GetPoolFormatId(), SwNumRule::GetPoolFormatId(), SwPageDesc::GetPoolFormatId(), SwFormat::GetPoolHelpId(), SwNumRule::GetPoolHelpId(), SwPageDesc::GetPoolHelpId(), SwFormat::GetPoolHlpFileId(), SwNumRule::GetPoolHlpFileId(), SwPageDesc::GetPoolHlpFileId(), SwStyleNameMapper::GetPoolIdFromUIName(), IDocumentState::IsModified(), SwTableAutoFormat::IsUserDefined(), lcl_DeleteInfoStyles(), lcl_FindCellStyle(), lcl_FindCharFormat(), lcl_FindFrameFormat(), lcl_FindNumRule(), lcl_FindPageDesc(), lcl_FindParaFormat(), lcl_FindTableStyle(), lcl_SaveStyles(), lcl_SwFormatToFlatItemSet(), m_aLink, m_bPhysical, m_pBoxFormat, m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, m_pTableFormat, m_rDoc, SfxStyleSheetBase::nFamily, SfxStyleSheetBase::nHelpId, NumRule, PageDesc, PresetFollow(), RES_CONDTXTFMTCOLL(), IDocumentState::ResetModified(), SfxStyleSheetBase::SetMask(), SwResId(), TxtColl, USER_FMT, and SwFormat::Which().
Referenced by GetCharFormat(), GetCollection(), GetFollow(), GetFrameFormat(), GetItemSet(), GetItemSetForPreview(), GetLink(), GetNumRule(), GetPageDesc(), GetTableFormat(), IsUsed(), SetGrabBagItem(), SetHidden(), SetItemSet(), and SetName().
SwCharFormat * SwDocStyleSheet::GetCharFormat | ( | ) |
Definition at line 2355 of file docstyle.cxx.
References FillPhysical, FillStyleSheet(), m_bPhysical, and m_pCharFormat.
Referenced by sw::ThemeColorChanger::apply(), SwDocShell::ApplyStyles(), SwDocShell::DoWaterCan(), SwDocShell::Edit(), lcl_setCharStyle(), lcl_setDropcapCharStyle(), SwDocShell::MakeByExample(), SwFormatClipboard::Paste(), and SwDocShell::UpdateStyle().
SwTextFormatColl * SwDocStyleSheet::GetCollection | ( | ) |
Definition at line 2362 of file docstyle.cxx.
References FillPhysical, FillStyleSheet(), m_bPhysical, and m_pColl.
Referenced by sw::ThemeColorChanger::apply(), SwDocShell::ApplyStyles(), SwDocShell::DoWaterCan(), SwDocShell::Edit(), SwDocShell::MakeByExample(), SwFormatClipboard::Paste(), and SwDocShell::UpdateStyle().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 984 of file docstyle.cxx.
References SfxItemSet::Get(), SfxItemIter::GetCurItem(), SfxStyleSheetBase::GetDescription(), GetItemSet(), SfxStyleSheetBasePool::GetPool(), SfxItemPool::GetPresentation(), SvtCJKOptions::IsCJKFontEnabled(), SvtCTLOptions::IsCTLFontEnabled(), IsInvalidItem(), SfxStyleSheetBase::m_pPool, SfxItemIter::NextItem(), SfxStyleSheetBase::nFamily, SfxStyleSheetBase::pSet, RES_BREAK(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_CTL_POSTURE(), RES_CHRATR_CTL_WEIGHT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_LANGUAGE(), RES_CHRATR_POSTURE(), RES_CHRATR_WEIGHT(), RES_LR_SPACE(), RES_PAGEDESC(), sModel, SwResId(), u, XATTR_FILLBITMAP(), XATTR_FILLCOLOR(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), XATTR_FILLHATCH(), XATTR_FILLSTYLE(), and XATTR_FILLTRANSPARENCE().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 883 of file docstyle.cxx.
References SfxStyleSheetBase::aFollow, FillAllInfo, FillStyleSheet(), and m_bPhysical.
SwFrameFormat * SwDocStyleSheet::GetFrameFormat | ( | ) |
Definition at line 2421 of file docstyle.cxx.
References FillPhysical, FillStyleSheet(), m_bPhysical, and m_pFrameFormat.
Referenced by sw::ThemeColorChanger::apply(), SwDocShell::ApplyStyles(), SwDocShell::DoWaterCan(), SwDocShell::Edit(), lcl_GetFrameFormat(), SwDocShell::MakeByExample(), and SwDocShell::UpdateStyle().
void SwDocStyleSheet::GetGrabBagItem | ( | css::uno::Any & | rVal | ) | const |
Definition at line 672 of file docstyle.cxx.
References SfxStyleSheetBase::aName, SwDoc::FindCharFormatByName(), SwDoc::FindNumRulePtr(), SwDoc::FindTextFormatCollByName(), SwFormat::GetGrabBagItem(), SwNumRule::GetGrabBagItem(), m_rDoc, and SfxStyleSheetBase::nFamily.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 2471 of file docstyle.cxx.
References SfxStyleSheetBase::aName, ChrFmt, FrmFmt, SwDoc::GetDocPattern(), SwFormat::GetPoolFormatId(), SwNumRule::GetPoolFormatId(), SwPageDesc::GetPoolFormatId(), SwFormat::GetPoolHelpId(), SwNumRule::GetPoolHelpId(), SwPageDesc::GetPoolHelpId(), SwFormat::GetPoolHlpFileId(), SwNumRule::GetPoolHlpFileId(), SwPageDesc::GetPoolHlpFileId(), SwStyleNameMapper::GetPoolIdFromUIName(), IsPoolUserFormat(), lcl_FindCharFormat(), lcl_FindFrameFormat(), lcl_FindNumRule(), lcl_FindPageDesc(), lcl_FindParaFormat(), m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, m_rDoc, SfxStyleSheetBase::nFamily, nId, NumRule, PageDesc, and TxtColl.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 1486 of file docstyle.cxx.
References SwFormat::DerivedFrom(), FillPhysical, FillStyleSheet(), SwFormat::GetAttrSet(), SdrModel::GetBitmapList(), SdrModel::GetColorList(), SwDoc::GetDfltFrameFormat(), IDocumentDrawModelAccess::GetDrawModel(), SdrModel::GetGradientList(), SdrModel::GetHatchList(), SwDoc::getIDocumentDrawModelAccess(), SfxItemSet::GetParent(), SdrModel::GetPatternList(), SwFormat::IsAutoUpdateOnDirectFormat(), m_aCoreSet, m_bPhysical, m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, m_rDoc, SwNumRule::MakeSvxNumRule(), MIN_BORDER_DIST, SfxStyleSheetBase::nFamily, PageDescToItemSet(), SfxStyleSheetBase::pSet, SfxItemSet::Put(), SAL_WARN_IF, SvxBoxInfoItem::SetDefDist(), SvxBoxInfoItem::SetDist(), SvxBoxInfoItem::SetMinDist(), SfxItemSet::SetParent(), SvxBoxInfoItem::SetTable(), and SvxBoxInfoItem::SetValid().
Referenced by GetDescription().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 1438 of file docstyle.cxx.
References FillPreview, FillStyleSheet(), SwDoc::getIDocumentState(), IDocumentState::IsEnableSetModified(), lcl_SwFormatToFlatItemSet(), m_bPhysical, m_pCharFormat, m_pColl, m_pFrameFormat, m_rDoc, SfxStyleSheetBase::nFamily, SAL_WARN, and IDocumentState::SetEnableSetModified().
const OUString & SwDocStyleSheet::GetLink | ( | ) | const |
Definition at line 927 of file docstyle.cxx.
References FillAllInfo, FillStyleSheet(), m_aLink, and m_bPhysical.
const SwNumRule * SwDocStyleSheet::GetNumRule | ( | ) |
Definition at line 2376 of file docstyle.cxx.
References FillPhysical, FillStyleSheet(), m_bPhysical, and m_pNumRule.
Referenced by SwDocShell::ApplyStyles(), SwDocShell::DoWaterCan(), SwDocShell::MakeByExample(), SetItemSet(), and SwDocShell::UpdateStyle().
const SwPageDesc * SwDocStyleSheet::GetPageDesc | ( | ) |
Definition at line 2369 of file docstyle.cxx.
References FillPhysical, FillStyleSheet(), m_bPhysical, and m_pDesc.
Referenced by SwDocShell::ApplyStyles(), SwDocShell::DoWaterCan(), and SwDocShell::MakeByExample().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 829 of file docstyle.cxx.
References SfxStyleSheetBase::aName, SfxStyleSheetBase::aParent, ChrFmt, SwFormat::DerivedFrom(), SwStyleNameMapper::FillUIName(), SwDoc::FindCharFormatByName(), SwDoc::FindFrameFormatByName(), SwDoc::FindTextFormatCollByName(), FrmFmt, SwStyleNameMapper::GetPoolIdFromUIName(), GetPoolParent(), i, m_bPhysical, m_rDoc, SfxStyleSheetBase::nFamily, p, sEmpty, and TxtColl.
SwTableAutoFormat * SwDocStyleSheet::GetTableFormat | ( | ) |
Definition at line 2390 of file docstyle.cxx.
References FillPhysical, FillStyleSheet(), m_bPhysical, and m_pTableFormat.
Referenced by SwDocShell::MakeByExample().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 2466 of file docstyle.cxx.
References m_pNumRule, and SwNumRule::MakeParagraphStyleListString().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 969 of file docstyle.cxx.
References SfxStyleSheetBase::nFamily.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 939 of file docstyle.cxx.
References SfxStyleSheetBase::nFamily.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 955 of file docstyle.cxx.
References SfxStyleSheetBase::nFamily.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 782 of file docstyle.cxx.
References SfxStyleSheetBase::aName, SwTableAutoFormatTable::FindAutoFormat(), SwDoc::FindCharFormatByName(), SwDoc::FindFrameFormatByName(), SwDoc::FindNumRulePtr(), SwDoc::FindPageDesc(), SwDoc::FindTextFormatCollByName(), SwDoc::GetTableStyles(), SwFormat::IsHidden(), SwNumRule::IsHidden(), SwPageDesc::IsHidden(), SwTableAutoFormat::IsHidden(), m_rDoc, and SfxStyleSheetBase::nFamily.
|
inline |
Definition at line 90 of file docstyle.hxx.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 2428 of file docstyle.cxx.
References FillOnlyName, FillStyleSheet(), SfxStyleSheetIterator::Find(), SfxStyleSheetBase::GetName(), SwDoc::IsUsed(), m_bPhysical, m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, SfxStyleSheetBase::m_pPool, m_pTableFormat, m_rDoc, and SfxStyleSheetBase::nFamily.
void SwDocStyleSheet::MergeIndentAttrsOfListStyle | ( | SfxItemSet & | rSet | ) |
new method for paragraph styles to merge indent attributes of applied list style into the given item set, if the list style indent attributes are applicable.
Definition at line 1577 of file docstyle.cxx.
References SwTextFormatColl::AreListLevelIndentsApplicable(), SwDoc::FindNumRulePtr(), SwNumRule::Get(), SvxNumberFormat::GetFirstLineIndent(), SvxNumberFormat::GetIndentAt(), SwFormat::GetItemState(), SwFormat::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), CntUnencodedStringItem::GetValue(), SvxNumberFormat::LABEL_ALIGNMENT, sw::LeftMargin, m_pColl, m_rDoc, SfxStyleSheetBase::nFamily, sw::No, SfxItemSet::Put(), RES_MARGIN_FIRSTLINE(), RES_MARGIN_TEXTLEFT(), RES_PARATR_NUMRULE(), and rSet.
|
inline |
Definition at line 122 of file docstyle.hxx.
Referenced by FillStyleSheet().
|
inline |
Preset the members without physical access.
Used by StyleSheetPool.
Definition at line 119 of file docstyle.hxx.
References aName.
void SwDocStyleSheet::PresetNameAndFamily | ( | SfxStyleFamily | eFamily, |
const OUString & | rName | ||
) |
Definition at line 2401 of file docstyle.cxx.
References SfxStyleSheetBase::nFamily.
|
inline |
Definition at line 121 of file docstyle.hxx.
Referenced by SwDocShell::Edit(), and lcl_FindCellStyle().
void SwDocStyleSheet::Reset | ( | void | ) |
Definition at line 616 of file docstyle.cxx.
References SfxStyleSheetBase::aFollow, SfxStyleSheetBase::aName, SfxStyleSheetBase::aParent, and SetPhysical().
|
inline |
Definition at line 88 of file docstyle.hxx.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 1367 of file docstyle.cxx.
References SwDoc::ChgPageDesc(), SwDoc::FindPageDesc(), SwPageDesc::GetFollow(), SwPageDesc::GetName(), SwDoc::GetPageDesc(), lcl_FindPageDesc(), lcl_FindParaFormat(), m_pColl, m_pDesc, m_rDoc, SfxStyleSheetBase::nFamily, nId, SfxStyleSheetBase::SetFollow(), SwPageDesc::SetFollow(), and SwTextFormatColl::SetNextTextFormatColl().
void SwDocStyleSheet::SetGrabBagItem | ( | const css::uno::Any & | rVal | ) |
Definition at line 624 of file docstyle.cxx.
References SfxStyleSheetBase::aName, SfxBroadcaster::Broadcast(), FillPhysical, FillStyleSheet(), SwDoc::FindCharFormatByName(), SwDoc::FindNumRulePtr(), SwDoc::FindTextFormatCollByName(), SwDoc::GetEditShell(), SwDocStyleSheetPool::InvalidateIterator(), m_bPhysical, SfxStyleSheetBase::m_pPool, m_rDoc, SfxStyleSheetBase::nFamily, SwFormat::SetGrabBagItem(), and SwNumRule::SetGrabBagItem().
|
overridevirtual |
! SFX changed over to ULONG arbitrarily!
Reimplemented from SfxStyleSheetBase.
Definition at line 2570 of file docstyle.cxx.
References m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, m_rDoc, SfxStyleSheetBase::nFamily, nId, SwDoc::SetDocPattern(), SwFormat::SetPoolHelpId(), and SwFormat::SetPoolHlpFileId().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 699 of file docstyle.cxx.
References SfxStyleSheetBase::aName, SfxBroadcaster::Broadcast(), FillPhysical, FillStyleSheet(), SwTableAutoFormatTable::FindAutoFormat(), SwDoc::FindCharFormatByName(), SwDoc::FindFrameFormatByName(), SwDoc::FindNumRulePtr(), SwDoc::FindPageDesc(), SwDoc::FindTextFormatCollByName(), SwDoc::GetEditShell(), SwDoc::GetTableStyles(), SwDocStyleSheetPool::InvalidateIterator(), m_bPhysical, SfxStyleSheetBase::m_pPool, m_rDoc, SfxStyleSheetBase::nFamily, SwTableAutoFormat::SetHidden(), SwFormat::SetHidden(), SwNumRule::SetHidden(), and SwPageDesc::SetHidden().
void SwDocStyleSheet::SetItemSet | ( | const SfxItemSet & | rSet, |
const bool | bBroadcast = true , |
||
const bool | bResetIndentAttrsAtParagraphStyle = false |
||
) |
add optional parameter <bResetIndentAttrsAtParagraphStyle>, default value false, which indicates that the indent attributes at a paragraph style should be reset in case that a list style is applied to the paragraph style and no indent attributes are applied.
Definition at line 1616 of file docstyle.cxx.
References SwRewriter::AddRule(), SwTextFormatColl::AssignToListLevelOfOutlineStyle(), SfxBroadcaster::Broadcast(), SwDoc::CheckForUniqueItemForLineFillNameOrIndex(), SwDoc::ChgFormat(), SwDoc::ChgNumRuleFormats(), SwDoc::ChgPageDesc(), SfxItemSet::ClearInvalidItems(), SfxItemSet::ClearItem(), COLL_DOC_BITS, COLL_EXTRA_BITS, COLL_GET_RANGE_BITS, COLL_HTML_BITS, COLL_LISTS_BITS, COLL_REGISTER_BITS, COLL_TEXT_BITS, COND_COMMAND_COUNT, SwDoc::CopyPageDesc(), SfxItemSet::Count(), SwTextFormatColl::DeleteAssignmentToListLevelOfOutlineStyle(), SwDoc::DelTextFormatColl(), SwFormat::DerivedFrom(), END, FillPhysical, FillStyleSheet(), SwDoc::FindNumRulePtr(), SwDoc::FindPageDesc(), FN_COND_COLL, SwTextFormatColl::GetAssignedOutlineStyleLevel(), SwCondCollItem::GetCmds(), SfxItemIter::GetCurItem(), SfxItemIter::GetCurPos(), numfunc::GetDefaultPositionAndSpaceMode(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SwFormat::GetItemState(), SfxStyleSheetBase::GetMask(), SfxStyleSheetBase::GetName(), SwFormat::GetName(), SwNumRule::GetName(), SwPageDesc::GetName(), SwTextFormatColl::GetNextTextFormatColl(), GetNumRule(), IDocumentStylePoolAccess::GetNumRuleFromPool(), SwDoc::GetPageDesc(), SwFormat::GetPoolFormatId(), SwStyleNameMapper::GetPoolIdFromUIName(), SwCondCollItem::GetStyle(), GetValue, SfxItemSet::GetWhichByPos(), i, SwConditionTextFormatColl::InsertCondition(), INSFMTATTR, SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), IsInvalidItem(), ItemSetToPageDesc(), lcl_FindParaFormat(), m_aCoreSet, m_bPhysical, m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, SfxStyleSheetBase::m_pPool, m_rDoc, SwDoc::MakeCondTextFormatColl(), SfxItemIter::NextItem(), SfxStyleSheetBase::nFamily, nId, NumRule, POOLGRP_NOCOLLID, SwDoc::PreDelPageDesc(), SwCollCondition::RegisterToFormat(), RES_CONDTXTFMTCOLL(), RES_MARGIN_FIRSTLINE(), RES_MARGIN_TEXTLEFT(), RES_PARATR_NUMRULE(), SwDoc::ResetAttrAtFormat(), rSet, SwFormat::SetAutoUpdateOnDirectFormat(), SwTextFormatColl::SetNextTextFormatColl(), SwFormat::SetPoolFormatId(), SwNumRule::SetSvxRule(), UndoArg1, SvxNumRule::UnLinkGraphics(), and SwFormat::Which().
void SwDocStyleSheet::SetLink | ( | const OUString & | rStr | ) |
Definition at line 893 of file docstyle.cxx.
References lcl_FindCharFormat(), lcl_FindParaFormat(), m_pCharFormat, m_pColl, m_rDoc, SfxStyleSheetBase::nFamily, pLink, SwTextFormatColl::SetLinkedCharFormat(), and SwCharFormat::SetLinkedParaFormat().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 1192 of file docstyle.cxx.
References SfxStyleSheetBase::aName, SfxBroadcaster::Broadcast(), SwDoc::ChgPageDesc(), FillPhysical, FillStyleSheet(), SwDoc::FindNumRulePtr(), SfxStyleSheetBasePool::First(), SwDoc::GetEditShell(), SwDoc::getIDocumentListsAccess(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), SwFormat::GetName(), SwNumRule::GetName(), SwPageDesc::GetName(), m_bPhysical, m_pCharFormat, m_pColl, m_pDesc, m_pFrameFormat, m_pNumRule, SfxStyleSheetBase::m_pPool, m_rDoc, SfxStyleSheetBase::nFamily, SwDoc::RenameFormat(), SwDoc::RenameNumRule(), SwFormat::SetFormatName(), SwFrameFormat::SetFormatName(), IDocumentState::SetModified(), SwPageDesc::SetName(), SfxStyleSheetBase::SetName(), and SetName().
Referenced by SetName().
void SwDocStyleSheet::SetNumRule | ( | const SwNumRule & | rRule | ) |
Definition at line 2384 of file docstyle.cxx.
References SwDoc::ChgNumRuleFormats(), m_pNumRule, and m_rDoc.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 1316 of file docstyle.cxx.
References SfxStyleSheetBase::aParent, SfxBroadcaster::Broadcast(), SwFormat::DerivedFrom(), SwFormat::GetName(), lcl_FindCharFormat(), lcl_FindFrameFormat(), lcl_FindParaFormat(), m_pCharFormat, m_pColl, m_pFrameFormat, SfxStyleSheetBase::m_pPool, m_rDoc, SfxStyleSheetBase::nFamily, and SwFormat::SetDerivedFrom().
void SwDocStyleSheet::SetPhysical | ( | bool | bPhys | ) |
Definition at line 2408 of file docstyle.cxx.
References m_bPhysical, m_pCharFormat, m_pColl, m_pDesc, and m_pFrameFormat.
Referenced by lcl_FindCellStyle(), and Reset().
|
friend |
Definition at line 48 of file docstyle.hxx.
|
friend |
Definition at line 49 of file docstyle.hxx.
|
private |
Definition at line 59 of file docstyle.hxx.
Referenced by Create(), GetItemSet(), and SetItemSet().
|
private |
Definition at line 62 of file docstyle.hxx.
Referenced by FillStyleSheet(), and GetLink().
|
private |
Definition at line 61 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetCharFormat(), GetCollection(), GetFollow(), GetFrameFormat(), GetItemSet(), GetItemSetForPreview(), GetLink(), GetNumRule(), GetPageDesc(), GetParent(), GetTableFormat(), IsUsed(), SetGrabBagItem(), SetHidden(), SetItemSet(), SetName(), and SetPhysical().
|
private |
Definition at line 57 of file docstyle.hxx.
Referenced by FillStyleSheet().
|
private |
Definition at line 51 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetCharFormat(), GetHelpId(), GetItemSet(), GetItemSetForPreview(), IsUsed(), SetHelpId(), SetItemSet(), SetLink(), SetName(), SetParent(), and SetPhysical().
|
private |
Definition at line 52 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetCollection(), GetHelpId(), GetItemSet(), GetItemSetForPreview(), IsUsed(), MergeIndentAttrsOfListStyle(), SetFollow(), SetHelpId(), SetItemSet(), SetLink(), SetName(), SetParent(), and SetPhysical().
|
private |
Definition at line 54 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetHelpId(), GetItemSet(), GetPageDesc(), IsUsed(), SetFollow(), SetHelpId(), SetItemSet(), SetName(), and SetPhysical().
|
private |
Definition at line 53 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetFrameFormat(), GetHelpId(), GetItemSet(), GetItemSetForPreview(), IsUsed(), SetHelpId(), SetItemSet(), SetName(), SetParent(), and SetPhysical().
|
private |
Definition at line 55 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetHelpId(), GetItemSet(), GetNumRule(), GetUsedBy(), IsUsed(), SetHelpId(), SetItemSet(), SetName(), and SetNumRule().
|
private |
Definition at line 56 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetTableFormat(), and IsUsed().
|
private |
Definition at line 58 of file docstyle.hxx.
Referenced by Create(), FillStyleSheet(), GetGrabBagItem(), GetHelpId(), GetItemSet(), GetItemSetForPreview(), GetParent(), IsHidden(), IsUsed(), MergeIndentAttrsOfListStyle(), SetFollow(), SetGrabBagItem(), SetHelpId(), SetHidden(), SetItemSet(), SetLink(), SetName(), SetNumRule(), and SetParent().