LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxDocTemplate_Impl Class Reference
Inheritance diagram for SfxDocTemplate_Impl:
[legend]
Collaboration diagram for SfxDocTemplate_Impl:
[legend]

Public Member Functions

 SfxDocTemplate_Impl ()
 
virtual ~SfxDocTemplate_Impl () override
 
void IncrementLock ()
 
void DecrementLock ()
 
bool Construct ()
 
void CreateFromHierarchy (std::unique_lock< std::mutex > &rGuard, Content &rTemplRoot)
 
void ReInitFromComponent ()
 
void AddRegion (std::unique_lock< std::mutex > &rGuard, const OUString &rTitle, Content &rContent)
 
void Rescan ()
 
void DeleteRegion (size_t nIndex)
 
size_t GetRegionCount () const
 
RegionData_Impl * GetRegion (std::u16string_view rName) const
 
RegionData_Impl * GetRegion (size_t nIndex) const
 
bool GetTitleFromURL (const OUString &rURL, OUString &aTitle)
 
bool InsertRegion (std::unique_ptr< RegionData_Impl > pData, size_t nPos)
 
const OUString & GetRootURL () const
 
const uno::Reference< XDocumentTemplates > & getDocTemplates () const
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Private Member Functions

void Clear ()
 

Private Attributes

uno::Reference< XPersist > mxInfo
 
uno::Reference< XDocumentTemplates > mxTemplates
 
std::mutex maMutex
 
OUString maRootURL
 
OUString maStandardGroup
 
std::vector< std::unique_ptr< RegionData_Impl > > maRegions
 
bool mbConstructed
 
uno::Reference< XAnyCompareFactory > m_rCompareFactory
 
sal_Int32 mnLockCounter
 

Additional Inherited Members

- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Definition at line 172 of file doctempl.cxx.

Constructor & Destructor Documentation

◆ SfxDocTemplate_Impl()

SfxDocTemplate_Impl::SfxDocTemplate_Impl ( )

Definition at line 1424 of file doctempl.cxx.

◆ ~SfxDocTemplate_Impl()

SfxDocTemplate_Impl::~SfxDocTemplate_Impl ( )
overridevirtual

Definition at line 1431 of file doctempl.cxx.

References gpTemplateData.

Member Function Documentation

◆ AddRegion()

void SfxDocTemplate_Impl::AddRegion ( std::unique_lock< std::mutex > &  rGuard,
const OUString &  rTitle,
Content rContent 
)

◆ Clear()

void SfxDocTemplate_Impl::Clear ( )
private

Definition at line 1706 of file doctempl.cxx.

References maMutex, maRegions, and mnLockCounter.

Referenced by ReInitFromComponent(), and Rescan().

◆ Construct()

bool SfxDocTemplate_Impl::Construct ( )

◆ CreateFromHierarchy()

void SfxDocTemplate_Impl::CreateFromHierarchy ( std::unique_lock< std::mutex > &  rGuard,
Content rTemplRoot 
)

◆ DecrementLock()

void SfxDocTemplate_Impl::DecrementLock ( )

Definition at line 1444 of file doctempl.cxx.

References maMutex, and mnLockCounter.

◆ DeleteRegion()

void SfxDocTemplate_Impl::DeleteRegion ( size_t  nIndex)

Definition at line 1472 of file doctempl.cxx.

References maRegions, and nIndex.

◆ getDocTemplates()

const uno::Reference< XDocumentTemplates > & SfxDocTemplate_Impl::getDocTemplates ( ) const
inline

Definition at line 219 of file doctempl.cxx.

References mxTemplates.

Referenced by ReInitFromComponent(), and Rescan().

◆ GetRegion() [1/2]

RegionData_Impl * SfxDocTemplate_Impl::GetRegion ( size_t  nIndex) const

Definition at line 1452 of file doctempl.cxx.

References maRegions, and nIndex.

◆ GetRegion() [2/2]

RegionData_Impl * SfxDocTemplate_Impl::GetRegion ( std::u16string_view  rName) const

Definition at line 1460 of file doctempl.cxx.

References maRegions, and pData.

◆ GetRegionCount()

size_t SfxDocTemplate_Impl::GetRegionCount ( ) const
inline

Definition at line 210 of file doctempl.cxx.

References maRegions.

◆ GetRootURL()

const OUString & SfxDocTemplate_Impl::GetRootURL ( ) const
inline

Definition at line 217 of file doctempl.cxx.

References maRootURL.

◆ GetTitleFromURL()

bool SfxDocTemplate_Impl::GetTitleFromURL ( const OUString &  rURL,
OUString &  aTitle 
)

◆ IncrementLock()

void SfxDocTemplate_Impl::IncrementLock ( )

Definition at line 1437 of file doctempl.cxx.

References maMutex, and mnLockCounter.

◆ InsertRegion()

bool SfxDocTemplate_Impl::InsertRegion ( std::unique_ptr< RegionData_Impl >  pData,
size_t  nPos 
)

Definition at line 1613 of file doctempl.cxx.

References maRegions, maStandardGroup, and nPos.

Referenced by AddRegion().

◆ ReInitFromComponent()

void SfxDocTemplate_Impl::ReInitFromComponent ( )

◆ Rescan()

void SfxDocTemplate_Impl::Rescan ( )

Member Data Documentation

◆ m_rCompareFactory

uno::Reference< XAnyCompareFactory > SfxDocTemplate_Impl::m_rCompareFactory
private

Definition at line 183 of file doctempl.cxx.

Referenced by AddRegion(), Construct(), and CreateFromHierarchy().

◆ maMutex

std::mutex SfxDocTemplate_Impl::maMutex
private

◆ maRegions

std::vector<std::unique_ptr<RegionData_Impl> > SfxDocTemplate_Impl::maRegions
private

Definition at line 180 of file doctempl.cxx.

Referenced by Clear(), DeleteRegion(), GetRegion(), GetRegionCount(), and InsertRegion().

◆ maRootURL

OUString SfxDocTemplate_Impl::maRootURL
private

Definition at line 178 of file doctempl.cxx.

Referenced by Construct(), and GetRootURL().

◆ maStandardGroup

OUString SfxDocTemplate_Impl::maStandardGroup
private

Definition at line 179 of file doctempl.cxx.

Referenced by Construct(), and InsertRegion().

◆ mbConstructed

bool SfxDocTemplate_Impl::mbConstructed
private

Definition at line 181 of file doctempl.cxx.

Referenced by Construct().

◆ mnLockCounter

sal_Int32 SfxDocTemplate_Impl::mnLockCounter
private

Definition at line 187 of file doctempl.cxx.

Referenced by Clear(), DecrementLock(), and IncrementLock().

◆ mxInfo

uno::Reference< XPersist > SfxDocTemplate_Impl::mxInfo
private

Definition at line 174 of file doctempl.cxx.

Referenced by Construct(), and GetTitleFromURL().

◆ mxTemplates

uno::Reference< XDocumentTemplates > SfxDocTemplate_Impl::mxTemplates
private

Definition at line 175 of file doctempl.cxx.

Referenced by Construct(), and getDocTemplates().


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