Commit Graph
9019 Commits
Author SHA1 Message Date
Noel d828901d92 simplify CreateChartContext, remove unused params
Change-Id: I91db68fa20e00ac6b7ec0c991016f4155c6ed70c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105915
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-16 12:18:37 +01:00
Noel Grandin 89a571ee1d fastparser in SchXMLAxisContext
Change-Id: Ia4d0f55ea3cf4845386dacc0e30ee7d949e6f501
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105901
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-15 21:15:58 +01:00
Noel Grandin f7bc285caf fastparser in XMLMacroFieldImportContext
Change-Id: Ib0bfda67558476c84c86fa9f4bd4b8f18f6c5c4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105896
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-15 21:08:34 +01:00
Noel Grandin 07caaab2e4 fastparser in XMLDatabaseFieldImportContext
Change-Id: I83aba0cfcf2f280750b43e4782ec376572dacba7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105895
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-15 20:05:56 +01:00
Noel Grandin 478ab71e97 fastparser in SchXMLAxisContext
Change-Id: Idcc6426707f8f2019b4af0a5ef5979aa60944d11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105893
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-15 18:59:23 +01:00
Noel Grandin 0c14e5154c fastparser in XMLReplacementImageContext
Change-Id: I206782ce50249ac29f511f10ca39a9bcf075cdd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105891
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-15 15:45:45 +01:00
Noel Grandin 9cb535742f more fastparser in imagemap
Change-Id: I057502d7244e707caa1e296d345f7353ceed6f37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105842
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-15 09:18:11 +01:00
Noel Grandin 4cc03d53ff use fastparser in XMLImageMapObjectContext
Change-Id: Iefe6acbbacf308144372fb664943bd978225a0f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105839
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-14 20:15:30 +01:00
Noel Grandin df3e347b30 use fastparser in XMLImageMapContext
Change-Id: Ibdb7338298182515b624df4815c9d0177fe4badc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105838
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-14 19:06:04 +01:00
Noel Grandin 0d8191bf57 use fastparser in XMLEmbeddedObjectImportContext
Change-Id: I57352475bb62c75cddc7f3eafc0e0fcca166953b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105837
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-14 18:46:25 +01:00
Noel d9f0e8db9a loplugin:unusedmethods
Change-Id: I90d402a5c18ab16424a042bcea1470fa8a3a5839
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105629
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-12 16:54:19 +01:00
Noel 392d219b30 fix bug in text field import
fallout from
    commit 75b55ec265
    Author: Noel <noelgrandin@gmail.com>
    Date:   Thu Nov 5 15:16:55 2020 +0200
    StartElement->startFastElement in text fields

Change-Id: I0aec8411fc5c505ce772a81dfb865a4adc07e78e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105627
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-12 16:53:48 +01:00
Stephan Bergmann f34ac579fa New loplugin:stringviewparam
...to "Find functions that take rtl::O[U]String parameters that can be
generalized to take std::[u16]string_view instead."  (Which in turn can avoid
costly O[U]String constructions, see e.g. loplugin:stringview and subView.)

Some of those functions' call sites, passing plain char string literals, needed
to be adapted when converting them.

Change-Id: I644ab546d7a0ce9e470ab9b3196e3e60d1e812bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105622
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-11-12 16:53:30 +01:00
Noel 93c64a61f2 loplugin:stringview
Add new methods "subView" to O(U)String to return substring views
of the underlying data.

Add a clang plugin to warn when replacing existing calls to copy()
would be better to use subView().

Change-Id: I03a5732431ce60808946f2ce2c923b22845689ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105420
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-11 11:58:37 +01:00
Noel 941f2c866a convert more long -> tools::Long
found by grepping and changed by hand.

Change-Id: I3c720859dba430fde3abc76c6c5cb58269efaf4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105512
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-11 11:25:43 +01:00
Noel Grandin 3de38e9556 use fastparser in forms
Change-Id: I7d09d64857e24267b4b4baddb563e28ceea92f2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105560
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-11 06:33:53 +01:00
Noel Grandin dfb2e07e32 loplugin:xmlimport add more checks
to find places where the slowparser -> fastparser conversion
work is incomplete, fixing one bug in the process.

Change-Id: Ifd0d801d71eee0aaf25287fbac1a4237a811e7c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105511
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-11 06:33:32 +01:00
Noel Grandin 8523fb2b37 remove pimpl from SvXMLAttributeList
and add some asserts to catch bad index params

