Commit graph

10701 commits

Author SHA1 Message Date
Ricardo Montania
7ee37c3ac6 String::AppendAscii cleanup in dbaccess
Change-Id: I6a6d695c9e4b850bc19a3a80c2d8343147724df6
Reviewed-on: https://gerrit.libreoffice.org/3068
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-28 16:46:15 +00:00
Mathias Hasselmann
4fc429bf61 Remove ResId support for a few dbaui controls
This removes the ResId constructors of dbaui::OpenDocumentButton
and dbaui::OpenDocumentListBox.

Change-Id: Ib1d80a3ae7757c81ef0ee6f25ee24e91adce532d
Reviewed-on: https://gerrit.libreoffice.org/2888
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-03-27 15:03:23 +00:00
Mathias Hasselmann
f3f512bdfd Use UI builder for database wizard's start page
Actually the resource based code maintaining two pretty different
pages in one single class: The start page of the setup wizard and the
start page for the change datasource type wizard. Both dialogs looked
pretty different so to simplify the UI definition and to reduce number
of null pointers and branches in the underlaying code I've split
dbaui::OGeneralPage into two separate classes that share a few common
pieces.

Change-Id: I690e178992c528de112d91cecf00cc3c5156f1cf
Reviewed-on: https://gerrit.libreoffice.org/2887
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-03-27 15:02:26 +00:00
Zolnai Tamás
6c6adf5b46 fdo#61794 Set maximum of LimitBox to SAL_MAX_INT64
Change-Id: I1744c7f8f1d6d27d3e62feb0cade1280fea331f1
2013-03-27 14:29:11 +01:00
Stephan Bergmann
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Thomas Arnhold
488e6875e9 remove external include guards
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-25 19:58:16 +01:00
Stephan Bergmann
cec22e4510 Do not needlessly include jvmaccess/virtualmachine.hxx in header
Change-Id: Ieb1564eb7b477a7b239b07347f46fc55b64bd92b
2013-03-26 17:21:46 +01:00
Noel Grandin
905501b635 fdo#46808, convert sdb::CommandDefinition to new-style
the service already existed, it just needed an IDL file

Change-Id: I99c08b4e3a3ee0131b6fd904803efe7273cd1694
2013-03-25 10:35:04 +02:00
Noel Grandin
8172eaf8dc fdo#46808, use service constructor
Change-Id: I349557ae5897ad668abab30b34b186e746b94c75
2013-03-25 10:35:04 +02:00
Noel Grandin
5b982b6936 fdo#46808, Convert sdb::application::MacroMigrationWizard to new style
The service already existed, it just needed an IDL file

Change-Id: I8299b12ba8f5f0c00b0ff44dab641a6f19826b01
2013-03-25 10:35:04 +02:00
Mathias Hasselmann
3799880852 Add builder support for a few dbaui controls
This adds the needed methods and catalog definitions for
dbaui::OGenericAdministrationPage, dbaui::OpenDocumentButton
and dbaui::OpenDocumentListBox.

Change-Id: I5b883c39f1cb9623c357e5ebec1632816547ff03
Reviewed-on: https://gerrit.libreoffice.org/2886
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-24 14:42:41 +00:00
Mathias Hasselmann
ffb4e4310e Adjust indenting of a few comments
Change-Id: I5c72ea3b8c270c220be388d481569b82b7fa0ff7
2013-03-22 23:30:50 +01:00
Mathias Hasselmann
ae88d7ec8e dbwizsetup: Make pFinalPage a class member
It really should not have been a global variable.

Change-Id: I26d4b0d4736a2d026eb61149ede88f6f6ead6dfa
Reviewed-on: https://gerrit.libreoffice.org/2904
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-22 07:20:14 +00:00
Mathias Hasselmann
eca62e11db Use initialization list for ODbTypeWizDialogSetup
Some members got initialized by assignment instead of initialization
list without need. A refactoring artifact most likely.

