Commit Graph

5970 Commits

Author SHA1 Message Date
Miklos Vajna
d57a229726 filter: fix copypasta
Change-Id: I1f17ebc448c80afffb177e63f56f97867c019fb8
2014-01-14 09:53:09 +01:00
Fridrich Štrba
10eaaac020 AbiWord Import filter
Change-Id: I90dc115044e5f81fa3a2b105d30d7d39e438b086
Reviewed-on: https://gerrit.libreoffice.org/7411
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2014-01-13 21:14:59 +00:00
Caolán McNamara
d4dd5c34db longparas: convert ValidateKashidas to sal_Int32
we can use -1 as the failure return code as return value is always checked and
isolated from the rest of the code.

Change-Id: I87a743de82d681a7e4eabc61a576c4e50f1279a8
2014-01-13 20:35:21 +00:00
Vinaya Mandke
c4ff46485f fdo#65833 Fix to preserve VML Canvas Information
Grab-bagged the "editas" attribute of v:group and added UT for
the same

Please verify this fix on MS Office 2007 as it renders the mc:Fallback VML part

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7335

Change-Id: I4e4456997621089967514009005ee775b71d6d69
2014-01-13 17:48:18 +01:00
Noel Grandin
b69864f3f8 re-write SvStream operator<< to non-overloaded methods
This is the actual re-write.

Use a clang rewriter to rewrite SvStream::operator<< to methods
like WriteuInt32.
Note that the rewriter is not perfect, and I hand-tweaked the output.
In particular, I had to adjust places doing things like
  (*this) << 1;

Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a
Reviewed-on: https://gerrit.libreoffice.org/7342
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-10 13:26:24 +00:00
Stephan Bergmann
31911b3cdc Consolidate XServiceInfo for classes derived from SvXMLExport
Change-Id: Ia3e2b5e682a64844bb6c713912c50c7681393d52
2014-01-08 14:11:58 +01:00
Miklos Vajna
096ea63090 fdo#73215 filter: don't try to handle pictureFrame in GetOOXMLPresetGeometry()
"pictureFrame" is not a valid drawingML shape type, VML export used to
write just "rect", by removing an explicit entry for
ESCHER_ShpInst_PictureFrame we now do the same.

Change-Id: I57683b7f5f80bfef8c3b6fb9ae9f33e4599a7eb2
2014-01-02 16:20:26 +01:00
Tor Lillqvist
8102d45911 Need boost_headers
Change-Id: I936ee814bcc614cc5ec858c453f5e8e5d0cac60b
2013-12-29 11:31:15 +02:00
Maxim Monastirsky
bd1461e693 Detect UTF-16 encoded XML files
This code doesn't support leading blank characters, since it's
invalid, and the filter doesn't handle it anyway.

Change-Id: I494e9f85351539d27577dc7df8be420c0c66570e
Reviewed-on: https://gerrit.libreoffice.org/7204
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-12-29 07:17:04 +00:00
Julien Nabet
151887a955 Fix other typos
Change-Id: I3f0a51c53efdd383d49d978a1e8531afe9dac896
2013-12-22 18:51:41 +01:00
Andras Timar
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
Norbert Thiebaud
4c539fac01 vcl get rid of xub_StrLen and STRING_LEN in outdev3
a new log section (sal.rtl.xub) is used to display alert in case of
suspicious len == 0xFFFF (aka STRING_LEN)

Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e
Reviewed-on: https://gerrit.libreoffice.org/7117
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-12-18 01:54:16 +00:00
Stephan Bergmann
8233226fe4 No need for implbase1.hxx to include XComponentContext.hpp
...which it did unlike all the other implbaseN.hxx.  Required lots of downstream clean-up,
of course.

Change-Id: Ib720e7a0a43410dcd7e6338b84a3973dfbb20866
2013-12-17 17:32:58 +01:00
Stephan Bergmann
9ed364774c Adapt all (non-extension, SharedLibrary) .components to environment="..."
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17 11:06:00 +01:00
Bjoern Michaelsen
78c7eb3507 uiconfig is a l10n-relevant target
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06
2013-12-16 17:36:26 +01:00
Matteo Casalin
afe6738b71 Fix static linkage and use SAL_N_ELEMENTS
Change-Id: Iced21e010b3c06a5f36731f63d41ab55a5c8a2e4
2013-12-15 09:26:33 +01:00
Miklos Vajna
15b737c5c9 EscherGraphicProvider::GetBlibID: raw number is Sun bugtracker, use fdo prefix
Change-Id: I1ecd3b9c74fb973769036defba96d73c5995175f
2013-12-13 12:53:20 +01:00
Nikhil Walvekar
8fe352be80 fdo#65836 Do not compress WMF / EMF file incase of OOXML export
Change-Id: Ic498e5703ab48719f998be6da3f245843cc0979d
Reviewed-on: https://gerrit.libreoffice.org/6849
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-12-13 11:49:35 +00:00
Sushil Shinde
c42c57e665 fdo#70338 : Fixed file corruption issue after save for docx.
- File was giving corruption message if saved in LO.
    - Issue due to video file.
    - Attached file contain .mov which was not handled properly.
    - Added mov extension support in graphic filter.

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

Change-Id: Ia278127ddc4afcd2d5fe04e86ed6201fb28dc04f
2013-12-13 10:59:37 +01:00
Miklos Vajna
adc1b6b5bb filter: whitespace fixes in rtfutil
Change-Id: Ifb1a112d632410ae685fa09f3ddff8a021ddd68b
2013-12-12 22:17:07 +01:00
Stephan Bergmann
a62c2a5fa5 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-12 08:26:40 +01:00
Maxim Monastirsky
511a59ef2c Open .tab files with Calc
.tab extension is a known extension for tab-separated values
according to Wikipedia.

Also add .tsv .tab files to the list of known text files, so XML
detection code won't run on it, and won't output errors to console.

Change-Id: Ifb8edc40900cb4669264e1e989c01efd61ff24bf
Reviewed-on: https://gerrit.libreoffice.org/7038
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2013-12-11 21:33:38 +00:00
Caolán McNamara
108eee306e Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'
Except for our external api where the Oriya is stuck (and similar for
the vba implementation)

Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f
2013-12-11 15:11:18 +00:00
Stephan Bergmann
123e2c3e93 Revert "Don't hold css::uno::Type instances by pointer"
This reverts commit 90f91088d2 for now:
Ach, old GCC doesn't like plain string literals to initialize members
of OUString type...

Change-Id: I50563a00406259bb5d41831e2a2796762450d097
2013-12-11 15:38:30 +01:00
Stephan Bergmann
90f91088d2 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-11 15:16:51 +01:00
Tor Lillqvist
74ca95edd1 WaE: C4310: cast truncates constant value
Change-Id: I187382713aa85fa43e674f96e0a8cfb1f7ac0d03
2013-12-09 10:12:49 +02:00
Maxim Monastirsky
f38277dc03 fdo#46262 Detect XML files with UTF-8 BOM
Also convert sal_Char (deprecated) -> char

Change-Id: Ibf66f6a9ea751bab96f43671fe95a835c073d9e0
Reviewed-on: https://gerrit.libreoffice.org/6942
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-12-08 23:50:07 +00:00
Samuel Mehrbrodt
fb978b8123 fdo#39206 Add support for image transformation in SVG Import
Change-Id: I268599b0c13bbacf5db526fed79453a5443145a5
Reviewed-on: https://gerrit.libreoffice.org/6968
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-12-08 10:22:14 +00:00
Markus Mohrhard
86b9f03c3f fix infinite loop during export
Change-Id: I75bfafbc7343aaddbbc5c7433e28b5d4154177dc
2013-12-08 00:06:57 +01:00
Julien Nabet
875044ac6d CID#736170, CID#736171, CID#736172 Out-of-Bounds read/write
Let's be sure that nMaxcolorIndex < 256

Change-Id: I349184ad92c8e7b10a90a32e093972bfaee52467
Reviewed-on: https://gerrit.libreoffice.org/6970
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-07 18:44:08 +00:00
Stephan Bergmann
4a8175ebeb Get rid of DECLARE_STL_USTRINGACCESS_MAP
Change-Id: I00d02eaeff3eaa5f49550eb9c1d4e4e7e0b2203c
2013-12-06 08:04:22 +01:00
Stephan Bergmann
0c55303581 Get rid of DECLARE_STL_STDKEY_SET
Change-Id: I4817694d183d525fa5a29eb9693a20d491549e5d
2013-12-05 18:36:21 +01:00
Caolán McNamara
bcd6496d0e add test-case for CVE-2013-3906-1.tiff
Change-Id: I2cac26f3e949cbef16fb0c03e99d6aa9b04a7553
2013-12-04 11:07:04 +00:00
Miklos Vajna
a44e42b9cd filter: handle ooxml shapes in EscherPropertyContainer::GetCustomShapeType()
The problem was that the shapes produced by the drawingML import had
types like ooxml-triangle, and EnhancedCustomShapeTypeNames::Get() only
handles VML/binary MSO shapes (e.g. isosceles-triangle). Add an OOXML
mode, and in that case use msfilter::util::GETVMLShapeType() instead,
and only fall back to EnhancedCustomShapeTypeNames::Get() if necessary.

Change-Id: Ic93ba4719133dd3e96c17d2562642a03e559fefa
2013-12-03 11:58:23 +01:00
Noel Grandin
40da065f7e fix spelling delimeter -> delimiter
Change-Id: I12a330e922f8f6ffe9c746a26e5b32c0bbae626a
2013-12-03 11:34:47 +02:00
Miklos Vajna
7f9a03e1b7 msfilter: add a drawingML -> VML map
This can be used later for the VML or binary export of shapes imported
from drawingML. Note that without this, drawingML shapes won't be
exported to VML, as e.g. for a triangle it expects a
'isosceles-triangle' type, while the shype's type is 'ooxml-triangle'.

