Commit Graph

43 Commits

Author SHA1 Message Date
610b2b94b3 remove unnecessary use of OUString constructor when assigning
change code like
   aStr = OUString("xxxx");
to
   aStr = "xxxx";

Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
fcd1637d51 convert OUString compareToAscii == 0 to equalsAscii
Convert code like
   aStr.compareToAscii("XXX") == 0
to
  aStr.equalsAscii("XXX")
which is both easier to read and faster.

Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11 12:58:13 +02:00
a7724966ab Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete.

Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03:00
189bb791d2 fdo#66691: Revert fix for i#121577 Allow setting toolbar name in Addons.xcu
...which incompatibly changed Addons.xcs and breaks extensions (and LibreLogo,
which adds to Addons.xcu even though it is not an extension).  See the mail
thread starting at
<http://lists.freedesktop.org/archives/libreoffice/2013-July/054612.html>
"[Libreoffice-commits] core.git: #i121577# Allow setting toolbar name in
Addons.xcu" for details.

This reverts commit 85f072ef33ef47b5e3e0bcd51acb5c4179cde2c2
"Resolves: #i121577# Allow setting toolbar name in Addons.xcu" plus follow-up
af572d9fbb744c9691abe465815d7927a9d11510 "Related: #i121577# Allow setting
toolbar name in Addons.xcu," f13f9b5cc5267a7a5606b1a89db91b6d7aef5f9c "various
.xcus are gone now," and 37d9921797a3ad3be8257fbfee11326549fcd987
"odk/examples/python/toolpanel/CalcWindowState.xcu is still in use," plus those
parts of f97ca6f65182efc6542c53ac5e973b3ff398a5d1 "Resolves: #i116455# Make
toolbar style settings persistent" that apparently belong to the fix for
i#121577 rather than i#116455.

Change-Id: Ib744566f3d8da7d9008d7dad8bec60f1bf32e743
2013-07-24 16:36:55 +02:00
af572d9fbb Related: #i121577# Allow setting toolbar name in Addons.xcu
(cherry picked from commit 96cd87ec89e5ebe9d174c90b0f2cab96b3772732)

Conflicts:
	odk/examples/cpp/complextoolbarcontrols/CalcWindowState.xcu
	odk/examples/cpp/complextoolbarcontrols/WriterWindowState.xcu
	odk/examples/java/Inspector/Inspector.java

Change-Id: I6a0c1a657c6084df4efd8e150dc252155b32ba0b
2013-06-24 11:54:45 +01:00
5051209534 Adapt SDK to usage of msvcrtd for Windows --enable-dbgutil
* Re-use existing settings/dk.mk to tunnel ENABLE_DEBUG into the SDK.  Turns out
  this was explicitly included in ~all examples Makefiles, but only after
  settings.mk where it is now used, so include it in settings.mk now and dropped
  it from all the exmaples Makefiles.