Change-Id: I6b1d4036a24bd26443ce7c6e44e51d08b8b83b20
Reviewed-on: https://gerrit.libreoffice.org/2903
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-22 07:02:07 +00:00
Peter Foley
4c8534b63e regenerate pch
Change-Id: Idacefb2e89dc2f8bd44e489b43b47847123476e2
2013-03-21 17:27:02 -04:00
Chris
3c61c08757 Move setupwizard modify handler code.
Move setupwizard code into the conditional below it. You can only work
on pPage if it isn't a null pointer anyway, to my mind this looks a
lot cleaner.

Change-Id: If8d910c15c5a1c1da5eb204b5922d074c454978b
Reviewed-on: https://gerrit.libreoffice.org/2890
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-21 18:12:37 +00:00
Mathias Hasselmann
4f6514eb09 Don't complain about missing colon in empty DSN
Empty datasource names occur with the datasource wizard's first page
when no datasource type has been selected yet.

Change-Id: I9bcd025aab046e6cb79db47564f55ae3f0faed55
Reviewed-on: https://gerrit.libreoffice.org/2885
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-21 07:30:47 +00:00
Julien Nabet
1890f4ba4c coverity#704618 Explicit null dereferenced
Change-Id: I9f3befc235b0fb7933294be4a97d168ef203a79c
Reviewed-on: https://gerrit.libreoffice.org/2866
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-03-20 12:31:19 +00:00
Noel Grandin
a066525b42 fdo#46808, Convert a bunch of comphelper::ComponentContext stuff
.. to Reference<XComponentContext>
mostly in the dbaccess module, but it also affected some other
modules.

Change-Id: I09b3f6fe7a9b33498b11d98b5521b5aeeb8882be
2013-03-20 07:32:53 +02:00
Noel Grandin
286a86221b fdo#46808, Convert sdb::TextConnectionSettings to new style
The service already existed, it just needed an IDL file

Change-Id: If86cb14d107077da5f10bddd81deda7cf61442ed
2013-03-20 07:32:51 +02:00
Thomas Arnhold
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +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
David Ostrovsky
90a326c702 fdo#61950 move report builder from bundled extensions to plain code
For test sample report from fdo#61726 can be used.

Change-Id: Iacf8ddc4cf8ad0a408d72e18ecb7237476afeffe
Reviewed-on: https://gerrit.libreoffice.org/2718
Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de>
Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-03-18 15:30:44 +00:00
Lionel Elie Mamane
7014a569cc fix breakage introduced by String->OUString migration
Change-Id: Ia509d23306e71b978247705daa9c9559adbae195
2013-03-17 11:55:26 +01:00
Thomas Arnhold
72a3647e5c dbaccess: fix ambiguity
Change-Id: Ib25a9eab4ff2b2ba078f18d21e5f697c4fd62460
2013-03-15 02:48:55 +01:00
Gergő Mocsi
bdc374eadf fdo#38838, String to OUString in dbaccess
Replaced String with OUString in module dbaccess/ui/app , and also removed RTL_CONSTASCII_USTRINGPARAM deprecated macro.

Conflicts:
	dbaccess/source/ui/app/AppControllerDnD.cxx
	dbaccess/source/ui/app/AppControllerGen.cxx
	dbaccess/source/ui/app/AppDetailPageHelper.cxx
	dbaccess/source/ui/browser/unodatbr.cxx

Change-Id: Ie385d44c328fb3f919d53a604d51640a334a1013
Reviewed-on: https://gerrit.libreoffice.org/2386
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-15 01:25:12 +00:00
Gergő Mocsi
59bc10eb46 fdo#38838, String to OUString, in dbaccess/source/ui/browser
Applied fdo#38838 in dbaccess/source/ui/browser, +
RTL_CONSTASCII_USTRINGPARAM removals

