Add type and commmand for forms

This commit is contained in:
Mauricio Baeza 2020-11-27 20:09:07 -06:00
parent d4ade2b94c
commit fce0a21551
1 changed files with 16 additions and 0 deletions

View File

@ -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):