Commit graph

464445 commits

Author SHA1 Message Date
Caolán McNamara
0dc7b1cbb9 ofz#35787 Timeout
1m14.061s -> 0m3.975s

Change-Id: I96e6f2c60017ba57062bd56c2e80604e117b3b99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118381
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-04 21:47:07 +02:00
Caolán McNamara
34fcf3b6e0 add a const SwDoc& arg for a follow up optimization
Change-Id: Ib18e6c93e35fc3021a874f4313cf38fbb99d696a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118380
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-04 21:46:34 +02:00
Andrzej Hunt
e1d3c8438a Fix LIB_FUZZING_ENGINE not-empty check
Switch to '-z $LIB_FUZZING_ENGINE' to check if LIB_FUZZING_ENGINE is
set. The previous version evaluates to false when LIB_FUZZING_ENGINE is
not set, meaning you would not be warned at configure time when using
-enable_fuzzers without setting LIB_FUZZING_ENGINE.

Original broken version landed in:
44b36a0602
( https://gerrit.libreoffice.org/c/core/+/111691 )

Change-Id: Ic2174777ebf724e471cd605ba54b245e4e804705
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118372
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-04 20:35:03 +02:00
Caolán McNamara
c551e34018 ofz#33258 don't set a replacement font if the current one is the same
5.602s->4.022s

Change-Id: I5983d4f51bda7249f7b37d642dd970f01b70d3aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118365
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-04 17:46:14 +02:00
Caolán McNamara
f244961d1f tidy lcl_swcss1_setEncoding a little
no logic change intended

Change-Id: Id82fb83d0947a838f2c2970a073712d221e5ed92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118364
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-04 16:52:14 +02:00
Caolán McNamara
3ebee45e50 cid#1486703 if bUsePlaceholderIndex is true then ePlaceholder != Outliner
so this is Logically dead code

Change-Id: Ieede7331bf2639610ad7a3a983a87263d291c75d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118352
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-04 16:51:53 +02:00
Noel Grandin
9f669d2271 move SfxSetItem to own header file
Change-Id: I77ba873ed236091443627e26e6127e89cd8e15bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118360
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-04 16:12:17 +02:00
BaiXiaochun
420e454426 Remove unused includes
Change-Id: I243d2998725f09ef533bd06865081d5c415f0d18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118282
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-07-04 15:41:40 +02:00
Mike Kaganski
cd0ab69d4a tdf#142464: do not escape '/' is AM/PM when importing DOCX.
See also commit a2e964afc5, doing the
same for DOC.

Change-Id: Ib0ddb36de8589f9264fe857b20a6ef2aa2607c52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118369
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-07-04 14:16:35 +02:00
Julien Nabet
0151a178d4 tdf#143173: fix wrong French abbr for Alphabetical Index-Grouped entries
Change-Id: If478fc1127f957e05cdf7bc247881f0c59146896
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118366
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-07-04 10:04:54 +02:00
Andreas Heinisch
965639aec1 tdf#143175 - Join elements including a delimiter using a standard iterator
Otherwise, the document's keywords will be duplicated since the first
keyword is written twice. Regression from I19eba57bc6058c317473d0746f06699a09ba2830.

Change-Id: I4c6f840b6e095ca9eaf5ffb53af07280b901e28d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118358
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-04 09:10:32 +02:00
Eike Rathke
2cc8ec691c Resolves: tdf#125035 Use number formatter for long date in DateFormatter fields
Change-Id: Ib0cd55d9ad4e3abb4839d70c0086063a3f1a90f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118344
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2021-07-04 02:28:48 +02:00
Mike Kaganski
79d31d0814 tdf100961: import fixed date/time field attribute from DOC
Change-Id: Ic67e1cb2fbdb0e7efdeca67ba5cf72ff30856e80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118357
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-07-04 00:12:37 +02:00
Eike Rathke
57bd9a6075 Related: tdf#125035 en_US formatindex="19" DATE_SYSTEM_LONG with D not DD
Otherwise CppunitTest_sw_odfimport testDateFormFormats fails with

- Expected: Wednesday, March 4, 2020
- Actual  : Wednesday, March 04, 2020

if DateFormatter uses number formatter.
This is also what
https://www.localeplanet.com/icu/en-US/index.html
lists for Date.0 and formatindex="30" has as well.

This makes adapting CppunitTest_svl_qa_cppunit testNumberFormat
necessary.

Change-Id: I1c8cfd954f34f742b0397b8f922d22eb11ae19f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118361
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2021-07-03 23:49:02 +02:00
Caolán McNamara
0f9b36439e cid#1486702 Uncaught exception
Change-Id: I672c406368f0fd8762349c993cd3febbe5720b2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118351
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-03 22:15:00 +02:00
BaiXiaochun
3128fd02c0 Purge out when safe rtl::math ( isValidArcArg / sin / cos )
/** If a value is a valid argument for sin(), cos(), tan().
IEEE 754 specifies that absolute values up to 2^64 (=1.844e19) for the
radian must be supported by trigonometric functions.  Unfortunately, at
least on x86 architectures, the FPU doesn't generate an error pattern for
values >2^64 but produces erroneous results instead and sets only the
"invalid operation" (IM) flag in the status word :-(  Thus the application
has to handle it itself.
*/

chart2/source/tools/RelativePositionHelper.cxx
Function name: RelativePositionHelper::getCenterOfAnchoredObject
From here: suppose it's related to the orientation of the chart << 2^64

chart2/source/view/main/LabelPositionHelper.cxx
LabelPositionHelper::LabelPositionHelper
Suppose: setup label position.
There won't be angles grater than 360º.

chart2/source/view/main/PlottingPositionHelper.cxx
PolarPlottingPositionHelper::transformUnitCircleToScene
Suppose: maybe disc chart orientation?
Internal angle should be safe.

chart2/source/view/main/ShapeFactory.cxx
ShapeFactory::getSizeAfterRotation
Suppose: rotate shape
Internal angle should be safe.

drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
Constant 100% safe

sc/source/core/data/documen4.cxx
bool ScDocument::Solver
Suppose: the tangent is being used as numerical derivative (Regula falsi algorithm)
So no impossible angles

scaddins/source/analysis/bessel.cxx
Filtered it out as bad imput

Change-Id: Ib348cca6ce13263d087b6731f93f58d8a15cc725
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118193
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2021-07-03 21:57:29 +02:00
Mike Kaganski
e732bbacbf Simplify lcl_dateTimeFromSerial
Change-Id: Ifa237cde581c9b89956db104db9f87a901f84d72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118306
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-07-03 21:04:35 +02:00
tushar
7b4169c9d5 Implement Interface for Data Providers.
Change-Id: I83ec43511d4fd9a91d7ec34e2281f80b19b4d562
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116870
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2021-07-03 20:51:04 +02:00
László Németh
f5ff7a967b tdf#143176 Old Hungarian transliteration: fix AutoCorrect->Apply
and "Apply and Edit Changes".

Transliteration worked only during typing, because
AutoCorrect->Apply and "Apply and Edit Changes" remove
right-to-left text direction silently, which resulted
missing transliteration of text (with Default Paragraph
Style and right-to-left direction) to Old Hungarian.

Change-Id: I1481d958494828b6dce66f2eeecb44b327c70db4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118346
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-07-03 17:25:44 +02:00
Caolán McNamara
35dd9c4f38 ofz#24932 halve limit for fuzzing timeout
Change-Id: Iafbf7e40867ada6918e6e6dc3e1588bb0a6756df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118333
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-03 15:19:05 +02:00
Bartosz Kosiorek
4992780d2b EMF+ tdf#142941 Fixes for SrcRect in DrawImagePoints
The SrcRect could be specified outside of source bitmap.
In such cases the Destination bitmap should be displayed as shifted
(eg. if position is negative), and scaled properly.
Change-Id: Ied6d339703999faaae061802ef6a28e190d5a176

Change-Id: Ia9772ced282684c2c94a261d97d30b53921d6171
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118345
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2021-07-03 14:59:06 +02:00
László Németh
ded2452a52 tdf#142902 DOCX export: remove personal info of comments and changes
If Options → LibreOffice → Security → Security Options
and Warnings → Options... → Security Options → Remove personal
information on saving" is enabled.

Use the same time (Unix epoch) for mandatory time stamps, and
replace authors with "Author1", "Author2", ... and creator-initials
with "1", "2", "3" etc., also to avoid of joining adjacent redline
ranges.

Note: to see the work of the unit test in Linux command line:

(cd sw && make UITest_writer_tests7 UITEST_TEST_NAME="tdf90401.tdf90401.test_tdf142902_remove_personal_info_in_DOCX" SAL_USE_VCLPLUGIN=gen)

Follow-up to commit 12da70f885
"tdf#90401 xmloff: remove personal info of comments and changes".

Change-Id: Ice996f171f5d82d13ce0ea2e4833696af0aab90c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117444
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-07-03 12:54:39 +02:00
Eike Rathke
56ae948b08 Related: tdf#125035 Include day of week in formatindex="19" DATE_SYSTEM_LONG
Used programmatically with number formatter's NF_DATE_SYSTEM_LONG
but quite some locales were lacking the day of week; maybe legacy
because duplicated formats sometimes were avoided, which nowadays
are suppressed in the number format dialog. Made the format code a
copy of formatindex="30" explicit DATE_SYS_NNNNDMMMMYYYY.

Didn't know what to do about lt_LT so kept that as is.

This made it necessary to adapt a dreaded UITest_writer_tests5
test that checks for listbox content,
test_date_field_with_custom_format, which depends on actual locale
data. See comment there.

Change-Id: Ifc26a4a5be6bed3fb8d9cedc1afcba1225751635
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118335
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2021-07-03 11:47:28 +02:00
Justin Luth
26af8b14aa tdf104239 doc import: re-arrange aPreventUseAsChapterNumbering
It is better to do this more intensive check AFTER
the "continue" clause - since both those conditions
need to be true anyway in this section.

Change-Id: I6051832c207fbfd402c00cab4ed1a8ed662c1b12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118341
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2021-07-03 11:43:10 +02:00
Justin Luth
87c9940bfc doc import: halt earlier for non-paragraph styles
related to work being done for tdf#104239.

This should practically be an NonFunctionalChange
that just avoids some unnecessary processing.

Unit tests prove that these semi-defined styles
are still necessary for inheritance etc.,
but they shouldn't need to be used for selecting
the outline numbering.

The "continue" that I am moving was first added with
commit d6078b0843
Author: Caolán McNamara on Wed Aug 27 09:19:30 2014 +0100
    OutlineStyles can only be Paragraph Styles

which probably just failed some automated tests,
so that suggests there is plenty of room for improvement here.

Change-Id: I5d4d6ba374f0f271b5248fef3d2d8c0ce62082cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118342
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2021-07-03 11:03:56 +02:00
Jan-Marek Glogowski
00d0d8f58c vcl: drop GenericUnixSalDataType
It's just used for a singke assert and SalData is generally just
used as a static cast.

Change-Id: I8d74e82e511413d940a3f200f022a9204e588cd7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118288
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-07-02 23:50:56 +02:00
Xisco Fauli
c6bdd42677 tdf#142932: sc: Add UItest
Change-Id: Idecfa40358d13d1bc921ba7250dda56ccf5e0646
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118331
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-02 23:43:12 +02:00
Mike Kaganski
357c0e2a4a Move utility code out of test directories
This simplifies iteration over the test files, and avoids relying
on file URLs being the same (e.g., having no /./ segments).

Change-Id: I227785806e474a3a2dffeb46df21617eae43327e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118329
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2021-07-02 21:53:39 +02:00
Xisco Fauli
4f8748fc97 Revert "uitest: try harder to close the dialog when it fails..."
This reverts commit ff641dc9e4.

Reason for revert: This patch is wrong, when close_button is set, the exceptions will be caught here so the test won't fail

Change-Id: Id884abe70ab5602f914742e91bb2ed644c23b041
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118303
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-02 21:45:04 +02:00
Rafael Lima
7755b4881f Update git submodules
* Update helpcontent2 from branch 'master'
  to 86d4cff5887833253bcfe95ecdb1689ef810315c
  - tdf#102523 Improve Advanced Filter help page
    
    This patch embeds the page specialfilter.xhp and 12040201.xhp into the 12040300.xhp file, which is the landing page when the user clicks the Help button in the Advanced Filter dialog.
    
    As a result, the landing page now covers all the features in the dialog and also presents a useful example.
    
    This also updates the .tree file.
    
    Change-Id: I25d31838fa2604851962fdf8200b887255489017
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/118191
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-07-02 21:07:26 +02:00
Mike Kaganski
9258f7009e Rename LibreOffice Basic test files from .vb to .bas: they are not VBA
Change-Id: I4ff8a8dc855da2c60084318e067d4ec8149d055e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118330
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2021-07-02 20:48:34 +02:00
Regina Henschel
4d2e499994 Change order of parameter to LTRB for better readability
This addresses a comment of Jan-Marek Glogowski on commit
3262fc5ef3.

Change-Id: I0a94ad08d035fd23c0adb5bc53fccdcbc0173e1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118324
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2021-07-02 20:38:24 +02:00
Xisco Fauli
c3c31f4c6e uitest: LICENSE.html can be read-only, skip the 'ok' button
Change-Id: Ib9c7547dac89715a4519a60d733ba03922a01231
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118328
Tested-by: Jenkins
Tested-by: René Engelhard <rene@debian.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-02 20:06:25 +02:00
Xisco Fauli
79657c9f53 tdf#143081: basic_macros: Add unittest
Change-Id: I2d9fa23627f40a2398288b1ee7f5bfd4de4a6131
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118326
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-02 19:36:56 +02:00
Caolán McNamara
0b44f53d99 stray unwanted image-position for CheckButton
Change-Id: I31ca60b6b7ee953e002e074efeac9a204f2986f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118323
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 18:00:10 +02:00
Caolán McNamara
6052731835 move preview images outside RadioButtons
Change-Id: Ib754db3dddb6b69e8b61b085bbdd3c182c24a703
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118321
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 17:59:55 +02:00
Caolán McNamara
a38a3ecf62 resave with latest glade
Change-Id: I0933861214b8c1f080cf63b86496cca9e5aefd56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118320
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 17:59:24 +02:00
Xisco Fauli
a6178d172e tdf#84098 kill copy+paste in basic/qa/basic_coverage
This also fix the problem of basic_coverage tests not showing
the results when they were failing, since doUnitTest
returned a Integer

Change-Id: I637cd4cfaa34047bc99bfe6e0930f2945f1a9315
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118234
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-02 17:50:10 +02:00
Caolán McNamara
a43dac7964 gtk4: reenable some more working dialogs
Change-Id: Iff3ac86df4b1d028500356ae744e68a0b4712aae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118317
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 17:09:04 +02:00
Caolán McNamara
7ae27fd38e add use-underline to color picker button
Change-Id: Ice9d2a155c4237b30134bd8faf7931ec980829e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118316
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 17:08:45 +02:00
Caolán McNamara
a1dd68b718 tidy up impress bullets and numbering dialog
a little but to have less arbitrary numbers in it

Change-Id: Id386616a31c69ebcdea7e97a62a3067bb2fbf60b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118315
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 16:46:17 +02:00
Caolán McNamara
8046edcff0 missing use-underline
Change-Id: I560bb7b6942b66c0d486c1d32eac2d2c88e87eb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118314
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 16:26:33 +02:00
Caolán McNamara
0187e50a09 add empty label for GtkMenuButton
Change-Id: Idd15f355e695564964c84b20d7dfc205b1d7dcf8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118313
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 16:26:16 +02:00
Caolán McNamara
f7498ffadc these commands present a dialog so add ... to them
Change-Id: Ic25558b1523c26b4b928b9f65c30c7241f549cb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118312
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02 16:15:09 +02:00
Noel Grandin
51f00abe7a no need to allocate return val on heap for GetItemSetForPreview
Change-Id: I261182ec2348df045171c5e1beb33579e2c0c766
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118284
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-02 15:53:15 +02:00
Noel Grandin
2024780f9e can allocate these SfxItemSet on the stack
Change-Id: I85a749429a3a14aca5c6eaeaa5da37b25eb9f730
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118283
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-02 15:34:38 +02:00
Attila Szűcs
d656191ec3 tdf#119952 DOCX import: fix negative page margins
DOCX body text can overlap with header/footer, if top/bottom
page margin is negative. To support this, convert header/footer
text content to textbox anchored to header/footer, if needed.

Note: possible improvements:

1) Skip this hack, if the header is small enough to not overlap with
the body, calculate only the height of the header at the import time.

