Commit Graph

10633 Commits

Author SHA1 Message Date
Stephan Bergmann
83e191e25d Do not use C++-UNO internal static_type functions in client code
...use cppu::UnoType instead.

Change-Id: I507914b30ef8acda910ee4ecc0589fd328eb6f31
2013-12-12 11:10:10 +01:00
Stephan Bergmann
a62c2a5fa5 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-12 08:26:40 +01:00
Stephan Bergmann
123e2c3e93 Revert "Don't hold css::uno::Type instances by pointer"
This reverts commit 90f91088d2 for now:
Ach, old GCC doesn't like plain string literals to initialize members
of OUString type...

Change-Id: I50563a00406259bb5d41831e2a2796762450d097
2013-12-11 15:38:30 +01:00
Stephan Bergmann
90f91088d2 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-11 15:16:51 +01:00
Marcos Paulo de Souza
afd32065b6 fdo#54938: Convert dbaccess to use cppu::supportsService
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Conflicts:
	dbaccess/source/core/dataaccess/connection.hxx

Change-Id: Id7602b969790b13538868b937842bc945ce3e31e
2013-12-10 08:33:25 +01:00
Takeshi Abe
dae9b7060d Drop duplicate #include
Change-Id: Ib8969d5cd4898b81a5dcd90dc313abd28adfe052
2013-12-10 15:52:49 +09:00
Noel Grandin
c5b7a5fd19 fix equalsAscii conversion. Noticed in fdo#72391
In commit 363cc39717
"convert equalsAsciiL calls to startWith calls where possible"
I incorrectly converted equalsAsciiL calls to startsWith calls.
This commit fixes those places to use the == OUString operator.

Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6
2013-12-09 12:53:18 +02:00
Lionel Elie Mamane
ee712dd696 fdo#72267 boolean_test is subsumed by general case "foo IS [NOT] bar"
Change-Id: Ie9666b1c8878dd26593629b4b64d74b7448f98c1
2013-12-07 21:35:57 +01:00
Stephan Bergmann
b0926378ac Clean up includes of comphelper/stl_types.hxx
Change-Id: I00a8e794189d17ad91a90beb9ce6cb89b7bab2aa
2013-12-06 17:56:11 +01:00
Stephan Bergmann
f51877b147 Combine comphelper::UStringMixEqual, comphelper::TStringMixEqualFunctor
Change-Id: I3ab3777a65fd68f8cbaf17a8e2a989dc4ad7b1cc
2013-12-06 14:28:37 +01:00
Stephan Bergmann
0336363993 Missing include
Change-Id: I3b68c2a01eb1e9678d419fdb246508f2d3e60df8
2013-12-06 12:21:24 +01:00
Stephan Bergmann
0fa31bed9a Default OMultiTypeInferfaceContainerHelperVar equalImpl parameter
...and assorted OUStringHash clean up

Change-Id: I779904e1275e8df88f567beb388d1d11af9e9671
2013-12-06 12:03:59 +01:00
Stephan Bergmann
0bdfebdc95 Remove unused typedefs
Change-Id: I5af478155963343fa9fe5fa2a39d0209829b2409
2013-12-06 12:03:58 +01:00
Stephan Bergmann
e413521e0b Avoid ambiguities among different OWeakRefArray declarations
Change-Id: I61e3e9cdda17b6b23b33159d89904cce8f2e2ba0
2013-12-06 10:37:50 +01:00
Stephan Bergmann
e35b4eab82 Get rid of DECLARE_STL_ITERATORS
Change-Id: I22148aa5336907939b37945e513c25a05b2b3776
2013-12-06 10:37:50 +01:00
Stephan Bergmann
c78f7d85ab Get rid of DECLARE_STL_MAP
Change-Id: Ifbda934a89087fcc1c031978d3e5b5783722b328
2013-12-06 10:37:50 +01:00
Stephan Bergmann
1a715d4d67 Get rid of DECLARE_STL_STDKEY_MAP
Change-Id: I099f94922acba0bf9cde22fbbb3eefc230776868
2013-12-06 10:37:50 +01:00
Stephan Bergmann
07ab0d43b5 Get rid of DECLARE_STL_VECTOR
Change-Id: If4588034fc09e4663b5217669c71f26c0a3b8c8a
2013-12-06 08:04:23 +01:00
Stephan Bergmann
4a8175ebeb Get rid of DECLARE_STL_USTRINGACCESS_MAP
Change-Id: I00d02eaeff3eaa5f49550eb9c1d4e4e7e0b2203c
2013-12-06 08:04:22 +01:00
Stephan Bergmann
895e6e7bb7 Get rid of comphelper::UStringLess
...default std::less<OUString> is just fine.

