LibreOffice Module canvas (master)  1
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dxcanvas::DXCanvasItem Class Reference

Provide DX canvas config data. More...

#include <dx_config.hxx>

Inheritance diagram for dxcanvas::DXCanvasItem:
[legend]
Collaboration diagram for dxcanvas::DXCanvasItem:
[legend]

Classes

struct  DeviceInfo
 

Public Member Functions

 DXCanvasItem ()
 
 ~DXCanvasItem () override
 
bool isDeviceUsable (const DeviceInfo &rDeviceInfo) const
 
bool isBlacklistCurrentDevice () const
 
void blacklistDevice (const DeviceInfo &rDeviceInfo)
 
void adaptMaxTextureSize (basegfx::B2IVector &io_maxTextureSize) const
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames) override
 
- Public Member Functions inherited from utl::ConfigItem
virtual ~ConfigItem () override
 
 ConfigItem (ConfigItem const &)=default
 
 ConfigItem (ConfigItem &&)=default
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (ConfigItem &&)=delete
 
const OUString & GetSubTreeName () const
 
bool IsModified () const
 
void Commit ()
 
ConfigItemMode GetMode () const
 
- Public Member Functions inherited from utl::ConfigurationBroadcaster
void AddListener (utl::ConfigurationListener *pListener)
 
void RemoveListener (utl::ConfigurationListener const *pListener)
 
void NotifyListeners (ConfigurationHints nHint)
 
 ConfigurationBroadcaster ()
 
 ConfigurationBroadcaster (ConfigurationBroadcaster const &)
 
virtual ~ConfigurationBroadcaster ()
 
ConfigurationBroadcasteroperator= (ConfigurationBroadcaster const &other)
 
virtual void BlockBroadcasts (bool bBlock)
 

Private Types

typedef std::set< DeviceInfoValueSet
 

Private Member Functions

virtual void ImplCommit () override
 

Private Attributes

ValueSet maValues
 
boost::optional< sal_Int32 > maMaxTextureSize
 
bool mbBlacklistCurrentDevice
 
bool mbValuesDirty
 

Additional Inherited Members

- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (const OUString &rSubTree, ConfigItemMode nMode=ConfigItemMode::NONE)
 
void SetModified ()
 
void ClearModified ()
 
css::uno::Sequence< css::uno::Any > GetProperties (const css::uno::Sequence< OUString > &rNames)
 
css::uno::Sequence< sal_BoolGetReadOnlyStates (const css::uno::Sequence< OUString > &rNames)
 
bool PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
 
bool EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
 
void DisableNotification ()
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode)
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat)
 
bool ClearNodeSet (const OUString &rNode)
 
bool ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements)
 
bool SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool AddNode (const OUString &rNode, const OUString &rNewNode)
 

Detailed Description

Provide DX canvas config data.

Definition at line 33 of file dx_config.hxx.

Member Typedef Documentation

Definition at line 73 of file dx_config.hxx.

Constructor & Destructor Documentation

dxcanvas::DXCanvasItem::DXCanvasItem ( )
dxcanvas::DXCanvasItem::~DXCanvasItem ( )
override

Member Function Documentation

void dxcanvas::DXCanvasItem::adaptMaxTextureSize ( basegfx::B2IVector io_maxTextureSize) const
void dxcanvas::DXCanvasItem::blacklistDevice ( const DeviceInfo rDeviceInfo)

Definition at line 135 of file dx_config.cxx.

References maValues, and mbValuesDirty.

void dxcanvas::DXCanvasItem::ImplCommit ( )
overrideprivatevirtual

Implements utl::ConfigItem.

Definition at line 123 of file dx_config.cxx.

bool dxcanvas::DXCanvasItem::isBlacklistCurrentDevice ( ) const

Definition at line 130 of file dx_config.cxx.

References mbBlacklistCurrentDevice.

bool dxcanvas::DXCanvasItem::isDeviceUsable ( const DeviceInfo rDeviceInfo) const

Definition at line 125 of file dx_config.cxx.

References maValues.

void dxcanvas::DXCanvasItem::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Implements utl::ConfigItem.

Definition at line 122 of file dx_config.cxx.

Member Data Documentation

boost::optional<sal_Int32> dxcanvas::DXCanvasItem::maMaxTextureSize
private

Definition at line 75 of file dx_config.hxx.

Referenced by adaptMaxTextureSize(), and DXCanvasItem().

ValueSet dxcanvas::DXCanvasItem::maValues
private

Definition at line 74 of file dx_config.hxx.

Referenced by blacklistDevice(), DXCanvasItem(), isDeviceUsable(), and ~DXCanvasItem().

bool dxcanvas::DXCanvasItem::mbBlacklistCurrentDevice
private

Definition at line 76 of file dx_config.hxx.

Referenced by DXCanvasItem(), and isBlacklistCurrentDevice().

bool dxcanvas::DXCanvasItem::mbValuesDirty
private

Definition at line 77 of file dx_config.hxx.

Referenced by blacklistDevice(), and ~DXCanvasItem().


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