Add select range Writer
This commit is contained in:
parent
08709c1956
commit
6fc13b8a7c
|
@ -33,17 +33,9 @@ class LOWriter(LODocument):
|
|||
chart.doc = self
|
||||
return chart
|
||||
|
||||
def insert_content(self, cursor, data, replace=False):
|
||||
self.text.insertTextContent(cursor, data, replace)
|
||||
return
|
||||
|
||||
# ~ f = doc.createInstance('com.sun.star.text.TextFrame')
|
||||
# ~ f.setSize(Size(10000, 500))
|
||||
|
||||
def select(self, text):
|
||||
self._cc.select(text)
|
||||
return
|
||||
|
||||
def search(self, options):
|
||||
descriptor = self.obj.createSearchDescriptor()
|
||||
descriptor.setSearchString(options.get('Search', ''))
|
||||
|
|
|
@ -2909,11 +2909,17 @@ class LOWriter(LODocument):
|
|||
|
||||
def goto_start(self):
|
||||
self.view_cursor.gotoStart(False)
|
||||
return cursor
|
||||
return
|
||||
|
||||
def goto_end(self):
|
||||
self.view_cursor.gotoEnd(False)
|
||||
return cursor
|
||||
return
|
||||
|
||||
def select(self, text):
|
||||
if hasattr(text, 'obj'):
|
||||
text = text.obj
|
||||
self._cc.select(text)
|
||||
return
|
||||
|
||||
|
||||
class LOShape(LOBaseObject):
|
||||
|
|
Loading…
Reference in New Issue