75 Commits
Author SHA1 Message Date
Laurent Balland 3ee73a4d1e tdf#163102 Replace DocBookTemplate.stw by build-in...
DocBookTemplate.ott
Simply copy makefile of extra/templates
fix bug tdf#161930: mimetype is zipped only once

Modifications to DocBookTemplate.stw:
- change fonts to bundled fonts: Liberation Serif, Noto Sans CJK, Noto Sans Devanagari
(not so useful as used fonts are defined in
docbooktosoffheadings.xsl and sofftodocbookheadings.xsl)
- remove language and country tags
- remove page size
- remove writing mode tags
- remove content.xml
- remove meta.xml
- simplify settings.xml
- remove unused namespaces

Change-Id: Ic2a2284c3d890b8a6b7b4e29bdab18c33d40dcee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174847
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-01 12:30:30 +01:00
Miklos Vajna 80723fccbb filter: allow PDF export to sign from the cmdline
Sample soffice invocation:

soffice --convert-to 'pdf:draw_pdf_Export:{"SignPDF":{"type":"boolean","value":"true"},"SignCertificateSubjectName":{"type":"string","value":"CN=..."}}' test.odg

You can copy the subject name from the PDF export dialog. This works
only in case the signing certificate already appears in the certificate
list.

Change-Id: I8670f9a410c6e80497a4d6223d1438938bc949e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129387
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-02-03 21:06:20 +01:00
Tomaž Vajngerl 2270a58d7b Move GIF writer from filter module into VCL
Change-Id: I8db3ca0f7953b44791bda47534220902931fab8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111023
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-18 04:12:27 +01:00
Tomaž Vajngerl d3476d27ab Move DXF reader from filter module into VCL
Change-Id: If1a933256401c1a971f581d1b389ca06fd77eaae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111022
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 09:55:46 +01:00
Tomaž Vajngerl 27078ce8cb Move PBM,PPM reader from filter module into VCL
Change-Id: I1ce998575f8d204045fabea184e80e71308a16b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111019
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 05:55:07 +01:00
Tomaž Vajngerl 68012eaaab Move PCD reader from filter module into VCL
Change-Id: Icd23d1343f5231c09dd8197943ca472f4b573bfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111018
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 05:54:36 +01:00
Tomaž Vajngerl d338dc277d Move PSD reader from filter module into VCL
Change-Id: I53b11be6e9eb0013f017b2da5745ff525ca79c54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111017
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 05:53:49 +01:00
Tomaž Vajngerl 509814d936 Move EPS reader and writer from filter module into VCL
Change-Id: I1646f72d6a1db176e4520f8f64321646a26f054e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111016
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 04:02:41 +01:00
Tomaž Vajngerl 1093c21ed9 Move RAS and PCX reader from filter module into VCL
Change-Id: Id846abf257b598489a59ebf9b62b19840a950322
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111015
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 04:02:13 +01:00
Tomaž Vajngerl e916e8c181 Move MET reader from filter module into VCL
Change-Id: I478ef775bc73349094f88012ceb57b1712a27f55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111012
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 04:01:52 +01:00
Tomaž Vajngerl 4d22e3ce32 Move PICT reader from filter module into VCL
Change-Id: I6d3a28769ff3bffa3970a4ab6ab2384bb0aebbca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111011
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 02:43:45 +01:00
Tomaž Vajngerl 246af1d40e Move TGA reader from filter module into VCL
Change-Id: I0fea5d6e75c6bfd05ea91ed7b92aaacfcc5ec177
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111010
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-17 02:43:18 +01:00
Tomaž Vajngerl 94d34e53ac Move TIFF reader and writer from filter module into VCL
Moving graphicfilter one by one into VCL to get rid of filter_gio
module and all the nonsense of dynamic/static library loading in
"GraphicFilter".

Change-Id: I21ebc0334ee07d36553a88557d33e01d9caec9ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108822
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-01-06 08:49:53 +01:00
Gabor Kelemen 63e43c1db9 Drop Macromedia Flash export filter
Flash technology is going to be retired by the end of 2020 by Adobe:

