Commit Graph

1625 Commits

Author SHA1 Message Date
ba0a57702c remove OUString wrap for string literals
For some functions and all kinds of Exceptions.

CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException

createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService

bash command:

for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
	| cut -d ':' -f1 | sort -u
	| xargs sed -i
		-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
		-e "s/\($i.*\)\"+ /\1\" + /g";
done

Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29 21:52:54 +00:00
b6d97514cd reduce some spacing
Change-Id: I72d494b1c0ff5ed3c52ae6a078815f497e4dd647
2013-06-29 18:38:14 +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
9052caae53 Resolves: #i121542# Unify the Menu API
(cherry picked from commit 399946b82f5efec19cd82d1c320d5aa9295d235d)

Conflicts:
	chart2/source/controller/main/ChartController_Window.cxx
	framework/source/uielement/langselectionmenucontroller.cxx
	framework/source/uielement/popupmenucontroller.cxx
	framework/source/uielement/recentfilesmenucontroller.cxx
	framework/source/uielement/toolbarsmenucontroller.cxx
	odk/examples/DevelopersGuide/GUI/UnoMenu.java
	odk/examples/DevelopersGuide/GUI/UnoMenu2.java
	odk/examples/cpp/StatusbarController/SelectionModeStatusbarController/SelectionModeStatusbarController.cxx
	offapi/com/sun/star/awt/MenuBar.idl
	offapi/com/sun/star/awt/MenuEvent.idl
	offapi/com/sun/star/awt/MenuItemStyle.idl
	offapi/com/sun/star/awt/MenuItemType.idl
	offapi/com/sun/star/awt/MenuLogo.idl
	offapi/com/sun/star/awt/PopupMenu.idl
	offapi/com/sun/star/awt/PopupMenuDirection.idl
	offapi/com/sun/star/awt/XMenu.idl
	offapi/com/sun/star/awt/XMenuBar.idl
	offapi/com/sun/star/awt/XMenuBarExtended.idl
	offapi/com/sun/star/awt/XMenuExtended.idl
	offapi/com/sun/star/awt/XMenuExtended2.idl
	offapi/com/sun/star/awt/XMenuListener.idl
	offapi/com/sun/star/awt/XPopupMenu.idl
	offapi/com/sun/star/awt/XPopupMenuExtended.idl
	offapi/com/sun/star/awt/makefile.mk
	offapi/type_reference/types.rdb
	svtools/inc/svtools/popupmenucontrollerbase.hxx
	svtools/source/uno/popupmenucontrollerbase.cxx
	svx/source/tbxctrls/extrusioncontrols.cxx
	toolkit/inc/pch/precompiled_toolkit.hxx
	toolkit/inc/toolkit/awt/vclxmenu.hxx
	toolkit/inc/toolkit/helper/listenermultiplexer.hxx
	toolkit/source/awt/vclxmenu.cxx

Change-Id: I3d9a1e109b9ff35901a3075b44a4c27e7c12b5c7

Related: #i121542# css::awt::XPopupMenu::execute() needs a Rectangle

(cherry picked from commit c01a6f4f370b72f0751cf4f5c11310682e2b3248)

Conflicts:
	odk/examples/DevelopersGuide/GUI/UnoMenu2.java
	offapi/type_reference/types.rdb
	toolkit/inc/toolkit/awt/vclxmenu.hxx

Change-Id: I2cccc95086fe3d1522d03346e3c577fb2f21f621
2013-06-23 21:16:14 +01:00
38d2ea2b25 Missing import
Regression introduced with 64e85a4cc8259a7d80c781e6698a8f30e7e0151d "Java
cleanup, remove unused imports."

