Commit Graph

5970 Commits

Author SHA1 Message Date
Andras Timar
3b0e3e3797 fdo#66854 keep shadow distance of non-supported MSO shadow type
this is a slight improvement of d7367b709d
the rendering of star from #i119634# bugdoc was kept
the rendering of the yellow circle shadows from fdo#66854 bugdoc
was improved

Change-Id: Ife53328ef665131fb954eb33c2e8269ad10da0fe
2013-11-19 11:15:51 +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
2c35fff7ec remove most use of RTL_CONSTASCII_USTRINGPARAM macro
This is largely unnecessary when working with OUString

Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-19 10:29:30 +02:00
David Tardon
78e2af8d71 enable more formats supported by libmwaw
Change-Id: I60d5ff673843236436af12f86f40916b7d266cd3
2013-11-18 11:51:27 +01:00
Kurosawa Takeshi
be7c599a12 fdo#33243 Fix SVG export presentation placeholder texts exported
Change-Id: I3eea9989128635616bc154466f169aed201bb5dc
2013-11-16 01:28:33 +01:00
Stephan Bergmann
ab5d1fbfb4 SAL_WARN_UNUSED com::sun::uno::Any
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14 21:02:40 +01:00
Markus Mohrhard
a1115a5983 fix build
Change-Id: I43391416dba532edd1830e490f7860dc16775fd4
2013-11-14 16:54:35 +01:00
Bjoern Michaelsen
04dead1c6b make l10n buildable separately
- this renames the 'almost' module target to non-l10n
- and adds a l10n target which is intended to only build l10n parts of
  the product
- packagers should then be able to build l10n and non-l10n parts of the
  product independently, thus:
   - enable quicker rebuilds
   - distribution of load
   - updates to l10n without a full rebuild
   - security fixes to binaries without rebuilding all l10n
- the new targets are called build-l10n-only and build-non-l10n-only
- note this is not intended to move a concept of split packages
  upstream -- while this exsists in distros, the number of test
  scenarios for this would explode upstream

Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863

Conflicts:
	filter/Module_filter.mk
2013-11-14 16:45:02 +01:00
Jacobo Aragunde Pérez
6c5557c60f fdo#70838: Fix position issue when exporting shapes to docx.
Fixed an error at ImplEESdrWriter::ImplFlipBoundingBox implementation.
I've also tried to simplify and explain the calculations done there.

Change-Id: I41c6c6e1a045803524479c92ef807913db38167a
Reviewed-on: https://gerrit.libreoffice.org/6433
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-11-14 11:26:56 +00:00
Stephan Bergmann
f0a9ca24fd rhbz#887420 Implement "block untrusted referer links" feature
For now, this checks for a trusted referer (if the BlockUntrustedRefererLinks
configuration prop is set) in utl::MediaDescriptor::impl_openStreamWithURL and
SvxBrushItem::GetGraphicObject.  Checking in additional places will probably be
necessary to block /all/ unwanted communication.  Also, some places marked
/*TODO?*/ currently pass in an empty referer (which is always considered
trusted) and will probably need to be adapted.

Ideally, Referer URIs would never be empty (and consistently use something like
<private:user> for cases where access is explicitly initiated by the user and
should never be blocked), but that's a very daunting task, so start small by
identifying the places that potentially need blocking and adding appropriate
Referer URIs there.  Also, Referer information should always be computed as
freshly as possible from the context in which an access attempt is made, but,
again, always carrying the information from the context all the way to the
relevant functions is a very daunting task, so for now store the information
upon object instantiation in some cases (SvxBrushItem, SdrGrafObj, ...).

The Referer URI (css.document.MediaDescriptor property; SID_REFERER) was already
used to track macro execution, and there is one place in
SfxApplication::OpenDocExec_Impl where opening of hyperlinks (explicitly clicked
by the user) is done that needs the current document's URI as Referer to check
execution of macro URIs but needs an empty (or <private:user>, see above)
Referer to not block non-macro URIs.  Special code has been added there to
handle that.

Change-Id: Iafbdc07a9fe925d9ee580d4f5778448f18f2ebd9
2013-11-14 11:13:25 +01:00
Stephan Bergmann
24cad6a649 Move MediaDescriptor from comphelper to unotools
...so it will be able to use SvtSecurityOptions internally.

Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14 11:13:24 +01:00
Stephan Bergmann
861a1814d5 -Werror,-Wunused-member-function
writeTransformAttribute was unused since its inception in
90f5ce3623 "svg-import-filter.diff: SVG Import
Filter implementation in filter module."

