1118 Commits

Author SHA1 Message Date
Thomas Arnhold
083092e808 OSL_FAIL -> SAL_WARN
Change-Id: I1871e5e3a319b2d5177ae4bd470046c022c14eb7
Reviewed-on: https://gerrit.libreoffice.org/3121
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-03-30 17:37:54 +00:00
Julien Nabet
bd5e62e199 Prefer prefix ++/-- operators for non-primitive types
+ convert while loop into for loop

To check:
could we use std::find (find_if)?
Is it always ok to do begin()+1?
What about if we return aEnd?

Change-Id: I59107de5693ad7b37e5eef80134c34a03982151e
2013-03-30 16:50:47 +01:00
Julien Nabet
1679aa60d0 Prefer prefix ++/-- operators for non-primitive types
+ use const_iterator for end iterator

Change-Id: I8ad8db97e35ec4fad7c02c669be981f73c9165ca
2013-03-29 06:48:30 +01:00
David Tardon
820f596b74 add missing deps on headers
Change-Id: Ifdc86edf9885d5c5bad158838093f7eff02c6ef3
2013-03-28 08:59:24 +01:00
Thorsten Behrens
ff140bb6b8 Remove StringMirror UNO service.
This was a kludge from back in the day when pdfimport was an
extension and could not link against office libs.

While at it, fix mirror method to handle unicode surrogates
correctly.

Change-Id: I3582a7870efdfea50446d3604a185025b1d5a196
2013-03-21 00:54:16 +01:00
Thorsten Behrens
dd0db92a17 Kill fprintf in sdext in favour of SAL_LOG
Change-Id: I2253c1a4d90ab348764cd8863b8aaf2036a254de
2013-03-21 00:51:03 +01:00
Michael Meeks
ba4e2aad3e avoid floating-point error with empty bitmaps.
Change-Id: I11be81b52e32c776905a6caac1582cd1a839ab24
2013-03-20 17:44:46 +00: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
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
Michael Meeks
79b0046ba0 remove legacy build.pl prj/build.lst files. 2013-03-14 17:05:51 +00:00
Thomas Arnhold
937b63af33 use startsWith() instead of compareToAscii()
brain damage...

Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-11 11:07:09 +01:00
Abdulaziz A Alayed
b977c27383 fdo#57422 fixing scroll bar and slides position
fixing scroll bar position and  slides sorter of  note view and slides if
the interface language is RTL .

Change-Id: I80b55dff621d6b994095ad7a4979bcca63371edf
2013-03-11 10:33:32 +01:00
Thomas Arnhold
a2454a42ad fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-09 20:32:39 +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
Stephan Bergmann
12f9287bca Make gb_Extension_use_default_description/license explicit
...as a prerequisite for gbuild'ifying desktop/test/deployment/passive/, which
builds a test extension that does not match those default description/license
settings.

Change-Id: I200ff0ceb9750ed4b1c187305f10469f789d29cb
2013-03-07 11:13:59 +01:00
Julien Nabet
f348749a83 coverity#982282: Resource leak in object
Change-Id: Ia7d936c90d7afd4ffa4e22a86289aba47956f576
Reviewed-on: https://gerrit.libreoffice.org/2511
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-03-04 13:32:29 +00:00
Thomas Arnhold
5b04c9063c remove unused and commented out code
This code gets never called.

Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04 11:34:07 +00:00
Thomas Arnhold
f5ca04caca Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml

Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
David Tardon
c25c54c6c9 fix copypasta
Change-Id: Id27da44a5645f584922951391bf61ed6368e70b6
2013-03-03 09:28:30 +01:00
Michael Stahl
b768611724 remove all d.lst
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28 18:40:06 +01:00
Michael Stahl
836bde622d cppuhelper: new ZipPackage_cppuhelper_odk_headers
Change-Id: I77d7ef6890ca584cf022059838c318a2811bcd5d
2013-02-27 01:33:19 +01:00
Michael Stahl
936d7badcb cppu: new ZipPackage_cppu_odk_headers
Change-Id: I4ceee0ed3438a18e13c186ebd8d390604d26ec28
2013-02-27 01:33:18 +01:00
Michael Stahl
308cac3f23 sal: new ZipPackage_sal_odk_headers for public ODK headers
Change-Id: I76cb00121d7b4c21137be70ab7a5bd5389037302
2013-02-27 01:33:18 +01:00
Thomas Arnhold
dd3e879cfd remove some trivial duplicates
Change-Id: Ie736cb6d5ff7f4d1998338f4a3a3a3b0a67c79ad
2013-02-25 19:34:36 +01:00
Caolán McNamara
ff3278cdc8 log presentation minimizer results as info
Change-Id: I0f68ca75f774dfb18423517b36a1ea4d6071a83b
2013-02-24 20:44:53 +00:00
Miklos Vajna
3eaa536ae4 sdext: fix loplugin warnings
Change-Id: I4bca280b352f1df40fe75658e418f2e0cb2430e8
2013-02-22 21:43:47 +01:00
Tor Lillqvist
616c6924f1 s/the the/the/
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-22 09:58:19 +02:00
Radu Ioan
ef1d096ddc fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
- replaced osl_trace with sal_info
 - added new log areas to log-area.dox

Change-Id: Ib47c4b4c9604bca1f8a635dd01bb89702b47b591
Reviewed-on: https://gerrit.libreoffice.org/2010
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-19 16:02:40 +00:00
Norbert Thiebaud
fc19661712 coverity#983173 Resource leak
Change-Id: I913ce32579ef9045fd3d33b48a653bc4ffc628da
Reviewed-on: https://gerrit.libreoffice.org/2206
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-02-18 15:49:59 +00:00
Norbert Thiebaud
64fd898944 coverity#983175 Resource leak
Change-Id: I03eadb6f1e7235f03149a386c407066f81473772
Reviewed-on: https://gerrit.libreoffice.org/2207
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-18 15:45:28 +00:00
Caolán McNamara
ba9da7f098 coverity#984041 Uninitialized scalar variable
Change-Id: Ia726b08717d26b439f46f95dedfdb30e27e8499e
2013-02-17 22:02:56 +00:00
Markus Mohrhard
07ee72672e coverity: pass by const reference is more efficient
Change-Id: Iec40176a5dd567e667178f07fecd043fe0aa4344
2013-02-17 19:54:18 +01:00
Markus Mohrhard
c66ec11c41 coverity: pass by const reference is more efficient
Change-Id: I08cebe4aca8eaa5a2be8c319c2de20de10dbd2d3
2013-02-17 19:54:17 +01:00
Peter Foley
fb1d11d9a5 convert xpdf to gbuild and add to tail_build
Change-Id: Ie85f8092e0c37124508123a1d2f942f50f0740da
Reviewed-on: https://gerrit.libreoffice.org/2197
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Peter Foley <pefoley2@verizon.net>
2013-02-17 16:47:39 +00:00
Stephan Bergmann
1976b017c3 Disambiguation for MSC
Change-Id: I356af9cebf4779bd5bc4721b0e0e20d7ae4e307e
2013-02-14 17:24:33 +01:00
Jean-Noël Rouvignac
77fd448d09 Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING
Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f
Reviewed-on: https://gerrit.libreoffice.org/1954
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-02-14 13:20:14 +00:00
Noel Grandin
4b51374a70 fdo#46808, Adapt ui::dialogs::FilePicker UNO service to new style
Change-Id: I1cafbfc53994e5d74241042dbd1d292ddbda67d5
2013-02-12 10:14:45 +02:00
Noel Grandin
591ef78440 fdo#46808, Use singleton util::theMacroExpander new-style constructor
And deprecate the old-style service util::MacroExpander

Change-Id: Ifcefe31a8f8c68c6d44d6ec19616727eb607e1cd
2013-02-11 08:02:13 +02:00
Jean-Noël Rouvignac
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
Ahmad Harthi
e252ac0722 More fixes to fdo#57422
* Code cleanup + replacing drawText() with drawTextLayout().
This solves mirrored LTR text in an RTL ui

Change-Id: Ib89aee7c817811c7b3751dc6f941a34ed763d993
Reviewed-on: https://gerrit.libreoffice.org/1521
Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
2013-01-29 07:40:02 +00:00
Michael Stahl
5a61e28378 gbuild: fix silly "expandtabs" in makefile VIM modelines
Change-Id: I54d8923ad315e8041fd3904da3a29f1a7a8c8b16
2013-01-26 22:20:07 +01:00
Michael Stahl
a53586f4ef gbuild: do not copy boost headers around
- do not use gb_UnpackedTarball_copy_header_files for boost
- adapt the optimization in concat-deps.c for new path
- use boost_headers in all LinkTargets that require it
- add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus

Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-26 22:20:06 +01:00
Jean-Noël Rouvignac
63bcb139b9 Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-21 15:04:17 +00:00
Julien Nabet
460c55f620 Modify constructor, remove setters + unused define
Change-Id: Ibf878c44ae761e59a04b6d5023296c5918cbf85e
Reviewed-on: https://gerrit.libreoffice.org/1665
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-01-14 18:32:38 +00:00
Faisal M. Al-Otaibi
b0a827aa83 Fix some errors and remove duplicate code on Presenter
Fix the toolbar text if the interface were RTL.
Remove duplicate code from PresenterToolBar.cxx

Change-Id: Icd6f71ce2daa896494c8efe76779d49e16c547bf
Reviewed-on: https://gerrit.libreoffice.org/1474
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-01-10 13:08:53 +00:00
Abdulelah Alarifi
eb0d07d3f2 fdo#57422 - presenter console RTL support needs completion
This patch will fix the text direction of the text that
appears when the mouse come over the slide in
Slide sorter view.

Change-Id: I2d3c5563b22dcd40ae4f70ed0ed06ad17f6c4132
Change-Id: I812e011b4e0aaeeb7ec6114a655240effc8c606a
Reviewed-on: https://gerrit.libreoffice.org/1284
Reviewed-by: Faisal al-otaibi <fmalotaibi@kacst.edu.sa>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-01-10 13:06:17 +00:00
Abdulmajeed Al-Abaulrazzaq
07969f6eff Code enhancement remove duplicate code from presenter console
Change-Id: Ibbb131b64c66307d38a135ac570c1e2ed37bef6c
Reviewed-on: https://gerrit.libreoffice.org/1480
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-01-07 13:05:00 +00:00
Luboš Luňák
bba8b65fdc SunPresentationMinimizer uses uno interfaces
Change-Id: I186af92084de6a7eee27d742d0377da09936473f
2013-01-04 12:28:11 +01:00
Julien Nabet
c047ef2bf7 Fix Possible inefficient checking for 'm_GlyphsList' emptiness
Change-Id: I65c30e751fc01b63a54aa9c31b4b2a792b795a79
2012-12-27 17:13:21 +01:00
Tor Lillqvist
6943c7b11c Sigh, my git grep regexps missed some cases
Change-Id: I085f14f40fb83cba171b35b14cf7c0d99091fc00
2012-12-27 14:03:18 +02:00