Change-Id: I3551358282da2218a5a1a39eed63f8d358a6a118
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105278
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-10 17:10:31 +01:00
dante 7e2c35324c Evaluate command: tdf#109338
Adds evaluate command.
It's visible from UI as a bracket.
Example: evaluate { {1} over {%sigma sqrt{2%pi} }func e^-{{(x-%mu)^2} over {2%sigma^2}} } from { -infinity } to { +infinity } = 0

In order to make the mathml part, several changes had to be mad:
 - Allow mathml to correctly identify the math token for opperators
 - Allow mathml to correctly identify the math token for fences
   - Since improvements where made on token recognision, visitors to string can now be lighter ( removing long long switch )
 - Improving the import / export to mathm
 - LO says it mathml 2, but actually is something between 2 and 3
   - Allowing mfenced ( mathml 2.0 ) to stayl 3 adding the missing data ( prefix and postfix )
     - Be able to know if we are opening or closing brackets
   - lrline and lrdline commands hidden on UI.
     - They are they own open close
     - If prefix and postfix are missing meaning of the expression may change, however that's the user problem.
     - The problem resides in the fact that MS_VERTLINE is uses for lline and rline.
     - The problem resides in the fact that MS_DVERTLINE is uses for ldline and rdline.
 - Changing frac priority from 0 to 5, if not { frac 1 2 frac 1 2 } fails ( found while testing )
 - The mathml testing was made with highter standars than qa tests, however there are no guarantees.
 - Added xml tokens needed for math
 - Added starmathdatabase. Will grow in the future.
   The point is avoiding long lists and swtches inside code.

Added it command for hidden or implicit product ( like &it; in mathml ). Oppens path for tdf#66200. Note that about this issue there is only one line on the parser. The mathml implementation will be made later when LO will allow chars with &charname;.