Change-Id: Ifa7a13f9665d59fcc1cf8c9c3d48685bddc8bd59
2013-11-14 10:15:04 +01:00
Noel Grandin
d366c9b20e remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-14 08:17:32 +02:00
Caolán McNamara
4f1e4c05a9 set mnemonic widget
Change-Id: Iefdaf7d7e7b1156e9f1d20e2552ca0bb84c2a357
2013-11-13 14:02:19 +00:00
Laurent Balland-Poirier
191dc43f97 Convert ImpSWFDialog.src to ui
add ui file

Change-Id: I42af9b8969a07b4d738c1fd30fc8917f24f784c6
Reviewed-on: https://gerrit.libreoffice.org/6592
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-13 14:01:37 +00:00
Caolán McNamara
9881f48337 xub_StrLen->sal_Int32
Change-Id: Ia7b61f28555af5f3bbfa9a8e82d54b9a18de15df
2013-11-13 13:50:38 +00:00
Laurent Balland-Poirier
2cf96ae334 Resolves: fdo#71309 Export SWF with Multiple files crashes
In case of unamed file, creation of sPresentationName crash.
This patch forces creation of empty name

Change-Id: I1b5319eb945f1959f2ad3c703365539508521861
Reviewed-on: https://gerrit.libreoffice.org/6598
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-11-12 13:56:54 +00:00
Caolán McNamara
d3b49a68f4 drop commented out DLG_OPTIONS use
Change-Id: Ife7dbfedf876a9e59eb95a83c91b603cfa96bb32
Reviewed-on: https://gerrit.libreoffice.org/6650
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-12 12:54:34 +00:00
Michael Stahl
40a465add5 filter config: fix MIME types for MacWrite and FreeHand
The type "application/macwrite" does not appear to exist, but
"application/macwriteii" is officially registered at IANA:
https://www.iana.org/assignments/media-types/application/macwriteii

For Freehand the "application/x-freehand" has just 6 hits on Google
whereas Adobe recommends "image/x-freehand" on
https://www.adobe.com/support/config.html

Change-Id: I36d498888601778b1359ff58ee60b25af436a74e
Reviewed-on: https://gerrit.libreoffice.org/6639
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-11-11 17:19:28 +00:00
Miklos Vajna
768608c4cb filter: mark writer_MS_Word_97_Vorlage as preferred
The other filter associated with the .dot extension is
writer_MS_Word_95_Vorlage, obviously the 97 one should be preferred.
With having one filter as preferred for this extension, plain
'--convert-to dot' starts to work.

Change-Id: I7207d0fcb3c55b8dcc7b6179ccfa33a7c85d2ce8
2013-11-11 10:49:26 +01:00
Miklos Vajna
b566448869 DOC export: allow saving as a template
Change-Id: I26894edd3962c2b2856d2bfa4a4aa4e6f4e65c9e
2013-11-11 10:49:26 +01:00
Noel Grandin
957f8e02c2 remove unnecessary use of OUString constructor in FILTER module
Change-Id: I75b5a0e6739991b234819bd11ce901b90f68ffba
2013-11-11 11:21:22 +02:00
David Tardon
316be1b6f1 bundle libebook
Change-Id: I05d96875b9d1deb87dadd63f446080a6fe3494a9
Reviewed-on: https://gerrit.libreoffice.org/6630
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-11-11 06:52:50 +00:00
Stephan Bergmann
669128178f Make INetURLObject-from-OUString ctor explicit
...and clean up call sites.

Change-Id: I7219a33652835e82fdc44e9e801a7e62868e4f38
2013-11-08 16:05:24 +01:00
Michael Stahl
28089fbecc officecfg: move the reportbuilder filter configuration to filter/
Change-Id: Ied496ddbc4d5341a8e1e15d760df775eee19f850
2013-11-07 22:53:47 +01:00
Michael Stahl
6ab99e0716 filter: fix error message
Change-Id: I3590e6598371197a6c41977c46e05b9b5d30eb58
2013-11-07 22:53:47 +01:00
Caolán McNamara
d4d56060ee make WW8ReadFieldParams::GetResult safe
as shown by kde239121-4.doc

Change-Id: I60356e7d76cc271869079f2fffa00e149274a8cc
2013-11-06 13:43:32 +00:00
Caolán McNamara
0ce59fb3e1 rearrange tests to avoid access past end of string
as demonstrated by abi6637-1.doc

Change-Id: Ieed0ca7ccf2d8587179a4530a1da29d7d8228363
2013-11-06 13:27:37 +00:00
Noel Grandin
fa109ceba9 convert xub_StrLen to sal_Int32
convert various module-local functions

Change-Id: I89f3eb40b107e2617958e474ffe86bd73e01cf33
2013-11-06 08:51:23 +02:00
Thomas Arnhold
433b00a831 FCFGMerge: Close files - silence warning
Happens on Windows with --enable-debug and --enable-dbgutil

C:/cygwin/libo/core/filter/source/config/tools/merge/pyAltFCFGMerge:574:
ResourceWarning: unclosed file <_io.BufferedReader
name='C:/cygwin/libo/core/filter/source/config/fragments/filters/..\\filters\\calc
aFragmentFile = codecs.open(sFragPath, "r", "utf-8")

C:/cygwin/libo/core/filter/source/config/tools/merge/pyAltFCFGMerge:293:
ResourceWarning: unclosed file <_io.BufferedWriter
name='C:/cygwin/libo/build/workdir/wntmsci14/XcuFilterFiltersTarget/fcfg_drawgraph
aMerger.merge()

Change-Id: I60981ad366e579748e3507c9f81c74b8b902867b
2013-11-05 09:28:54 +01:00
Maxim Monastirsky
7722a5906d fdo#68099 Move pdf viewer call to GUI related code
This change fixes two bugs:
1) In it's old location at PDFFilter::implExport, the pdf viewer is called
*before* the final file is actually written. It causes a problem under
Windows, because we use ShellExecute function which fails if the file
doesn't exist. Calling a function blocks execution, so we have no chance
to write the file before that function fails. (fdo#68099)
2) Being a part of the saving/filter code means that the pdf viewer will
open even when converting to a pdf in headless mode. It's definitely not
something that we want to happen.

Change-Id: I1a6f70ec76100ac9e008869aa57ad738ced3ab6c
Reviewed-on: https://gerrit.libreoffice.org/6565
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-04 07:52:14 -06:00
Michael Stahl
1a940ae212 filter: define filter_XcuResTarget_get_clean_target
Change-Id: I8f830790935a05a0413187b6e21002e0f2563adf
2013-11-04 13:19:55 +01: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
David Tardon
0cdd8a4f17 add config. for formats newly supported by libmwaw
Change-Id: I19cc5b13adf1c0d8cf26abbc9f4254ae89a970fc
2013-11-03 10:11:16 +01:00
László Németh
a2b59a5127 fdo#71137 fix linecap and linejoint in SVG export
Change-Id: I52ee0ec79ebcd5a32f0c328440ce46e0452b121e
2013-11-01 20:41:51 +01:00
László Németh
ee925743e5 fdo#71136 fix SVG export (double stroke-width)
Change-Id: Iae5521e34951559351103a9defce30dc50d823c8
2013-11-01 19:49:22 +01:00
Armin Le Grand
223f6b631c Resolves: #i123433# Detect pseudo-vertices at svg import...
unify svg:d handling, correct svg:d import for relative sub-polygons in svg
import; changed default for moveto writes for svg:d in ODF to absolute

(cherry picked from commit f15874d8f976f3874bdbcb53429eeefa65c28841)

Conflicts:
	basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
	basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
	basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
	basegfx/source/polygon/b2dpolypolygontools.cxx
	basegfx/source/polygon/b2dsvgpolypolygon.cxx
	basegfx/source/polygon/b3dpolypolygontools.cxx
	basegfx/source/tools/makefile.mk
	basegfx/test/boxclipper.cxx
	basegfx/test/clipstate.cxx
	basegfx/test/genericclipper.cxx
	canvas/source/tools/surfaceproxy.cxx
	sdext/source/pdfimport/tree/drawtreevisiting.cxx
	sdext/source/pdfimport/tree/writertreevisiting.cxx
	xmloff/inc/xexptran.hxx
	xmloff/source/draw/XMLImageMapContext.cxx
	xmloff/source/draw/XMLImageMapExport.cxx
	xmloff/source/draw/shapeexport2.cxx
	xmloff/source/draw/shapeexport3.cxx
	xmloff/source/draw/xexptran.cxx
	xmloff/source/draw/ximp3dobject.cxx
	xmloff/source/draw/ximpshap.cxx
	xmloff/source/style/MarkerStyle.cxx
	xmloff/source/text/XMLTextFrameContext.cxx
	xmloff/source/text/txtparae.cxx

Change-Id: I5171b4a3559ea116bea45152e1f2685666463635
2013-10-31 15:56:14 +00:00
Fridrich Štrba
660800d6f3 BIPU Freehand importer
Change-Id: I5b233343269b4107bbcfef5ea1c9b1fc7b735ed2
Reviewed-on: https://gerrit.libreoffice.org/6511
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-10-31 12:51:12 +00:00
Noel Grandin
e2451bd729 Convert indexOf->startsWith and lastIndexOf->endsWith
This is both an optimisation and a cleanup.

This converts code like
   aStr.indexOf("XX") == 0
to
  aStr.startsWith("XX")
and converts code like
  aStr.lastIndexOf("XXX") == aStr.getLength() - 3
to
  aStr.endsWith("XXX")

Note that in general
  aStr.lastIndexOf("X") == aStr.getLength() - 1
converts to
  aStr.isEmpty() || aStr.endsWith("X")
so I used the surrounding context to determine if aStr could be empty
when modifying the code.

Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-31 08:34:21 +02:00
David Tardon
412975713b integrate Apple Keynote import filter
Change-Id: Icc36b761da9262a99af730cfe71f576bcaab3ee1
Reviewed-on: https://gerrit.libreoffice.org/6488
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-10-30 19:49:34 +00:00
Michael Stahl
8df17a3409 gbuild: set Package default target to INSTDIR
Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186
2013-10-28 20:17:26 +01:00
Maxim Monastirsky
8a201be240 fdo#68903 Import .tsv and .xls plain text files in Calc by default
Change-Id: I14115542d7f0401f4fa8face9f255b4512fc0ac3
Reviewed-on: https://gerrit.libreoffice.org/6448
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2013-10-28 12:34:47 +00:00
Miklos Vajna
6df9dd68ec move OOXML_COLOR_AUTO from writerfilter to msfilter, we need it from sw
Change-Id: I145c08d17ccb36bfbf734306cd9d27e8423debdd
2013-10-25 18:23:01 +02:00
Eike Rathke
6b678c135d added/checked/aligned MS-LangIDs and mappings from new MS-LCID.pdf
... found at http://msdn.microsoft.com/library/cc233965.aspx (the 5th or
6th place I'm aware of where MS defines LCIDs, all different ...)
* a bunch of new definitions up to Windows 8.1
* lots of cross-checks done with SIL, Ethnologue, ...

Change-Id: Ifae8e676558c6712fe752856acca600d05d0a63f
2013-10-24 01:54:59 +02:00
Thomas Arnhold
3a6148e811 fixincludeguards.sh: filter
Change-Id: Ifdb49a0fd5f658056b14b7c2f4e323dd38b412e6
2013-10-23 23:22:33 +02:00
Thomas Arnhold
eb24baec8c clean up messed up filterdetect.hxx
Change-Id: Ib8c7c8a560e2f567df9e4a0ba7dc6b05d9e9e66b
2013-10-23 23:22:33 +02: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
Caolán McNamara
b37e2dd071 Resolves: fdo#38838 remove UniString
hammer silver nails into coffin and bury in concrete

Change-Id: I3fda2ff47738bb33793adab97faba2d439ac9a28
2013-10-22 12:50:48 +01:00
Marcos Paulo de Souza
ee5661ecd3 fdo#54938: Adapt supportsService implementations..
to cppu::supportsService

Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14
Reviewed-on: https://gerrit.libreoffice.org/6370
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-22 10:28:10 +00:00
Laurent Balland-Poirier
63f705643e L10n of SWF export options dialog
Change-Id: I91d29a81389e36ddf34d56760cea588c0a7c12f6
Reviewed-on: https://gerrit.libreoffice.org/6324
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-10-20 12:22:27 +00:00