Commit Graph

1325 Commits

Author SHA1 Message Date
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
955ebe83a8 String to OUString and cleanup
Change-Id: Idc18c1a6a64edea3399c8747ec0f096a2f964b68
2013-06-29 16:23:24 +02:00
4296394d5c remove pointless external guards for standard headers
Change-Id: I509984a6029b6a86fd1ee3f947394af9cdf71c6a
2013-06-28 18:10:16 +02:00
ad09b2f7ef fdo#43460 xmloff: use isEmpty()
Change-Id: I298767cc0ec03c22d3ae687939f0f9d5ce1963c1
Reviewed-on: https://gerrit.libreoffice.org/4348
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-19 10:10:39 +00:00
e7d73b42bd use proper offset for additional locale data formats, fdo#64947 related
Old number formats had predefined formats from 0..49, locale data could
define additional formats from index 50 on. Internal (fractional)
formats were added to the number formatter, shifting the number of
predefined entries NF_INDEX_TABLE_ENTRIES by two that was also used as
an offset to determine whether a format needed to be added additionally.

As a consequece, formats defined with index values 50 and 51 in locale
data were ignored and not available in the dialog.

Introduced a new enum constant NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS to
use as the old offset value for not having to change all locale data
definitions everytime an internally generated format is added.

Change-Id: I94bdaabf360f7b9c253b1e3f5b73087f0c45fb44
2013-06-15 16:40:00 +02:00
3af0114a29 Introduce O[U]String::toUInt32
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39
"Handle oveflow in O(U)String::toInt() functions" reduces values in the range
(SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied
on getting a correct (unsigned) value for the whole input range ["0" ..
"FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3
"Revert overflow checks in O[U]String::toInt{32,64} again").

Audited all uses of toInt32/64 with non-decimal radix.  (There is still a TODO
comment in oox/source/helper/attributelist.cxx, and
stoc/source/typeconv/convert.cxx will still need some love and test code.)

Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-13 17:08:36 +02:00
be9034ec5c prevent invalid files if file contains currency formats
A regression from writing error cell information into the file.

Change-Id: Idb55646094fcd76912bdcd2102370681bcc8703d
2013-05-23 16:15:53 +02:00
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
2ce25faffd fix typos (wich instead of which) 2013-05-06 20:07:23 +02:00
829027abe3 ditch explicit char arrays for string literals
Change-Id: I77a4f6d338751c00942f091f4267e5f7d1d1742f
2013-05-02 17:00:35 +02:00
a8b7c72425 add error to office:value-type for calc cells and fdo#51810
For cached value import we need the information which cells are error
cells. For ODF 1.2 extended we therefore export now calcext:office-value
with the additional value "error".

Change-Id: I9bc988ea4924bea767ba5e504b77f6a16e51a82e
2013-04-25 17:02:31 +02:00
9830fd36db date/time IDL datatypes incompatible change
- nanosecond precision
 - signed (allowed negative) year

Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.

Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
6a0f56b09d Fix typos: HEIGTH -> HEIGHT and WEIGTH -> WEIGHT
Change-Id: Ie5dc62bf535360cde8a5ccd6f8be3965ff48739c
Reviewed-on: https://gerrit.libreoffice.org/3435
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-04-18 09:07:07 +00:00
60fbefc615 fdo#60724 informations -> information
Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
2013-04-15 04:49:39 +02:00
ba044b1e96 remove needless forward rtl::OUString declarations
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07 14:23:12 +02:00
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
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
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
9b9a70ec0a print typename of object, not pointer
Change-Id: I6d364851173b53c541b80e0d7e77d431f218ce15
2013-03-24 14:35:53 +01:00
2c17beb796 Wundef, fix various more or less broken debug code
Change-Id: I347495f7960da099afdfbf3db608e0347b832f99
2013-03-18 17:15:57 +01:00
678e35c4ac xmloff: native code unit testing harness.
Change-Id: I5b9133deea2aa7630752128128f1a222bef99eb1
2013-03-14 13:26:42 +00:00
937b63af33 use startsWith() instead of compareToAscii()
brain damage...

Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-11 11:07:09 +01:00
d2f57b6c12 fdo#43460: use isEmpty()
Change-Id: I47b35af71277fdda19767a553c960bf12164b92f
2013-03-09 20:32:40 +01:00
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
e2cd75f005 embed also view-only fonts, but do not use them
MSO embeds even fonts which allow only embedding for viewing the document
but not editing it. So embed such fonts too, but do not actually use
them from the document. What MSO does when such a font is not present
locally when opening the document is switching to read-only mode,
warning about this and providing a button for switching to editing mode
by dumping the font(s). That should be done for LO too, but right now
dropping view-only fonts is better than using them for editing.

Change-Id: I19c28fadb091e6b21beaf4cbf8b47e3078256d1c
2013-03-08 13:35:27 +01:00
5c1c0a4eef function for duplicated code
Change-Id: If9d6a163abb5a1cbd64838ca005b14dcd51c4588
2013-03-08 13:35:26 +01:00
3fbc15ce45 remove the need to explicitly specify font style for font embedding
The information can be read from the font data itself now, so
this is a bit pointless. It wasn't entirely reliable anyway,
as it is also necessary to ensure two font different font files
don't overwrite each other.

Change-Id: Ie17ab8118e1c08228beb7c749c5c8d6cf3426362
2013-03-06 12:00:11 +01:00
5b04c9063c remove unused and commented out code
This code gets never called.

Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04 11:34:07 +00:00
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
6f50c0967f fix build 2013-02-27 07:07:27 +01:00
66dc20ae27 coverity#441041: unitialized variable
Change-Id: I5918448afaf5409d9372592011d936b48701903d
2013-02-27 06:26:09 +01:00
28b5eb13f7 removed RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: If6b297b6dd150b698f8f524a071006c571c6cc7a
2013-02-26 22:01:51 +01:00
f03daee6b4 removed RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: I8ab8c32ee561a14dcb05b9cf04387beadccd314a
2013-02-26 20:18:43 +01:00
381154356c embed also system fonts when embedding fonts in a document
Without this, only fonts that had come embedded with the document
were embedded when saving, which meant that it was impossible
to create new documents that would have any fonts embedded.

Change-Id: I3b4e87b1b3ca5ae1ccfe29d9b571b0262c568dcf
2013-02-26 11:43:21 +01:00
cad65120c6 Revert "embed also system fonts when embedding fonts in a document"
that's enouph breakage for now.

This reverts commit 596bd0f61f8cfc957410148ae221c62331067bdd.

Change-Id: I992f439a9a099e47115a30b3d745848f3af09e5e
2013-02-21 23:34:47 +01:00
596bd0f61f embed also system fonts when embedding fonts in a document
Without this, only fonts that had come embedded with the document
were embedded when saving, which meant that it was impossible
to create new documents that would have any fonts embedded.

Change-Id: I3b4e87b1b3ca5ae1ccfe29d9b571b0262c568dcf
2013-02-21 18:26:21 +01:00
895dc882c4 generic integers to enums
Change-Id: Ic43283b9e1666c0f2162e277dc79fc6f992ef616
2013-02-21 18:26:21 +01:00
db28ed792e adapt writer to use centralised font dialog and fix some minor bugs
fixed incorrect return of EmbeddFonts property and also make sure that NotifyEmbeddedFontRead
is called on reload

Change-Id: I085f50ff88bbf73b5dcdb9630b6c5844430a47c2
2013-02-21 13:02:58 +00:00
e5fdaec54a fdo#46808, Adapt document::XML*BasicExporter UNO services to new style
The services are
   document::XMLBasicExporter
   document::XMLOasisBasicExporter

Change-Id: Ifd93e5735cae94d34904d79769cdb3edf587fe43
2013-02-11 08:02:11 +02:00
fbdaa717e3 Mark these members mutable to avoid casting them in const method.
Change-Id: Ib5d8ea83e37ab1e3c5a1ad4dc9870d3d5a2d8779
2013-02-07 00:35:38 -05:00
ab05434694 Move these typedef's inside the class scope & bool cleanups.
Change-Id: I806453efbc5f7bb18f34593c350b05d74a0bc23b
2013-02-07 00:35:37 -05:00
eb70a6e126 Revert "temporarily disable the xmloff/vcl dependency"
This reverts commit 7bce8c2e491562873705e3e451ba66d005b22646.
2013-02-01 18:18:29 +01:00
7bce8c2e49 temporarily disable the xmloff/vcl dependency
As far as I can tell, there is not circular dependency, but make
complains, and only when invoked from toplevel, not from tail_build.
Looks like gbuild problem, but do a hackish change to make
unbreak clean compilation, for now.

Change-Id: I445ba343f9eaa988c60c288bf5fc1c5d1c7b67a5
2013-02-01 16:14:31 +01:00
c2d14df725 move implementation class to a non-public header
Change-Id: I61731f472405e46828204ffb1cacf1c9e6a9b5bf
2013-02-01 15:04:59 +01:00
f337125b41 rename a class to something that gives at least some idea of what it does
Change-Id: I574c523d37d54a05aa79d2ccf52e0727e1a1d744
2013-02-01 14:40:16 +01:00
989d0953a4 basic support for embedded fonts in odt (fdo#42195)
There are still places that should be improved a bit, but this works.

Change-Id: Ieb7947a294ec95b6fd8cec2e8c4bc731e2594c42
2013-02-01 14:26:36 +01:00
d28f0bfda5 move class definition to a header file
Change-Id: Id41200667089d4f42f7999060fd97545bb069788
2013-02-01 14:20:33 +01:00
f95a7c2c6d fdo#46808, Convert SvNumberFormatter to use XComponentContext
Change-Id: If4e8312dae6bc5eb8bb7655cf250f06ab37b7e5c
2013-01-28 08:25:24 +02:00
eda0cec9ac Revert "dummy commit (WIP)"
This reverts commit 6eb0522395c236ae6930a300992ad092449f9592.
It does not compile and the message and contents suggest it probably wasn't
meant to be pushed.
2013-01-07 22:27:41 +01:00
6eb0522395 dummy commit (WIP)
Change-Id: Ibeee6553312323b75b2403ad6832595f228e0e3c
2013-01-07 19:39:46 +01:00