Commit graph

7954 commits

Author SHA1 Message Date
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
Luboš Luňák
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
Luboš Luňák
5c1c0a4eef function for duplicated code
Change-Id: If9d6a163abb5a1cbd64838ca005b14dcd51c4588
2013-03-08 13:35:26 +01: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
Luboš Luňák
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
Kenneth Beck
21e1e859a7 fdo#60724 change spelling error REMOVEABLE -> REMOVABLE
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments.
All other instances of the misspelling have remained the same.
Example: AF_REMOVEABLE

Change-Id: I391f4101bbc3e06689318235a37d616065bc1686
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-06 10:39:30 +01:00
Thomas Arnhold
41e03a166e doubled using
Change-Id: Ib1d3213a688194bfb027b7bca5bd9ac1b7bb1b28
2013-03-05 12:34:33 +01:00
Takeshi Abe
ce33f85ffd sal_Bool to bool
Change-Id: I8c554fb3faead41c974af9c2a89728bd0bdf5eb6
2013-03-04 23:14:41 +09:00
Thomas Arnhold
57d169b606 doubled namespace
Change-Id: I756f4a98b1eedcbe7674e9afd9b06816141688b9
2013-03-04 13:58:39 +01:00
Markus Mohrhard
53630966cc another fix for error bar import, related fdo#60083
Change-Id: I843a597702cb0cb66d8696c277666e1605091c09
2013-03-04 12:57:24 +01: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
Noel Grandin
b313e37a92 fdo#46808, convert xforms::Model to new style
the service already existed, it just needed an IDL file.

Change-Id: Id8f33183d9332f9defd855b3a3c7413fde24a61b
2013-03-04 10:13:20 +02:00
Thomas Arnhold
32943a5b7e binfilter: remove some traces
Change-Id: I5b03dcb5d1f8c73c7a308e7ae209cc7872f18c61
2013-03-03 20:30:44 +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
Thomas Arnhold
ecf0040337 loplugin: improve indentation
Change-Id: If0ddaa8fd7cfaf4df8589422cb50ce37f1be2ad1
2013-03-03 17:14:15 +01:00
Vojta Koukal
9a6ab1568d fdo#60724: fix paramater -> parameter misspelling found by lintian
Change-Id: I6c09767211817533494df34744a265cf28a76105
2013-03-03 12:42:47 +01:00
Markus Mohrhard
bf0e0f8856 and one more fix for error bar import, related fdo#60083
Change-Id: I76ff4849137aaad175b3c95dce6644d612871201
2013-03-03 09:10:11 +01:00
Chr. Rossmanith
b15f095293 removed RTL_CONSTASCII_(U)STRINGPARAM xmloff(text)
Change-Id: I54af0ac7a3454259540e89267200d801b17ec179
2013-03-02 21:36:10 +01:00
Gregg King
db7a441342 Typo fix: informations -> information and a few other adjacent typos.
FDO:60724

Change-Id: I73ad9f1c37cbbcf28d996ed73c75cf09553e499b
Reviewed-on: https://gerrit.libreoffice.org/2479
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-02 02:45:55 +00:00
Caolán McNamara
4c8d4308d6 WaE: init variables
Change-Id: Ia9d120348787bd566a3c9049f7adaf76648d096e
2013-03-01 12:44:14 +00:00
Radek Doulik
b40bcde076 finish font embedding, use the new Fonts document property
Change-Id: I4cd6b8c11fb1efe9f97d2c5e474bd0bdcc9ed505
2013-03-01 13:05:20 +01:00
Miklos Vajna
02944a639d xmloff: remove no longer needed XMLFORM_CONSTASCII_STRING macro
Change-Id: I92a341ccafb018b10e884bbaec07574b706a02b4
2013-03-01 10:47:06 +01:00
Peter Foley
1ceabe1101 regenerate pch
Change-Id: I130bfbeaf8723f0f9ee38051c8acf32cb7f5ba85
2013-02-28 19:59:24 -05:00
Michael Stahl
b768611724 remove all d.lst
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28 18:40:06 +01:00
Julien Nabet
c13802e009 Fix typo "persistant" -> "persistant"
Change-Id: I639afec2508d189c10a180fd8f824e634afbd14a
Reviewed-on: https://gerrit.libreoffice.org/2347
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-28 16:05:17 +00:00
Markus Mohrhard
6f50c0967f fix build 2013-02-27 07:07:27 +01:00
Markus Mohrhard
66dc20ae27 coverity#441041: unitialized variable
Change-Id: I5918448afaf5409d9372592011d936b48701903d
2013-02-27 06:26:09 +01:00
Markus Mohrhard
c91b8d3251 one more fix for error bar import, fdo#60083
This makes it finally possible to import the original test document.

