Add type and commmand for forms
This commit is contained in:
parent
d4ade2b94c
commit
fce0a21551
|
@ -98,6 +98,8 @@ from com.sun.star.style.VerticalAlignment import TOP, MIDDLE, BOTTOM
|
|||
|
||||
from com.sun.star.view.SelectionType import SINGLE, MULTI, RANGE
|
||||
|
||||
from com.sun.star.sdb.CommandType import TABLE, QUERY, COMMAND
|
||||
|
||||
try:
|
||||
from peewee import Database, DateTimeField, DateField, TimeField, \
|
||||
__exception_wrapper__
|
||||
|
@ -1548,6 +1550,20 @@ class LOForm(object):
|
|||
def source(self, value):
|
||||
self.obj.DataSourceName = value
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
return self.obj.CommandType
|
||||
@type.setter
|
||||
def type(self, value):
|
||||
self.obj.CommandType = value
|
||||
|
||||
@property
|
||||
def command(self):
|
||||
return self.obj.Command
|
||||
@command.setter
|
||||
def command(self, value):
|
||||
self.obj.Command = value
|
||||
|
||||
def add(self, args):
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue