Commit Graph

648 Commits

Author SHA1 Message Date
cc63555fd0 PutEntry familly of functions use consistent pairing OUString/sal_Int32
Change-Id: I23ae9d3e8bf71ef9ece75ea013d18c36ab2e69d4
2012-11-18 19:57:23 -06:00
e3e7dfa011 basic: fix OUString copy overrun in Mid()
Change-Id: I91cdd3a52917b89ab2a452e0eeb7a9e00dc35e8b
Reported-by: vmiklos@suse.cz
2012-11-18 02:50:14 -06:00
5837402fb1 fdo#46808, use service constructor for ucb::SimpleFileAccess
I upgraded the service to return XSimpleFileAccess3, since it
already implemented that interface, and it's backwards
compatible.

Change-Id: I40001a46048bd21a23b6a2f58a95376f06fc634b
2012-11-15 08:28:44 +01:00
fc5bb7d477 Clean up
Also, avoid global static data in sb lib, so that gengal.bin now also works well
on Mac OS X, cf. 12fa9ece663f24eff44197befe546a92e6c90724 "Avoid global static
data."

Change-Id: I23f2a7abc0c06a752ded1c1c64619b3aab009190
2012-11-14 13:32:28 +01:00
c3edb00e13 Report errors for invalid DateAdd/Diff/Part Add parameter values
...so that e.g.,

  DateAdd("x", 1, "1/31/2004")

(where "x" is not in the list of valid values for the Add parameter, "yyyy",
"q", "m", etc.) leads to a Basic runtime error rather than going into a
seemingly endless while(nNewMonth>nTargetMonth) loop at the end of
RTLFUNC(DateAdd) (basic/source/runtime/methods.cxx).

Change-Id: I15c3bdb62723ffddf36ff2396ffb294369d93ff8
2012-11-14 13:32:27 +01:00
f0e797a351 basic: adapt dllmgr-x64.cxx to OUString changes
Change-Id: I9e5ff5be1f001a9f55953fd516fb5ef7fe94bf44
2012-11-07 12:18:39 +01:00
7aa973919d Fix String -> OUString fallout
Change-Id: I038848aed0c64c39ca93da89b4a78bd3a1f6d7d0
2012-11-07 11:43:02 +02:00
27239ad230 basic: String -> OUString
Change-Id: I42479b4bade5111e38d69f04c889c166f340d5ba
2012-11-07 02:14:53 -06:00
d2c45d0460 fdo#46808, Adapt i18n::Transliteration UNO service to new style
Simply make the service implement XExtendedTransliteration, since all
of the implementatins already do that.

Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
2012-11-05 16:43:15 +01:00
d92814f462 basic: preliminary cosmetic clean-up
parsing 1000s of line of code is hard enough without having to fight
with weird indentation and irregular formatting.

So as the review progress, in order to follow the code, cosmetic changes
were made...

In order to minimize the task of the reviewers and allow them to
concentrate on what matter, an effort is made to collect these
cosmetic changes into this separate commit.

Change-Id: I3c9b04a0150d0d0a048c2e976fe24de4f2b6b98a
2012-11-03 20:24:28 -05:00
a884fe58a1 basic: OUStringification of ddectrl
Change-Id: I2af40d7c8117aff8ce62a8ea0eec579664f8bdeb
2012-11-03 20:24:27 -05:00
c5b7d8f9d9 basic migration to OUString
Change-Id: I1f9403174b3779801d91ba20d846191ed9a09eed
2012-11-03 20:24:27 -05:00
6702bc37d4 basic: convert StepPAD to OUString
Change-Id: I19d05f455767c973a47d0233b3af20af1ac3a20a
2012-11-03 20:24:27 -05:00
8ce4050497 simplify and use OUString for StepLOADNC
Change-Id: I92c86f672cc79506c2c7c56bb3402b4436f71c98
2012-11-03 20:24:27 -05:00
c1435d9ea6 basic: use OUString in DimAsNewRecoverItem
Change-Id: Icfecff549161c3c429524549b65752671792a94f
2012-11-03 20:24:27 -05:00
973d061839 basic: unnecessary round-trip via String
Change-Id: I691a59b8ab9e6352a9257dac35b8e378e6ef9666
2012-11-03 20:24:26 -05:00
5120d8c59d basic: avoid String<>OUString issue by by-passing them completely
Change-Id: If741661f1151950a2180fa5c6504957b44a7e998
2012-11-03 20:24:26 -05:00
c5e5699c80 svformatter already accept OUString input
Change-Id: Icca8c40db4a4449876e115a0746319f3f893e846
2012-11-03 20:24:26 -05:00
6f978fa977 basic: use OUString internaly for error messages
Change-Id: I9ea243f93b7477814037deca2f332c3359ce527d
2012-11-03 20:24:25 -05:00
363d2c6f8b use OUString for intermediary result in PrepareNumberFormatter
Change-Id: I9435d926beb2fd7ebe350f61634673eed7228fbe
2012-11-03 20:24:25 -05:00
de8d81b157 cosmetic clean-up
Change-Id: Ie9569fba8b03656b9a50e9add06c8e13d0026624
2012-11-03 20:24:25 -05:00
cf38d7f7a8 basic: implement RIGHT with OUString
Change-Id: Iff2150cf45569ca3d95f461495f49c455178cb5e
2012-11-03 20:24:25 -05:00
4a11a47103 trivial empty-init String::Fill -> comphelper::padToLength
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
2012-10-30 00:05:59 +00:00
8fff6bf6bd fdo#46808, Adapt i18n::LocaleCalendar UNO service to new style
Did not need to create a new interface, because XCalendar3
already covers the whole service interface.