Change-Id: I8a565cdae7fd9da1de05525c602ce011542ab4d5
Reviewed-on: https://gerrit.libreoffice.org/2538
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-15 01:03:35 +00:00
Michael Meeks
79b0046ba0 remove legacy build.pl prj/build.lst files. 2013-03-14 17:05:51 +00:00
Michael Stahl
38d3e115c1 vcl: make Region ctors explicit to prevent overloading desasters
Change-Id: Id36d125b4940418833bec31a4710d6cd545629e0
2013-03-13 22:29:46 +01:00
Michael Stahl
97346bdddf Revert "There's no reason for these defaults in one constructor but not the other"
The reason is that dbaccess_unoapi dbaccess.ORowSet fails with:

lib.StatusException: couldn't set up test environment
    at mod._dbaccess.ORowSet.createTestEnvironment(ORowSet.java:479)

This reverts commit 36caac0e02.
2013-03-12 20:59:43 +01:00
Luboš Luňák
8563f011ab update pch headers
Change-Id: Ibb368e6a806666a73bf6bf1a097d14bc6e75b24d
2013-03-12 18:24:10 +01:00
Lionel Elie Mamane
36caac0e02 There's no reason for these defaults in one constructor but not the other
Change-Id: I62e9351a21b0519a3ef70c328f33e1b7f7427926
2013-03-12 18:15:50 +01:00
elixir
7d1f4cdec3 fdo#38838: Converting String/UniString to OUString
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9
Reviewed-on: https://gerrit.libreoffice.org/2586
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-11 15:50:44 +00:00
Thomas Arnhold
937b63af33 use startsWith() instead of compareToAscii()
brain damage...

Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-11 11:07:09 +01:00
David Ostrovsky
6f28efc2a8 fdo#61726: rename report-builder package to org.libreoffice.report
To prevent future clashes with uno name space rename the
com.sun.star.report package to org.libreoffice.report.

Bump the version to 1.2.4.

Change-Id: Ia06cb7ad8c1528c1d5b5eeb70f1e4b2aa854b70f
Reviewed-on: https://gerrit.libreoffice.org/2578
Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de>
Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-03-11 08:56:40 +00:00
Peter Foley
b56e53f135 update pch files
Change-Id: I07c1acc9f9e788f1165b3e241008aa944485790d
2013-03-10 14:31:18 -04:00
Thomas Arnhold
6dddefc6e7 fdo#43460: use isEmpty()
Change-Id: Ia768e684d3cf255239c04d024b35488830cc9fe6
2013-03-09 21:47:31 +01:00
Stephan Bergmann
3912e47044 Work around -Werror=unused-local-typedefs from comphelper/stl_types.hxx
Change-Id: Id9f588e551b40a64bc86cae7c6d50f99659f94ab
2013-03-09 13:03:06 +01:00
Zolnai Tamás
8885dc27da Make allow to step on from LimitBox with tab
Change-Id: I5f2994459cbb7786e6c9d83b0894cb581f4560fd
2013-03-09 12:13:45 +01:00
Zolnai Tamás
4e38ea8670 LimitBox.cxx: Delete useless comment block
Change-Id: I3a75c7de783913385188680119f2baf8a726676d
2013-03-09 12:03:49 +01:00
Zolnai Tamás
4c52c8bd73 fdo#61794 Allow greater value in LimitBox
Increase the width of LimitBox
*on toolbar: 6 digits
*in dialog: 10 digits
Set maximum value of LimitBox to the max value of Int32

Change-Id: I6fcf0270b474eb46a29ff98ade9cd7ee8ba637f5
2013-03-09 11:59:21 +01:00
Zolnai Tamás
33933867b0 fdo#61797 ESCape abort changes and grab focus
Handling of hitting enter or escape are only
usefull for toolbar element.
In a dialog these keys have other meanings
(close the dialog with/without saving)

Change-Id: Ifbe5d36daab9c0702b888a58403dc170082fc32d
2013-03-09 08:20:51 +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
4bf95c4c31 make use of startsWith()
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679
Reviewed-on: https://gerrit.libreoffice.org/2599
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-08 13:16:49 +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 19020191cb,

  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
8035a3af26 some further OUString cleanup
Change-Id: I13eb94092e29ececc9fbf494074acde5f893b605
2013-03-08 04:51:28 +01:00