Commit graph

111 commits

Author SHA1 Message Date
Stephan Bergmann
a1dff2901e Support for annotations in the new UNOIDL format
...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-05-16 16:12:45 +02:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
Stephan Bergmann
bab43b23d5 Allow for (relative) pathname args for codemakers again
Change-Id: I503d88b7d6fc44ef70d5071fddcec465e3fba856
2013-04-24 12:42:01 +02:00
Stephan Bergmann
048e591819 Further codemaker, unodevtools clean-up
...getting rid of now dangling references to module registry.

Change-Id: Iccad7ff5dc0e79bf91b7b7dae03b73f16adeb121
2013-04-16 17:38:44 +02:00
Stephan Bergmann
30a7c6ba6b WIP: Experimental new binary type.rdb format
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-16 13:52:29 +02:00
Stephan Bergmann
8937fac216 uno-skeletonmaker does not bootstrap UNO
...so mentioning env:INIFILENAME and env:UNO_TYPES is misleading.

Change-Id: Ia91ad691c58d226bc445b3355dffb82ba7ddbef5
2013-04-11 16:11:19 +02:00
Stephan Bergmann
7b3bef772d No need to have uno-skeletonmaker depend on udkapi
...just for RuntimeException, which can be replaced with CannotDumpException.

Change-Id: I258f5fe534d589b33e988f7e585168c1bc6990f8
2013-04-11 16:11:19 +02:00
Stephan Bergmann
fc02ae8f82 [API CHANGE] WIP: Experimental new binary type.rdb format
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-11 09:29:44 +02:00
Stephan Bergmann
02a8e8acd1 [API CHANGE] WIP: Experimental new binary type.rdb format
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 ba044b1e96
  "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-09 09:44:33 +02:00
Golnaz Irannejad
92c6a38175 Fixed 4 spelling errors in the comments.
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-07 21:28:01 +00:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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-04-07 14:23:11 +02:00
Stephan Bergmann
bb1f0c667f Clean up codemaker/typemanager.hxx
Change-Id: I650efd6780070410eaf34993dd41ed1b8ada7c9a
2013-03-27 09:36:54 +01:00
Chr. Rossmanith
4b2890453b Removed RTL_CONSTASCII_STRINGPARAM in unodevtools
Change-Id: I41ea9fe6fcac6cba0e12cd570b9971998717f401
2013-03-12 21:02:26 +01:00
Kenneth Beck
21e1e859a7 fdo#60724 change spelling error REMOVEABLE -> REMOVABLE
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-06 10:39:30 +01:00
Thomas Arnhold
919e277466 loplugin: unused variables and commented code
Change-Id: I01f1f1d112767b576d7cfc6e25fe95385de2c0cf
2013-03-03 11:48:02 +01:00
Julien Nabet
2ce2fafa1b Some cppcheck cleaning
Change-Id: Idb380dbb7470dbdb371778ba0c486392cc55380e
2013-02-12 14:48:04 +01:00
Thorsten Behrens
66a175834c c++ API: use css alias in generated headers, adds global css decl
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-30 14:36:36 +01:00
Miklos Vajna
26364f4fd3 deduplicate OString std::basic_ostream operators
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-11-10 10:49:31 +01:00
Michael Meeks
ec54c0c45f re-base on ALv2 code. 2012-07-03 13:10:11 +01:00
Andras Timar
54e9a28390 typo: paramters, paramaters -> parameters
Change-Id: If58683331c50f2a95204e8e2dea11edbef3ccb63
2012-06-19 16:44:08 +02:00
Michael Stahl
9af0eb7e99 skeletonmaker: add back \" in string literal
Seems accidentally removed in ea489b3570.

