1023 Commits

Author SHA1 Message Date
Rohit Deshmukh
88b9e7f391 fdo#71786 : Implemented Glossary folder
1. Glosary folder is imported as Intrograb and exported.
   2. Added unit test case

Reviewed on:
	https://gerrit.libreoffice.org/6825

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
	writerfilter/source/filter/ImportFilter.cxx

Change-Id: Ifd51a75a65e030d44d30e02cd7ab51fb088186b3
2013-12-13 11:19:42 +01: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
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
e52779d2f8 remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
Noel Grandin
0e6a2601b3 Convert code that calls OUString::getStr()[] to use the [] operator
This also means that this code now gets bounds checked in debug builds.

Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-11-04 08:06:10 +02:00
Marcos Paulo de Souza
0865c446c2 fdo#54938: Convert package, writerfilter and writerperfect
Change-Id: I5220e172bf9722ad86eef3bc557c30779f07201c
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-30 16:27:50 +01:00
Marcos Paulo de Souza
da5449da0c fdo#54938: More uses of cppu::supportsService
Change-Id: Id6bed78d92eba52283a17ab3ca66e751c225e48d
Reviewed-on: https://gerrit.libreoffice.org/6423
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-25 08:07:04 +00:00
Thomas Arnhold
f852bda5ec clean up some include guards
Conflicts:
	sw/source/ui/inc/content.hxx

Change-Id: I58d81881271fc6e3320bf3b5f1321594b28614a6
Reviewed-on: https://gerrit.libreoffice.org/6388
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-23 10:28:07 +00:00
Tor Lillqvist
a7724966ab Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete.

Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03:00
Stephan Bergmann
2d30d16e13 -Werror,-Wunused-variable
Change-Id: I682b5d72c1785e8d8cb9c8bb42d4a0bab6db263e
2013-10-11 10:05:49 +02:00
Jan Holesovsky
ad7b757a25 'ist' -> 'is' here and there.
Change-Id: I0a463c38214b95582db2c7b3979367255426c14e
2013-10-04 20:27:30 +02:00
Tor Lillqvist
7bdbe709ea WaE: unused variable
Change-Id: Iad493e5022a36895a30438340826ef4df50b2837
2013-10-02 19:37:30 +03:00
Tor Lillqvist
933c2adb2f WaE: unused variable
Change-Id: Iae213402c69a4ca35f160aae1a7ecae9a7a0d47e
2013-10-02 19:36:16 +03:00
Stephan Bergmann
2fb2a5fe91 -Werror,-Wunused-const-variable
Change-Id: I1a6f8fdd6904c9567b72d4bf5156aef5ce7d84f0
2013-10-02 16:49:28 +02:00
Caolán McNamara
11ad93f4ba Resolves: rhbz#1013844 fdo#47482 encrypted OOo 1.0 docs cannot be reopened
Workaround for the encrypted OpenOffice.org 1.0 documents generated by
Libreoffice <= 3.6 with the new encryption format and using SHA256, but missing
a specified startkey of SHA256

Change-Id: Ib1acc4441b5adc6721cb3cde7a1191aa978e9a1b
2013-10-02 11:43:04 +01:00
Julien Nabet
9ebcd5ec54 End iterator might not be const
Change-Id: I95c0999903762e79e606fdae7fd11b1ce79fe8d0
2013-08-28 08:39:26 +02:00
Stephan Bergmann
5e9137c963 These shall apparently check for URL scheme prefix match
...they had originally been

  aURL.equalsIgnoreAsciiCaseAsciiL( "vnd.sun.star.pkg", 16 )

etc., so where likely confused with the OUString compareTo functions that take a
maxLength argument.

Change-Id: Ie12df4f589dda310b7e49eb93535ad797f88a8a7
2013-08-27 14:49:38 +02:00
Luboš Luňák
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Michael Stahl
6e3ac01f85 fdo#68084: OOXML import: handle exceptions if stream is missing
The bugdoc does not have a styles.xml but a stylesWithEffects.xml,
whatever that may mean.  (the app.xml contains "Microsoft Macintosh Word")

