LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XPropertyList Class Referenceabstract

#include <xtable.hxx>

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

Public Member Functions

 XPropertyList (const XPropertyList &)=delete
 
XPropertyListoperator= (const XPropertyList &)=delete
 
virtual ~XPropertyList () override
 
XPropertyListType Type () const
 
long Count () const
 
void Insert (std::unique_ptr< XPropertyEntry > pEntry, long nIndex=std::numeric_limits< long >::max())
 
void Replace (std::unique_ptr< XPropertyEntry > pEntry, long nIndex)
 
void Remove (long nIndex)
 
XPropertyEntryGet (long nIndex) const
 
long GetIndex (const OUString &rName) const
 
BitmapEx GetUiBitmap (long nIndex) const
 
const OUString & GetName () const
 
void SetName (const OUString &rString)
 
const OUString & GetPath () const
 
void SetPath (const OUString &rString)
 
void SetDirty (bool bDirty)
 
bool IsEmbedInDocument () const
 
OUString GetDefaultExt () const
 
virtual css::uno::Reference< css::container::XNameContainer > createInstance ()=0
 
bool Load ()
 
bool LoadFrom (const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &rURL, const OUString &rReferer)
 
bool Save ()
 
bool SaveTo (const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &rURL, OUString *pOptName)
 
virtual bool Create ()=0
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Static Public Member Functions

static OUString GetDefaultExt (XPropertyListType t)
 
static XPropertyListRef CreatePropertyList (XPropertyListType t, const OUString &rPath, const OUString &rReferer)
 
static XPropertyListRef CreatePropertyListFromURL (XPropertyListType t, const OUString &rUrl)
 
static XDashListRef AsDashList (rtl::Reference< XPropertyList > const &plist)
 
static XHatchListRef AsHatchList (rtl::Reference< XPropertyList > const &plist)
 
static XColorListRef AsColorList (rtl::Reference< XPropertyList > const &plist)
 
static XBitmapListRef AsBitmapList (rtl::Reference< XPropertyList > const &plist)
 
static XPatternListRef AsPatternList (rtl::Reference< XPropertyList > const &plist)
 
static XLineEndListRef AsLineEndList (rtl::Reference< XPropertyList > const &plist)
 
static XGradientListRef AsGradientList (rtl::Reference< XPropertyList > const &plist)
 

Protected Member Functions

 XPropertyList (XPropertyListType t, const OUString &rPath, const OUString &rReferer)
 
bool isValidIdx (long nIndex) const
 
virtual BitmapEx CreateBitmapForUI (long nIndex)=0
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Protected Attributes

XPropertyListType const meType
 
OUString maName
 
OUString maPath
 
OUString const maReferer
 
std::vector< std::unique_ptr< XPropertyEntry > > maList
 
bool mbListDirty
 
bool mbEmbedInDocument
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 153 of file xtable.hxx.

Constructor & Destructor Documentation

XPropertyList::XPropertyList ( XPropertyListType  t,
const OUString &  rPath,
const OUString &  rReferer 
)
protected

Definition at line 101 of file xtable.cxx.

References maName, and meType.

XPropertyList::XPropertyList ( const XPropertyList )
delete
XPropertyList::~XPropertyList ( )
overridevirtual

Definition at line 120 of file xtable.cxx.

Member Function Documentation

XBitmapListRef XPropertyList::AsBitmapList ( rtl::Reference< XPropertyList > const &  plist)
inlinestatic

Definition at line 389 of file xtable.hxx.

Referenced by SdrModel::GetBitmapList(), and SvxFillToolBoxControl::Update().

XColorListRef XPropertyList::AsColorList ( rtl::Reference< XPropertyList > const &  plist)
inlinestatic
XDashListRef XPropertyList::AsDashList ( rtl::Reference< XPropertyList > const &  plist)
inlinestatic

Definition at line 380 of file xtable.hxx.

Referenced by SdrModel::GetDashList().

XGradientListRef XPropertyList::AsGradientList ( rtl::Reference< XPropertyList > const &  plist)
inlinestatic

Definition at line 398 of file xtable.hxx.

Referenced by SdrModel::GetGradientList().

XHatchListRef XPropertyList::AsHatchList ( rtl::Reference< XPropertyList > const &  plist)
inlinestatic

Definition at line 383 of file xtable.hxx.

Referenced by SdrModel::GetHatchList().

XLineEndListRef XPropertyList::AsLineEndList ( rtl::Reference< XPropertyList > const &  plist)
inlinestatic

Definition at line 395 of file xtable.hxx.

Referenced by SdrModel::GetLineEndList().

