summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/ui/event/UnoDataAware.py
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/ui/event/UnoDataAware.py')
-rw-r--r--wizards/com/sun/star/wizards/ui/event/UnoDataAware.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/ui/event/UnoDataAware.py b/wizards/com/sun/star/wizards/ui/event/UnoDataAware.py
index ba1e6e92a924..83c61db5a6a1 100644
--- a/wizards/com/sun/star/wizards/ui/event/UnoDataAware.py
+++ b/wizards/com/sun/star/wizards/ui/event/UnoDataAware.py
@@ -14,6 +14,8 @@ For those controls, static convenience methods are offered, to simplify use.
class UnoDataAware(DataAware):
+ disableObjects = []
+
def __init__(self, dataObject, field, unoObject_, unoPropName_, isShort=False):
super(UnoDataAware,self).__init__(dataObject, field)
self.unoControl = unoObject_
@@ -21,6 +23,11 @@ class UnoDataAware(DataAware):
self.unoPropName = unoPropName_
self.isShort = isShort
+ def enableControls(self, value):
+ for i in self.disableObjects:
+ Helper.setUnoPropertyValue(
+ i.Model, PropertyNames.PROPERTY_ENABLED, value)
+
def setToUI(self, value):
if self.isShort:
value = uno.Any("[]short", (value,))