https://theblog.adobe.com/adobe-flash-update/

With this ahead doesn't make much sense for LO 7.0 to support exporting
presentations and drawings to swf anymore.

Change-Id: Ic2c6e95db2f56bcd4eb25abdd0a6748aee9b0e4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92507
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-04-23 16:16:12 +02:00
Miklos Vajna 8fc1b60f62 sw SVG export: try to reuse original bitmap data for JPG and PNG bitmaps
Writer shapes are implemented using SwXShape, Impress shapes use
SdrGrafObj. So switch to working with the XShape interface, which is
supported by both.

Also, don't work with the transformed graphic if it has the same
checksum as the original graphic: the transformed graphic is not linked
to the original JPG/PNG data.

Now selecting an image in Writer Online has the same speedup that
Impress Online already had.

Change-Id: Iab2791c5f5c7a2754e3de0ebb2d6ea664f6c77e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89540
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-02-27 10:33:24 +01:00
Armin Le Grand 3ca7be0983 Replace SVGFilter using SVGIO
Target of this change is to get rid of the SVGFilter
in current LO which is based on the standard-ODF importer
using it's functionality by passing in/handing over
temporary created XML-Stream-Data.

First step is to alternatively import the given SVG
file to a newly created Document and to strip the
existing Filter-Code.

Adding the first prototype of the changed import. It
is capable of importing the given SVG to the created
Draw/Impress document. It adds the SVG which gets imported
by SVGIO as GraphicObject. It adapts sizes and positions of
Page and GraphicObject to have a smooth import.

Adding stripping of SVGFilter and used ressources. Done
as deep as possible, hopefully all places found.

Adapted now to create an Impress document. Also added needed
adaptions to PageSize(s), including layout and PresObj stuff
to make all MasterPages/LayoutPages work correctly.

Added reaction on empty SVG. This is needed since the
PageSize is adapted to the Graphic. With empty Graphic
a Size(0,0) results and this goes wrong.

Change-Id: Ia364a5783bee7dadcbe91e700efbabc121cf98f9
Reviewed-on: https://gerrit.libreoffice.org/54096
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2018-05-18 20:11:35 +02:00
Miklos Vajna 4af729f31c tdf#114428 filter: recognize XHTML with XML declaration as HTML
The problem was the additional

	<?xml version="1.0" encoding="utf-8"?>

XML declaration before the usual

	<!DOCTYPE html ...

line, just ignore it.

Change-Id: I294aae5504b40b42f76da00fef645d0d89009da9
Reviewed-on: https://gerrit.libreoffice.org/46324
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-12-13 14:44:15 +01:00
Caolán McNamara 00657aef09 migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl
* all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string")
* ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching
  MODULE .mo files
* UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui
  goes from l10n target to normal one, so the res/lang.zips of UI files go away
* translation via Translation::get(hrc-define-key, imbued-std::locale)
* python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there
  to keep finding the .hrc file uniform) so magic numbers can go away there
* java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation
  mechanism
* en-US res files go away, their strings are now the .hrc keys in the source code
* remaining .res files are replaced by .mo files
* in .res/.ui-lang-zip files, the old scheme missing translations of strings
  results in inserting the english original so something can be found, now the
  standard fallback of using the english original from the source key is used, so
  partial translations shrink dramatically in size
* extract .hrc strings with hrcex which backs onto
   xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap
* extract .ui strings with uiex which backs onto
   xgettext --add-comments --no-wrap
* qtz for gettext translations is generated at runtime as ascii-ified crc32 of
   content + "|" + msgid
* [API CHANGE] remove deprecated binary .res resouce loader related uno apis
      com::sun::star::resource::OfficeResourceLoader
      com::sun::star::resource::XResourceBundleLoader
      com::sun::star::resource::XResourceBundle
    when translating strings via uno apis
      com.sun.star.resource.StringResourceWithLocation
    can continue to be used

Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-07-21 08:20:50 +01:00
Tor Lillqvist 036fcf2a4c tdf#105809: Drop the PlaceWare export filter
Hard to think of any reason why anybody would need it.

