LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwAttrPool Class Reference

#include <swatrset.hxx>

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

Public Member Functions

 SwAttrPool (SwDoc *pDoc)
 
SwDocGetDoc ()
 
const SwDocGetDoc () const
 
- Public Member Functions inherited from SfxItemPool
void AddSfxItemPoolUser (SfxItemPoolUser &rNewUser)
 
void RemoveSfxItemPoolUser (SfxItemPoolUser &rOldUser)
 
void FillItemIdRanges_Impl (std::unique_ptr< sal_uInt16[]> &pWhichRanges) const
 
const sal_uInt16 * GetFrozenIdRanges () 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)
 
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)
 
virtual bool GetPresentation (const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual 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
 
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
 
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
 

Protected Member Functions

virtual ~SwAttrPool () override
 
- Protected Member Functions inherited from SfxItemPool
virtual ~SfxItemPool ()
 
virtual const SfxPoolItemPutImpl (const SfxPoolItem &, sal_uInt16 nWhich=0, bool bPassingOwnership=false)
 

Private Member Functions

void createAndAddSecondaryPools ()
 
void removeAndDeleteSecondaryPools ()
 

Private Attributes

SwDoc *const m_pDoc
 

Friends

void InitCore ()
 
void FinitCore ()
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxItemPool
static void Free (SfxItemPool *pPool)
 
static void ReleaseDefaults (std::vector< SfxPoolItem * > *pDefaults, bool bDelete=false)
 
static bool IsWhich (sal_uInt16 nId)
 
static bool IsSlot (sal_uInt16 nId)
 
- 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 135 of file swatrset.hxx.

Constructor & Destructor Documentation

SwAttrPool::SwAttrPool ( SwDoc pDoc)

Definition at line 42 of file swatrset.cxx.

References createAndAddSecondaryPools().

SwAttrPool::~SwAttrPool ( )
overrideprotectedvirtual

Definition at line 52 of file swatrset.cxx.

References removeAndDeleteSecondaryPools().

Member Function Documentation

void SwAttrPool::createAndAddSecondaryPools ( )
private
SwDoc* SwAttrPool::GetDoc ( )
inline

Definition at line 156 of file swatrset.hxx.

Referenced by AttrSetHandleHelper::GetNewAutoStyle().

const SwDoc* SwAttrPool::GetDoc ( ) const
inline

Definition at line 157 of file swatrset.hxx.

void SwAttrPool::removeAndDeleteSecondaryPools ( )
private

Friends And Related Function Documentation

void FinitCore ( )
friend

Definition at line 670 of file init.cxx.

void InitCore ( )
friend

Definition at line 454 of file init.cxx.

Member Data Documentation

SwDoc* const SwAttrPool::m_pDoc
private

Definition at line 148 of file swatrset.hxx.


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