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 isDenylistCurrentDevice () const
 
void denylistDevice (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
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0
 
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
 
std::optional< sal_Int32 > maMaxTextureSize
 
bool mbDenylistCurrentDevice
 
bool mbValuesDirty
 

Additional Inherited Members

- Static Public Member Functions inherited from utl::ConfigItem
static css::uno::Sequence< OUString > GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat)
 
static css::uno::Sequence< css::uno::Any > GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
 
static bool PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
 
static bool ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode)
 
static bool ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales)
 
static bool SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (OUString aSubTree, 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 32 of file dx_config.hxx.

Member Typedef Documentation

◆ ValueSet

Definition at line 72 of file dx_config.hxx.

Constructor & Destructor Documentation

◆ DXCanvasItem()

dxcanvas::DXCanvasItem::DXCanvasItem ( )

◆ ~DXCanvasItem()

dxcanvas::DXCanvasItem::~DXCanvasItem ( )
override

Member Function Documentation

◆ adaptMaxTextureSize()

void dxcanvas::DXCanvasItem::adaptMaxTextureSize ( basegfx::B2IVector io_maxTextureSize) const

◆ denylistDevice()

void dxcanvas::DXCanvasItem::denylistDevice ( const DeviceInfo rDeviceInfo)

Definition at line 131 of file dx_config.cxx.

References maValues, and mbValuesDirty.

◆ ImplCommit()

void dxcanvas::DXCanvasItem::ImplCommit ( )
overrideprivatevirtual

Implements utl::ConfigItem.

Definition at line 119 of file dx_config.cxx.

◆ isDenylistCurrentDevice()

bool dxcanvas::DXCanvasItem::isDenylistCurrentDevice ( ) const

Definition at line 126 of file dx_config.cxx.

References mbDenylistCurrentDevice.

◆ isDeviceUsable()

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

Definition at line 121 of file dx_config.cxx.

References maValues.

◆ Notify()

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

Implements utl::ConfigItem.

Definition at line 118 of file dx_config.cxx.

Member Data Documentation

◆ maMaxTextureSize

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

Definition at line 74 of file dx_config.hxx.

Referenced by adaptMaxTextureSize(), and DXCanvasItem().

◆ maValues

ValueSet dxcanvas::DXCanvasItem::maValues
private

Definition at line 73 of file dx_config.hxx.

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

◆ mbDenylistCurrentDevice

bool dxcanvas::DXCanvasItem::mbDenylistCurrentDevice
private

Definition at line 75 of file dx_config.hxx.

Referenced by DXCanvasItem(), and isDenylistCurrentDevice().

◆ mbValuesDirty

bool dxcanvas::DXCanvasItem::mbValuesDirty
private

Definition at line 76 of file dx_config.hxx.

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


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