Change-Id: If3d11c5d166dcaf3d94129339559787c20e6db46
2013-08-16 12:41:17 +02:00
Jelle van der Waa
608dec14f1 fdo#62475 removed pointless comments
Change-Id: Ic3743e48ef9055933ff040c180561ef41b3a2990
Reviewed-on: https://gerrit.libreoffice.org/5174
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-31 16:26:12 +00:00
Jelle van der Waa
7e3fdd1fdc fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
Change-Id: I595c10b9c3df8ea487d9fde0a7910ba0bca0ab43
Reviewed-on: https://gerrit.libreoffice.org/5059
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-23 21:26:31 +00:00
Lionel Elie Mamane
4d220882b4 hair splitting on years in dates in ZIP structure
Change-Id: I9d7a6436e3df75eff592d19dcaca0f655ebf2160
2013-07-05 12:22:04 +02:00
Thomas Arnhold
ba0a57702c remove OUString wrap for string literals
For some functions and all kinds of Exceptions.

CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException

createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService

bash command:

for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
	| cut -d ':' -f1 | sort -u
	| xargs sed -i
		-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
		-e "s/\($i.*\)\"+ /\1\" + /g";
done

Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29 21:52:54 +00:00
Noel Grandin
a591811d08 Fix exception specification for ZipFileAccess::createWithURL
Broken during my conversion to new-style UNO in
commit 28e3aff576f06b0b02c7232da5d723e865b3c7ed.
Also revert mmeeks workaround in
commit c0b78901dba033ed112a023a787575ae54ef877d.

Change-Id: I1f711bbe19556f1bde7699295ca4f56cff54ddb9
2013-06-12 10:45:54 +02:00
Radu Ioan
db979ee28a fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
- replaced RTL_CONTEXT_ with SAL_INFO
- replace OSL_* with SAL_*

Change-Id: I9a7cce0d3abef42c9d9d0ad56609d94d504854cb
Reviewed-on: https://gerrit.libreoffice.org/4128
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-06-10 08:41:50 +00:00
Noel Grandin
dcbaf7c253 remove unused componentcontext.hxx includes
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02:00
Fridrich Štrba
1b049bd2da Accept even more corrupted zip documents as long as we can read them
Change-Id: I8d039664d6c33d978b9addc3f35cbeae86d6c710
2013-05-30 12:35:39 +02:00
Fridrich Štrba
482d1ae3d0 Revert "Accept even more corrupted zip documents as long as we can read them"
This reverts commit ef2ad0063a530aee186568579378a368180547a4.
2013-05-30 12:35:39 +02:00
Fridrich Štrba
ef2ad0063a Accept even more corrupted zip documents as long as we can read them
Change-Id: I8d039664d6c33d978b9addc3f35cbeae86d6c710
2013-05-30 12:30:08 +02:00
Noel Grandin
6a043e9c0a Use the new type-checking Reference constructor to reduce code noise
Also create a Clang compiler plugin to detect such cases.

Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752
Reviewed-on: https://gerrit.libreoffice.org/4001
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-05-22 10:44:29 +00:00
Michael Stahl
3c38b7727a zlib: remove ExternalPackage_zlib
Change-Id: I5bce88b2044279a6563fd68c35f9c1ac824c8850
2013-05-08 23:34:26 +02:00
Philipp Riemer
2ce25faffd fix typos (wich instead of which) 2013-05-06 20:07:23 +02:00
Artur Dryomov
b80d8c695e fdo#62096 - replace some O(U)String compareTo with ==
Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d
Reviewed-on: https://gerrit.libreoffice.org/3422
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-17 10:01:35 +00:00
Stephan Bergmann
209d6a0fcc Missing #includes
...once cppumaker would no longer needlessly emit #includes for optional
interface bases to .hdl/.hpp files.

