LibreOffice Module sfx2 (master) 1
|
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 &) | |
SvRefBase & | operator= (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 |
Definition at line 172 of file doctempl.cxx.
SfxDocTemplate_Impl::SfxDocTemplate_Impl | ( | ) |
Definition at line 1424 of file doctempl.cxx.
|
overridevirtual |
Definition at line 1431 of file doctempl.cxx.
References gpTemplateData.
void SfxDocTemplate_Impl::AddRegion | ( | std::unique_lock< std::mutex > & | rGuard, |
const OUString & | rTitle, | ||
Content & | rContent | ||
) |
Definition at line 1485 of file doctempl.cxx.
References Exception, INCLUDE_DOCUMENTS_ONLY, InsertRegion(), m_rCompareFactory, TARGET_URL, and TITLE.
Referenced by CreateFromHierarchy().
|
private |
Definition at line 1706 of file doctempl.cxx.
References maMutex, maRegions, and mnLockCounter.
Referenced by ReInitFromComponent(), and Rescan().
bool SfxDocTemplate_Impl::Construct | ( | ) |
Definition at line 1563 of file doctempl.cxx.
References Content, CreateFromHierarchy(), DocTemplLocaleHelper::GetStandardGroupString(), m_rCompareFactory, maMutex, maRootURL, maStandardGroup, mbConstructed, mxInfo, and mxTemplates.
void SfxDocTemplate_Impl::CreateFromHierarchy | ( | std::unique_lock< std::mutex > & | rGuard, |
Content & | rTemplRoot | ||
) |
Definition at line 1522 of file doctempl.cxx.
References AddRegion(), Content, Exception, comphelper::getProcessComponentContext(), INCLUDE_FOLDERS_ONLY, m_rCompareFactory, and TITLE.
Referenced by Construct(), ReInitFromComponent(), and Rescan().
void SfxDocTemplate_Impl::DecrementLock | ( | ) |
Definition at line 1444 of file doctempl.cxx.
References maMutex, and mnLockCounter.
void SfxDocTemplate_Impl::DeleteRegion | ( | size_t | nIndex | ) |
Definition at line 1472 of file doctempl.cxx.
|
inline |
Definition at line 219 of file doctempl.cxx.
References mxTemplates.
Referenced by ReInitFromComponent(), and Rescan().
RegionData_Impl * SfxDocTemplate_Impl::GetRegion | ( | size_t | nIndex | ) | const |
Definition at line 1452 of file doctempl.cxx.
RegionData_Impl * SfxDocTemplate_Impl::GetRegion | ( | std::u16string_view | rName | ) | const |
Definition at line 1460 of file doctempl.cxx.
|
inline |
Definition at line 210 of file doctempl.cxx.
References maRegions.
|
inline |
Definition at line 217 of file doctempl.cxx.
References maRootURL.
bool SfxDocTemplate_Impl::GetTitleFromURL | ( | const OUString & | rURL, |
OUString & | aTitle | ||
) |
Definition at line 1664 of file doctempl.cxx.
References Any, aURL, Exception, INetURLObject::LAST_SEGMENT, mxInfo, TITLE, and INetURLObject::WithCharset.
void SfxDocTemplate_Impl::IncrementLock | ( | ) |
Definition at line 1437 of file doctempl.cxx.
References maMutex, and mnLockCounter.
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().
void SfxDocTemplate_Impl::ReInitFromComponent | ( | ) |
Definition at line 1598 of file doctempl.cxx.
References Clear(), Content, CreateFromHierarchy(), getDocTemplates(), comphelper::getProcessComponentContext(), and maMutex.
void SfxDocTemplate_Impl::Rescan | ( | ) |
Definition at line 1637 of file doctempl.cxx.
References Clear(), Content, CreateFromHierarchy(), DBG_ASSERT, Exception, getDocTemplates(), comphelper::getProcessComponentContext(), maMutex, and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 183 of file doctempl.cxx.
Referenced by AddRegion(), Construct(), and CreateFromHierarchy().
|
private |
Definition at line 177 of file doctempl.cxx.
Referenced by Clear(), Construct(), DecrementLock(), IncrementLock(), ReInitFromComponent(), and Rescan().
|
private |
Definition at line 180 of file doctempl.cxx.
Referenced by Clear(), DeleteRegion(), GetRegion(), GetRegionCount(), and InsertRegion().
|
private |
Definition at line 178 of file doctempl.cxx.
Referenced by Construct(), and GetRootURL().
|
private |
Definition at line 179 of file doctempl.cxx.
Referenced by Construct(), and InsertRegion().
|
private |
Definition at line 181 of file doctempl.cxx.
Referenced by Construct().
|
private |
Definition at line 187 of file doctempl.cxx.
Referenced by Clear(), DecrementLock(), and IncrementLock().
|
private |
Definition at line 174 of file doctempl.cxx.
Referenced by Construct(), and GetTitleFromURL().
|
private |
Definition at line 175 of file doctempl.cxx.
Referenced by Construct(), and getDocTemplates().