Change-Id: I59abc27febdd026c181a7ff38b16c93567058cb9
2013-12-02 19:04:18 +01:00
Miklos Vajna
8dbedf1667 oox: move lcl_GetPresetGeometry to msfilter, so filter can use it
Change-Id: Ia741d392a87eaa2f02615a6c9626417a420f205c
2013-12-02 19:04:18 +01:00
Andras Timar
a01605430e fdo#72034 OOXML 2007/2010 -> 2007/2010/2013
Change-Id: Id5bec8634a66361f4369fe02a3061974d00e7a1f
2013-11-26 14:58:25 +01:00
Adam Co
8d7cb7773d Moved 'DateTimeToOString' from 'filter' package to 'tools' package
After the move now other classes can convert DateTime to OString also

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

Change-Id: I0ceb9a5cc26103a6cb36d7765a717770ec3fbe7d
2013-11-26 14:02:02 +01:00
Michael Stahl
6e4a4af525 filter: un-break the SWF export dialog
The mpResMgr is no longer initialized but still checked.
(regression from 191dc43f97)

Change-Id: I8330a74e9209eaca1fee70e7b8ba332482fa0c1d
2013-11-25 20:37:24 +01:00
Stephan Bergmann
a7464edb0a rhbz#1030009 Remove global XModel ref
...that is apparently effectively unused since
2627bdaddc "INTEGRATION: CWS fwk02ea: #i28639#
always used supplied status indicator" anyway but causes crashes during exit
when it holds an SwXTextDocument ref.

Change-Id: I542545c793855b41731de72650bf07d5748fcb9f
2013-11-25 18:04:02 +01:00
Julien Nabet
9f3aa81c5d Lenght -> Length
Change-Id: Ic338484627a1b74fba2d4d0794f8865290177464
2013-11-23 23:22:25 +01:00
Muthu Subramanian
37441c6023 fdo#68594: Revert bnc#758621 commit.
Reverting: 55c63ccfd4
Seems some other fix, fixes the bug as well.
2013-11-22 19:49:21 +05:30
Noel Grandin
fc87d57f04 replace OUString::reverseCompareTo("xxx") with operator==
operator== with OUString and literal internally does a reverse-compare
(via OUString::equalsAsciiL) anyway, so no need to keep explicit calls
to OUString::reverseCompareTo with literal argument

Change-Id: I799d9bcd0d5c308a9547ce7cacb2db6042fdb643
2013-11-22 11:23:05 +02:00
Noel Grandin
2241fd5302 remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::equalsIgnoreAsciiL
Convert code like:
    aStr.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN"))
to:
    aStr.equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN")
which compiles down to the same code.

Change-Id: Ia69289d853d292b2f27b68863cb6f6ecdbf1a71e
2013-11-22 08:07:18 +02:00
Thomas Arnhold
f01580ce9c Windows: Require at least Windows XP SP2
* Windows XP SP2 is 0x0502, see
  http://msdn.microsoft.com/en-us/library/aa383745.aspx
* If a module changes the Windows SDK version setting,
  this is done module wide now. So the overall behavior
  is as before. This seems to be the best compromise for
  now.
* We need at least SP2 because of the bluetooth stuff
  used in sd/source/ui/remotecontrol.
* Now, we require at least Internet Explorer 7.0. IE6
  has been outdated for a long time.
* Leave StdAfx.h file definitions, as those are Microsoft
  project specific precompiled header files.
* All local definitions of WINVER are removed, because
  the global WINVER setting makes them obsolete now.

To the relation of the three macros:

Setting _WIN32_WINNT sets WINVER and NTDDI_VERSION
automatically to the same value as _WIN32_WINNT.

WINVER and NTDDI_VERSION can be set idenpendently each
for itself.

Change-Id: Ibcc12493aae4fcaf7bcfda88be99c1b61bc326cb
Reviewed-on: https://gerrit.libreoffice.org/6496
Reviewed-by: Thorsten Behrens <thb@documentfoundation.org>
Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-11-20 07:15:16 -06:00
Noel Grandin
5112f6a6c6 remove RTL_CONSTASCII_STRINGPARAM in OString constructor
Convert code like:
    OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX"));
to:
    OString aKeyName("NDX");
which compiles down to the same code

Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-20 13:56:07 +02:00
David Tardon
12f263766d fix mime type for PalmDoc
Change-Id: I3d1b24edd0165068efb31a34817ed9631fc05ec5
2013-11-20 10:41:49 +01:00
David Tardon
1733a484b2 fix FictionBook2 mime type
Change-Id: I921f33c2c712da5b542a40bfe4db1fba0f034e3f
2013-11-20 10:41:48 +01:00
Noel Grandin
3af99e4d59 convert equalsAsciiL calls to startsWith calls
Convert code like:
    aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) )
to
    aStr.startsWith( "ActiveConnection" )
which compiles down to the same machine code.

Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-20 10:07:31 +02:00