Change-Id: I7c4be5c41033ca8d4f66557efb30d17f8527b4a8
2012-06-07 15:17:41 +02:00
Tor Lillqvist
2faadd0b4e Update also the help message
Change-Id: I3b84d1905d13c9418985d1ebe5feac13a0025efe
2012-06-06 19:00:03 +03:00
Tor Lillqvist
d28f2135f1 Nobody uses this tool, but still, update the license blurb it outputs
Change-Id: Id9d767c2738d8052f2716086fb40a1b01c68d76e
2012-06-06 18:55:56 +03:00
Norbert Thiebaud
ea489b3570 targeted string re-work
Change-Id: Ia2115e70df8f64eb0dade6beb33ee64c358af767
2012-06-02 17:57:16 -05:00
David Ostrovsky
a57b634799 gbuild conversion: unodevtools module 2012-04-14 06:58:00 -05:00
David Tardon
55823d331e replace APP?RPATH SDK by SDKBIN in old build system
Commit 0c80ad06fd 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-14 07:22:15 +02:00
Szabolcs Dezsi
e4fb171d3a Replaced a few equal calls with == 2012-04-08 19:24:00 +02:00
Thomas Arnhold
a8a38888b5 unodevtools: remove dead code 2012-02-18 21:33:04 +01:00
Stephan Bergmann
6cd581f240 Code clean up. 2012-01-20 12:14:45 +01:00
Olivier Hallot
55b6485978 Fix for fdo43460 Part XLI getLength() to isEmpty()
Part XLI
Modules
ucbhelper, unodevtools
2012-01-19 22:07:58 -02:00
Takeshi Abe
ff580eb39b catch exception by constant reference 2012-01-08 03:35:43 +09:00
Takeshi Abe
e4ce7225dd catch exception by constant reference 2012-01-07 15:51:31 +09:00
Caolán McNamara
c8ef924060 normalize Red Hat, Inc. spellings, and bump to latest template 2011-12-06 21:24:37 +00:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Matúš Kukan
b50137566f Remove component_getImplementationEnvironment 2011-07-12 16:45:29 +02:00
Tor Lillqvist
8c29883984 Don't build skeletonmaker for iOS 2011-06-14 00:21:31 +03:00
Julien Nabet
3c60b4698b Easyhack: Add visibility markup to all component_get* functions 2011-04-21 15:14:11 +02:00
Jan Holesovsky
11cdc4ccc4 Merge commit 'ooo/DEV300_m103'
Conflicts:
	odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
	odk/examples/DevelopersGuide/Database/DriverSkeleton/SServices.cxx
	odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx
	odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
	odk/examples/cpp/complextoolbarcontrols/exports.cxx
	odk/examples/cpp/counter/countermain.cxx
	odk/examples/cpp/remoteclient/remoteclient.cxx
	odk/settings/settings.mk
2011-03-23 16:59:36 +01:00
bjoern.michaelsen@canonical.com
25f550ca9f static libraries need to get linked before dynamic ones for symbol lookup
Signed-off-by: bjoern.michaelsen@canonical.com <Bjoern Michaelsen>
2011-02-07 18:24:18 +01:00
Fridrich Štrba
1efeac6ea9 std::hash -> boost::hash 2011-02-06 15:23:06 +01:00
Fridrich Štrba
639825975e move sdk repo to boost unordered containters 2011-02-05 21:56:00 +01:00
Caolán McNamara
e28997dded cppcheck: prefer prefix variant 2011-01-07 11:10:01 +00:00
Caolán McNamara
87d83f4870 cppcheck: prefer prefix variant 2010-12-24 13:27:55 +00:00
Caolán McNamara
0d0098749e cppcheck: prefer prefix variant 2010-12-23 20:57:31 +00:00
Gert Faller
1d922012be RTL_CONSTASCII_USTRINGPARAM in sdk 2 2010-11-27 09:28:39 +01:00
Caolán McNamara
8cad7d1947 add modelines to .hxx files as well 2010-10-27 13:05:40 +01:00
Povilas Kanapickas
3eb979df54 remove non-compiled code 2010-10-18 15:52:09 +01:00
Sebastian Spaeth
e9a59da46a Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:58:04 +02:00
Juergen Schmidt
6fd7592539 jsc340: i14847: clean up cmdline help fo devtools 2010-10-01 14:20:45 +02:00
Jens-Heiner Rechtien
1296914c84 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00