#import mwlib.cdbwiki, mwlib.apps.render, mwlib.apps import mwlib.apps import sys, os class MW(object): """ Use this adapter class to call mwlib within python. Example: import mw; MW.buildcdb("in.xml","out") """ @staticmethod def quietCall(function,args=(),showErr=True,showOutput=True): """ Calls a python function and redirects parts to /dev/null. This is platform independent. """ saveout = sys.stdout saveerr = sys.stderr if not showErr: sys.stderr=nullerr=open(os.devnull,"w") if not showOutput: sys.stdout=nullout=open(os.devnull,"w") function(*args) if not showErr: nullerr.close() if not showOutput: nullout.close() sys.stdout=saveout sys.stderr=saveerr @staticmethod def _setArgs(function,args): """ Set sys.argv for @function """ bak = sys.argv args=("nothing",)+args dec=[x.encode() for x in args] sys.argv=dec r=function() sys.argv=bak return r @staticmethod def buildcdb(source,dest): args=("--input",source,"--output",dest) return MW._setArgs(mwlib.apps.buildcdb,args) #mwlib.cdbwiki.BuildWiki(*args) @staticmethod def render(*args): import mwlib.apps.render return MW._setArgs(mwlib.apps.render.Main(),args) -5-1'>distro/cib/libreoffice-5-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/unoidl/source/sourceprovider-scanner.hxx
AgeCommit message (Expand)Author
2022-05-18clang-tidy modernize-pass-by-value in unoidlNoel Grandin
2021-10-11loplugin:moveparam in unoidlNoel Grandin
2021-05-02throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewriteStephan Bergmann
2021-03-23tdf#124176 Use pragma once in u*Vincent LE GARREC
2020-11-24loplugin:stringviewparam extend to comparison operatorsNoel
2020-05-10compact namespace in ucb..uuiNoel Grandin
2020-03-15Revert "loplugin:constfields in unoidl"Noel Grandin
2018-10-24remove more rtl::OUString and OString prefixesNoel Grandin
2018-09-26loplugin:constfields in unoidlNoel Grandin
2017-10-23loplugin:includeform: unoidlStephan Bergmann
2017-04-05loplugin:redundantcast find c-style bool castsNoel Grandin
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2015-06-02cppcheck: noExplicitConstructorCaolán McNamara
2015-05-26cppcheck: noExplicitConstructorCaolán McNamara
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin
2013-11-25Fix unoidl sourceprovider interface base and member checksStephan Bergmann
2013-11-22Fix unoidl sourceprovider "published" checksStephan Bergmann
2013-10-10Silence some false Covertiy scan warnings about uninitialized membersStephan Bergmann
2013-09-20keep C++03 compilers happyStephan Bergmann
2013-09-20Reject "too similar" service constructorsStephan Bergmann
2013-09-17Move full file parsing logic to sourceprovider-parser.yStephan Bergmann
2013-09-17Detect reuse of module names for other entitiesStephan Bergmann
2013-09-12WaE: C4805: '!=' : unsafe mix of type 'bool' and type 'sal_Bool' in operationTor Lillqvist
2013-09-12WIP: additional unoidl::Provider that directly reads from .idl filesStephan Bergmann