3705 Commits

Author SHA1 Message Date
Kohei Yoshida
868ce95a3c Add xlsx and ods bits. Those file types are still not loadable.
Change-Id: Icb75313a082475b73d560685fec2c2f3be8538d7
2013-04-09 13:01:24 -04:00
Jan Holesovsky
2dc7318d84 Kill not necessasy OUString member variables.
Change-Id: I1bbfd19bc70fc12ac5dc5fdb18c556f4dc5300cb
2013-04-09 17:48:52 +02:00
Jan Holesovsky
8efe5b7096 equalsAscii() and equalsAsciiL() -> operator==()
Change-Id: Id9e1057302575686a61d79bef034b8431ef22196
2013-04-09 17:48:52 +02:00
Jan Holesovsky
fcffc86948 Kill m_xToolBarWindow here too.
Change-Id: I8e07b798776ac06eb5a91bf6479105a2c08a073b
2013-04-09 17:48:51 +02:00
Jan Holesovsky
36afd52a76 m_xToolBarWindow is apparently unused.
Change-Id: I0f69401c46a2b3a362b7481acacc748d103faa30
2013-04-09 17:48:10 +02:00
Jan Holesovsky
c0fb2954f3 Kill unused constants.
Change-Id: I18e5db67cfa790b5a6e9db17e1823e7ce7f75598
2013-04-09 17:47:18 +02:00
Jan Holesovsky
7e06132878 equalsAsciiL() -> operator==().
Change-Id: I012fc0341df2bb6d8dd913c13c39c7e657eef235
2013-04-09 17:47:18 +02:00
Jan Holesovsky
1dd6e02f15 sal_Bool -> bool.
Change-Id: I12eaceb304ef67c533dc23db3f6b666bdb6a7a1f
2013-04-09 17:44:46 +02:00
Caolán McNamara
9ca23ee5e7 make help work again
This is a regression from b248624126c271c88381d3dad6e04fc954f65779 I suspect
there might be more.

Change-Id: I9ffbcfb8d32b0b0b4193a86eee90d0a5f481de11
2013-04-09 10:27:21 +01:00
Noel Grandin
b248624126 fdo#46808, Convert frame::Frame to new style
Change-Id: I74427d1e0059808f04960c648b93245b06c20f7f
2013-04-08 13:53:04 +02:00
Noel Grandin
c68b934cd0 fdo#46808, Convert framework::ToolBarManager to XComponentContext
Change-Id: I4c5ddd7a2f26f51fef530b70f18a1abf61c49f77
2013-04-08 13:53:04 +02:00
Noel Grandin
86fdce6011 fdo#46808, Convert svt::ToolboxController to XComponentContext
.. and all of it's friends

