LibreOffice Module canvas (master) 1
|
Provide DX canvas config data. More...
#include <dx_config.hxx>
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 | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (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 () |
ConfigurationBroadcaster & | operator= (ConfigurationBroadcaster const &other) |
virtual void | BlockBroadcasts (bool bBlock) |
Private Types | |
typedef std::set< DeviceInfo > | ValueSet |
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_Bool > | GetReadOnlyStates (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) |
Provide DX canvas config data.
Definition at line 32 of file dx_config.hxx.
|
private |
Definition at line 72 of file dx_config.hxx.
dxcanvas::DXCanvasItem::DXCanvasItem | ( | ) |
Definition at line 37 of file dx_config.cxx.
References utl::ConfigItem::GetProperties(), i, maMaxTextureSize, maValues, maValues, mbDenylistCurrentDevice, dxcanvas::DXCanvasItem::DeviceInfo::nDeviceId, dxcanvas::DXCanvasItem::DeviceInfo::nDeviceRevision, dxcanvas::DXCanvasItem::DeviceInfo::nDeviceSubSysId, dxcanvas::DXCanvasItem::DeviceInfo::nDriverBuildId, dxcanvas::DXCanvasItem::DeviceInfo::nDriverId, dxcanvas::DXCanvasItem::DeviceInfo::nDriverSubVersion, dxcanvas::DXCanvasItem::DeviceInfo::nDriverVersion, NONE, dxcanvas::DXCanvasItem::DeviceInfo::nVendorId, pValues, and TOOLS_WARN_EXCEPTION.
|
override |
Definition at line 87 of file dx_config.cxx.
References maValues, mbValuesDirty, dxcanvas::DXCanvasItem::DeviceInfo::nDeviceId, dxcanvas::DXCanvasItem::DeviceInfo::nDeviceRevision, dxcanvas::DXCanvasItem::DeviceInfo::nDeviceSubSysId, dxcanvas::DXCanvasItem::DeviceInfo::nDriverBuildId, dxcanvas::DXCanvasItem::DeviceInfo::nDriverId, dxcanvas::DXCanvasItem::DeviceInfo::nDriverSubVersion, dxcanvas::DXCanvasItem::DeviceInfo::nDriverVersion, dxcanvas::DXCanvasItem::DeviceInfo::nVendorId, utl::ConfigItem::PutProperties(), pValues, and TOOLS_WARN_EXCEPTION.
void dxcanvas::DXCanvasItem::adaptMaxTextureSize | ( | basegfx::B2IVector & | io_maxTextureSize | ) | const |
Definition at line 137 of file dx_config.cxx.
References basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), maMaxTextureSize, basegfx::Tuple2D< typename TYPE >::setX(), and basegfx::Tuple2D< typename TYPE >::setY().
void dxcanvas::DXCanvasItem::denylistDevice | ( | const DeviceInfo & | rDeviceInfo | ) |
Definition at line 131 of file dx_config.cxx.
References maValues, and mbValuesDirty.
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 119 of file dx_config.cxx.
bool dxcanvas::DXCanvasItem::isDenylistCurrentDevice | ( | ) | const |
Definition at line 126 of file dx_config.cxx.
References mbDenylistCurrentDevice.
bool dxcanvas::DXCanvasItem::isDeviceUsable | ( | const DeviceInfo & | rDeviceInfo | ) | const |
Definition at line 121 of file dx_config.cxx.
References maValues.
|
overridevirtual |
Implements utl::ConfigItem.
Definition at line 118 of file dx_config.cxx.
|
private |
Definition at line 74 of file dx_config.hxx.
Referenced by adaptMaxTextureSize(), and DXCanvasItem().
|
private |
Definition at line 73 of file dx_config.hxx.
Referenced by denylistDevice(), DXCanvasItem(), isDeviceUsable(), and ~DXCanvasItem().
|
private |
Definition at line 75 of file dx_config.hxx.
Referenced by DXCanvasItem(), and isDenylistCurrentDevice().
|
private |
Definition at line 76 of file dx_config.hxx.
Referenced by denylistDevice(), and ~DXCanvasItem().