Change-Id: I843cf651e20d2dd410f481222aca5206e0166a30
2013-06-19 17:41:00 +02:00
3af0114a29 Introduce O[U]String::toUInt32
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39
"Handle oveflow in O(U)String::toInt() functions" reduces values in the range
(SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied
on getting a correct (unsigned) value for the whole input range ["0" ..
"FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3
"Revert overflow checks in O[U]String::toInt{32,64} again").

Audited all uses of toInt32/64 with non-decimal radix.  (There is still a TODO
comment in oox/source/helper/attributelist.cxx, and
stoc/source/typeconv/convert.cxx will still need some love and test code.)

Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-13 17:08:36 +02:00
9f97b3e270 Fix breaker when compiled with DEBUG=yes
(cherry picked from commit 07c6343beaea37e8e6254e0f988e19f1eccf38ce)

Conflicts:
	odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx

Change-Id: I75278282efc80f3e9c31c413842392030beeb265
2013-06-06 13:14:10 +01:00
2c2dc8ebb7 Use api.libreoffice.org fallback links when no local doxygen/javadoc docu
Change-Id: I2b108da334f63d79a16af0e3ba956240a5aff80c
2013-06-05 11:06:14 +02:00
06c7349758 Some HTML clean up
Change-Id: I5f1b5d5e5fc59bc1496a292a5f002d87584732a4
2013-06-05 11:06:14 +02:00
95c0d568fd use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.

Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05 08:13:23 +02:00
a95520b501 odk: doxygen 1.8.4 does not have PREDICTABLE_URLS
... so adjust the links to the less predictable defaults for now.

Change-Id: Ia39823fe048ceb878465ce4bfdb60a3276864ba3
2013-06-04 12:01:12 +02:00
be49d3a25b odk: fix odd Java example that creates URLs to IDL documentation
... and even does it wrongly by appending the fragment part too early.

Change-Id: I05c790113cb219f422a9650db85c04943cde28a3
2013-06-04 12:01:11 +02:00
345afe7b72 odk: adapt hyperlinks to IDL docs
Change-Id: I2b1874ff926c7510016919b9f11674a4746fa82c
2013-06-04 12:01:11 +02:00
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
dca437578e Custom Panel SDK Example Fixes
- Remove unused boost header
- OUT_DEPLOY_URL must be an URL

Both break building the example on Windows

(cherry picked from commit 8af699cb89d9477b13d8701266b7c1fdf9356cfa)

Change-Id: Iedc1b1d6d9493390cdf8b9055afe7c712c6bfc31
2013-05-12 16:11:58 +01:00
b30c970602 Make Custom Panel example build and run
(cherry picked from commit 5aff353f227ecfeb36ef6b8be787495916610490)

Conflicts:
	odk/examples/cpp/custompanel/ctp_factory.cxx
	odk/examples/cpp/custompanel/ctp_services.cxx

Change-Id: I5b561fec12415b2c05ff1369629a8f88b420510b
2013-05-12 16:11:53 +01:00
379c701115 Move Custom Panel example to the SDK
(cherry picked from commit d0b30a0f10f506187fcff9775934d3594c140ead)

Change-Id: I898433cbdf9f779f425424d600ebb4f0946ccf20
2013-05-12 16:11:50 +01:00
c756afcdba Move the example code off the com.sun.star.comp.beans package
Change-Id: I27ffb8f1bddc0a41d76a8b6d441e10e9a71ff10f
2013-05-07 13:59:20 +02:00
2ce25faffd fix typos (wich instead of which) 2013-05-06 20:07:23 +02:00
7cba598a7d Java cleanup, delete some dead code
Change-Id: I4423cc7ec49769e256f73d9b7fba7b78f84f932f
2013-05-06 11:45:55 +02:00
8be40d31d7 Java cleanup, convert Hashtable to HashMap
Change-Id: If8a9c0c3a4b357fb9c0ff096f44ed1b44ebbcef4
2013-05-06 11:45:53 +02:00
e527a34005 Java cleanup, convert more Vector to ArrayList
Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33
2013-05-06 11:45:51 +02:00
587c59fbc9 Java cleanup, Convert Vector to ArrayList
Change-Id: I323a6625f93347e69f3114fc10cb04dc759a539f
2013-05-06 11:45:50 +02:00
e10300dc78 use generics and convert from Vector to ArrayList
Change-Id: Idcc7d0c386ff59ddee95667939969259cdf11d02
2013-05-06 11:45:46 +02:00
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
55225176b6 Unused include
Change-Id: If6caa7abed25ce95f1c62f9673619426eb49b5a8
2013-04-29 13:05:51 +02:00
23a87a8622 Remove some obsolete makefile.mk
Change-Id: I47f1a72fac3e6678b5dfe880f2f189ffc436333b
2013-04-29 13:05:51 +02:00
6f17a2f66f Java cleanup, access static methods using correct syntax
Change-Id: I8443aef43d82de33ac7cb47d40cc5b544f7c9c87
2013-04-26 08:36:04 +02:00
64e85a4cc8 Java cleanup, remove unused imports
Change-Id: I697017f196a7f7e5684011ae23941e54051c45dd
2013-04-26 08:29:38 +02:00
fb39e71989 Java cleanup, call static methods statically
Change-Id: Ibe0454d490153f723a58c3c619be7f8d443639c8
2013-04-26 08:18:40 +02:00
0c37eeebb0 Java cleanup, use generic containers where possible
Change-Id: Icd830004de3e121f5b96393e7d7b447775833419
Reviewed-on: https://gerrit.libreoffice.org/3569
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-24 08:57:57 +00:00
bc8b419b0d Java cleanup - use generics to reduce casting
More queryInterface related cleanup.

Change-Id: I97d064c425389e687c6f0fbc3a962080f46dd511
Reviewed-on: https://gerrit.libreoffice.org/3568
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-23 10:31:15 +00:00
68b9fb0aae Java cleanup - remove unnecessary casts in the ODK code
Change-Id: I1ab8ad5182444fc3eebd2349135a0240ebbe0fd4
Reviewed-on: https://gerrit.libreoffice.org/3566
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-23 10:29:36 +00:00
4f6adb0585 Fix compilation of Spreadsheet odk example
because of change to XDataPilotsResults IDL in
commit ac569ed4cf5064248b9952f182f6572f20dc9bcb
"fdo#60300: Work-in-progress change to rework pivot table core"

Change-Id: I730e15226f4dfe3e6baa5d54e987da1016f6b15b
Reviewed-on: https://gerrit.libreoffice.org/3565
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-23 10:28:48 +00:00
e8ff469da5 Remove any remaining remnants of unused component_canUnload feature
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-19 16:52:03 +02: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
0d8719b0ff Java cleanup, use generics in calls to UnoRuntime#queryInterface
A handful of places wrap the call to queryInterface. With a little
generics love, we can reduce the casting required.

Change-Id: I9efca2afb1b23fad2359af24e1c273aea96e45fe
Reviewed-on: https://gerrit.libreoffice.org/3433
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19 07:52:51 +00:00
8d87758d65 Java cleanup, remove the rest of the unnecessary casts
Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa
Reviewed-on: https://gerrit.libreoffice.org/3432
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19 07:52:08 +00:00
d62425cc27 Java cleanup, remove unnecessary casts
Change-Id: Id12089bc7df16631737e6acaee0973fb91dd953f
Reviewed-on: https://gerrit.libreoffice.org/3431
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19 07:51:41 +00:00
9830fd36db date/time IDL datatypes incompatible change
- nanosecond precision
 - signed (allowed negative) year

Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.

Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
bea18dd581 fix compile error in unused Java file.
"exception not thrown in catch block"

Change-Id: I13f8be9913f655ab1633b29e9fe686a41c2c0fcb
2013-04-17 13:06:32 +02:00
435f5e30c9 fdo#60724 correct spelling
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15 05:10:29 +02:00
60fbefc615 fdo#60724 informations -> information
Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
2013-04-15 04:49:39 +02:00
78120c41f0 Missing return
Change-Id: I76db8e6e1460141ee4ef1bed10ea46c2b402b249
2013-04-12 11:57:03 +02:00
f3242bc0f0 Missing rtl:: namespace
Change-Id: Ifc9eda5846558c449c40442016a243872eae2962
2013-04-11 14:24:08 +02:00
14a2413530 Adapt SDK to -B removed from cppumaker/javamaker
Change-Id: Ida4d11e0f8dfea201e0456cc54aa7f5af093d2ad
2013-04-11 14:24:08 +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
d7a301476d Remove commented code in odk/examples
Change-Id: I8b28729d3cc632426efac02028f0d0e332243012
Reviewed-on: https://gerrit.libreoffice.org/3138
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-31 18:57:08 +00:00
14d909632e Remove RTL_CONSTASCII_(U)STRINGPARAM in odk
Change-Id: I97e5e650b7966d1ac3c6f9e45b495c21b529b768
2013-03-31 20:44:06 +02: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