Change-Id: Icbcfbf64c33be50652c5611a4962111fa8d13c05
2013-04-09 09:44:32 +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
Julien Nabet
92824e8e25 Simplify a bit
Change-Id: I77cb2b08b1d92f3c8ad406bb1ebd2d080cdbfa1a
Reviewed-on: https://gerrit.libreoffice.org/3123
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-04-04 12:45:52 +00:00
Stephan Bergmann
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Julien Nabet
78eda507c8 coverity#704243 Logically dead code
Change-Id: Ie1140a90a6c9723582fa5e18ca0cf1dc1f918742
Reviewed-on: https://gerrit.libreoffice.org/2942
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-23 21:27:50 +00:00
Stephan Bergmann
27d02a348b Improve debug messages
Some of those SAL_WARNs might actually better be SAL_INFOs; please change if
they hit too often.

Change-Id: I2a3b9bd485586b7878194f84bc734b54ce69bc06
2013-03-15 18:51:07 +01:00
Stephan Bergmann
29c49b3704 compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareToAscii(s)
...broken with 2cbdaf677c0a1e88aa582c6a17b496dff61a78b0 "package: no more
RTL_CONSTASCII_USTRINGPARAM in zippackage"

Change-Id: I867b9be723d1fde374ade68355e6b66df3c19332
2013-03-15 18:41:58 +01:00
Thomas Arnhold
937b63af33 use startsWith() instead of compareToAscii()
brain damage...

Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-11 11:07:09 +01: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
Andras Timar
b37a07f2da typo: allways -> always
Change-Id: I48bd0161dd76c36eeaa39c45e9539584a4ef6841
2013-02-20 17:25:30 +01:00
Noel Grandin
834dcf3acd fdo#46808, Convert package module to XComponentContext
Change-Id: I1b322e57d27e16d177ffa87d3cd42a7d06f3dfab
2013-02-11 08:02:17 +02:00
Noel Grandin
5bef4dc30c fdo#46808, use service constructor for document::DocumentIOLogRing
Change-Id: I39f6d9f671dcb03779d594df5af60c9a0e3ca451
2013-02-11 08:02:17 +02:00
Tor Lillqvist
88cc248d0d WaE: BaseReference::_pInterface may be used uninitialized in this function
Change-Id: Ia127816f994f7ce6fc7230a0a7dacaa7396ba825
2012-12-03 14:36:36 +02:00
Michael Stahl
31170413ae API CHANGE: com.sun.star.lang.IllegalArgumentException
... derives from com.sun.star.uno.RuntimeException instead of
com.sun.star.uno.Exception.

Only test that breaks with this change is jurt_uno/AnyConverter_Test,
which for mysterious reasons effectively tests that
IllegalArgumentException is a subclass of Exception and not
RuntimeException.  Presumably this is just a generic exception test that
happens to use IllegalArgumentException.

Some further testing indicates there are no problems expected at
runtime:
Running "make subsequentcheck" with all Java test code compiled against
a ridl.jar that does not contain the change, running against a soffice
that uses ridl.jar and rdbs with the change + ridl.jar with the change
on the test side yields exactly the same AnyConverter_Test failure, with
no other failures.

Change-Id: Iad183de76ec7e0d56648084e97cdcc160b5b033d
2012-11-26 23:14:33 +01:00
Noel Grandin
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
Noel Grandin
1dedb15b17 fdo#46808, Adapt xml::crypto::SEInitializer UNO service to new style
Also create an NSSInitializer service IDL and split it's interfaces
out from SEInitializer.
It looks like this was the intention all along, but someone
took a shortcut.

Change-Id: I53ac1cb5d38b78b6718fe22c9666eae1f194a3b7
2012-11-05 16:43:14 +01:00
Markus Mohrhard
eac570e018 uncommpressed stream size is now 64bit, fdo#56291
Change-Id: I13de2ea8cdd63cd2ba365a0ee02c224092d3f65f
2012-10-26 02:10:12 +02:00