Change-Id: If24b40c2420d39498693944f13a02985f997dd23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105267
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-10 07:59:14 +01:00
Mike Kaganski 8ba9ecaaad Fix Windows build with --disable-pch
[build CXX] xmloff/source/forms/formlayerimport.cxx
C:\lo\src\core\include\cppu/unotype.hxx(296): error C2665: 'com::sun::star::beans::cppu_detail_getUnoType': none of the 28 overloads could convert all the argum
ent types
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/XVetoableChangeListener.hpp(56): note: could be 'const com::sun::star::uno::Type &c
om::sun::star::beans::cppu_detail_getUnoType(const com::sun::star::beans::XVetoableChangeListener *)' [found using argument-dependent lookup]
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/XPropertySetInfo.hpp(69): note: or       'const com::sun::star::uno::Type &com::sun
::star::beans::cppu_detail_getUnoType(const com::sun::star::beans::XPropertySetInfo *)' [found using argument-dependent lookup]
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/Property.hpp(81): note: or       'const com::sun::star::uno::Type &com::sun::star::
beans::cppu_detail_getUnoType(const com::sun::star::beans::Property *)' [found using argument-dependent lookup]
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/XPropertyChangeListener.hpp(55): note: or       'const com::sun::star::uno::Type &c
om::sun::star::beans::cppu_detail_getUnoType(const com::sun::star::beans::XPropertyChangeListener *)' [found using argument-dependent lookup]
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/PropertyChangeEvent.hpp(92): note: or       'const com::sun::star::uno::Type &com::
sun::star::beans::cppu_detail_getUnoType(const com::sun::star::beans::PropertyChangeEvent *)' [found using argument-dependent lookup]
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/UnknownPropertyException.hpp(54): note: or       'const com::sun::star::uno::Type &
com::sun::star::beans::cppu_detail_getUnoType(const com::sun::star::beans::UnknownPropertyException *)' [found using argument-dependent lookup]
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/PropertyVetoException.hpp(54): note: or       'const com::sun::star::uno::Type &com
::sun::star::beans::cppu_detail_getUnoType(const com::sun::star::beans::PropertyVetoException *)' [found using argument-dependent lookup]
C:\lo\src\build\workdir\UnoApiHeadersTarget\udkapi\normal\com/sun/star/beans/XPropertySet.hpp(93): note: or       'const com::sun::star::uno::Type &com::sun::st
ar::beans::cppu_detail_getUnoType(const com::sun::star::beans::XPropertySet *)' [found using argument-dependent lookup]
C:\lo\src\core\include\cppu/unotype.hxx(249): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const com::sun::star::uno::X
Interface *)'
C:\lo\src\core\include\cppu/unotype.hxx(243): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const com::sun::star::uno::E
xception *)'
C:\lo\src\core\include\cppu/unotype.hxx(217): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const com::sun::star::uno::A
ny *)'
C:\lo\src\core\include\cppu/unotype.hxx(211): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const com::sun::star::uno::T
ype *)'
C:\lo\src\core\include\cppu/unotype.hxx(206): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const rtl::OUString *)'
C:\lo\src\core\include\cppu/unotype.hxx(200): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_Unicode *)'
C:\lo\src\core\include\cppu/unotype.hxx(193): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const cppu::UnoCharType *)'
C:\lo\src\core\include\cppu/unotype.hxx(188): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const double *)'
C:\lo\src\core\include\cppu/unotype.hxx(183): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const float *)'
C:\lo\src\core\include\cppu/unotype.hxx(177): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_uInt64 *)'
C:\lo\src\core\include\cppu/unotype.hxx(172): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_Int64 *)'
C:\lo\src\core\include\cppu/unotype.hxx(166): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_uInt32 *)'
C:\lo\src\core\include\cppu/unotype.hxx(161): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_Int32 *)'
C:\lo\src\core\include\cppu/unotype.hxx(155): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_uInt16 *)'
C:\lo\src\core\include\cppu/unotype.hxx(145): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const cppu::UnoUnsignedShort
Type *)'
C:\lo\src\core\include\cppu/unotype.hxx(140): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_Int16 *)'
C:\lo\src\core\include\cppu/unotype.hxx(135): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_Int8 *)'
C:\lo\src\core\include\cppu/unotype.hxx(130): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const sal_Bool *)'
C:\lo\src\core\include\cppu/unotype.hxx(125): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const bool *)'
C:\lo\src\core\include\cppu/unotype.hxx(120): note: or       'const com::sun::star::uno::Type &cppu::detail::cppu_detail_getUnoType(const cppu::UnoVoidType *)'
C:\lo\src\core\include\cppu/unotype.hxx(296): note: while trying to match the argument list '(T1 *)'
C:\lo\src\core\include\cppu/unotype.hxx(288): note: while compiling class template member function 'const com::sun::star::uno::Type &cppu::UnoType<T>::get(void)
'
with
[
T=com::sun::star::beans::PropertyValue
]
C:\lo\src\core\include\cppu/unotype.hxx(321): note: see reference to function template instantiation 'const com::sun::star::uno::Type &cppu::UnoType<T>::get(voi
d)' being compiled
with
[
T=com::sun::star::beans::PropertyValue
]
C:\lo\src\core\include\cppu/unotype.hxx(321): note: see reference to class template instantiation 'cppu::UnoType<T>' being compiled
with
[
T=com::sun::star::beans::PropertyValue
]
C:\lo\src\core\include\com/sun/star/uno/Sequence.hxx(291): note: see reference to function template instantiation 'const com::sun::star::uno::Type &cppu::getTyp
eFavourUnsigned<com::sun::star::beans::PropertyValue>(const T *)' being compiled
with
[
T=com::sun::star::beans::PropertyValue
]
C:\lo\src\core\include\com/sun/star/uno/Sequence.hxx(117): note: see reference to function template instantiation 'const com::sun::star::uno::Type &cppu::getTyp
eFavourUnsigned<com::sun::star::beans::PropertyValue>(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> *)' being compiled
C:\lo\src\core\include\com/sun/star/uno/Sequence.hxx(114): note: while compiling class template member function 'com::sun::star::uno::Sequence<com::sun::star::b
eans::PropertyValue>::~Sequence(void)'
C:/lo/src/core/xmloff/source/forms/formlayerimport.cxx(89): note: see reference to function template instantiation 'com::sun::star::uno::Sequence<com::sun::star
::beans::PropertyValue>::~Sequence(void)' being compiled
make[1]: *** [C:/lo/src/core/solenv/gbuild/LinkTarget.mk:301: C:/lo/src/build/workdir/CxxObject/xmloff/source/forms/formlayerimport.o] Error 2

Change-Id: Ib75f2da6393a7ba4aa1660bdf872dc4bf0fb796c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105478
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2020-11-09 14:28:05 +01:00
Noel cf0673db88 StartElement->startFastElement in XMLMetaFieldImportContext
Needed to register the implicit XML namespace in
    SvXMLImport::initializeNamespaceMaps
as is done in the equivalent for the slow-parser path at
    SvXMLImport::InitCtor_