XPatternListRef XPropertyList::AsPatternList ( rtl::Reference< XPropertyList > const &  plist)
inlinestatic

Definition at line 392 of file xtable.hxx.

Referenced by SdrModel::GetPatternList().

long XPropertyList::Count ( ) const
virtual bool XPropertyList::Create ( )
pure virtual
virtual BitmapEx XPropertyList::CreateBitmapForUI ( long  nIndex)
protectedpure virtual
virtual css::uno::Reference< css::container::XNameContainer > XPropertyList::createInstance ( )
pure virtual
XPropertyListRef XPropertyList::CreatePropertyList ( XPropertyListType  t,
const OUString &  rPath,
const OUString &  rReferer 
)
static
XPropertyListRef XPropertyList::CreatePropertyListFromURL ( XPropertyListType  t,
const OUString &  rUrl 
)
static
XPropertyEntry * XPropertyList::Get ( long  nIndex) const
OUString XPropertyList::GetDefaultExt ( XPropertyListType  t)
static

Definition at line 385 of file xtable.cxx.

References i, and pExtnMap.

OUString XPropertyList::GetDefaultExt ( ) const
inline

Definition at line 197 of file xtable.hxx.

References GetDefaultExt().

Referenced by GetDefaultExt(), Load(), and Save().

long XPropertyList::GetIndex ( const OUString &  rName) const

Definition at line 147 of file xtable.cxx.

References Create(), GetName(), i, Load(), maList, and mbListDirty.

const OUString& XPropertyList::GetName ( ) const
inline

Definition at line 186 of file xtable.hxx.

Referenced by GetIndex().

const OUString& XPropertyList::GetPath ( ) const
inline

Definition at line 189 of file xtable.hxx.

BitmapEx XPropertyList::GetUiBitmap ( long  nIndex) const
void XPropertyList::Insert ( std::unique_ptr< XPropertyEntry pEntry,
long  nIndex = std::numeric_limits<long>::max() 
)
bool XPropertyList::IsEmbedInDocument ( ) const
inline

Definition at line 194 of file xtable.hxx.

bool XPropertyList::isValidIdx ( long  nIndex) const
protected

Definition at line 114 of file xtable.cxx.

References maList.

Referenced by Get(), GetUiBitmap(), Insert(), Remove(), and Replace().

bool XPropertyList::Load ( )
bool XPropertyList::LoadFrom ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  rURL,
const OUString &  rReferer 
)
XPropertyList& XPropertyList::operator= ( const XPropertyList )
delete
void XPropertyList::Remove ( long  nIndex)

Definition at line 211 of file xtable.cxx.

References isValidIdx(), and maList.

Referenced by SvxUnoXPropertyTable::removeByName().

void XPropertyList::Replace ( std::unique_ptr< XPropertyEntry pEntry,
long  nIndex 
)
bool XPropertyList::Save ( )
bool XPropertyList::SaveTo ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  rURL,
OUString *  pOptName 
)

Definition at line 312 of file xtable.cxx.

References createInstance(), and SvxXMLXTableExportComponent::save().

void XPropertyList::SetDirty ( bool  bDirty)
inline

Definition at line 192 of file xtable.hxx.

Referenced by SvxFillToolBoxControl::Update().

void XPropertyList::SetName ( const OUString &  rString)

Definition at line 222 of file xtable.cxx.

References maName.

void XPropertyList::SetPath ( const OUString &  rString)
inline

Definition at line 190 of file xtable.hxx.

XPropertyListType XPropertyList::Type ( ) const
inline

Definition at line 175 of file xtable.hxx.

Member Data Documentation

std::vector< std::unique_ptr<XPropertyEntry> > XPropertyList::maList
protected

Definition at line 161 of file xtable.hxx.

Referenced by Count(), Get(), GetIndex(), GetUiBitmap(), Insert(), isValidIdx(), Remove(), and Replace().

OUString XPropertyList::maName
protected

Definition at line 157 of file xtable.hxx.

Referenced by Load(), Save(), and SetName().

OUString XPropertyList::maPath
protected

Definition at line 158 of file xtable.hxx.

Referenced by Load(), and Save().

OUString const XPropertyList::maReferer
protected

Definition at line 159 of file xtable.hxx.

Referenced by Load().

bool XPropertyList::mbEmbedInDocument
protected

Definition at line 164 of file xtable.hxx.

Referenced by LoadFrom().

bool XPropertyList::mbListDirty
protected

Definition at line 163 of file xtable.hxx.

Referenced by Count(), Get(), GetIndex(), Load(), and LoadFrom().

XPropertyListType const XPropertyList::meType
protected

Definition at line 156 of file xtable.hxx.


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