Change-Id: I408d9308d1d1a4f8ed0055ac5f4042d729c44d1e
2013-04-08 13:53:03 +02: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
Tor Lillqvist
a85c027936 Remove unused variables
The LayoutManager for some reason has both a ToolbarLayoutManager
pointer field, and a uno::Reference to an aspect (or whatever term one
should use) of the same ToolbarLayoutManager. (I.e. esssentially two
fields for the same thing. Why it doesn't create such variables where
needed instead I don't know.)

Anyway, for some reason there were lots of instances where a local
variable was initialised with this second field but then never used. I
removed those. (Surely just copying the field into a local variable
doesn't have any interesting side effect that would explain this
pattern?)

Change-Id: Ibdfbd9476c39d3e83b58e81469b94d9a87444ca8
2013-04-07 01:13:37 +03:00
Eike Rathke
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
Herbert Dürr
b130133ad2 Resolves: #i121503# fix resize/paint race in the backing window
(cherry picked from commit 9d578cebcd9d1e1c16c04cbefc5de2ab511ea335)

Conflicts:
	framework/source/services/backingwindow.cxx

Change-Id: Ic5e590465e19b02b6a9b426072818cea5bb3f912
2013-04-05 10:14:04 +01:00
Thomas Arnhold
31fedbe9f7 Remove SvtInternalOptions
* only Get/SetCurrentTempURL were used, but only for compatibility reasons,
to remove old temporary directories (before 2001). Those should be gone
today.
* MailUIEnabled was false in the xcu file.
* SID_MAIL_SENDDOC* are handled some lines further.

Change-Id: I482719b0de9df0a77c2fef0bf25ae1fb68926375
Reviewed-on: https://gerrit.libreoffice.org/3180
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-05 08:24:46 +00:00
Jan Holesovsky
4214ff23ad fdo#37758: Really set the toolbar as hidden.
Change-Id: If0cdf2fabb680f8dee811411f601b2954d29da58
2013-04-04 21:24:57 +02:00
Thomas Arnhold
fa97612d45 framework: cleanup macros
Change-Id: I955210208e148dff6a1ca5ad6f1a91db2496ca7b
2013-04-02 14:21:18 +02:00
Thomas Arnhold
2b7ee1db28 remove boilerplate comments
Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
2013-04-01 22:45:36 +02:00
Efe Gürkan YALAMAN
52770659d3 fdo#62096 Replace O(U)String compareTo with ==
Change-Id: Id89b7eeb09b5cd7cee449cd1a20fb13b630f29c4
Reviewed-on: https://gerrit.libreoffice.org/3136
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-31 15:39:44 +00:00
Peter Foley
8ffb20747c fix loplugin unused warnings
Change-Id: I23fc6bf62e74f192f77c74ed48d5276737375f3c
2013-03-30 16:55:25 -04:00
Eike Rathke
5be14df244 ResMgr with LanguageTag
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-29 14:09:01 +01:00
Eike Rathke
2ac8508a2f we really don't need to assign the same value again
... to be extra sure?

Change-Id: I00d6cfafe5419b01e3e827377be030b5d1a4ee34
2013-03-28 01:39:08 +01:00
Eike Rathke
3106c4d37f eliminated useless back and forth conversion
Why convert back and forth between LanguageTag (formerly
comphelper::Locale) if all you need and use is a BCP47 string.

Change-Id: I1ec12186284211bcd7d115ee092c195b926e7cd0
2013-03-28 01:39:08 +01:00
Eike Rathke
68fac46e71 use LanguageTag instead of comphelper::Locale
Change-Id: I2c6d07bbdef62fa17e9c90ca87be6e742268c54f
2013-03-28 01:39:07 +01:00
Tor Lillqvist
a8c3c673ea Use <config_features.h> instead of -DLIBO_FEATURE_*
Change-Id: Idc198beb6d759dbe3bad6ea58d896c1555b4cc0f
2013-03-27 11:36:03 +02:00
Stephan Bergmann
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Ariel Constenla-Haile
0e6a5bf1d9 framework::RecentFilesMenuController clean-up, add clear item.
Conflicts:

	framework/inc/uielement/recentfilesmenucontroller.hxx
	framework/source/uielement/recentfilesmenucontroller.cxx

Change-Id: Ia8b861b42bd77a90dce3bebdfa6aefd5e5cd91dd
2013-03-26 17:35:23 +00:00
Tor Lillqvist
5a5c8e253a Check feature test macros instead of ANDROID and/or IOS
Pass -DLIBO_FEATURE_FOO to compiler for some elements in BUILD_TYPE.
BUILD_TYPE has at least two kinds of elements: Those that indicate
building a bundled copy of some 3rd-party library, and those that
indicate some specific feature of the LibreOffice platform or
build-time configuration choice. This is for the latter kind.

Change many of the checks for Android and/or iOS in the source code to
check LIBO_FEATURE_DESKTOP, LIBO_FEATURE_HELP or DISABLE_EXTENSIONS
instead, in cases where that is what is meant, not Android or iOS
specifically.

Change-Id: I2cd3f3bb99e953c7754dcea76a426f8f9d61e4db
2013-03-26 18:45:04 +02:00
Tor Lillqvist
3ee3e7946c Lock files make no sense on Android or iOS
Change-Id: Ie8d05b8596fb7d17e057bc32c7a4204a9ff54021
2013-03-26 18:44:48 +02:00
Tor Lillqvist
07b5102e7b There are many ships in the port of Hamburg but "ownership" is not one
Change-Id: I971390d084b08293b21fdc35beb74482a1560bb8
2013-03-25 23:58:12 +02:00
Stephan Bergmann
696a9a5212 Duplicate REPLACELENGTH_PATH macro definition
Change-Id: Ia9ff049f1704d9840bf2de2f266d762671114e86
2013-03-25 08:52:53 +01:00
Stephan Bergmann
2d9ce9191d Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
...which is a confusing overload with unexpectedly different semantics from the
one-parameter form.  In preparation of marking it as deprecated.

Change-Id: I4f176995546ae583fc570d770647ffc315eecc75
2013-03-20 13:05:35 +01:00
Thomas Arnhold
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms

Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 10:48:30 +00:00
Stephan Bergmann
4c0c23af21 Simplify equalsIgnoreAsciiCaseAscii[L] calls
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19 11:32:20 +01:00
Thomas Arnhold
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
Ariel Constenla-Haile
516118b515 Resolves: #i118556# replace framework::OUStringHashCode with rtl::OUStringHash
The framework module uses its own hash functions with rtl::OUString's.
It can be replaced by rtl::OUStringHash.  The class
framework::OUStringHash can be renamed to framework::OUStringHashMap,
for the sake of clarity only (there is no risk of name clash because of
different namespaces).

Conflicts:
	framework/inc/classes/converter.hxx
	framework/inc/stdtypes.h
	framework/inc/uiconfiguration/moduleuicfgsupplier.hxx
	framework/inc/uiconfiguration/moduleuiconfigurationmanager.hxx
	framework/inc/uiconfiguration/uiconfigurationmanager.hxx
	framework/inc/uielement/menubarmanager.hxx
	framework/inc/xml/eventsdocumenthandler.hxx
	framework/source/fwe/classes/addonsoptions.cxx
	framework/source/fwi/classes/converter.cxx
	framework/source/uiconfiguration/uiconfigurationmanagerimpl.hxx
	framework/source/uielement/toolbarsmenucontroller.cxx

Change-Id: I5e6918bf973b0ca5501473341051782a0dd1a238
2013-03-16 11:20:02 +00:00
David Tardon
a4202d3523 drop unused include
Change-Id: Icda3d24a67c8bbe5aafcf5c917d0f930e534c6be
2013-03-15 14:30:55 +01:00
Steven Meyer
07c6e76749 fdo#60724: Fix spelling avaliable -> available. 2013-03-13 08:57:14 +01:00
Krisztian Pinter
8933f19100 fdo#47011 autosave feature
removed unnecessary prop. name "Document/UserAutoSave" from saveopt.cxx
fixed autosave feature setting "losing its value"
set autosave feature default value to False

Change-Id: I473154b21bab53bf595a5a59e87dc16e472dcbf9
Reviewed-on: https://gerrit.libreoffice.org/2663
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-11 14:37:09 +00:00
Markus Mohrhard
7657115dd9 coverity#705655: fix memory leak
Change-Id: Icf514d2f7cf678cb347c2e114f01ae8f56e2e999
2013-03-09 17:59:12 +01:00
Markus Mohrhard
9a4f558d00 simplify code a bit
Change-Id: Id965dd79ab8401a2ba7eb8266bba642f80cbe0d3
2013-03-09 17:59:12 +01:00
Borim
a0296296fb fdo#60691 add modelines to *.src and *.hrc files
use solenv/bin/add-modulelines script for the task
and remove all UTF bom from *.src and *.hrc files

svx/source/dialog/hdft.src

Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08 21:02:26 +00:00
Thomas Arnhold
6583305dd7 simplify compareTo (now correct)
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-08 13:04:13 +01:00
Stephan Bergmann
3d4723f80a Revert "simplify some compareTo"
This reverts commit 19020191cbf3e3c7a7bf98d0958d86d931ae687b,

  s1.compareTo(s2, length-of-s2)

is *not* equivalent to

  s1 == s2
2013-03-08 09:03:10 +01:00
Thomas Arnhold
19020191cb simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
2013-03-08 05:42:05 +01:00
Thomas Arnhold
b5d7f92082 fwk: some follow up of rtl cleanup
Change-Id: I434e714b6e5a38795c0baca85b51eef85a4732fd
2013-03-08 04:00:42 +01:00
Krisztian Pinter
fd4380759d RTL_CONSTASCII_USTRINGPARAM and ::rtl:: removals
Change-Id: Ief6418425676d6943993513c4d05c8d22e4740cf
Reviewed-on: https://gerrit.libreoffice.org/2470
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-08 02:45:23 +00:00
Krisztian Pinter
895898596c WIP: fdo#47011 autosave feature
Change-Id: Ib2cbcc33e6188c60c183b5f47e9ae9c9d4c91b95
2013-03-07 10:11:47 +01:00