2) This hack does not fix the case when the top of the header
is under the top of the body. (A problem in DOC import, too.)
This could be achieved by repositioning the dummy header to the top,
and lower the textbox by the same amount. (This would still not
resolve the extreme situation, when the body start from 0 mm
(in LibreOffice, header must be at least 1 mm).

3) Import of VertOrientation::BOTTOM property seems to be bad,
or at least the footer loses this property after a DOCX round-trip,
resulting bad footer position.

4) after a round-trip, the 1 mm height of the dummy header
increases to 1 line height. Also the "Autofit height" and
"Use dynamic spacing" settings are changed, likely related
to their missing DOCX export.

Co-authored-by: Tibor Nagy (NISZ)

Change-Id: I8319c93c6c5a980878ee9956c8ab2953da60409e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117842
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-07-02 15:08:24 +02:00
Andreas Heinisch
226f7e2ab9 tdf#114070 - Only show the last name of the filename without its extension
In the bullets and numbering dialog, don't show the filename including
its extension in the tooltip of the image.

Change-Id: I2a37f79e8c57d3126e6607f01756771857440faa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118215
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2021-07-02 14:52:19 +02:00
Andreas Heinisch
a646ba6e5e tdf#141334 - Only show the last name of the filename without its extension
In the bullets and numbering dialog under customize, don't show the
filename including its extension in the context menu of the gallery.

Change-Id: Ia3d4277f5b074be78244f0599883f36385a40c8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118218
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2021-07-02 14:51:52 +02:00
Andrea Gelmini
c227acea0b Removed leftover files of commit c2d73de5b5
Change-Id: I021ce03df09c7cb8e87e471b40dfeb4b51068bd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118287
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-02 14:39:24 +02:00