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:
Collaboration diagram for dxcanvas::DXCanvasItem:


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
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

- 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 32 of file dx_config.hxx.

Member Typedef Documentation

Definition at line 72 of file dx_config.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 135 of file dx_config.cxx.

References maValues, and mbValuesDirty.

void dxcanvas::DXCanvasItem::ImplCommit ( )

Implements utl::ConfigItem.

Definition at line 123 of file dx_config.cxx.

bool dxcanvas::DXCanvasItem::isDenylistCurrentDevice ( ) const

Definition at line 130 of file dx_config.cxx.

References mbDenylistCurrentDevice.

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)

Implements utl::ConfigItem.

Definition at line 122 of file dx_config.cxx.

Member Data Documentation

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

Definition at line 74 of file dx_config.hxx.

Referenced by adaptMaxTextureSize(), and DXCanvasItem().

ValueSet dxcanvas::DXCanvasItem::maValues

Definition at line 73 of file dx_config.hxx.

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

bool dxcanvas::DXCanvasItem::mbDenylistCurrentDevice

Definition at line 75 of file dx_config.hxx.

Referenced by DXCanvasItem(), and isDenylistCurrentDevice().

bool dxcanvas::DXCanvasItem::mbValuesDirty

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: