Commit Graph

6783 Commits

Author SHA1 Message Date
6509bbee4f sal_Bool to bool
Change-Id: If6d39259c29e9abcb693c9b0bdfb89b94001f928
2013-09-10 02:50:04 +09:00
396534403b Mark as const / static
Change-Id: I9bcf02b270200fd146d2bfee6f15ff1f9ad8888b
2013-09-10 02:50:04 +09:00
b69d152cfa fdo#68839: ODF import: fix name of multi-image frame
When multiple image child elements are inside a frame, each one is
imported and gets unique name via SwDoc::SetFlyName().  But the
retained one is not necessarily the first one, which is the only one
that may have the original name.

Also the solveMultipleImages needs to return a smart pointer, as nothing
else keeps the image contexts alive.

(regression from 44cfc7cb6533d827fd2d6e586d92c61d7d7f7a70)

Change-Id: I28a8a752f3eed176cc2ebb4c9af11a0dd4d18ea6
2013-09-03 00:54:14 +02:00
44922e5a8e cppcheck: fix redundant assignment
Change-Id: If9768751a50f302b8ad036f345ddcbcc29366b7c
2013-08-31 22:07:05 +02:00
ccf7b15c0a -Werror=unused-but-set-variable second try
Change-Id: Ia8a9f60831d089ec04127213bb9ded31aa754bf7
2013-08-30 21:02:26 +02:00
47924a4656 Revert "-Werror=unused-but-set-variable bCategoriesApplied"
This reverts commit 72e019c4e301ef93bd1be985edd037d1e2b10e28.
2013-08-30 20:58:07 +02:00
72e019c4e3 -Werror=unused-but-set-variable bCategoriesApplied
Change-Id: I43c1f866847e2029bc1547dff3be3c1ed454d281
2013-08-30 20:47:27 +02:00
b090cbdf82 fdo#68663 don't blindly force categories when there are none
Change-Id: If52ea471ee3ca10e2f69d2fcd7b3ae0d5772bfc3
2013-08-30 18:36:55 +02:00
ac6a2038ac ODF filter: handle draw:shadow-opacity for Writer frames
Change-Id: I3ad39e5de5b6999d6c2182c1ec622ae7f873cafe
2013-08-24 12:45:16 +02:00
fa94ca9a84 ODF export/import of fine dashed border style
Change-Id: Ia81385dd9952e90cd5ebb3d1bba38aff6f84d079
2013-08-23 21:01:38 +02:00
f8b6c3949e CharBrd 7: Border shadow
1, New character attribute
- Add the three shadow members to font
(width, color, location)
2, Painting
- Extract the shadow painting to a local function
and use that for character shadow (paintfrm.cxx)
- Reduce the painting rectangle of background
(shadow doesn't inherites the background of content)
3, Border merge
- Use text portion join members to skip shadow
when neccessary.
4, Vertical text
- Get shadow space dependant from oritentation and
border merge.
5, UNO API and ODF filter
Paragraph: ParaShadowFormat -> Character: CharShadowFormat

Change-Id: Ief4669990d238016c3ffc18a2609a3df7d9dddbf
2013-08-23 21:01:37 +02:00
21661ebfbe fdo#60740: Populate auto styles from edit cells without using UNO API.
Not using UNO API here alone made this code fly.

Change-Id: Ib3eff168bbe49e49fb413909b7a14057f808cdf9
2013-08-21 19:24:04 -04:00
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
26dc5f2ee6 Resolves: fdo#67665 font names filtered out on odp/odg export
Change-Id: Ia529992d15152db981379a1e0a4dec63b2dad40c
2013-08-20 11:37:59 +01:00
5f7ee4b7a3 These can be file local.
Change-Id: I71193951ce7a1d1a63fc6931a12267f22cdb72c3
2013-08-19 15:50:35 -04:00
fa0e48c5e4 fdo#57950: Remove some chained appends in xmloff
Change-Id: Iff0c43d190e6afa26c23416db4da9843cf7f41a5
Reviewed-on: https://gerrit.libreoffice.org/5327
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-08-19 15:50:01 +00:00
932901224e fdo#43807: Fix import of drop caps character style
Export works and import has just a little typo.

Change-Id: I570d70423b5a626f21117971fb7eff030eae20af
2013-08-18 09:49:50 +02:00
47e24bfed8 CharBrd 8.1: ODF filters
Change-Id: Ib1a79678ffce7764638378b4002f5e87ae749d00
2013-08-18 09:49:49 +02:00
1673502008 No need for elaborate type name for this.
Change-Id: Ia29a5956813c5d71f042f774d00de3bc82b7f1aa
2013-08-17 23:10:59 -04:00
ed8c8a7173 Move static struct to where it's used, and use std::vector for this.
Change-Id: Id68fa488731d3b34213db23bf4d50f73b04c6fe4
2013-08-17 23:10:59 -04:00
c19b9679a7 This function object is no longer used.
Change-Id: I0aa881bae4c1ee0857bafef78094a3d92bcc0702
2013-08-17 23:10:59 -04:00
82e3de5747 Rename SvXMLAutoStylePoolPropertiesP_Impl to XMLAutoStylePoolProperties.
Change-Id: Ib2bd2da3852fdd8110d6d799b5a4091f2a89f0a8
2013-08-17 23:10:58 -04:00
30dab43c05 Rename SvXMLAutoStylePoolParentP_Impl to XMLAutoStylePoolParent.
Change-Id: Ia5fe8e386fd363f0b5bb81b3d0e8fd1e15efe430
2013-08-17 23:10:58 -04:00
965f98162d Rename XMLFamilyData_Impl to XMLAutoStyleFamily.
Change-Id: I9798408dc92a983fecc98c42516482afcb12ae25
2013-08-17 23:10:58 -04:00
defbcb229a Using ptr_vector for this simplifes it a bit...
Change-Id: Id772a260475de7e9c8599616eff189851af6b356
2013-08-16 21:31:45 -04:00
1b183738ae Use ptr_set for auto style parent list. That seems like a natural fit.
Change-Id: I9fc094ec4aa7e4a6d4e637c5940c361639d44c65
2013-08-16 21:31:44 -04:00
e4f5586507 This cache data member is never used. Remove it.
Change-Id: I03d55ce8cfe175a75ed22639a06ac22c8783ccd7
2013-08-16 21:31:44 -04:00
ef60854f7d Tuck this typedef inside class scope where it's used.
Change-Id: I2b3a0479f9aeecd601b3fea4a262f614ec437945
2013-08-16 21:31:44 -04:00
7c02faf535 Properly hide implementation details.
If we are to hide, let's hide all.

Change-Id: Ic68926ee099ac80d2d477d68e3769a7203dfea6c
2013-08-16 21:31:44 -04:00
8f15ae6c3f write *:script* and *:rfc-language-tag* only for ODF >= 1.2
Change-Id: I767edf86f9e4d96da538ec1e32792524b22af11d
2013-08-15 21:47:31 +02:00
643db96e93 add character shading value to ODT filters
The attribute is only exported for ODF versions > 1.2; use the new
loext (LO_EXT) namespace.

Change-Id: Ie44e4b851c4adf52d8cc4fc2cbe37d6c3a9941d8
Reviewed-on: https://gerrit.libreoffice.org/4830
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-08-14 16:03:07 +00:00
de9b067bd1 xmloff: add a generic LibreOffice ODF extension namespace
XML_NAMESPACE_LO_EXT can be used for elements and attributes that are
not yet specified by OpenDocument.

Change-Id: Id29392533d46f6592d964ce79c05ffefa4d69ebc
Reviewed-on: https://gerrit.libreoffice.org/5419
Tested-by: Thorsten Behrens <tbehrens@suse.com>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
2013-08-14 16:02:07 +00:00
9e2351ffd9 XMLTextParagraphExport: not finding auto style means data loss
... so use assert() to get attention for such problems.

Change-Id: I4aea1a1cb5ad497583024b326f27fb73e5be9bb7
2013-08-13 18:46:46 +02:00
4f360266cd fdo#62475 removed pointless comments
Change-Id: I176886fbc9f3d9e2b8ad2308ac2b127d9c68d9a6
Reviewed-on: https://gerrit.libreoffice.org/5331
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-10 14:55:06 +00:00
8ee69b0ba1 fdo#67235 adapt form control code to time nanosecond API change, step 3
Change-Id: I4899c89ee5b2a54c9c05b531ab284365f1558e3d
Reviewed-on: https://gerrit.libreoffice.org/5270
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-08-04 06:51:31 +00:00
ed904af866 fdo#67235 adapt form control code to time nanosecond API change
Conflicts:
	offapi/type_reference/offapi.rdb

Change-Id: If68ecf0691919d71d06d7b97d46db115013f9805
Reviewed-on: https://gerrit.libreoffice.org/5149
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-08-02 11:35:57 +00:00
30eb11ea79 cppcheck: Prefer prefix ++/-- operators for non-primitive types
Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b
2013-07-29 22:04:52 +02:00
15dc66c81a fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
Change-Id: I377902007445b0bce91491060f05fb8a9dbe3cd0
Reviewed-on: https://gerrit.libreoffice.org/5133
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-07-29 12:53:11 +00:00
81df97ca2f WaE: unreferenced local variable
Change-Id: I1f3ef8611a82e2981f470c9a98e8d98085ed2002
2013-07-29 10:32:22 +03:00
e39a959429 surely this is a typo
Change-Id: Ic7a6b330094c597aaed09377cde55c2e7be1b08f
2013-07-28 16:14:59 +02:00
5bdc7103be More details in debug output
In particular, give type and message of exception
when unexpectedly caught.

Also miscellaneous other details.

Change-Id: I87d71028dbc902e1770fee4c3643c85e75b7646d
2013-07-28 16:14:58 +02:00
71e1927c78 fdo#66781 : fix bullets with level 0
Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx

Change-Id: I14b0ce9ae096eae4759793a49865eefe16ec1afd
Reviewed-on: https://gerrit.libreoffice.org/4818
2013-07-24 15:08:03 +02:00
c9321851a4 Remove unused getRegressionCurve
Change-Id: I141182634e446745be6180702c703a85dac26552
2013-07-21 15:45:58 +02:00
a2e599f16b Mark as static and/or const
Change-Id: I45a890bb793a6d92546c05bd75738d4dd753a01e
2013-07-18 22:18:25 +09:00
20cbf5bd30 i#108348: support DateTimeWithTimezone in user defined Document Properties
- fix interface of sax::Converter to allow passing time zones
  (rename the parsing methods while at it to reduce pointless overloading)
- SfxDocumentMetaData supports DateWithTimezone and DateTimeWithTimezone
  in user-defined properties
- add some ugly hacks to SfxCustomPropertiesPage to preserve existing
  time zones (which are not displayed in UI currently)

Change-Id: Ice94112b9d79c285f80b5beda15f0ace91db97f3
2013-07-15 15:23:25 +02:00
652ccbdf31 i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.
Add IsUTC member to:

com.sun.star.util.DateTime
com.sun.star.util.DateTimeRange
com.sun.star.util.Time

Add new stucts with explicit time zones:

com.sun.star.util.DateTimeWithTimezone
com.sun.star.util.DateWithTimezone
com.sun.star.util.TimeWithTimezone

Adapt the sax::Converter to read/write timezones, and fix the unit test.

Everything else just uses default (no time zone), this commit is just
to fix the API.

STRUCT: /UCR/com/sun/star/util/DateTime
    nFields1 = 7  !=  nFields2 = 8
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/DateTimeRange
    nFields1 = 14  !=  nFields2 = 15
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/Time
    nFields1 = 4  !=  nFields2 = 5
    Registry2 contains 1 more fields

Conflicts:
	sc/source/filter/oox/unitconverter.cxx

Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
Reviewed-on: https://gerrit.libreoffice.org/4833
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-07-15 11:46:41 +00:00
358d1a9948 use static LanguageTag::convertTo...() for standalone conversions
If no LanguageTag instance is at hand use the static methods to convert
between BCP 47 string, Locale and MS-LangID instead of creating
temporary instances.

Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-13 11:55:16 +02:00
76d36d5bba write ISO codes for native number transliteration
Change-Id: Idc3bf2aabb7df4e57deb13251a1f6631c579268c
2013-07-12 12:32:34 +02:00
2c5548a6fb write bcp47 to dc:language
Change-Id: Ia62ef327cd07070c2e48f4140c58f3309581b562
2013-07-12 12:32:34 +02:00
a1190c9d2e fix reading fonts from .odp using style::font-name (fdo#65338)
b40bcde076f9fabf24810d2520e878d604d99637 made writing .odp use style:font-name
and office:font-face-decls, instead of using fo:font-family . But the reading
back was broken, as xFontDecls is not set
in XMLTextImportPropertyMapper::handleSpecialItem(), so the font data was
ignored. And xFontDecls was not set because it's set while reading
office:font-face-decls, which is at the top of the xml document, but even
before the xml is parsed, the call to SdXMLImport::setTargetDocument() calls
GetShapeImport(), which creates XMLShapeImportHelper instance, which calls
XMLTextImportHelper::CreateParaExtPropMapper(), and XMLTextImportPropertyMapper
is created with rImport.GetFontDecls() still being NULL at that point.

And it actually doesn't seem to make any sense to just pass around all
the pointers to XMLFontStylesContext, as eventually it's always just the one
from SvXMLImport. So simply dump all that and make the one single place
that actually uses it (i.e. XMLTextImportPropertyMapper::handleSpecialItem())
refer directly to SvXMLImport::GetFontDecls().

Change-Id: Ib1b3e4b1bcaf87ca3e4703d1cc1563ad6b3f9ce7
2013-07-10 17:35:27 +02:00