LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScDocumentPool Class Referencefinal

#include <docpool.hxx>

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

Public Member Functions

 ScDocumentPool ()
 
virtual rtl::Reference< SfxItemPoolClone () const override
 
virtual MapUnit GetMetric (sal_uInt16 nWhich) const override
 
void StyleDeleted (const ScStyleSheet *pStyle)
 
void CellStyleCreated (std::u16string_view rName, const ScDocument &rDoc)
 
virtual bool GetPresentation (const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntl) const override
 
- Public Member Functions inherited from SfxItemPool
void FillItemIdRanges_Impl (WhichRangesContainer &pWhichRanges) const
 
const WhichRangesContainerGetFrozenIdRanges () const
 
 SfxItemPool (const SfxItemPool &rPool, bool bCloneStaticDefaults=false)
 
 SfxItemPool (const OUString &rName, sal_uInt16 nStart, sal_uInt16 nEnd, const SfxItemInfo *pItemInfos, std::vector< SfxPoolItem * > *pDefaults=nullptr)
 
virtual ~SfxItemPool ()
 
SfxBroadcasterBC ()
 
void SetPoolDefaultItem (const SfxPoolItem &)
 
const SfxPoolItemGetPoolDefaultItem (sal_uInt16 nWhich) const
 
const T * GetPoolDefaultItem (TypedWhichId< T > nWhich) const
 
void ResetPoolDefaultItem (sal_uInt16 nWhich)
 
void SetDefaults (std::vector< SfxPoolItem * > *pDefaults)
 
void ClearDefaults ()
 
void ReleaseDefaults (bool bDelete=false)
 
virtual MapUnit GetMetric (sal_uInt16 nWhich) const
 
void SetDefaultMetric (MapUnit eNewMetric)
 
MapUnit GetDefaultMetric () const
 
virtual bool GetPresentation (const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual rtl::Reference< SfxItemPoolClone () const
 
const OUString & GetName () const
 
const T & Put (std::unique_ptr< T > xItem, sal_uInt16 nWhich=0)
 
const T & Put (const T &rItem, sal_uInt16 nWhich=0)
 
void Remove (const SfxPoolItem &)
 
const SfxPoolItemGetDefaultItem (sal_uInt16 nWhich) const
 
const T & GetDefaultItem (TypedWhichId< T > nWhich) const
 
bool CheckItemInPool (const SfxPoolItem *) const
 
const SfxPoolItemGetItem2Default (sal_uInt16 nWhich) const
 
const T * GetItem2Default (TypedWhichId< T > nWhich) const
 
sal_uInt32 GetItemCount2 (sal_uInt16 nWhich) const
 
Item2Range GetItemSurrogates (sal_uInt16 nWhich) const
 
std::vector< const SfxPoolItem * > FindItemSurrogate (sal_uInt16 nWhich, SfxPoolItem const &rNeedle) const
 
sal_uInt16 GetFirstWhich () const
 
sal_uInt16 GetLastWhich () const
 
bool IsInRange (sal_uInt16 nWhich) const
 
void SetSecondaryPool (SfxItemPool *pPool)
 
SfxItemPoolGetSecondaryPool () const
 
SfxItemPoolGetLastPoolInChain ()
 
SfxItemPoolGetMasterPool () const
 
void FreezeIdRanges ()
 
void Delete ()
 
bool IsItemPoolable (sal_uInt16 nWhich) const
 
bool IsItemPoolable (const SfxPoolItem &rItem) const
 
void SetItemInfos (const SfxItemInfo *pInfos)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
sal_uInt16 GetSlotId (sal_uInt16 nWhich) const
 
sal_uInt16 GetTrueWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
sal_uInt16 GetTrueSlotId (sal_uInt16 nWhich) const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

virtual ~ScDocumentPool () override
 
virtual const SfxPoolItemPutImpl (const SfxPoolItem &, sal_uInt16 nWhich=0, bool bPassingOwnership=false) override
 

Private Attributes

std::vector< SfxPoolItem * > mvPoolDefaults
 
sal_uInt64 mnCurrentMaxKey
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxItemPool
static void ReleaseDefaults (std::vector< SfxPoolItem * > *pDefaults, bool bDelete=false)
 
static bool IsWhich (sal_uInt16 nId)
 
static bool IsSlot (sal_uInt16 nId)
 
virtual const SfxPoolItemPutImpl (const SfxPoolItem &, sal_uInt16 nWhich=0, bool bPassingOwnership=false)
 
- Static Protected Member Functions inherited from SfxItemPool
static void ClearRefCount (SfxPoolItem &rItem)
 
static void AddRef (const SfxPoolItem &rItem)
 
static sal_uInt32 ReleaseRef (const SfxPoolItem &rItem, sal_uInt32 n=1)
 

Detailed Description

Definition at line 29 of file docpool.hxx.

Constructor & Destructor Documentation

◆ ScDocumentPool()

ScDocumentPool::ScDocumentPool ( )

Definition at line 185 of file docpool.cxx.

References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_INNER(), ATTR_BORDER_TLBR(), ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_LANGUAGE(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CONDITIONAL(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_LANGUAGE(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_EMPHASISMARK(), ATTR_FONT_HEIGHT(), ATTR_FONT_LANGUAGE(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_RELIEF(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_FONT_WORDLINE(), ATTR_FORBIDDEN_RULES(), ATTR_HANGPUNCTUATION(), ATTR_HIDDEN(), ATTR_HOR_JUSTIFY(), ATTR_HOR_JUSTIFY_METHOD(), ATTR_HYPERLINK(), ATTR_HYPHENATE(), ATTR_INDENT(), ATTR_LANGUAGE_FORMAT(), ATTR_LINEBREAK(), ATTR_LRSPACE(), ATTR_MARGIN(), ATTR_MERGE(), ATTR_MERGE_FLAG(), ATTR_PAGE(), ATTR_PAGE_CHARTS(), ATTR_PAGE_DRAWINGS(), ATTR_PAGE_DYNAMIC(), ATTR_PAGE_FIRSTPAGENO(), ATTR_PAGE_FOOTERFIRST(), ATTR_PAGE_FOOTERLEFT(), ATTR_PAGE_FOOTERRIGHT(), ATTR_PAGE_FOOTERSET(), ATTR_PAGE_FORMULAS(), ATTR_PAGE_GRID(), ATTR_PAGE_HEADERFIRST(), ATTR_PAGE_HEADERLEFT(), ATTR_PAGE_HEADERRIGHT(), ATTR_PAGE_HEADERS(), ATTR_PAGE_HEADERSET(), ATTR_PAGE_HORCENTER(), ATTR_PAGE_NOTES(), ATTR_PAGE_NULLVALS(), ATTR_PAGE_OBJECTS(), ATTR_PAGE_ON(), ATTR_PAGE_PAPERBIN(), ATTR_PAGE_SCALE(), ATTR_PAGE_SCALETO(), ATTR_PAGE_SCALETOPAGES(), ATTR_PAGE_SHARED(), ATTR_PAGE_SHARED_FIRST(), ATTR_PAGE_SIZE(), ATTR_PAGE_TOPDOWN(), ATTR_PAGE_VERCENTER(), ATTR_PATTERN(), ATTR_PROTECTION(), ATTR_ROTATE_MODE(), ATTR_ROTATE_VALUE(), ATTR_SCRIPTSPACE(), ATTR_SHADOW(), ATTR_SHRINKTOFIT(), ATTR_STACKED(), ATTR_STARTINDEX(), ATTR_ULSPACE(), ATTR_USERDEF(), ATTR_VALIDDATA(), ATTR_VALUE_FORMAT(), ATTR_VER_JUSTIFY(), ATTR_VER_JUSTIFY_METHOD(), ATTR_VERTICAL_ASIAN(), ATTR_WRITINGDIR(), COL_AUTO(), COL_TRANSPARENT(), ScGlobal::eLnge, ScGlobal::GetEmptyBrushItem(), ScModule::GetSpellSettings(), ITALIC_NONE, svl::Items, LANGUAGE_DONTKNOW, LINESTYLE_NONE, mvPoolDefaults, ScResId(), SfxItemPool::SetDefaults(), SvxBoxInfoItem::SetDist(), SvxBoxInfoItem::SetLine(), SvxBoxInfoItem::SetMinDist(), SvxBoxInfoItem::SetTable(), STRIKEOUT_NONE, STRING_STANDARD, SVX_ROTATE_MODE_BOTTOM, and WEIGHT_NORMAL.

◆ ~ScDocumentPool()

ScDocumentPool::~ScDocumentPool ( )
overrideprivatevirtual

Member Function Documentation

◆ CellStyleCreated()

void ScDocumentPool::CellStyleCreated ( std::u16string_view  rName,
const ScDocument rDoc 
)

◆ Clone()

rtl::Reference< SfxItemPool > ScDocumentPool::Clone ( ) const
overridevirtual

Reimplemented from SfxItemPool.

Definition at line 388 of file docpool.cxx.

References SfxItemPool::SfxItemPool().

◆ GetMetric()

MapUnit ScDocumentPool::GetMetric ( sal_uInt16  nWhich) const
overridevirtual

Reimplemented from SfxItemPool.

Definition at line 611 of file docpool.cxx.

References ATTR_ENDINDEX(), and ATTR_STARTINDEX().

Referenced by GetPresentation().

◆ GetPresentation()

bool ScDocumentPool::GetPresentation ( const SfxPoolItem rItem,
MapUnit  ePresentationMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

◆ PutImpl()

const SfxPoolItem & ScDocumentPool::PutImpl ( const SfxPoolItem rItem,
sal_uInt16  nWhich = 0,
bool  bPassingOwnership = false 
)
overrideprivatevirtual

◆ StyleDeleted()

void ScDocumentPool::StyleDeleted ( const ScStyleSheet pStyle)

Member Data Documentation

◆ mnCurrentMaxKey

sal_uInt64 ScDocumentPool::mnCurrentMaxKey
private

Definition at line 32 of file docpool.hxx.

Referenced by PutImpl().

◆ mvPoolDefaults

std::vector<SfxPoolItem*> ScDocumentPool::mvPoolDefaults
private

Definition at line 31 of file docpool.hxx.

Referenced by PutImpl(), ScDocumentPool(), and ~ScDocumentPool().


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