* The old settings.mk was apparently confused with using /MT ("link with
  LIBCMT.LIB") on cl command line and /MD ("link with MSVCRT.LIB") on link
  command line (where it was ignored), and you apparently can't pass both
  together to cl, so I settled on /MD (resp. /MDd) now and dropped /MT (resp.
  /MTd).  No idea if that is exactly right, however.

* Introduced client-facing LIBO_SDK_LDFLAGS_STDLIBS that covers kernel32.lib and
  msvcrt.lib vs. msvcrtd.lib on Windows.  Adapted examples Makefiles and
  /ure/source/uretest/Makefile accordingly.  Some examples Makefiles
  additionally use msvcprt.lib, no idea whether that still needs to be
  addressed.

Change-Id: Ia8d9d177e415abfbaf6f9fa6239f0ef9998868be
2013-04-19 14:02:18 +02:00
368210926b remove -dylib_file mappings that are not needed anymore
XCode 2.5 (i.e. Mac OSX 10.4 & 10.5) couldn't find the libraries
without explicit mapping, but as baseline is now 10.6, this
wrapping is no longer necessary

Change-Id: I225fc47b9ea4b1fb2b13ba575605cbdebc014fd8
Reviewed-on: https://gerrit.libreoffice.org/3192
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-04-04 17:46:46 +00:00
7b0a2c0a6f Remove commented code in component.cxx (odk)
Change-Id: I559b91d465ab298b033b0866b3044a17038cc501
Reviewed-on: https://gerrit.libreoffice.org/3137
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-31 15:41:29 +00:00
4ec9f5d768 Remove RTL_CONSTASCII_(U)STRINGPARAM in odk(Developersguide)
Change-Id: Ic2a2cf04a691f628e862e81579d3d55d261fc492
2013-03-31 16:49:53 +02:00
2633b249ea odk: do not pack unused component.map file
Change-Id: I768acf83234eec46c0271dad2e5bef3bd3cba3cf
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-19 14:15:39 +01:00
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex:

s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms

Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 09:00:26 +00:00
693332c0b4 Fix SDK examples
Change-Id: I0a3153bc3fa8338a1a0865db2fbe65a56ae064a4
2012-12-11 18:06:03 +01:00
2b4fd2c89a re-base on ALv2 code. Includes:
Patches contributed by Pedro Giffuni:
    Avoid some uses of non portable #!/bin/bash in shell scripts.
    http://svn.apache.org/viewvc?view=revision&revision=1235297
    Reduce the dependencies on non standard GNU copy.
    http://svn.apache.org/viewvc?view=revision&revision=1238684
    Correct /usr/bin/env path.
    http://svn.apache.org/viewvc?view=revision&revision=1235619

    Complex Toolbar Controls Extension from the SDK
    Patches contributed by Ariel Constenla-Haile
    http://svn.apache.org/viewvc?view=revision&revision=1190390
    i118615 - make epm more verbose
    http://svn.apache.org/viewvc?view=revision&revision=1204288

    Patches contributed by Mathias Bauer (and others)
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326

    Patches contributed by Juergen Schmidt:
    jsc341: i117327: take care if no dependency node in current
    description exists, create one
    http://svn.apache.org/viewvc?view=revision&revision=1172101
    jsc341: i117327: add extra extension dependency check
    http://svn.apache.org/viewvc?view=revision&revision=1172098
    make initial branding changes
    http://svn.apache.org/viewvc?view=revision&revision=1231878

    Patches contributed by Ingo Schmidt
    native373: #i117733# no linux jre installation on 64 bit systems
    http://svn.apache.org/viewvc?view=revision&revision=1167536
    native373: ##164464# improve debian support
    http://svn.apache.org/viewvc?view=revision&revision=1167537

    Patch contribtued by Armin Le-Grand:
    Changed various aspects concerning usages of old vendor names
    http://svn.apache.org/viewvc?view=revision&revision=1293313

fix for neon webdav, remove coinmp bits, improve odk script,
cleanup & remove OS/2 conditionals, system ucpp fixes,
remove OS/2 conditionals, restore our license filenames.
2012-11-12 11:46:43 +00:00
33a0f8ce65 fdo#46808, Adapt awt::Toolkit UNO service to new style
Create a merged XToolkit2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Also mark sub-interfaces as non-optional.

Change-Id: I278d0288e92be277033013302267cf93f7d70480
2012-10-24 16:49:49 +02:00
f770c5d6bc Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)return \([^()]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *);/\1return \2 == \3;/' \{\} \;
2012-04-06 12:48:32 +02:00
b50137566f Remove component_getImplementationEnvironment 2011-07-12 16:45:29 +02:00
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
928af9414d jsc340: i114609: support passive component registration 2011-02-22 16:13:49 +01:00
1628005298 Trying to remove the stlport mention from the code 2011-02-09 16:20:25 +01:00
8cad7d1947 add modelines to .hxx files as well 2010-10-27 13:05:40 +01:00
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
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
40487924f7 #i106627# extend and adapt env for VC9, building manifest, change macro 2009-11-05 14:21:50 +00:00
c673081c1a INTEGRATION: CWS jsc21 (1.8.74); FILE MERGED
2008/06/27 08:49:51 jsc 1.8.74.3: #i90032# adapt link flags and linking for MacOS
2008/05/21 14:12:18 jsc 1.8.74.2: #i88797# adapted to new structure
2008/05/21 13:50:50 jsc 1.8.74.1: #i88797# adapted to new structure
2008-07-11 13:16:30 +00:00
0525725dbe INTEGRATION: CWS changefileheader (1.5.98); FILE MERGED
2008/04/01 12:31:54 thb 1.5.98.1: #i85898# Stripping all external header guards
2008-04-10 15:30:40 +00:00
cfbc63faef INTEGRATION: CWS changefileheader (1.4.296); FILE MERGED
2008/04/01 12:31:54 thb 1.4.296.1: #i85898# Stripping all external header guards
2008-04-10 15:28:30 +00:00
3aa5567ec7 INTEGRATION: CWS jsc17 (1.7.8); FILE MERGED
2007/01/22 15:35:26 jsc 1.7.8.1: #i73750# change UNOPKG_EXT to UNOOXT_EXT
2007-01-25 10:03:46 +00:00
03a974032f INTEGRATION: CWS jsc15 (1.6.122); FILE MERGED
2006/11/24 12:54:06 jsc 1.6.122.1: #i68136# insert manifest linking for VC8
2006-12-20 11:24:00 +00:00
8afa1339fc INTEGRATION: CWS jsc14 (1.4.14); FILE MERGED
2006/10/25 08:52:23 jsc 1.4.14.1: #i70636# remove auto generated precompiled header include
2006-11-06 13:59:41 +00:00
235d9b45c1 INTEGRATION: CWS pchfix02 (1.3.260); FILE MERGED
2006/09/01 17:32:20 kaib 1.3.260.1: #i68856# Added header markers and pch files
2006-09-16 23:09:21 +00:00
b7158dbb1d INTEGRATION: CWS sdfcreater (1.2.248); FILE MERGED
2006/07/24 11:48:20 ihi 1.2.248.1: #i34408# Skip useless translations
2006-08-14 16:13:12 +00:00
9af4606519 INTEGRATION: CWS sdksample (1.5.4); FILE MERGED
2005/01/28 14:15:15 jsc 1.5.4.9: #i29308# prepare path for del command (windows only)
2004/11/16 08:28:33 jsc 1.5.4.8: #i29308# cleanup
2004/10/29 07:33:40 jsc 1.5.4.7: #i29308# cleanup
2004/10/25 12:58:49 jsc 1.5.4.6: #i29308# minimize exported symbols
2004/10/22 14:19:15 jsc 1.5.4.5: #i29308# replace DKREGISTRYNAME with OFFICE_TYPE_LIBRARY
2004/10/22 13:12:35 jsc 1.5.4.4: #i35871# adapt for Java 5.0
2004/10/08 13:58:37 jsc 1.5.4.3: #i29308# insert package manifest
2004/08/24 15:04:21 jsc 1.5.4.2: #i29308# use of new UNO package extension
2004/06/24 09:38:57 jsc 1.5.4.1: #i26335# use zip for packaging
2005-01-31 15:12:09 +00:00
bba6598fc5 INTEGRATION: CWS sdk13 (1.4.94); FILE MERGED
2004/05/05 09:31:19 jsc 1.4.94.1: #116658# merge cinnabar changes
2004-05-18 12:21:19 +00:00
10235fd55b INTEGRATION: CWS sdk08 (1.3.30); FILE MERGED
2003/09/10 11:49:22 jsc 1.3.30.1: #110939# remove semicolons
2003-10-20 12:11:53 +00:00
56af2ee833 INTEGRATION: CWS sdk06 (1.3.2); FILE MERGED
2003/07/03 14:53:55 jsc 1.3.2.1: #110588# insert subst command to correct slashes for Windows < XP
2003-07-09 09:37:11 +00:00
4cb7f5bb03 INTEGRATION: CWS sdk04 (1.2.6); FILE MERGED
2003/06/24 13:32:29 jsc 1.2.6.1: #110313# insert source license header
2003-06-30 14:12:14 +00:00
8b6a7e8339 INTEGRATION: CWS sdk04 (1.2.6); FILE MERGED
2003/06/24 13:32:28 jsc 1.2.6.1: #110313# insert source license header
2003-06-30 14:12:00 +00:00
46eefb46e6 INTEGRATION: CWS sdk04 (1.2.6); FILE MERGED
2003/06/24 13:32:27 jsc 1.2.6.1: #110313# insert source license header
2003-06-30 14:11:35 +00:00
408c308c7a INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/09 10:41:11 jsc 1.1.2.1: #109045# insert new and remove example zip file
2003-06-10 09:11:43 +00:00
cd4057da38 INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/09 10:41:10 jsc 1.1.2.1: #109045# insert new and remove example zip file
2003-06-10 09:11:35 +00:00
c27a9223d6 INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/26 16:17:23 jsc 1.1.2.2: #109888# oor:node changed to oor:component-data
2003/05/09 10:41:08 jsc 1.1.2.1: #109045# insert new and remove example zip file
2003-06-10 09:11:11 +00:00
d909ed8c44 INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/09 10:41:07 jsc 1.1.2.1: #109045# insert new and remove example zip file
2003-06-10 09:11:03 +00:00
b777cc9367 INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/26 16:17:23 jsc 1.1.2.2: #109888# oor:node changed to oor:component-data
2003/05/09 10:41:07 jsc 1.1.2.1: #109045# insert new and remove example zip file
2003-06-10 09:10:56 +00:00