Remove text range class
This commit is contained in:
parent
d81ccd943a
commit
67fec86289
|
@ -103,38 +103,6 @@ class LOWriter(LODocument):
|
|||
return found
|
||||
|
||||
|
||||
class LOTextRange(object):
|
||||
|
||||
def __init__(self, obj):
|
||||
self._obj = obj
|
||||
self._is_paragraph = self.obj.ImplementationName == 'SwXParagraph'
|
||||
self._is_table = self.obj.ImplementationName == 'SwXTextTable'
|
||||
|
||||
@property
|
||||
def obj(self):
|
||||
return self._obj
|
||||
|
||||
@property
|
||||
def is_paragraph(self):
|
||||
return self._is_paragraph
|
||||
|
||||
@property
|
||||
def is_table(self):
|
||||
return self._is_table
|
||||
|
||||
@property
|
||||
def string(self):
|
||||
return self.obj.String
|
||||
|
||||
@property
|
||||
def text(self):
|
||||
return self.obj.getText()
|
||||
|
||||
@property
|
||||
def cursor(self):
|
||||
return self.text.createTextCursorByRange(self.obj)
|
||||
|
||||
|
||||
class LOBase(object):
|
||||
TYPES = {
|
||||
str: 'setString',
|
||||
|
|
Loading…
Reference in New Issue