Change-Id: If989cdeb1728847973da601f9d3fa60aba1f3bad
Reviewed-on: https://gerrit.libreoffice.org/36169
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2017-04-11 13:37:17 +02:00
David Tardon 844735778b rename makefile to match the module name
Change-Id: I21685599e42c961407fa3de40e69e6e54dfe7c79
2016-11-21 09:44:42 +01:00
Armin Le Grand ce6cbf86a5 screenshots: add new global make target
Up to now the screenshot creation was added/dependent of
target slowcheck. Since quite some modules have added screenshot
creations now, I added an own target 'screenshot' to allow to keep
current slowcheck and screenshot creation separated

Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18 02:39:15 +02:00
Armin Le Grand 4e7396dbe0 screenshots: add dialog test cases for filter
All *.ui files create a screenshot, but not all look useful

Change-Id: Idd684f1fee55eebb58b4b56a2681cd4058be2880
2016-08-18 02:39:13 +02:00
Oliver Specht 7f533e6cda merged graphic import/export into a single library
instead of egi, eme, epb, epg, epp, eps, ept, era, eti, exp,
icd, idx, ime, ipb, ipd, ips, ipt, ipx, ira, itg, iti,
there is now one graphic import export lib (gie)

Change-Id: I20c0dd94e5857bb6e2e8cc8ac175ff500c6bbdfc
Reviewed-on: https://gerrit.libreoffice.org/19756
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-06 11:42:36 +00:00
Caolán McNamara de47a96d3e Revert "vcl event filter"
that's just a local toy for now, didn't intended to push that

This reverts commit 4afbd0292e.

Change-Id: I20b758d4582022ffda35c4aed7251948e721f821
2015-10-02 09:12:22 +01:00
Caolán McNamara 4afbd0292e vcl event filter
Change-Id: Ib10dccec244f3168f1ac4a892a09012adf38a839
2015-10-02 09:09:39 +01:00
Zolnai Tamás 3f339c5e77 Better to call this msfilter test
Change-Id: I2abd6aedb16303d8988c17e7204c9607bf8336a3
2015-08-23 19:10:41 +02:00
Zolnai Tamás 16f9cf57e2 tdf#92471: Improve color conversion to MSO highlighting
The simple color distance on RGB color space is not good enough.
It leads to a better result if we use the scheme of the primary
colors.
This method works well with MSO highlighting color palette, but
not neccessarily in general. In highlighting palette light and
dark variant of the same color type (e.g. blue and light blue) has
the exactly same scheme.

Change-Id: Ied08b4c388b8020326709d01d2de290afdd9d77b
2015-07-14 10:36:18 +02:00
Caolán McNamara 31bfb20c81 add a build-time regression test for pcd file format
Change-Id: Ie413372ab1cfc7e38570fdf65c6daca8c2cc426b
2014-11-06 14:48:03 +00:00
Caolán McNamara 0694856737 add eps import regression test
Change-Id: Iba88c7e54ba83132a859124d51f88be72cb3e3e1
2014-10-20 10:57:20 +01:00
Caolán McNamara 0445a0ea1b add a regression test for .met files
OS/2 Metafile Format

aka

Presentation Manager Metafile File Format

this format appears to not to have a mime-type

Change-Id: I8b2356fb42272a6e0550abf09f46b051d22b64a5
2014-10-18 10:45:29 +01:00
Caolán McNamara bf5f734fc2 add dxf import tests
Change-Id: Ied78545abb9807acfc634ca97a1ca00a163ffa19
2014-08-09 13:35:47 +01:00
Michael Meeks 0f8cf397d4 fdo#80955 - add a unit test.
Change-Id: Ie79a86827c4ee9feabcabf2530b30466f95905ed
2014-07-07 18:05:18 +01:00
Maxim Monastirsky f82f7bf3dd Introduce centralized detection for storage-based files
This will allow us to get rid of the duplicated code,
and simplify the type detectors.

Also this commit fixes fdo#46310 and fdo#74978.