Change-Id: Ib7fc2c7a77400b7688be7b2f98564b5d3096d3c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105369
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-09 13:36:57 +01:00
Noel 75b55ec265 StartElement->startFastElement in text fields
Change-Id: I455599516814866ecd076d5d56e8682956f93004
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105370
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-09 11:23:26 +01:00
Noel Grandin 10e0a94416 dont call StartElement from startUnknownElement
to avoid having the StartElement/endFastElement call pairs
end up unbalanced.

Change-Id: I331aa48e3fd928a093d1f6b3248d9f9668ef83ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105442
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-08 16:52:53 +01:00
Caolán McNamara ca04f207d7 0xffffffff is COL_TRANSPARENT/COL_AUTO
Change-Id: I17d4a3d3a05913f4f0fc11508f2196b30661b88a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105415
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-11-07 22:02:06 +01:00
Noel 875944d0cf loplugin:unusedfields
Change-Id: Ib360179887572ec55245d7892651eaf7113ed3cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105389
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-06 13:17:49 +01:00
Noel 46bb20e8f3 StartElement no longer necessary here
Change-Id: I9a48073ea6c931ffe90378b0c35aa1b50a573e21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105347
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-05 17:25:17 +01:00
Noel 65c1547f3a StartElement->startFastElement in xmloff/source/text
Change-Id: I6a0f127eccce36958d95ee3d01080f22c62c8b45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105346
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-05 17:24:52 +01:00
Noel 03ef620caf loplugin:unusedenumconstants
Change-Id: I9a2eb83647d6620b3c5b5ed5642227be47a657f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105303
Tested-by: Jenkins
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-05 09:04:54 +01:00
Noel Grandin 81fe31d2c8 use fastparser in XMLEmbeddedObjectImportContext
Change-Id: I5fc61239e60a3129b350895293760a345baf3ce5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105260
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-04 06:34:20 +01:00
Noel 28be7b9807 create common macro and method for logging unknown attributes
instead of repeating the code everywhere

Change-Id: Idb94054b392ed256e64259cdb17d1522bf3c52b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105184
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-02 17:39:10 +01:00
Noel 3940cf7d71 drop the SvXMLExport::EndElement method..
in favour of just using the endFastElement() method

Change-Id: Id95abb0b9e78bc44278c5e9e3cc8dee15185e2e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105175
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-02 17:08:47 +01:00
Noel 2764c334c3 drop the SvXMLExport::Characters method..
in favour of just using the characters() method

Change-Id: Iecb2773d488fcf4fa3c2202d0e889015a288fe2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105174
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-02 14:11:49 +01:00
Stephan Bergmann 35f7d9a18f -Werror=parentheses
Change-Id: I6f4214a235dbeaade8e58597f784a0e435616682
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105166
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
2020-11-02 10:50:31 +01:00
Noel 8c5ffecf1d make SvXMLImport capable of mixing fast- and slow- contexts adhoc
so I can convert even *ImportContext subclasses in the middle of
a context stack, and thus break the cyclic dependency nature
of the writer import.

and adjust the xmlimport loplugin for the new rules.

As a consequence of the loplugin:xmlimport's checking, we remove
a bunch of now unnecessary overrides of startFastElement.

Change-Id: I97464522ede8ec5e345e928cdafa4b18364b1b80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104730
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-02 08:17:00 +01:00
Caolán McNamara 4e08dd5c31 rename to NotifyContainsEmbeddedFont
to indicate better what its users do with this notification. This reflects
better the reality that while the embedded font has been read at this point,
vcl hasn't been informed of its existence yet.

Change-Id: I87f4d0a0361192dac972f6146d3721a69e11ac27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105086
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-10-31 15:37:18 +01:00
Noel Grandin 88267a7de0 remove pimpl from SdXMLShowsContext
Change-Id: I54d4103d3a53300e9ed018b0d7f9a25e177722de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105027
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-31 08:07:25 +01:00
Szabolcs Toth bc9049851f tdf#137627 sw top page border orientation: add ODF
Map between RelOrientation::PAGE_PRINT_AREA_TOP and
loext:vertical-rel="page-content-top".