Change-Id: Ib9d3c10f2817d757f3c19eb3d4607095883af91a
2013-12-05 18:36:22 +01:00
Stephan Bergmann
0c55303581 Get rid of DECLARE_STL_STDKEY_SET
Change-Id: I4817694d183d525fa5a29eb9693a20d491549e5d
2013-12-05 18:36:21 +01:00
Stephan Bergmann
75c4bff5f4 Get rid of DECLARE_STL_SET
Change-Id: Ie3e2fb6d9376e3b6e98bb17671b3e9e93cd69923
2013-12-05 18:36:21 +01:00
Andrzej J.R. Hunt
56d4f4b7b9 fdo#70144 Don't reset Document's modified flag when inserting new table.
It is unclear why the modified flag should ever be blindly overwritten hence
we no longer touch the modified flag here. (This change appears to have no
undesired side-effects.)

Change-Id: I246eb7d84249794fa4d52fcd9b008d8340bbc82d
Reviewed-on: https://gerrit.libreoffice.org/6632
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-12-04 07:53:35 -06:00
Lionel Elie Mamane
56cdaa1869 fdo#72163 belts and suspenders
1) Do not dispose m_xComposer, might still be used by our m_pCache

2) Do not create a new m_xComposer if the previous one will do, so
   that we do not gratiously use a different one than our m_pCache.

Change-Id: I6540c035c9159017c694b36e676721ec3e42db51
2013-12-02 23:57:16 +01:00
Lionel Elie Mamane
d4b7e3d12a fdo#72163 after updating m_xComposer, command facets are not dirty anymore
Else we dispose m_xComposer too eagerly; still used by m_pCacheSet.

Change-Id: I205488465c19a356534df17b8a5e9a20ce6766c9
2013-12-02 23:57:15 +01:00
Samuel Mehrbrodt
4f743082c1 fdo#34170 Disable deleting in the native Open Dialog
Change-Id: I0ccd4b06b2db399711004c3e6505a28353604aeb
Reviewed-on: https://gerrit.libreoffice.org/6892
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-02 05:03:01 -06:00
Caolán McNamara
282a6fb530 Finish rework of QueryDeleteDlg_Impl
This reverts commit a74b3e89c9.

Change-Id: Id670a2b66e61d3a4dceb9640d6ae34e9116691c0
2013-11-28 09:17:48 +00:00
Michael Stahl
a74b3e89c9 QueryDeleteDlg_Impl: add GetResult() that was removed in ...
02d4eb7438

Change-Id: I45b5691a3dc4cf2444e0daf8cb2ae0134532f596
2013-11-27 20:47:18 +01:00
Julien Nabet
f74149bc21 Fix some typos for "height"
Change-Id: Ibe1fdd7a63ff09097cfe053279d779592d389539
2013-11-25 23:03:11 +01:00
Michael Stahl
7ad1c4356b dbaccess: improve exception message when no driver found
Change-Id: I1734034e05324eb0d66fd52444b0521d4143bc12
2013-11-25 15:01:17 +01:00
Noel Grandin
071c3f3e93 remove unnecessary use of OUString constructor in equalsIgnoreAsciiCase
Convert code like:
    sType.equalsIgnoreAsciiCase(OUString("VIEW"));
to:
    sType.equalsIgnoreAsciiCase("VIEW");

