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 |
![]() | |
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, const OUString &rPath, const OUString &rReferer) | |
bool | isValidIdx (tools::Long nIndex) const |
virtual BitmapEx | CreateBitmapForUI (tools::Long nIndex)=0 |
![]() | |
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 |
![]() | |
oslInterlockedCount | m_refCount |
Definition at line 153 of file xtable.hxx.
|
protected |
|
delete |
|
overridevirtual |
Definition at line 117 of file xtable.cxx.
|
inlinestatic |
Definition at line 379 of file xtable.hxx.
Referenced by SdrModel::GetBitmapList(), and SvxFillToolBoxControl::Update().
|
inlinestatic |
Definition at line 376 of file xtable.hxx.
Referenced by XColorList::CreateStdColorList(), SdrModel::GetColorList(), PaletteSOC::LoadColorSet(), and PaletteManager::SetPalette().
|
inlinestatic |
Definition at line 370 of file xtable.hxx.
Referenced by SdrModel::GetDashList().
|
inlinestatic |
Definition at line 388 of file xtable.hxx.
Referenced by SdrModel::GetGradientList().
|
inlinestatic |
Definition at line 373 of file xtable.hxx.
Referenced by SdrModel::GetHatchList().
|
inlinestatic |
Definition at line 385 of file xtable.hxx.
Referenced by SdrModel::GetLineEndList().
|
inlinestatic |
Definition at line 382 of file xtable.hxx.
Referenced by SdrModel::GetPatternList().
tools::Long XPropertyList::Count | ( | ) | const |
Definition at line 121 of file xtable.cxx.
References Create(), Load(), maList, and mbListDirty.
Referenced by SvxColorValueSet::addEntriesForXColorList(), XHatchList::CreateBitmap(), XGradientList::CreateBitmap(), and XLineEndList::CreateBitmapForUI().
|
pure virtual |
Implemented in XPatternList, XBitmapList, XGradientList, XHatchList, XDashList, XLineEndList, and XColorList.
Referenced by Count(), Get(), and GetIndex().
|
protectedpure virtual |
Implemented in XPatternList, XBitmapList, XGradientList, XHatchList, XDashList, XLineEndList, and XColorList.
Referenced by GetUiBitmap().
|
pure virtual |
Implemented in XPatternList, XBitmapList, XGradientList, XHatchList, XDashList, XLineEndList, and XColorList.
Referenced by Load(), LoadFrom(), Save(), and SaveTo().
|
static |
Definition at line 315 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 353 of file xtable.cxx.
References aURL, CreatePropertyList(), INetURLObject::GetMainURL(), INetURLObject::getName(), INetURLObject::NONE, INetURLObject::removeFinalSlash(), and INetURLObject::removeSegment().
Referenced by PaletteSOC::LoadColorSet(), and PaletteManager::SetPalette().
XPropertyEntry * XPropertyList::Get | ( | tools::Long | nIndex | ) | const |
Definition at line 131 of file xtable.cxx.
References Create(), isValidIdx(), Load(), maList, and mbListDirty.
Referenced by XBitmapList::GetBitmap(), XPatternList::GetBitmap(), XColorList::GetColor(), XDashList::GetDash(), XGradientList::GetGradient(), XHatchList::GetHatch(), and XLineEndList::GetLineEnd().
|
static |
Definition at line 382 of file xtable.cxx.
|
inline |
Definition at line 197 of file xtable.hxx.
References GetDefaultExt().
Referenced by GetDefaultExt(), Load(), and Save().
tools::Long XPropertyList::GetIndex | ( | std::u16string_view | rName | ) | const |
Definition at line 144 of file xtable.cxx.
References Create(), GetName(), i, Load(), maList, mbListDirty, and n.
|
inline |
Definition at line 186 of file xtable.hxx.
Referenced by GetIndex().
|
inline |
Definition at line 189 of file xtable.hxx.
BitmapEx XPropertyList::GetUiBitmap | ( | tools::Long | nIndex | ) | const |
Definition at line 160 of file xtable.cxx.
References CreateBitmapForUI(), XPropertyEntry::GetUiBitmap(), BitmapEx::IsEmpty(), isValidIdx(), maList, and XPropertyEntry::SetUiBitmap().
void XPropertyList::Insert | ( | std::unique_ptr< XPropertyEntry > | pEntry, |
tools::Long | nIndex = std::numeric_limits<tools::Long>::max() |
||
) |
Definition at line 177 of file xtable.cxx.
References isValidIdx(), and maList.
Referenced by XLineEndList::Create(), XDashList::Create(), XHatchList::Create(), and XGradientList::Create().
|
inline |
Definition at line 194 of file xtable.hxx.
|
protected |
Definition at line 111 of file xtable.cxx.
References o3tl::make_unsigned(), and maList.
Referenced by Get(), GetUiBitmap(), Insert(), Remove(), and Replace().
bool XPropertyList::Load | ( | ) |
Definition at line 227 of file xtable.cxx.
References INetURLObject::Append(), aURL, createInstance(), DBG_ASSERT, GetDefaultExt(), INetURLObject::getExtension(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), SvxXMLXTableImport::load(), maName, maPath, maReferer, mbListDirty, nIndex, INetURLObject::NONE, and INetURLObject::setExtension().
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 271 of file xtable.cxx.
References createInstance(), SvxXMLXTableImport::load(), mbEmbedInDocument, and mbListDirty.
|
delete |
void XPropertyList::Remove | ( | tools::Long | nIndex | ) |
Definition at line 208 of file xtable.cxx.
References isValidIdx(), and maList.
void XPropertyList::Replace | ( | std::unique_ptr< XPropertyEntry > | pEntry, |
tools::Long | nIndex | ||
) |
Definition at line 192 of file xtable.cxx.
References isValidIdx(), and maList.
Referenced by XColorList::Replace(), XDashList::Replace(), XHatchList::Replace(), and XGradientList::Replace().
bool XPropertyList::Save | ( | ) |
Definition at line 280 of file xtable.cxx.
References INetURLObject::Append(), aURL, createInstance(), DBG_ASSERT, GetDefaultExt(), INetURLObject::getExtension(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), maName, maPath, nIndex, INetURLObject::NONE, SvxXMLXTableExportComponent::save(), and INetURLObject::setExtension().
bool XPropertyList::SaveTo | ( | const css::uno::Reference< css::embed::XStorage > & | xStorage, |
const OUString & | rURL, | ||
OUString * | pOptName | ||
) |
Definition at line 309 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 219 of file xtable.cxx.
References maName.
|
inline |
Definition at line 190 of file xtable.hxx.
|
inline |
Definition at line 175 of file xtable.hxx.
|
protected |
Definition at line 161 of file xtable.hxx.
Referenced by Count(), Get(), GetIndex(), 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.