LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SdStyleSheetPool Class Referencefinal

#include <stlpool.hxx>

Inheritance diagram for SdStyleSheetPool:
[legend]
Collaboration diagram for SdStyleSheetPool:
[legend]

Public Member Functions

 SdStyleSheetPool (SfxItemPool const &rPool, SdDrawDocument *pDocument)
 
void SetActualStyleSheet (SfxStyleSheetBase *pActStyleSheet)
 
SfxStyleSheetBaseGetActualStyleSheet ()
 
SfxStyleSheetBaseGetTitleSheet (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 ()
 
SdDrawDocumentGetDoc () 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
 
SfxBroadcasterGetBroadcasterJOE (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< SfxStyleSheetBaseCreate (const OUString &rName, SfxStyleFamily eFamily, SfxStyleSearchBits nMask) override
 
virtual ~SdStyleSheetPool () override
 
void AddStyleFamily (const SdPage *pPage)
 
void RemoveStyleFamily (const SdPage *pPage)
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &, SfxStyleFamily, SfxStyleSearchBits mask) override
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &, SfxStyleFamily, SfxStyleSearchBits)
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const SfxStyleSheetBase &)
 

Private Attributes

SfxStyleSheetBasempActualStyleSheet
 
SdDrawDocumentmpDoc
 
SdStyleFamilyRef mxGraphicFamily
 
SdStyleFamilyRef mxCellFamily
 
SdStyleFamilyMap maStyleFamilyMap
 
css::uno::Reference< css::container::XNameAccess > mxTableFamily
 
OUString msTableFamilyName
 

Friends

class SdDrawDocument
 

Detailed Description

Definition at line 49 of file stlpool.hxx.

Constructor & Destructor Documentation

◆ SdStyleSheetPool()

SdStyleSheetPool::SdStyleSheetPool ( SfxItemPool const &  rPool,
SdDrawDocument pDocument 
)

◆ ~SdStyleSheetPool()

SdStyleSheetPool::~SdStyleSheetPool ( )
overrideprivatevirtual

Definition at line 128 of file stlpool.cxx.

References DBG_ASSERT, and mpDoc.

Member Function Documentation

◆ addEventListener()

void SAL_CALL SdStyleSheetPool::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 1360 of file stlpool.cxx.

◆ AddStyleFamily()

void SdStyleSheetPool::AddStyleFamily ( const SdPage pPage)
private

◆ CopyCellSheets() [1/2]

void SdStyleSheetPool::CopyCellSheets ( SdStyleSheetPool rSourcePool)

◆ CopyCellSheets() [2/2]

void SdStyleSheetPool::CopyCellSheets ( SdStyleSheetPool rSourcePool,
StyleSheetCopyResultVector rCreatedSheets 
)

Definition at line 575 of file stlpool.cxx.

References CopySheets().

◆ CopyGraphicSheets()

void SdStyleSheetPool::CopyGraphicSheets ( SdStyleSheetPool rSourcePool)

Definition at line 513 of file stlpool.cxx.

References CopySheets().

Referenced by SdDrawDocument::AllocSdDrawDocument(), and SdTransferable::CreateData().

◆ CopyLayoutSheets()

void SdStyleSheetPool::CopyLayoutSheets ( std::u16string_view  rLayoutName,
SdStyleSheetPool rSourcePool,
StyleSheetCopyResultVector rCreatedSheets 
)

◆ CopySheets() [1/3]

void SdStyleSheetPool::CopySheets ( SdStyleSheetPool rSourcePool,
SfxStyleFamily  eFamily 
)
private

Definition at line 585 of file stlpool.cxx.

References CopySheets().

Referenced by CopyCellSheets(), CopyGraphicSheets(), CopySheets(), and RenameAndCopyGraphicSheets().

◆ CopySheets() [2/3]

void SdStyleSheetPool::CopySheets ( SdStyleSheetPool rSourcePool,
SfxStyleFamily  eFamily,
StyleSheetCopyResultVector rCreatedSheets 
)
private

