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 css::beans::PropertyValue * GetPropertyValue (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::FilterConfigItem ( std::u16string_view  rSubTree)

Definition at line 133 of file FilterConfigItem.cxx.

References ImpInitTree().

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

Definition at line 138 of file FilterConfigItem.cxx.

References aFilterData.

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

Definition at line 145 of file FilterConfigItem.cxx.

References aFilterData, and ImpInitTree().

FilterConfigItem::~FilterConfigItem ( )

Writes config in destructor.

Definition at line 154 of file FilterConfigItem.cxx.

References WriteModifiedConfig().

Member Function Documentation

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

Definition at line 86 of file FilterConfigItem.hxx.

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

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

Definition at line 220 of file FilterConfigItem.cxx.

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

Reference< XStatusIndicator > FilterConfigItem::GetStatusIndicator ( ) const

Definition at line 378 of file FilterConfigItem.cxx.

References aFilterData.

Referenced by WMFWriter::WriteWMF().

void FilterConfigItem::ImpInitTree ( std::u16string_view  rTree)
bool FilterConfigItem::ImplGetPropertyValue ( css::uno::Any &  rAny,
const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const OUString &  rPropName 

Definition at line 182 of file FilterConfigItem.cxx.

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

bool FilterConfigItem::ReadBool ( const OUString &  rKey,
bool  bDefault 
sal_Int32 FilterConfigItem::ReadInt32 ( const OUString &  rKey,
sal_Int32  nDefault 
OUString FilterConfigItem::ReadString ( const OUString &  rKey,
const OUString &  rDefault 
void FilterConfigItem::WriteBool ( const OUString &  rKey,
bool  bValue 
void FilterConfigItem::WriteInt32 ( const OUString &  rKey,
sal_Int32  nValue 
void FilterConfigItem::WriteModifiedConfig ( )

Writes config and sets unmodified state again.

Definition at line 159 of file FilterConfigItem.cxx.

References bModified, xPropSet, and xUpdatableView.

Referenced by ~FilterConfigItem().

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

Definition at line 233 of file FilterConfigItem.cxx.

References i, and nCount.

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

Member Data Documentation

css::uno::Sequence< css::beans::PropertyValue > FilterConfigItem::aFilterData
bool FilterConfigItem::bModified

Definition at line 46 of file FilterConfigItem.hxx.

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

css::uno::Reference< css::beans::XPropertySet > FilterConfigItem::xPropSet
css::uno::Reference< css::uno::XInterface > FilterConfigItem::xUpdatableView

Definition at line 42 of file FilterConfigItem.hxx.

Referenced by ImpInitTree(), and WriteModifiedConfig().

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