Change-Id: I08e958ab10d05e1036cdc2bed5ce14bf73b6245c
Reviewed-on: https://gerrit.libreoffice.org/9221
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2014-05-01 17:03:10 +00:00
Caolán McNamara 58b76a1883 add ppm regression test
Change-Id: Ifd5f68a3b0dec16f8d992f75fba8c9920700f351
2014-04-18 14:37:58 +01:00
Caolán McNamara 3e28dff92c add regression tests for psd filter
Change-Id: Ia9b34bc3b77902f8edbc0e7040da5edd02e02879
2014-04-17 16:19:39 +01:00
Caolán McNamara 9de20d1eb0 add tests for CVE-2008-1097, etc.
Change-Id: Iad6948fdf6eb60f86d764783b72a4fe7f5642e40
2014-04-17 12:00:40 +01:00
Caolán McNamara e02a6cb2c3 add a ras import test
Change-Id: Idc9267a2bb1bca13c40c746ab3b1974d7e4258ab
2014-04-11 21:51:22 +01:00
Michael Stahl 6967da019b filter: make LibXSLTTransformer init backward compatible
As reported by Fernand Vanrie, initializing the XSLT service can fail
because the LibXSLTTransformer::initialize was changed to require
the parameters as a nested Sequence; accept previous parameter
convention as a fall-back.

(regression from ca0ea73a4a)

Change-Id: I136e6e6338f11ffecf9f856f0736d1d0e6b17c3f
2014-03-04 18:05:17 +01:00
Maxim Monastirsky d5890e87ab Merge HTML detection to text detection service
Setting the filter name explicitly is not really required,
because TypeDetection::impl_checkResultsAndAddBestFilter
is able to select the correct filter anyway. But it seems that
other detection services also do it, so I followed that way.

Change-Id: I6e73fa79c6867d82f98d63e8d2b7865446f088ef
Reviewed-on: https://gerrit.libreoffice.org/8213
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-03-01 14:45:45 -06:00
Maxim Monastirsky cc2893834d related: fdo#73682 Introduce HTML detection service
Change-Id: I66bb579019ce8411b821c623955a454fd81cf811
Reviewed-on: https://gerrit.libreoffice.org/7600
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-01-23 14:49:22 +00:00
Bjoern Michaelsen 78c7eb3507 uiconfig is a l10n-relevant target
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06
2013-12-16 17:36:26 +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
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
David Tardon 0822a4c84a install xslt filters using filelist
Change-Id: Id84765285b1ace19442ec13d7212e4121f77dabd
2013-05-01 16:55:41 +02:00
Bjoern Michaelsen b9337e22ce execute move of global headers
see https://gerrit.libreoffice.org/#/c/3367/
and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details

Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-23 22:20:31 +02:00
David Tardon ed72983131 rename UI to UIConfig
I plan to use it to deliver all */uiconfig files, not just .ui, as a
preliminary step to get rid of postprocess/packconfig.

Change-Id: Ie7b4434b2f247165e3ab69a4d0c193418720a149
Reviewed-on: https://gerrit.libreoffice.org/3225
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-11 03:37:30 +00:00
Tomaž Vajngerl 6a6519c27a Export current Writer page as jpg/png
This is first step to rework of graphic exporting. The idea is to
replace the exporter that works only for Draw/Impress and replace
it with a general exporter for any object. With this it will be
far easier to export objects as charts. Currently only Writer is
supported and only jpg/png.

Additionally, this commit introduces a new Export dialog which
supports setting the pixel width, height and DPI.

Change-Id: I7302b26bd432840d7ef0c3d2d2e13ff150cd2a07
2013-03-25 23:50:10 +01:00
Caolán McNamara 96248beb79 drop empty make rule
Change-Id: I95b8c28a5f7ad7de8b51096fb44f98b48042ca8a
2012-11-27 21:46:42 +00:00
Peter Jentsch 143f0b895f removed obsolete xml validation service and xml source view.
Change-Id: I637531c09b391ef458ae6395518129d981662ff2
Reviewed-on: https://gerrit.libreoffice.org/1166
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-11-27 21:37:55 +00:00