|
LibreOffice Module sd (master) 1
|
#include <stlpool.hxx>
Public Member Functions | |
| SdStyleSheetPool (SfxItemPool const &rPool, SdDrawDocument *pDocument) | |
| void | SetActualStyleSheet (SfxStyleSheetBase *pActStyleSheet) |
| SfxStyleSheetBase * | GetActualStyleSheet () |
| SfxStyleSheetBase * | GetTitleSheet (std::u16string_view rLayoutName) |
| void | CreateOutlineSheetList (std::u16string_view rLayoutName, std::vector< SfxStyleSheetBase * > &rOutlineStyles) |
| SD_DLLPUBLIC void | CreateLayoutStyleSheets (std::u16string_view rLayoutName, bool bCheck=false) |
| creates all layout style sheets for the given layout name if they don't exist yet. More... | |
| void | CreateLayoutSheetList (std::u16string_view rLayoutName, SdStyleSheetVector &rLayoutSheets) |
| void | CopyLayoutSheets (std::u16string_view rLayoutName, SdStyleSheetPool &rSourcePool, StyleSheetCopyResultVector &rCreatedSheets) |
| void | CopyGraphicSheets (SdStyleSheetPool &rSourcePool) |
| void | CopyCellSheets (SdStyleSheetPool &rSourcePool) |
| void | CopyTableStyles (SdStyleSheetPool const &rSourcePool) |
| void | CopyTableStyles (SdStyleSheetPool const &rSourcePool, XStyleVector &rCreatedSheets) |
| void | CopyCellSheets (SdStyleSheetPool &rSourcePool, StyleSheetCopyResultVector &rCreatedSheets) |
| void | RenameAndCopyGraphicSheets (SdStyleSheetPool &rSourcePool, StyleSheetCopyResultVector &rCreatedSheets, std::u16string_view rRenameSuffix) |
| void | CreatePseudosIfNecessary () |
| void | UpdateStdNames () |
| SdDrawDocument * | GetDoc () const |
| void | throwIfDisposed () |
| virtual OUString SAL_CALL | getImplementationName () override |
| virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
| virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
| virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
| virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
| virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
| virtual css::uno::Type SAL_CALL | getElementType () override |
| virtual sal_Bool SAL_CALL | hasElements () override |
| virtual sal_Int32 SAL_CALL | getCount () override |
| virtual css::uno::Any SAL_CALL | getByIndex (sal_Int32 Index) override |
| virtual void SAL_CALL | dispose () override |
| virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
| virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
Public Member Functions inherited from SfxListener | |
| SfxListener () | |
| SfxListener (const SfxListener &rCopy) | |
| virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
| void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
| void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
| void | EndListeningAll () |
| bool | IsListening (SfxBroadcaster &rBroadcaster) const |
| sal_uInt16 | GetBroadcasterCount () const |
| SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
| virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
| void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
| virtual bool | IsSdrView () const |
Static Public Member Functions | |
| static void | CreateLayoutSheetNames (std::u16string_view rLayoutName, std::vector< OUString > &aNameList) |
| static void | PutNumBulletItem (SfxStyleSheetBase *pSheet, vcl::Font &rBulletFont) |
| static vcl::Font | GetBulletFont () |
| static SdStyleSheetVector | CreateChildList (SdStyleSheet const *pSheet) |
| static void | setDefaultOutlineNumberFormatBulletAndIndent (sal_uInt16 i, SvxNumberFormat &rNumberFormat) |
Private Member Functions | |
| void | CopySheets (SdStyleSheetPool &rSourcePool, SfxStyleFamily eFamily) |
| void | CopySheets (SdStyleSheetPool &rSourcePool, SfxStyleFamily eFamily, StyleSheetCopyResultVector &rCreatedSheets) |
| void | CopySheets (SdStyleSheetPool &rSourcePool, SfxStyleFamily eFamily, StyleSheetCopyResultVector &rCreatedSheets, std::u16string_view rRenameSuffix) |
| virtual rtl::Reference< SfxStyleSheetBase > | Create (const OUString &rName, SfxStyleFamily eFamily, SfxStyleSearchBits nMask) override |
| virtual | ~SdStyleSheetPool () override |
| void | AddStyleFamily (const SdPage *pPage) |
| void | RemoveStyleFamily (const SdPage *pPage) |
| virtual rtl::Reference< SfxStyleSheetBase > | Create (const OUString &, SfxStyleFamily, SfxStyleSearchBits mask) override |
| virtual rtl::Reference< SfxStyleSheetBase > | Create (const OUString &, SfxStyleFamily, SfxStyleSearchBits) |
| virtual rtl::Reference< SfxStyleSheetBase > | Create (const SfxStyleSheetBase &) |
Private Attributes | |
| SfxStyleSheetBase * | mpActualStyleSheet |
| SdDrawDocument * | mpDoc |
| SdStyleFamilyRef | mxGraphicFamily |
| SdStyleFamilyRef | mxCellFamily |
| SdStyleFamilyMap | maStyleFamilyMap |
| css::uno::Reference< css::container::XNameAccess > | mxTableFamily |
| OUString | msTableFamilyName |
Friends | |
| class | SdDrawDocument |
Definition at line 49 of file stlpool.hxx.
| SdStyleSheetPool::SdStyleSheetPool | ( | SfxItemPool const & | rPool, |
| SdDrawDocument * | pDocument | ||
| ) |
Definition at line 103 of file stlpool.cxx.
References AddStyleFamily(), sdr::table::CreateTableDesignFamily(), SdDrawDocument::GetMasterSdPage(), SdDrawDocument::GetMasterSdPageCount(), mpDoc, msTableFamilyName, mxCellFamily, mxGraphicFamily, mxTableFamily, nCount, and Standard.
|
overrideprivatevirtual |
Definition at line 128 of file stlpool.cxx.
References DBG_ASSERT, and mpDoc.
|
overridevirtual |
Definition at line 1360 of file stlpool.cxx.
|
private |
Definition at line 1174 of file stlpool.cxx.
References maStyleFamilyMap.
Referenced by SdDrawDocument::InsertMasterPage(), SdDrawDocument::Merge(), and SdStyleSheetPool().
| void SdStyleSheetPool::CopyCellSheets | ( | SdStyleSheetPool & | rSourcePool | ) |
Definition at line 518 of file stlpool.cxx.
References CopySheets().
Referenced by SdDrawDocument::AllocSdDrawDocument(), SdTransferable::CreateData(), and SdDrawDocument::InsertBookmarkAsPage().
| void SdStyleSheetPool::CopyCellSheets | ( | SdStyleSheetPool & | rSourcePool, |
| StyleSheetCopyResultVector & | rCreatedSheets | ||
| ) |
Definition at line 575 of file stlpool.cxx.
References CopySheets().
| void SdStyleSheetPool::CopyGraphicSheets | ( | SdStyleSheetPool & | rSourcePool | ) |
Definition at line 513 of file stlpool.cxx.
References CopySheets().
Referenced by SdDrawDocument::AllocSdDrawDocument(), and SdTransferable::CreateData().
| void SdStyleSheetPool::CopyLayoutSheets | ( | std::u16string_view | rLayoutName, |
| SdStyleSheetPool & | rSourcePool, | ||
| StyleSheetCopyResultVector & | rCreatedSheets | ||
| ) |
Definition at line 718 of file stlpool.cxx.
References CreateLayoutSheetNames(), CreateOutlineSheetList(), DBG_ASSERT, SfxStyleSheetBase::GetHelpId(), SfxStyleSheetBase::GetItemSet(), SfxStyleSheetBase::GetName(), SfxStyleSheetBase::GetParent(), SfxItemSet::Put(), SfxStyleSheetBase::SetHelpId(), and SfxStyleSheetBase::SetParent().
Referenced by SdDrawDocument::AllocSdDrawDocument(), SdTransferable::CreateData(), SdDrawDocument::InsertBookmarkAsPage(), and sd::sidebar::DocumentHelper::ProvideStyles().
|
private |
Definition at line 585 of file stlpool.cxx.
References CopySheets().
Referenced by CopyCellSheets(), CopyGraphicSheets(), CopySheets(), and RenameAndCopyGraphicSheets().
|
private |
Definition at line 591 of file stlpool.cxx.
References CopySheets(), and u.
|
private |
Definition at line 613 of file stlpool.cxx.
References aName, DBG_ASSERT, SfxItemSet::Equals(), SfxStyleSheetBase::GetHelpId(), SfxStyleSheetBase::GetItemSet(), SfxStyleSheetBase::GetMask(), SfxStyleSheetBase::GetName(), and SfxStyleSheetBase::GetParent().
| void SdStyleSheetPool::CopyTableStyles | ( | SdStyleSheetPool const & | rSourcePool | ) |
Definition at line 523 of file stlpool.cxx.
References CopyTableStyles().
Referenced by SdDrawDocument::AllocSdDrawDocument(), CopyTableStyles(), SdTransferable::CreateData(), and SdDrawDocument::InsertBookmarkAsPage().
| void SdStyleSheetPool::CopyTableStyles | ( | SdStyleSheetPool const & | rSourcePool, |
| XStyleVector & | rCreatedSheets | ||
| ) |
Definition at line 529 of file stlpool.cxx.
References aName, Any, Exception, mxCellFamily, mxTableFamily, nIndex, sName, TOOLS_WARN_EXCEPTION, xFactory, and xTarget.
|
private |
|
private |
|
overrideprivatevirtual |
Definition at line 133 of file stlpool.cxx.
|
private |
|
static |
Definition at line 1368 of file stlpool.cxx.
Referenced by SdMoveStyleSheetsUndoAction::SdMoveStyleSheetsUndoAction().
| void SdStyleSheetPool::CreateLayoutSheetList | ( | std::u16string_view | rLayoutName, |
| SdStyleSheetVector & | rLayoutSheets | ||
| ) |
Definition at line 799 of file stlpool.cxx.
References SfxStyleSheetIterator::First(), SfxStyleSheetBase::GetName(), SfxStyleSheetIterator::Next(), and SD_LT_SEPARATOR.
|
static |
Definition at line 778 of file stlpool.cxx.
References SD_LT_SEPARATOR, STR_LAYOUT_BACKGROUND, STR_LAYOUT_BACKGROUNDOBJECTS, STR_LAYOUT_NOTES, STR_LAYOUT_OUTLINE, STR_LAYOUT_SUBTITLE, and STR_LAYOUT_TITLE.
Referenced by CopyLayoutSheets().
| void SdStyleSheetPool::CreateLayoutStyleSheets | ( | std::u16string_view | rLayoutName, |
| bool | bCheck = false |
||
| ) |
creates all layout style sheets for the given layout name if they don't exist yet.
| rLayoutName | Must be the name of a master page |
| bCheck | If set to true, the debug version will assert if a style had to be created. This is used to assert errors in documents when styles are missing. |
Definition at line 172 of file stlpool.cxx.
References aName, COL_AUTO(), COL_GRAY(), SdDrawDocument::convertFontHeightToCTL(), convertPointToMm100(), DBG_ASSERT, EE_CHAR_BKGCOLOR(), EE_CHAR_CASEMAP(), EE_CHAR_COLOR(), EE_CHAR_EMPHASISMARK(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_PAIRKERNING(), EE_CHAR_RELIEF(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_ULSPACE(), GetBulletFont(), vcl::Font::GetCharSet(), SdDrawDocument::getDefaultFonts(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SfxStyleSheetBase::GetItemSet(), SfxStyleSheetBase::GetName(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), ITALIC_NONE, LINESTYLE_NONE, makeSdrShadowColorItem(), makeSdrShadowItem(), makeSdrShadowXDistItem(), makeSdrShadowYDistItem(), makeSdrTextAutoGrowHeightItem(), mpDoc, SfxItemSet::Put(), PutNumBulletItem(), rSet, SD_LT_SEPARATOR, SDRTEXTHORZADJUST_BLOCK, SDRTEXTVERTADJUST_CENTER, vcl::Font::SetFontSize(), SfxStyleSheetBase::SetHelpId(), SfxStyleSheetBase::SetParent(), SvxLRSpaceItem::SetTextLeft(), SvxULSpaceItem::SetUpper(), STR_LAYOUT_BACKGROUND, STR_LAYOUT_BACKGROUNDOBJECTS, STR_LAYOUT_NOTES, STR_LAYOUT_OUTLINE, STR_LAYOUT_SUBTITLE, STR_LAYOUT_TITLE, STRIKEOUT_NONE, and WEIGHT_NORMAL.
Referenced by SdDrawDocument::CreateLayoutTemplates(), and SdDrawDocument::NewOrLoadCompleted().
| void SdStyleSheetPool::CreateOutlineSheetList | ( | std::u16string_view | rLayoutName, |
| std::vector< SfxStyleSheetBase * > & | rOutlineStyles | ||
| ) |
Definition at line 152 of file stlpool.cxx.
References aName, SD_LT_SEPARATOR, and STR_LAYOUT_OUTLINE.
Referenced by CopyLayoutSheets(), SdPage::EndListenOutlineText(), and SdDrawDocument::NewOrLoadCompleted().
| void SdStyleSheetPool::CreatePseudosIfNecessary | ( | ) |
Definition at line 820 of file stlpool.cxx.
References aName, SfxStyleSheetBase::GetName(), SdResId(), SfxStyleSheetBase::SetHelpId(), SfxStyleSheetBase::SetParent(), and SfxListener::StartListening().
|
overridevirtual |
Definition at line 1329 of file stlpool.cxx.
References Clear(), Exception, maStyleFamilyMap, mpDoc, mxCellFamily, mxGraphicFamily, and mxTableFamily.
|
inline |
Definition at line 56 of file stlpool.hxx.
Referenced by sd::FuSelection::MouseButtonUp().
|
static |
Definition at line 1157 of file stlpool.cxx.
References COL_AUTO(), ITALIC_NONE, LINESTYLE_NONE, vcl::Font::SetCharSet(), vcl::Font::SetColor(), vcl::Font::SetItalic(), vcl::Font::SetOutline(), vcl::Font::SetOverline(), vcl::Font::SetShadow(), vcl::Font::SetStrikeout(), vcl::Font::SetTransparent(), vcl::Font::SetUnderline(), vcl::Font::SetWeight(), STRIKEOUT_NONE, and WEIGHT_NORMAL.
Referenced by CreateLayoutStyleSheets(), SdDrawDocument::CreateLayoutTemplates(), and SdDrawDocument::SetTextDefaults().
|
overridevirtual |
Definition at line 1301 of file stlpool.cxx.
References Any, maStyleFamilyMap, mxCellFamily, mxGraphicFamily, and mxTableFamily.
|
overridevirtual |
Definition at line 1221 of file stlpool.cxx.
References aName, Any, maStyleFamilyMap, msTableFamilyName, mxCellFamily, mxGraphicFamily, mxTableFamily, and throwIfDisposed().
Referenced by SdDrawDocument::CreateDefaultCellStyles().
|
overridevirtual |
Definition at line 1294 of file stlpool.cxx.
References maStyleFamilyMap, and throwIfDisposed().
|
inline |
Definition at line 87 of file stlpool.hxx.
|
overridevirtual |
Definition at line 1242 of file stlpool.cxx.
References maStyleFamilyMap, msTableFamilyName, mxCellFamily, mxGraphicFamily, and throwIfDisposed().
|
overridevirtual |
Definition at line 1280 of file stlpool.cxx.
References cppu::UnoType< typename T >::get(), and throwIfDisposed().
|
overridevirtual |
Definition at line 1205 of file stlpool.cxx.
|
overridevirtual |
Definition at line 1215 of file stlpool.cxx.
| SfxStyleSheetBase * SdStyleSheetPool::GetTitleSheet | ( | std::u16string_view | rLayoutName | ) |
Definition at line 138 of file stlpool.cxx.
References aName, SD_LT_SEPARATOR, and STR_LAYOUT_TITLE.
Referenced by SdDrawDocument::NewOrLoadCompleted().
|
overridevirtual |
Definition at line 1261 of file stlpool.cxx.
References aName, maStyleFamilyMap, msTableFamilyName, mxCellFamily, mxGraphicFamily, and throwIfDisposed().
|
overridevirtual |
Definition at line 1287 of file stlpool.cxx.
|
static |
Definition at line 1059 of file stlpool.cxx.
References COL_AUTO(), DBG_ASSERT, EE_PARA_NUMBULLET(), SvxNumRule::GetFeatureFlags(), SfxStyleSheetBase::GetHelpId(), SfxStyleSheetBase::GetItemSet(), SvxNumRule::GetLevel(), SvxNumRule::GetLevelCount(), SvxNumBulletItem::GetNumRule(), SfxItemSet::GetPool(), SfxItemPool::GetPoolDefaultItem(), SfxItemPool::GetSecondaryPool(), i, SfxItemSet::Put(), rSet, SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetBulletColor(), SvxNumberFormat::SetBulletFont(), SvxNumberFormat::SetBulletRelSize(), setDefaultOutlineNumberFormatBulletAndIndent(), SvxNumberFormat::SetFirstLineOffset(), vcl::Font::SetFontSize(), SvxNumRule::SetLevel(), SvxNumberFormat::SetListFormat(), SvxNumberFormat::SetNumAdjust(), SvxNumberType::SetNumberingType(), SvxNumberFormat::SetStart(), SVX_MAX_NUM, and SVX_NUM_CHAR_SPECIAL.
Referenced by CreateLayoutStyleSheets(), SdDrawDocument::CreateLayoutTemplates(), and SdStyleSheet::setPropertyValue_Impl().
|
overridevirtual |
Definition at line 1364 of file stlpool.cxx.
|
private |
Definition at line 1180 of file stlpool.cxx.
References Exception, and maStyleFamilyMap.
Referenced by SdDrawDocument::RemoveMasterPage().
| void SdStyleSheetPool::RenameAndCopyGraphicSheets | ( | SdStyleSheetPool & | rSourcePool, |
| StyleSheetCopyResultVector & | rCreatedSheets, | ||
| std::u16string_view | rRenameSuffix | ||
| ) |
Definition at line 580 of file stlpool.cxx.
References CopySheets().
Referenced by SdDrawDocument::InsertBookmarkAsPage().
|
inline |
Definition at line 55 of file stlpool.hxx.
|
static |
Definition at line 1017 of file stlpool.cxx.
References i, nFirstLineOffset, SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetBulletRelSize(), and SvxNumberFormat::SetFirstLineOffset().
Referenced by sd::TextObjectBar::Execute(), and PutNumBulletItem().
|
overridevirtual |
Definition at line 1210 of file stlpool.cxx.
References ServiceName, and cppu::supportsService().
| void SdStyleSheetPool::throwIfDisposed | ( | ) |
| css::uno::RuntimeException |
Definition at line 1198 of file stlpool.cxx.
References mpDoc.
Referenced by getByName(), getCount(), getElementNames(), getElementType(), and hasByName().
| void SdStyleSheetPool::UpdateStdNames | ( | ) |
Definition at line 913 of file stlpool.cxx.
References SfxStyleSheetBase::GetFamily(), SfxStyleSheetBase::GetHelpId(), SfxStyleSheetBase::GetName(), SfxStyleSheetBase::IsUserDefined(), p, Remove, and SfxStyleSheetBase::SetName().
|
friend |
Definition at line 51 of file stlpool.hxx.
|
private |
Definition at line 137 of file stlpool.hxx.
Referenced by AddStyleFamily(), dispose(), getByIndex(), getByName(), getCount(), getElementNames(), hasByName(), and RemoveStyleFamily().
|
private |
Definition at line 133 of file stlpool.hxx.
|
private |
Definition at line 134 of file stlpool.hxx.
Referenced by CreateLayoutStyleSheets(), dispose(), SdStyleSheetPool(), throwIfDisposed(), and ~SdStyleSheetPool().
|
private |
Definition at line 139 of file stlpool.hxx.
Referenced by getByName(), getElementNames(), hasByName(), and SdStyleSheetPool().
|
private |
Definition at line 136 of file stlpool.hxx.
Referenced by CopyTableStyles(), dispose(), getByIndex(), getByName(), getElementNames(), hasByName(), and SdStyleSheetPool().
|
private |
Definition at line 135 of file stlpool.hxx.
Referenced by dispose(), getByIndex(), getByName(), getElementNames(), hasByName(), and SdStyleSheetPool().
|
private |
Definition at line 138 of file stlpool.hxx.
Referenced by CopyTableStyles(), dispose(), getByIndex(), getByName(), and SdStyleSheetPool().