Definition at line 591 of file stlpool.cxx.

References CopySheets(), and u.

◆ CopySheets() [3/3]

void SdStyleSheetPool::CopySheets ( SdStyleSheetPool rSourcePool,
SfxStyleFamily  eFamily,
StyleSheetCopyResultVector rCreatedSheets,
std::u16string_view  rRenameSuffix 
)
private

◆ CopyTableStyles() [1/2]

void SdStyleSheetPool::CopyTableStyles ( SdStyleSheetPool const &  rSourcePool)

◆ CopyTableStyles() [2/2]

void SdStyleSheetPool::CopyTableStyles ( SdStyleSheetPool const &  rSourcePool,
XStyleVector rCreatedSheets 
)

◆ Create() [1/4]

virtual rtl::Reference< SfxStyleSheetBase > SfxStyleSheetPool::Create ( const OUString &  ,
SfxStyleFamily  ,
SfxStyleSearchBits  mask 
)
private

◆ Create() [2/4]

virtual rtl::Reference< SfxStyleSheetBase > SfxStyleSheetPool::Create ( const OUString &  ,
SfxStyleFamily  ,
SfxStyleSearchBits   
)
private

◆ Create() [3/4]

rtl::Reference< SfxStyleSheetBase > SdStyleSheetPool::Create ( const OUString &  rName,
SfxStyleFamily  eFamily,
SfxStyleSearchBits  nMask 
)
overrideprivatevirtual

Definition at line 133 of file stlpool.cxx.

◆ Create() [4/4]

virtual rtl::Reference< SfxStyleSheetBase > SfxStyleSheetPool::Create ( const SfxStyleSheetBase )
private

◆ CreateChildList()

SdStyleSheetVector SdStyleSheetPool::CreateChildList ( SdStyleSheet const *  pSheet)
static

◆ CreateLayoutSheetList()

void SdStyleSheetPool::CreateLayoutSheetList ( std::u16string_view  rLayoutName,
SdStyleSheetVector rLayoutSheets 
)

◆ CreateLayoutSheetNames()

void SdStyleSheetPool::CreateLayoutSheetNames ( std::u16string_view  rLayoutName,
std::vector< OUString > &  aNameList 
)
static

◆ CreateLayoutStyleSheets()

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.

Parameters
rLayoutNameMust be the name of a master page
bCheckIf 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().

◆ CreateOutlineSheetList()

void SdStyleSheetPool::CreateOutlineSheetList ( std::u16string_view  rLayoutName,
std::vector< SfxStyleSheetBase * > &  rOutlineStyles 
)

◆ CreatePseudosIfNecessary()

void SdStyleSheetPool::CreatePseudosIfNecessary ( )

◆ dispose()

void SAL_CALL SdStyleSheetPool::dispose ( void  )
overridevirtual

◆ GetActualStyleSheet()

SfxStyleSheetBase * SdStyleSheetPool::GetActualStyleSheet ( )
inline

Definition at line 56 of file stlpool.hxx.

Referenced by sd::FuSelection::MouseButtonUp().

◆ GetBulletFont()

vcl::Font SdStyleSheetPool::GetBulletFont ( )
static

◆ getByIndex()

Any SAL_CALL SdStyleSheetPool::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 1301 of file stlpool.cxx.

References Any, maStyleFamilyMap, mxCellFamily, mxGraphicFamily, and mxTableFamily.

◆ getByName()

Any SAL_CALL SdStyleSheetPool::getByName ( const OUString &  aName)
overridevirtual

◆ getCount()

sal_Int32 SAL_CALL SdStyleSheetPool::getCount ( )
overridevirtual

Definition at line 1294 of file stlpool.cxx.

References maStyleFamilyMap, and throwIfDisposed().

◆ GetDoc()

SdDrawDocument * SdStyleSheetPool::GetDoc ( ) const
inline

Definition at line 87 of file stlpool.hxx.