Follow-up of commit 1c593e1916
(tdf#133045 sw: add shape alignment to the top page border).
See also commit 65b7873aab
(sw from-bottom relative orientation: add ODF filter).

Change-Id: I9bff7a9507152262dda7d126fa3e7e1bee6a8276
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104554
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-10-29 17:52:48 +01:00
Caolán McNamara 3887359243 tdf#137643 alternative solution to activate embedded fonts in one batch
Change-Id: Ib5ffb2b8a31f237d5d2e465bf3f777590e0bfade
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104947
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-10-29 10:14:16 +01:00
Noel Grandin 917401207e std::set->o3tl::sorted_vector in xmloff
Change-Id: Iba07a9905f37c2fb00d59ac00703744e5f81b1c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104906
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-28 07:22:35 +01:00
Noel 4fbd638605 switching long to a 64-bit type on 64-bit windows
(*) create a rewriting plugin to do most of the work, heavily
    based on the fakebool plugin
(*) but there are still a number of "long"s in the codebase
    that will need to be done by hand
(*) the plugin needs lots of handholding, due to needing to
    add #include and update macros

Change-Id: I8184d7000ca482c0469514bb73178c3a1123b1e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104203
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-26 07:35:36 +01:00
Noel Grandin 3a2338ca62 remove debug code from SvXMLImport
accidentally committed in
    commit fe2b4e7dc6
    Date:   Tue Oct 6 18:27:27 2020 +0200
    make SvXMLImport fast-parser only

Change-Id: I5fb46399f6e562cc289859ef13998dfafaae6a7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104693
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-23 08:49:19 +02:00
Noel 7b2d10068d only need to check the version once
Change-Id: Ie02ce5e7823a7564da919525f9cbdf4fc92072dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104649
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-22 18:58:12 +02:00
Noel Grandin fe2b4e7dc6 make SvXMLImport fast-parser only
so I can simplify its logic and convert the rest of
the context classes.

Change-Id: I671ba63724a153a5c715153a8149bdd045040193
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104038
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-22 11:33:45 +02:00
Noel 2b946d245e XmlFilterAdaptor: use the fastparser API when possible
part of the process of making SvXMLImport fastparser-only

Which uncovered several bugs because I end up stacking fast and
slow parsers, not once, but twice.

Specifically, we have a problem here with default namespaces e.g.

    <math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
    <semantics><mrow><mstyle mathsize="12pt">

where going from slow- to fast- parser loses this information,
because there is no way to represent this in the fastparser world,
so we end up with nastiness when we transition back to slow-parser,
and then back-again to fast-parser.

So I fixed a couple of places XMLEmbeddedObjectImportContext
and in SvXMLLegacyToFastDocHandler, and then worked around some of
it by introducing an new XImporter2 interface so I could strip out
out one of the slowparser -> fastparser transitions.

Change-Id: I491487b99271898da50dc999d3b9b9c39cbd97fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104514
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-22 09:12:24 +02:00
Tünde Tóth f1d7981510 tdf#137585 Chart ODF: fix export of DataLabelPlacement::CUSTOM
Saving .ods, the DataLabelPlacement::CUSTOM converted to
the default "avoid-overlap" instead of the requested "outside".

Follow-up of commit 20da1a5dd3
(tdf#134978 Chart OOXML Import: fix pie chart label custom position)

Change-Id: Ib15c7f24e0a650c84e6afce08b84e7eece8dafea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104430
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-10-19 14:19:34 +02:00
Noel Grandin f71debf3fa OOo2Oasis: use the fastparser API when possible
part of the process of making SvXMLImport fastparser-only

Change-Id: Ib8b4a02fff94653adf9d48ac07404d392572b1f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104464
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-17 18:07:02 +02:00
Noel Grandin 49ba005c11 TransformerBase: use the fastparser API when possible
part of the process of making SvXMLImport fastparser-only

Change-Id: Ie93e846e745b4388b891a68740c17742bbd62e82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104465
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-17 16:40:14 +02:00
Noel Grandin ee3f06ad27 fix fastparser namespace handling when...
dealing with unknown attributes, in

    SvXMLLegacyToFastDocHandler::startElement
    SvXMLImportPropertyMapper::importXML

which show up with some work I'm doing to make SvXMLImport fastparser-only.

Change-Id: I71197c1659a5f072c2b186892be1f88ca6b2a764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104140
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-17 12:00:23 +02:00
Noel Grandin d9596a20b8 xmloff: use the fastparser API when possible
part of the process of making SvXMLImport fastparser-only

Change-Id: If80ba22f370d5da6f268d6456ab0c974e6ff4209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104455
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-17 11:32:00 +02:00
Mike Kaganski 83e445cd2d use more TOOLS_WARN_EXCEPTION
Change-Id: I269f88d82680f6a969a8bf582f0ae00cc7636509
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103925
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-10-04 22:12:16 +02:00