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
 
tools::Long Count () const
 
void Insert (std::unique_ptr< XPropertyEntry > pEntry, tools::Long nIndex=std::numeric_limits< tools::Long >::max())
 
void Replace (std::unique_ptr< XPropertyEntry > pEntry, tools::Long nIndex)
 
void Remove (tools::Long nIndex)
 
XPropertyEntryGet (tools::Long nIndex) const
 
tools::Long GetIndex (std::u16string_view rName) const
 
BitmapEx GetUiBitmap (tools::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_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT 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, std::u16string_view 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, OUString aPath, OUString aReferer)
 
bool isValidIdx (tools::Long nIndex) const
 
virtual BitmapEx CreateBitmapForUI (tools::Long nIndex)=0
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Protected Attributes

XPropertyListType meType
 
OUString maName
 
OUString maPath
 
OUString 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() [1/2]

XPropertyList::XPropertyList ( XPropertyListType  t,
OUString  aPath,
OUString  aReferer 
)
protected

Definition at line 99 of file xtable.cxx.

References maName, maPath, meType, and type.

◆ XPropertyList() [2/2]

XPropertyList::XPropertyList ( const XPropertyList )
delete

◆ ~XPropertyList()

XPropertyList::~XPropertyList ( )
overridevirtual

Definition at line 118 of file xtable.cxx.

Member Function Documentation

◆ AsBitmapList()

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

Definition at line 381 of file xtable.hxx.

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

◆ AsColorList()

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

◆ AsDashList()

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

Definition at line 372 of file xtable.hxx.

Referenced by SdrModel::GetDashList().

◆ AsGradientList()

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

Definition at line 390 of file xtable.hxx.

Referenced by SdrModel::GetGradientList().

◆ AsHatchList()

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

Definition at line 375 of file xtable.hxx.

Referenced by SdrModel::GetHatchList().

◆ AsLineEndList()

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

Definition at line 387 of file xtable.hxx.

Referenced by SdrModel::GetLineEndList().

◆ AsPatternList()

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

Definition at line 384 of file xtable.hxx.

Referenced by SdrModel::GetPatternList().

◆ Count()

tools::Long XPropertyList::Count ( ) const

◆ Create()

virtual bool XPropertyList::Create ( )
pure virtual

◆ CreateBitmapForUI()

virtual BitmapEx XPropertyList::CreateBitmapForUI ( tools::Long  nIndex)
protectedpure virtual

◆ createInstance()

virtual css::uno::Reference< css::container::XNameContainer > XPropertyList::createInstance ( )
pure virtual

◆ CreatePropertyList()

XPropertyListRef XPropertyList::CreatePropertyList ( XPropertyListType  t,
const OUString &  rPath,
const OUString &  rReferer 
)
static

◆ CreatePropertyListFromURL()

XPropertyListRef XPropertyList::CreatePropertyListFromURL ( XPropertyListType  t,
std::u16string_view  rUrl 
)
static

◆ Get()

XPropertyEntry * XPropertyList::Get ( tools::Long  nIndex) const

◆ GetDefaultExt() [1/2]

OUString XPropertyList::GetDefaultExt ( ) const
inline

Definition at line 197 of file xtable.hxx.

References GetDefaultExt(), and meType.

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

◆ GetDefaultExt() [2/2]

OUString XPropertyList::GetDefaultExt ( XPropertyListType  t)
static

Definition at line 383 of file xtable.cxx.

References i, pExtnMap, and t.

◆ GetIndex()

tools::Long XPropertyList::GetIndex ( std::u16string_view  rName) const

Definition at line 145 of file xtable.cxx.

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

◆ GetName()

const OUString & XPropertyList::GetName ( ) const
inline

Definition at line 186 of file xtable.hxx.

References maName.

Referenced by GetIndex().

◆ GetPath()

const OUString & XPropertyList::GetPath ( ) const
inline

Definition at line 189 of file xtable.hxx.

References maPath.

◆ GetUiBitmap()

BitmapEx XPropertyList::GetUiBitmap ( tools::Long  nIndex) const

◆ Insert()

void XPropertyList::Insert ( std::unique_ptr< XPropertyEntry pEntry,
tools::Long  nIndex = std::numeric_limits<tools::Long>::max() 
)

◆ IsEmbedInDocument()

bool XPropertyList::IsEmbedInDocument ( ) const
inline

Definition at line 194 of file xtable.hxx.

◆ isValidIdx()

bool XPropertyList::isValidIdx ( tools::Long  nIndex) const
protected

Definition at line 112 of file xtable.cxx.

References o3tl::make_unsigned(), maList, and nIndex.

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

◆ Load()

bool XPropertyList::Load ( )

◆ LoadFrom()

bool XPropertyList::LoadFrom ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  rURL,
const OUString &  rReferer 
)

◆ operator=()

XPropertyList & XPropertyList::operator= ( const XPropertyList )
delete

◆ Remove()

void XPropertyList::Remove ( tools::Long  nIndex)

Definition at line 209 of file xtable.cxx.

References isValidIdx(), maList, and nIndex.

◆ Replace()

void XPropertyList::Replace ( std::unique_ptr< XPropertyEntry pEntry,
tools::Long  nIndex 
)

◆ Save()

bool XPropertyList::Save ( )

◆ SaveTo()

bool XPropertyList::SaveTo ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  rURL,
OUString *  pOptName 
)

Definition at line 310 of file xtable.cxx.

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

◆ SetDirty()

void XPropertyList::SetDirty ( bool  bDirty)
inline

Definition at line 192 of file xtable.hxx.

◆ SetName()

void XPropertyList::SetName ( const OUString &  rString)

Definition at line 220 of file xtable.cxx.

References maName.

◆ SetPath()

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

Definition at line 190 of file xtable.hxx.

References maPath.

◆ Type()

XPropertyListType XPropertyList::Type ( ) const
inline

Definition at line 175 of file xtable.hxx.

References meType.

Member Data Documentation

◆ maList

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

◆ maName

OUString XPropertyList::maName
protected

Definition at line 157 of file xtable.hxx.

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

◆ maPath

OUString XPropertyList::maPath
protected

Definition at line 158 of file xtable.hxx.

Referenced by Load(), and Save().

◆ maReferer

OUString XPropertyList::maReferer
protected

Definition at line 159 of file xtable.hxx.

Referenced by Load().

◆ mbEmbedInDocument

bool XPropertyList::mbEmbedInDocument
protected

Definition at line 164 of file xtable.hxx.

Referenced by LoadFrom().

◆ mbListDirty

bool XPropertyList::mbListDirty
protected

Definition at line 163 of file xtable.hxx.

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

◆ meType

XPropertyListType XPropertyList::meType
protected

Definition at line 156 of file xtable.hxx.


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