Change-Id: Iaf094014c16e872d2003ca6e8e7588abd081d882
2012-10-29 17:32:57 +01:00
0dd085f8f3 UniString->rtl::OUStringBuffer
Change-Id: I9938d7c4ab5594baeb10f405f0aa0964ef84d6c5
2012-10-28 23:09:32 +00:00
f7a24eff2d mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I231f0b367bf0b513c6c1ce4c4cfdb7c3dc8660d5
2012-10-12 13:34:47 +02:00
af4df7ac08 fdo#48257 collect function prototypes from basic/ into single header file
Change-Id: I1666e64b2b611054e1a713a76575e2f06781f80a
2012-10-04 10:35:48 +01:00
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
991b8394ff replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: Id10a6cef0ae25247ded7846dfd7df27922a9410a
2012-09-21 19:10:12 +09:00
03a9f139bd ComponentContext::getUnoContext -> getComponentContext simplification
...and some further clean-up.

Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-19 13:16:38 +02:00
f88c4a5bc1 dung out namespacing clutter.
Change-Id: I14794ca0cd2a8ea84ba41e1dc689503647696e3a
2012-09-17 16:30:45 +01:00
900d60b3cd fdo#46808, Adapt bridge::BridgeFactory UNO service to new style
Create a merged XBridgeFactory2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I7309f4d30f0e772bc203c701eb3407b920ffafcc
2012-09-17 14:28:22 +02:00
9ac86f484b Improvement on previous commit, UCB clean up
* As UCB is only ever initialized with "Local"/"Office", remove this
  configuration vector completely.  The "create" ctor creates an instance
  internally initialized with those "Local"/"Office" keys.  Special (test) code
  can still instantiate an uninitialized one via plain createInstance.  And for
  backwards compatilibity process startup still ensures to create an initialized
  instance early, in case there is still code out there (in extensions) that
  later calls plain createInstance and expects to get the already-initialized
  (single) instance.

* XInitialization is an "implementation detail" of the UniversalContentBroker
  service, do not expose in XUniversalContentBroker.

* ucbhelper/configurationkeys.hxx is no longer needed and is removed.

* ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that
  requires ucbhelper::Content constructors to take explicit XComponentContext
  arguments now.

* The only remaining code in ucbhelper/source/client/contentbroker.cxx is
  Android-only InitUCBHelper.  Is that relevant still?

Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-14 18:24:49 +02:00
2e284203da fdo#46808, Adapt ucb::UniversalContentBroker UNO service to new style
Create a merged XUniversalContentBroker interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: Id264387bf8af8bf211050e15b8801a1fde368167
2012-09-14 18:24:48 +02:00
4597483e00 targetted VBA re-work. 2012-09-12 12:49:49 +01:00
986a0f4eab fdo#54718 fix opcode detection in basic resulting in failed/unregcognized code
fix is followup to bf5b493104d2dd4ab964f1fcb845200eaefbbcd5 which didn't adjust the runtime to
cater for the new enum layout

Change-Id: I6613fb8aacd8a70947c4fff556fb3e2d33c1113e
2012-09-10 11:15:22 +01:00
969e6870e8 sal_Bool to bool
Change-Id: I86e5b49ccc9737517ecde17dbdaba44eeaee2371
2012-09-08 23:05:11 +09:00
00b7328732 sal_Bool to bool
Change-Id: Ie8a128db35bebcdcee5eda984a7875339418d9bb
2012-09-07 09:57:39 +09:00
cfa6f85242 sal_Bool to bool
Change-Id: Iebed1c159606ab695b049032da5a3509e468fb91
2012-09-05 10:40:17 +09:00
cbba41823a String::Expand -> string::padToLength
Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
2012-08-29 11:43:50 +01:00
55899d7f5f fix for fdo#54046
fix case where the value is neither uno object or unostruct

Change-Id: I2862ab23a875a691edb202bb9d334b000871f718
2012-08-27 10:53:36 +01:00
911e412b87 sal_Bool to bool
Change-Id: I96fe31c80f952b1ac6d25c65431597d81e0fdda3
2012-08-24 12:58:56 +09:00
407509c058 sal_Bool to bool
Change-Id: I75dd089b34c94831bfdfd0e02585af7609013a08
2012-08-22 19:25:08 +09:00
2efc59c9b6 sal_Bool to bool
Change-Id: I38141187c4f0809343a93c5765c0773d2321968a
2012-08-21 22:59:16 +09:00
27f4f9ae8f -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: Ia6f5bf7c3372515c2796d239aeb610fbe6f29f8d
2012-08-16 09:46:59 +02:00
1f224b02c8 sal_Bool to bool
Change-Id: Idb5ef3cebdd45bd91f7c0ae34e422fd651d395c9
2012-08-14 07:37:19 +09:00
1817cf60d1 sal_Bool to bool
Change-Id: I61a6675df622232923a827fc20bf121dd03cd7da
2012-08-12 09:16:58 +09:00
16f75f1f77 reduce static_initialization_and_destruction chain
Change-Id: I9fdefd428b858fd5581412d6f8e896a0eb680fef
2012-08-09 12:47:03 +01:00
02a7dfb729 tweak for commit 8181dddb7bf166be4a00e9280d52f8d7a1741290 fdo#42492
avoid char buffer and snprintf.

Change-Id: Ia83cfc9333591bcb3b191679ccf2be587b4be243
2012-07-31 14:27:42 +01:00
556720fcdd fdo#42492: fixing Basic HEX command
Change-Id: I133590c9f2a34d8daab031da0c77bd049d275c29
2012-07-31 14:27:42 +01:00