◆ getElementNames()

Sequence< OUString > SAL_CALL SdStyleSheetPool::getElementNames ( )
overridevirtual

◆ getElementType()

Type SAL_CALL SdStyleSheetPool::getElementType ( )
overridevirtual

Definition at line 1280 of file stlpool.cxx.

References cppu::UnoType< typename T >::get(), and throwIfDisposed().

◆ getImplementationName()

OUString SAL_CALL SdStyleSheetPool::getImplementationName ( )
overridevirtual

Definition at line 1205 of file stlpool.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL SdStyleSheetPool::getSupportedServiceNames ( )
overridevirtual

Definition at line 1215 of file stlpool.cxx.

◆ GetTitleSheet()

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().

◆ hasByName()

sal_Bool SAL_CALL SdStyleSheetPool::hasByName ( const OUString &  aName)
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL SdStyleSheetPool::hasElements ( )
overridevirtual

Definition at line 1287 of file stlpool.cxx.

◆ PutNumBulletItem()

void SdStyleSheetPool::PutNumBulletItem ( SfxStyleSheetBase pSheet,
vcl::Font rBulletFont 
)
static

◆ removeEventListener()

void SAL_CALL SdStyleSheetPool::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 1364 of file stlpool.cxx.

◆ RemoveStyleFamily()

void SdStyleSheetPool::RemoveStyleFamily ( const SdPage pPage)
private

Definition at line 1180 of file stlpool.cxx.

References Exception, and maStyleFamilyMap.

Referenced by SdDrawDocument::RemoveMasterPage().

◆ RenameAndCopyGraphicSheets()

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().

◆ SetActualStyleSheet()

void SdStyleSheetPool::SetActualStyleSheet ( SfxStyleSheetBase pActStyleSheet)
inline

Definition at line 55 of file stlpool.hxx.

◆ setDefaultOutlineNumberFormatBulletAndIndent()

void SdStyleSheetPool::setDefaultOutlineNumberFormatBulletAndIndent ( sal_uInt16  i,
SvxNumberFormat rNumberFormat 
)
static

◆ supportsService()

sal_Bool SAL_CALL SdStyleSheetPool::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1210 of file stlpool.cxx.

References ServiceName, and cppu::supportsService().

◆ throwIfDisposed()

void SdStyleSheetPool::throwIfDisposed ( )
Exceptions
css::uno::RuntimeException

Definition at line 1198 of file stlpool.cxx.

References mpDoc.

Referenced by getByName(), getCount(), getElementNames(), getElementType(), and hasByName().

◆ UpdateStdNames()

void SdStyleSheetPool::UpdateStdNames ( )

Friends And Related Function Documentation

◆ SdDrawDocument

friend class SdDrawDocument
friend

Definition at line 51 of file stlpool.hxx.

Member Data Documentation

◆ maStyleFamilyMap

SdStyleFamilyMap SdStyleSheetPool::maStyleFamilyMap
private

◆ mpActualStyleSheet

SfxStyleSheetBase* SdStyleSheetPool::mpActualStyleSheet
private

Definition at line 133 of file stlpool.hxx.

◆ mpDoc

SdDrawDocument* SdStyleSheetPool::mpDoc
private

◆ msTableFamilyName

OUString SdStyleSheetPool::msTableFamilyName
private

Definition at line 139 of file stlpool.hxx.

Referenced by getByName(), getElementNames(), hasByName(), and SdStyleSheetPool().

◆ mxCellFamily

SdStyleFamilyRef SdStyleSheetPool::mxCellFamily
private

◆ mxGraphicFamily

SdStyleFamilyRef SdStyleSheetPool::mxGraphicFamily
private

◆ mxTableFamily

css::uno::Reference< css::container::XNameAccess > SdStyleSheetPool::mxTableFamily
private

Definition at line 138 of file stlpool.hxx.

Referenced by CopyTableStyles(), dispose(), getByIndex(), getByName(), and SdStyleSheetPool().


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