[Libreoffice-commits] core.git: wizards/source

Jean-Pierre Ledure (via logerrit) logerrit at kemper.freedesktop.org
Sat Aug 17 14:18:57 UTC 2019


 wizards/source/access2base/access2base.py |   21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

New commits:
commit cd963fe2f8607dc829a529adfe3a8a7464835070
Author:     Jean-Pierre Ledure <jp at ledure.be>
AuthorDate: Sat Aug 17 16:15:00 2019 +0200
Commit:     Jean-Pierre Ledure <jp at ledure.be>
CommitDate: Sat Aug 17 16:15:00 2019 +0200

    Access2Base - access2base.py fix module class
    
    Properties changed to methods when having arguments
    Methods Find and ProcOfLine not supported
    because they require passing arguments by reference
    (not available in Python)
    
    Change-Id: I92044e8ea4a07e2093b23699bf28b9d1ac0fe695

diff --git a/wizards/source/access2base/access2base.py b/wizards/source/access2base/access2base.py
index c3f20a479dda..b831fcd4efca 100644
--- a/wizards/source/access2base/access2base.py
+++ b/wizards/source/access2base/access2base.py
@@ -1322,15 +1322,24 @@ class _Form(_BasicObject):
 
 
 class _Module(_BasicObject):
-    classProperties = dict(CountOfDeclarationLines = False, CountOfLines = False, Lines = False
-                        , ProcBodyLine = False, ProcCountLines = False, ProcOfLine = False, ProcStartLine = False
-                        , Type = False
+    classProperties = dict(CountOfDeclarationLines = False, CountOfLines = False
+                        , ProcStartLine = False, Type = False
                         )
 
-    def Find(self, target, startline, startcolumn, endline, endcolumn, wholeword = False
+    """ def Find(self, target, startline, startcolumn, endline, endcolumn, wholeword = False
         , matchcase = False, patternsearch = False):
         return self.W(_vbMethod, self.objectreference, 'Find', target, startline, startcolumn, endline
-                      , endcolumn, wholeword, matchcase, patternsearch)
+                      , endcolumn, wholeword, matchcase, patternsearch) """
+    def Lines(self, line, numlines):
+        return self.W(_vbMethod, self.objectreference, 'Lines', line, numlines)
+    def ProcBodyLine(self, procname, prockind):
+        return self.W(_vbMethod, self.objectreference, 'ProcBodyLine', procname, prockind)
+    def ProcCountLines(self, procname, prockind):
+        return self.W(_vbMethod, self.objectreference, 'ProcCountLines', procname, prockind)
+    """ def ProcOfLine(self, line, prockind):
+        return self.W(_vbMethod, self.objectreference, 'ProcOfLine', line, prockind) """
+    def ProcStartLine(self, procname, prockind):
+        return self.W(_vbMethod, self.objectreference, 'ProcStartLine', procname, prockind)
 
 
 class _OptionGroup(_BasicObject):
@@ -1435,7 +1444,7 @@ Set of directly callable error handling methods
 def DebugPrint(*args):
     dargs = ()
     for arg in args:
-        if isinstance(arg, _BasicObject): arg = '[OBJECT]'
+        if isinstance(arg, _BasicObject): arg = '[' + arg.objecttype + ']'
         dargs = dargs + (arg,)
     return _A2B.invokeMethod('DebugPrint', _WRAPPERMODULE, *dargs)
 def TraceConsole(): return _A2B.invokeMethod('TraceConsole', 'Trace')


More information about the Libreoffice-commits mailing list