Change-Id: I6fb47e6a83b561c7e5a25da76b63606a3174858d
2013-11-22 08:07:18 +02:00
Noel Grandin
6eac9deadd remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this:
    if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
    if (aStr == "rem")
which compiles down to the same code.

Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
2013-11-21 13:29:29 +02:00
Noel Grandin
d454834895 Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"
This reverts commit acebbee971.

I mistakenly converted OUString::equalsL calls to OUString::startsWith
calls.
2013-11-20 16:38:28 +02:00
Noel Grandin
acebbee971 remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls
Convert code like:
    if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
    if (aByteStr.startsWith("rem"))

Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
2013-11-20 13:56:08 +02:00
Noel Grandin
5112f6a6c6 remove RTL_CONSTASCII_STRINGPARAM in OString constructor
Convert code like:
    OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX"));
to:
    OString aKeyName("NDX");
which compiles down to the same code

Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-20 13:56:07 +02:00
Noel Grandin
363cc39717 convert equalsAsciiL calls to startWith calls where possible
Simplify code like:
    aStr.equalsAsciiL( "%", 1 )
to
    aStr.startsWith( "%" )

Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19 12:49:29 +02:00
Noel Grandin
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
Stephan Bergmann
24cad6a649 Move MediaDescriptor from comphelper to unotools
...so it will be able to use SvtSecurityOptions internally.

Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14 11:13:24 +01:00
Stephan Bergmann
a6cf7fb281 -Werror,-Wunused-member-function
Change-Id: I9cfbb66dbfac02faa478a4f38982962b0c6f3c3d
2013-11-14 10:15:04 +01:00
Stephan Bergmann
ecc060715a -Werror,-Wunused-member-function
Change-Id: If7618661da2b6c919ec05abace03723cb961c741
2013-11-14 10:15:04 +01:00
Stephan Bergmann
f7450d0266 -Werror,-Wunused-member-function
Change-Id: I6b4b3f8c272dcd5663920310e40647d7730c54d5
2013-11-14 10:15:03 +01:00
Noel Grandin
d9648d3567 remove unnecessary sal_Unicode casts in DBACCESS module
Change-Id: I4c4ab5d672e994b1e8e3beac027d3f4e8f700714
2013-11-14 08:17:30 +02:00
Andrzej J.R. Hunt
a3eece5a88 Pass Document directly to Driver for embedded databases.
Change-Id: I346a8ef07c5d695b3aa879f5c25cc4af97e25b99
Reviewed-on: https://gerrit.libreoffice.org/6627
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-11-13 14:38:40 +00:00
Noel Grandin
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
Noel Grandin
ef90021abe convert OUString !compareToAscii to equalsAscii
Convert code like
   if( ! aStr.compareToAscii("XXX") )
to
   if( aStr.equalsAscii("XXX") )
which is both clearer and faster.

Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11 12:58:12 +02:00
Noel Grandin
0a9ef5a18e convert OUString 0==compareToAscii to equalsAscii
Convert code like:
   0 == aStr.compareToAscii("XXX")
to
   aStr.equalsAscii("XXX")
which is both clearer and faster.

Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11 12:58:12 +02:00
Noel Grandin
e52779d2f8 remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
Noel Grandin
3ef88d370e remove unnecessary use of OUString constructor in DBACCESS module
Change-Id: I831a6506211be30c5b743c20724904c903c5b3c0
2013-11-11 11:21:24 +02:00
Lionel Elie Mamane
516f9b013f indentation
Change-Id: Idec97e6b9269cb481428bef8b95aa112197fe866
2013-11-09 18:40:10 +01:00
Andrzej J.R. Hunt
117b24dbbd Add "New Database" button for Firebird file driver dialog.
Firebird is able to create new databases from within LO hence we need
to add a new property to database configration files.

This allows use of a db creation dialog (which is opened
by using the "New Database" button) in order to allow creating new
dialogs (in addition to being able to open existing databases using
the "Browse" button).

Conflicts:
	dbaccess/source/ui/dlg/ConnectionHelper.hxx

Change-Id: I6174f3b7d9032c48286b49b5ddf125cd3b428303
2013-11-07 08:15:27 +00:00