Change-Id: I5941f2ce303a28674dcf04aeabbbbc2d178c0913
2013-02-26 22:41:42 +01:00
Chr. Rossmanith
28b5eb13f7 removed RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: If6b297b6dd150b698f8f524a071006c571c6cc7a
2013-02-26 22:01:51 +01:00
Chr. Rossmanith
8a89a73252 undo removal of RTL_CONSTASCII_STRINGPARAM in strings.hxx
Change-Id: I96248570c09a9d8c2b594c3289ba435ed493d1da
2013-02-26 20:42:01 +01:00
Chr. Rossmanith
f03daee6b4 removed RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: I8ab8c32ee561a14dcb05b9cf04387beadccd314a
2013-02-26 20:18:43 +01:00
Norbert Thiebaud
1580aa9249 coverity#736009 Explicit null dereferenced
Change-Id: If6ae3637f901ed8d424125c19e04f64c3a27c126
Reviewed-on: https://gerrit.libreoffice.org/2325
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-26 13:14:26 +00:00
Luboš Luňák
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
Markus Mohrhard
91b67ad718 get the x-error-import working as well, fdo#60083
Change-Id: I2d2af3944985776cb8bebf47322b348745d66410
2013-02-26 09:07:11 +01:00
Markus Mohrhard
b63d1e5662 get at least the y-error-bar import working again, fdo#60083
This still does not help with the x-error-bars but it is a first step in
the right direction. There are still some nasty problems around the
different possibilities how the error bar information can be stored in
the file.

Change-Id: I8022fbfc8d372c9863d236253a2a63364198bfc8
2013-02-26 07:41:46 +01:00
Chr. Rossmanith
1d6376b758 removed RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: I2d2a695b56e99e9df7835a5e4e8844be19c421eb
2013-02-25 23:26:56 +01:00
Thomas Arnhold
dd3e879cfd remove some trivial duplicates
Change-Id: Ie736cb6d5ff7f4d1998338f4a3a3a3b0a67c79ad
2013-02-25 19:34:36 +01:00
elixir
5269589ae4 fdo#38838,::rtl::OUString_to_OUString
Change-Id: I7c9ebd01c16ff066008e53de865560ad78215bab
Reviewed-on: https://gerrit.libreoffice.org/2330
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-25 13:00:14 +00:00
Norbert Thiebaud
bbe02c2212 coverity#705444 Improper use of negative value
Change-Id: Ie3b7634e099de5c8b9a4a77daf47c6038dade370
Reviewed-on: https://gerrit.libreoffice.org/2320
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-24 23:56:40 +00:00
Norbert Thiebaud
bb717296bf coverity#705347 Missing break in switch
Change-Id: Ife49c096722fff204a140be970aa0692281e8b86
Reviewed-on: https://gerrit.libreoffice.org/2327
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-24 23:31:12 +00:00
Chr. Rossmanith
d5da648056 remove RTL_CONSTASCII_(U)STRINGPARAM in xmloff
Change-Id: I86163e68d0993dcaf6888060ace17f5dba812f1a
2013-02-24 21:06:00 +01:00
Norbert Thiebaud
f28c33d21d coverity#984351 Uninitialized scalar field => unused member
Change-Id: I766bfc9db355205f97aaea774ee68c76bd5df0ae
Reviewed-on: https://gerrit.libreoffice.org/2317
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-24 02:26:51 +00:00
Julien Nabet
7c7755473e Fix typo "teh" -> "the"
Change-Id: Iacfeb4a0c2bff254e5bcc8d58582994cd0f3993a
2013-02-23 15:28:55 +01:00
Radek Doulik
eb451cbc1a set document settings / embed fonts when importing odp
Change-Id: Ib7160c3b00399e704cd02a41735b0ff4f13d8554
2013-02-22 18:15:55 +01:00
Radek Doulik
f0cd6fe907 use document settings / embed fonts when exporting odp
Change-Id: I9e8db1ae08b570f093b13d50bfde823c85cdba95
2013-02-22 18:06:56 +01:00
Tor Lillqvist
616c6924f1 s/the the/the/
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-22 09:58:19 +02:00
David Ostrovsky
cad65120c6 Revert "embed also system fonts when embedding fonts in a document"
that's enouph breakage for now.

This reverts commit 596bd0f61f.

Change-Id: I992f439a9a099e47115a30b3d745848f3af09e5e
2013-02-21 23:34:47 +01:00