LibreOffice Module svx (master) 1
|
#include <xtable.hxx>
Public Member Functions | |
XPropertyList (const XPropertyList &)=delete | |
XPropertyList & | operator= (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) |
XPropertyEntry * | Get (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 |
Definition at line 153 of file xtable.hxx.
|
protected |
|
delete |
|
overridevirtual |
Definition at line 118 of file xtable.cxx.
|
inlinestatic |
Definition at line 381 of file xtable.hxx.
Referenced by SdrModel::GetBitmapList(), and SvxFillToolBoxControl::Update().
|
inlinestatic |
Definition at line 378 of file xtable.hxx.
Referenced by XColorList::CreateStdColorList(), SdrModel::GetColorList(), PaletteSOC::LoadColorSet(), and PaletteManager::SetPalette().
|
inlinestatic |
Definition at line 372 of file xtable.hxx.
Referenced by SdrModel::GetDashList().
|
inlinestatic |
Definition at line 390 of file xtable.hxx.
Referenced by SdrModel::GetGradientList().
|
inlinestatic |
Definition at line 375 of file xtable.hxx.
Referenced by SdrModel::GetHatchList().
|
inlinestatic |
Definition at line 387 of file xtable.hxx.
Referenced by SdrModel::GetLineEndList().
|
inlinestatic |
Definition at line 384 of file xtable.hxx.
Referenced by SdrModel::GetPatternList().
tools::Long XPropertyList::Count | ( | ) | const |
Definition at line 122 of file xtable.cxx.
References Create(), Load(), maList, and mbListDirty.
Referenced by SvxColorValueSet::addEntriesForXColorList(), XColorList::Create(), XHatchList::CreateBitmap(), XGradientList::CreateBitmap(), XBitmapList::CreateBitmap(), XPatternList::CreateBitmap(), and XLineEndList::CreateBitmapForUI().
|
pure virtual |
Implemented in XColorList, XLineEndList, XDashList, XHatchList, XGradientList, XBitmapList, and XPatternList.
Referenced by Count(), Get(), and GetIndex().
|
protectedpure virtual |
Implemented in XColorList, XLineEndList, XDashList, XHatchList, XGradientList, XBitmapList, and XPatternList.
Referenced by GetUiBitmap().
|
pure virtual |
Implemented in XColorList, XLineEndList, XDashList, XHatchList, XGradientList, XBitmapList, and XPatternList.
References Load.
Referenced by Load(), LoadFrom(), Save(), and SaveTo().
|
static |
Definition at line 316 of file xtable.cxx.
References Bitmap, Color, Dash, Gradient, Hatch, LineEnd, and Pattern.
Referenced by CreatePropertyListFromURL(), XColorList::CreateStdColorList(), SdrModel::ImpCreateTables(), and SvxFillToolBoxControl::Update().
|
static |
Definition at line 354 of file xtable.cxx.
References aURL, CreatePropertyList(), INetURLObject::GetMainURL(), INetURLObject::NONE, INetURLObject::removeFinalSlash(), INetURLObject::removeSegment(), and t.
Referenced by PaletteSOC::LoadColorSet(), and PaletteManager::SetPalette().
XPropertyEntry * XPropertyList::Get | ( | tools::Long | nIndex | ) | const |
Definition at line 132 of file xtable.cxx.
References Create(), isValidIdx(), Load(), maList, mbListDirty, and nIndex.
Referenced by XBitmapList::GetBitmap(), XPatternList::GetBitmap(), XColorList::GetColor(), XDashList::GetDash(), XGradientList::GetGradient(), XHatchList::GetHatch(), and XLineEndList::GetLineEnd().
|
inline |
Definition at line 197 of file xtable.hxx.
References GetDefaultExt(), and meType.
Referenced by GetDefaultExt(), Load(), and Save().
|
static |
Definition at line 383 of file xtable.cxx.
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.
|
inline |
|
inline |
Definition at line 189 of file xtable.hxx.
References maPath.
BitmapEx XPropertyList::GetUiBitmap | ( | tools::Long | nIndex | ) | const |
Definition at line 161 of file xtable.cxx.
References CreateBitmapForUI(), XPropertyEntry::GetUiBitmap(), BitmapEx::IsEmpty(), isValidIdx(), maList, nIndex, and XPropertyEntry::SetUiBitmap().
void XPropertyList::Insert | ( | std::unique_ptr< XPropertyEntry > | pEntry, |
tools::Long | nIndex = std::numeric_limits<tools::Long>::max() |
||
) |
Definition at line 178 of file xtable.cxx.
References isValidIdx(), maList, and nIndex.
Referenced by XColorList::Create(), XLineEndList::Create(), XDashList::Create(), XHatchList::Create(), XGradientList::Create(), and XPatternList::Create().
|
inline |
Definition at line 194 of file xtable.hxx.
|
protected |
Definition at line 112 of file xtable.cxx.
References o3tl::make_unsigned(), maList, and nIndex.
Referenced by Get(), GetUiBitmap(), Insert(), Remove(), and Replace().
bool XPropertyList::Load | ( | ) |
Definition at line 228 of file xtable.cxx.
References aURL, createInstance(), DBG_ASSERT, GetDefaultExt(), SvxXMLXTableImport::load(), maName, maPath, maReferer, mbListDirty, nIndex, and INetURLObject::NONE.
Referenced by Count(), Get(), and GetIndex().
bool XPropertyList::LoadFrom | ( | const css::uno::Reference< css::embed::XStorage > & | xStorage, |
const OUString & | rURL, | ||
const OUString & | rReferer | ||
) |
Definition at line 272 of file xtable.cxx.
References createInstance(), SvxXMLXTableImport::load(), mbEmbedInDocument, and mbListDirty.
|
delete |
void XPropertyList::Remove | ( | tools::Long | nIndex | ) |
Definition at line 209 of file xtable.cxx.
References isValidIdx(), maList, and nIndex.
void XPropertyList::Replace | ( | std::unique_ptr< XPropertyEntry > | pEntry, |
tools::Long | nIndex | ||
) |
Definition at line 193 of file xtable.cxx.
References isValidIdx(), maList, and nIndex.
Referenced by XDashList::Replace(), XGradientList::Replace(), XHatchList::Replace(), and XColorList::Replace().
bool XPropertyList::Save | ( | ) |
Definition at line 281 of file xtable.cxx.
References aURL, createInstance(), DBG_ASSERT, GetDefaultExt(), maName, maPath, nIndex, INetURLObject::NONE, and SvxXMLXTableExportComponent::save().
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().
|
inline |
Definition at line 192 of file xtable.hxx.
void XPropertyList::SetName | ( | const OUString & | rString | ) |
Definition at line 220 of file xtable.cxx.
References maName.
|
inline |
Definition at line 190 of file xtable.hxx.
References maPath.
|
inline |
Definition at line 175 of file xtable.hxx.
References meType.
|
protected |
Definition at line 161 of file xtable.hxx.
Referenced by Count(), Get(), GetIndex(), XColorList::GetIndexOfColor(), GetUiBitmap(), Insert(), isValidIdx(), Remove(), and Replace().
|
protected |
Definition at line 157 of file xtable.hxx.
|
protected |
Definition at line 158 of file xtable.hxx.
|
protected |
Definition at line 159 of file xtable.hxx.
Referenced by Load().
|
protected |
Definition at line 164 of file xtable.hxx.
Referenced by LoadFrom().
|
protected |
Definition at line 163 of file xtable.hxx.
Referenced by Count(), Get(), GetIndex(), Load(), and LoadFrom().
|
protected |
Definition at line 156 of file xtable.hxx.