summaryrefslogtreecommitdiff
path: root/unodevtools
AgeCommit message (Collapse)AuthorFilesLines
2013-11-11remove unnecessary use of OUString constructorNoel Grandin1-1/+1
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-05fixincludeguards.sh: uno*Thomas Arnhold2-6/+6
Change-Id: I8fb3c25cd583b688104a0ee8620696e7b2958ab5
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin1-2/+2
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-09-16Revert "WIP: add cppumaker -U to directly read from .idl files"Stephan Bergmann1-1/+1
This reverts commit c4113906d7f15f8aa0eb385a4caf474b3505ede1, which is not necessary after all with recent "Hook SourceProvider into unoidl::loadProvider."
2013-09-12WIP: add cppumaker -U to directly read from .idl filesStephan Bergmann1-1/+1
Change-Id: I420847515b6b691ae81a249a8820cf9a3d132372
2013-08-26unodevtools: drop support for skeletonmaker --java4 parameterMichael Stahl5-73/+33
Minimum requirement has been Java 1.5 for years now. Change-Id: Id512507db1fc12c92d8f7662505eda6866da2fc6
2013-08-26unodevtools: why does the C++ generating code check java5 flag?Michael Stahl1-2/+2
Change-Id: I598698948a3543f1c020cc4a4b8db8799eb314a5
2013-07-11added FIXME-BCP47 commentEike Rathke1-0/+1
Change-Id: I77416a9e275dc204b3b82807d27b5276ad4f497f
2013-07-11added FIXME-BCP47 commentEike Rathke1-0/+1
Change-Id: I202c53a094ac7ddcbd1fa0d2367058aba56820ed
2013-06-18fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty()Jelle van der Waa2-3/+3
Change-Id: I6e35b91092239275694eec3666b076f7ff7e54f6 Reviewed-on: https://gerrit.libreoffice.org/4335 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-05-16Support for annotations in the new UNOIDL formatStephan Bergmann3-34/+35
...used for now to transport @deprecated information. Also, improve Idx-String (formerly Idx-Name, but also used for UTF-8 annotations now) format, using the 0x80000000 for the indirection rather than the base case. (And the README erroneously used "Offset of" Idx-String all over the place.) Change-Id: I7003b1558ab536a11a9af308f9b16a7ef8840792
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks3-43/+9
2013-04-24Allow for (relative) pathname args for codemakers againStephan Bergmann1-1/+1
Change-Id: I503d88b7d6fc44ef70d5071fddcec465e3fba856
2013-04-16Further codemaker, unodevtools clean-upStephan Bergmann7-1/+15
...getting rid of now dangling references to module registry. Change-Id: Iccad7ff5dc0e79bf91b7b7dae03b73f16adeb121
2013-04-16WIP: Experimental new binary type.rdb formatStephan Bergmann9-1470/+1447
Make uno-skeletonmaker work on top of unoidl/ instead of registry/. These changes have only been tested so far rather lightly. Basic uno-skeletonmaker still works, but more thorough testing of the various input flags is needed. Change-Id: Id7f3aee863a10f8c649325db2d6f34a4057f70ff
2013-04-11uno-skeletonmaker does not bootstrap UNOStephan Bergmann1-15/+5
...so mentioning env:INIFILENAME and env:UNO_TYPES is misleading. Change-Id: Ia91ad691c58d226bc445b3355dffb82ba7ddbef5
2013-04-11No need to have uno-skeletonmaker depend on udkapiStephan Bergmann4-35/+6
...just for RuntimeException, which can be replaced with CannotDumpException. Change-Id: I258f5fe534d589b33e988f7e585168c1bc6990f8
2013-04-11Remove dead codeStephan Bergmann2-798/+0
Change-Id: I090b0b1b10fdfe9d5955fe0137214d8907c3aa0c
2013-04-11[API CHANGE] WIP: Experimental new binary type.rdb formatStephan Bergmann1-1/+1
Make javamaker work on top of unoidl/ instead of registry/. API CHANGE: javamaker no longer supports the -B switch, as that is meaningless with the new format. When reading from an old-format .rdb file, /UCR is hard- coded as the prefix now. Change-Id: I8cca39f8ebacd0476934f7bd493d206928d063a9
2013-04-09[API CHANGE] WIP: Experimental new binary type.rdb formatStephan Bergmann7-139/+121
Make cppumaker work on top of unoidl/ instead of registry/, as a first step to change all the various codemakers. * API CHANGE: cppumaker no longer supports the -B switch, as that is meaningless with the new format. When reading from an old-format .rdb file, /UCR is hard-coded as the prefix now. * TODO: The new format does not yet support deprecation annotations, so the generated .hdl/.hpp files lack any SAL_DEPRECATED_INTERNALs for now. * codemaker/typemanager.hxx is extended with access to unoidl/ functionality, so the various codemakers can use registry/ and unoidl/ in parallel for now. The access to registry/ functionality will be removed. (Added small throwaway helper functions u2b/b2u to easily map between OString and OUString at the remaining seams for now.) * Includes a selective revert of ba044b1e9613ed30906a9a540b7da8392923e4e3 "remove needless forward rtl::OUString declarations" in those parts of codemaker, unodevtools, unoidl that were covered by this local work-in-progress patch; I would otherwise have hard a hard time re-applying it. * The generated .hdl/.hpp files are mostly unchanged, except for a few minor things: ** Any SAL_DEPRECATED_INTERNALs are missing (see above). ** In comprehensive getCppuType definitions, some members were erroneously classified as TypeCalss_UNKNOWN. ** In comprehensive getCppuType definitions, some unnecessary calls like ::cppu::UnoType< ::sal_Int32 >::get(); can be removed. ** For typedef sequence<X>, the .hdl file need not include X.hdl, but only needs to forward-declare it. ** Unnecessary includes for optional bases of interfaces can be removed. ** Some numbering of local variable names (sMethodName1, ...) has changed. Change-Id: Icad98f248ac15177337f1b4ab709a755a8af6238
2013-04-07Fixed 4 spelling errors in the comments.Golnaz Irannejad1-1/+1
Change-Id: Ic48f52d7ea4f6a4964f627e3051c96c46ffc2f76 Reviewed-on: https://gerrit.libreoffice.org/3164 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák8-138/+134
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-27Clean up codemaker/typemanager.hxxStephan Bergmann13-468/+116
Change-Id: I650efd6780070410eaf34993dd41ed1b8ada7c9a
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-4/+0
2013-03-13more subtle dependencies for cross-compilationMatúš Kukan1-1/+1
Now we build only what we really need for 'build' platform - there is new build-tools make target. The list of tools is in solenv/gbuild/extensions/pre_BuildTools.mk. Also similar is done to some extent for 'host' platform using gb_Module_add_targets_for_build which is ignored for 'host'. Change-Id: I6acd1762b16aca366aac1a0688500f27869cfca2
2013-03-12Removed RTL_CONSTASCII_STRINGPARAM in unodevtoolsChr. Rossmanith6-37/+31
Change-Id: I41ea9fe6fcac6cba0e12cd570b9971998717f401
2013-03-06fdo#60724 change spelling error REMOVEABLE -> REMOVABLEKenneth Beck2-3/+3
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments. All other instances of the misspelling have remained the same. Example: AF_REMOVEABLE Change-Id: I391f4101bbc3e06689318235a37d616065bc1686 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-03loplugin: unused variables and commented codeThomas Arnhold3-16/+0
Change-Id: I01f1f1d112767b576d7cfc6e25fe95385de2c0cf
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-12Some cppcheck cleaningJulien Nabet1-1/+1
Change-Id: Idb380dbb7470dbdb371778ba0c486392cc55380e
2013-01-26gbuild: fix silly "expandtabs" in makefile VIM modelinesMichael Stahl2-2/+2
Change-Id: I54d8923ad315e8041fd3904da3a29f1a7a8c8b16
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl1-0/+2
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens2-18/+18
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-10deduplicate OString std::basic_ostream operatorsMiklos Vajna7-55/+0
I wanted to add one, based on OUString one, and Stephan on IRC agreed it's a good idea. Then it turned out we already had it in sal unit tests, sdext and unodevtools as well. Get rid of all these, and have a single implementation in string.hxx, so it can be used everywhere. Change-Id: Ibb820f20a138d055fd87036253c627fb862a31fe
2012-08-04Replace usage of rtl/memory.h in unodevtools with equivalent from string.hArnaud Versini1-9/+11
Change-Id: Id13d0be47071345508ea1ddd3a8c4b8e656fcfe8
2012-07-03re-base on ALv2 code.Michael Meeks15-325/+206
2012-06-19typo: paramters, paramaters -> parametersAndras Timar1-1/+1
Change-Id: If58683331c50f2a95204e8e2dea11edbef3ccb63
2012-06-07skeletonmaker: add back \" in string literalMichael Stahl1-1/+1
Seems accidentally removed in ea489b3570efe7d9a53da91ba66fa1563d40ffbb. Change-Id: I7c4be5c41033ca8d4f66557efb30d17f8527b4a8
2012-06-06Update also the help messageTor Lillqvist1-1/+1
Change-Id: I3b84d1905d13c9418985d1ebe5feac13a0025efe
2012-06-06Nobody uses this tool, but still, update the license blurb it outputsTor Lillqvist1-26/+8
Change-Id: Id9d767c2738d8052f2716086fb40a1b01c68d76e
2012-06-02targeted string re-workNorbert Thiebaud3-31/+26
Change-Id: Ia2115e70df8f64eb0dade6beb33ee64c358af767
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen1-1/+0
this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-20Don't build these command-line tools for non-desktop OSesTor Lillqvist1-0/+4
2012-04-14rename common* static libs to codemaker_* for clarity + dmake cleanupNorbert Thiebaud2-57/+2
2012-04-14gbuild conversion: unodevtools moduleDavid Ostrovsky8-126/+107
2012-04-14replace APP?RPATH SDK by SDKBIN in old build systemDavid Tardon1-1/+1
Commit 0c80ad06fd96a4fec062a7edfff12bb65ef204b4 broke MacOS X builds because of this discrepancy. It would be easy to accept both, but I think it is better to be consistent with gbuild.
2012-04-08Replaced a few equal calls with ==Szabolcs Dezsi1-4/+4
2012-03-06idle code documentation improvementMichael Meeks1-0/+6
2012-02-18unodevtools: remove dead codeThomas Arnhold1-22/+0
2012-01-20Code clean up.Stephan Bergmann8-30/+23