LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
FilterConfigItem Class Reference

#include <FilterConfigItem.hxx>

Public Member Functions

 FilterConfigItem (std::u16string_view rSubTree)
 
 FilterConfigItem (css::uno::Sequence< css::beans::PropertyValue > const *pFilterData)
 
 FilterConfigItem (std::u16string_view rSubTree, css::uno::Sequence< css::beans::PropertyValue > const *pFilterData)
 
 ~FilterConfigItem ()
 Writes config in destructor. More...
 
void WriteModifiedConfig ()
 Writes config and sets unmodified state again. More...
 
bool ReadBool (const OUString &rKey, bool bDefault)
 
sal_Int32 ReadInt32 (const OUString &rKey, sal_Int32 nDefault)
 
OUString ReadString (const OUString &rKey, const OUString &rDefault)
 
void WriteBool (const OUString &rKey, bool bValue)
 
void WriteInt32 (const OUString &rKey, sal_Int32 nValue)
 
const css::uno::Sequence< css::beans::PropertyValue > & GetFilterData () const
 
css::uno::Reference< css::task::XStatusIndicator > GetStatusIndicator () const
 

Private Member Functions

void ImpInitTree (std::u16string_view rTree)
 

Static Private Member Functions

static bool ImplGetPropertyValue (css::uno::Any &rAny, const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const OUString &rPropName)
 
static const css::beans::PropertyValue * GetPropertyValue (const css::uno::Sequence< css::beans::PropertyValue > &rPropSeq, const OUString &rName)
 
static bool WritePropertyValue (css::uno::Sequence< css::beans::PropertyValue > &rPropSeq, const css::beans::PropertyValue &rPropValue)
 

Private Attributes

css::uno::Reference< css::uno::XInterface > xUpdatableView
 
css::uno::Reference< css::beans::XPropertySetxPropSet
 
css::uno::Sequence< css::beans::PropertyValue > aFilterData
 
bool bModified
 

Detailed Description

Definition at line 40 of file FilterConfigItem.hxx.

Constructor & Destructor Documentation

◆ FilterConfigItem() [1/3]

FilterConfigItem::FilterConfigItem ( std::u16string_view  rSubTree)

Definition at line 131 of file FilterConfigItem.cxx.

References ImpInitTree().

◆ FilterConfigItem() [2/3]

FilterConfigItem::FilterConfigItem ( css::uno::Sequence< css::beans::PropertyValue > const *  pFilterData)

Definition at line 136 of file FilterConfigItem.cxx.

References aFilterData.

◆ FilterConfigItem() [3/3]

FilterConfigItem::FilterConfigItem ( std::u16string_view  rSubTree,
css::uno::Sequence< css::beans::PropertyValue > const *  pFilterData 
)

Definition at line 143 of file FilterConfigItem.cxx.

References aFilterData, and ImpInitTree().

◆ ~FilterConfigItem()

FilterConfigItem::~FilterConfigItem ( )

Writes config in destructor.

Definition at line 152 of file FilterConfigItem.cxx.

References WriteModifiedConfig().

Member Function Documentation

◆ GetFilterData()

const css::uno::Sequence< css::beans::PropertyValue > & FilterConfigItem::GetFilterData ( ) const
inline

Definition at line 86 of file FilterConfigItem.hxx.

Referenced by GraphicFilter::ExportGraphic(), and WMFWriter::WriteWMF().

◆ GetPropertyValue()

const PropertyValue * FilterConfigItem::GetPropertyValue ( const css::uno::Sequence< css::beans::PropertyValue > &  rPropSeq,
const OUString &  rName 
)
staticprivate

Definition at line 218 of file FilterConfigItem.cxx.

Referenced by ReadBool(), ReadInt32(), and ReadString().

◆ GetStatusIndicator()

Reference< XStatusIndicator > FilterConfigItem::GetStatusIndicator ( ) const

Definition at line 376 of file FilterConfigItem.cxx.

References aFilterData.

Referenced by WMFWriter::WriteWMF().

◆ ImpInitTree()

void FilterConfigItem::ImpInitTree ( std::u16string_view  rTree)
private

◆ ImplGetPropertyValue()

bool FilterConfigItem::ImplGetPropertyValue ( css::uno::Any &  rAny,
const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const OUString &  rPropName 
)
staticprivate

Definition at line 180 of file FilterConfigItem.cxx.

Referenced by ReadBool(), ReadInt32(), ReadString(), WriteBool(), and WriteInt32().

◆ ReadBool()

bool FilterConfigItem::ReadBool ( const OUString &  rKey,
bool  bDefault 
)

◆ ReadInt32()

sal_Int32 FilterConfigItem::ReadInt32 ( const OUString &  rKey,
sal_Int32  nDefault 
)

◆ ReadString()

OUString FilterConfigItem::ReadString ( const OUString &  rKey,
const OUString &  rDefault 
)

◆ WriteBool()

void FilterConfigItem::WriteBool ( const OUString &  rKey,
bool  bValue 
)

◆ WriteInt32()

void FilterConfigItem::WriteInt32 ( const OUString &  rKey,
sal_Int32  nValue 
)

◆ WriteModifiedConfig()

void FilterConfigItem::WriteModifiedConfig ( )

Writes config and sets unmodified state again.

Definition at line 157 of file FilterConfigItem.cxx.

References bModified, xPropSet, and xUpdatableView.

Referenced by ~FilterConfigItem().

◆ WritePropertyValue()

bool FilterConfigItem::WritePropertyValue ( css::uno::Sequence< css::beans::PropertyValue > &  rPropSeq,
const css::beans::PropertyValue &  rPropValue 
)
staticprivate

Definition at line 231 of file FilterConfigItem.cxx.

References i, and nCount.

Referenced by ReadBool(), ReadInt32(), ReadString(), WriteBool(), and WriteInt32().

Member Data Documentation

◆ aFilterData

css::uno::Sequence< css::beans::PropertyValue > FilterConfigItem::aFilterData
private

◆ bModified

bool FilterConfigItem::bModified
private

Definition at line 46 of file FilterConfigItem.hxx.

Referenced by ImpInitTree(), WriteBool(), WriteInt32(), and WriteModifiedConfig().

◆ xPropSet

css::uno::Reference< css::beans::XPropertySet > FilterConfigItem::xPropSet
private

◆ xUpdatableView

css::uno::Reference< css::uno::XInterface > FilterConfigItem::xUpdatableView
private

Definition at line 42 of file FilterConfigItem.hxx.

Referenced by ImpInitTree(), and WriteModifiedConfig().


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