Commit graph

476326 commits

Author SHA1 Message Date
Michael Weghorn
3318742094 android: Update com.google.android.material to 1.6.1
Change-Id: If5aebe347534745065b371190abffce2421655f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135729
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-06-14 06:38:57 +02:00
Eike Rathke
d6331fc7ab Related: tdf#149325 Eliminate all unconditional ScRangeList::front() access
... to prevent crashes, and where possible substitute a missing
element with the original sheet object range.

Change-Id: I245844e89fa3eb7d6ec07e279bdd23022fd77958
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135773
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-06-14 01:07:46 +02:00
Olivier Hallot
d0fb2e4c2d Bump tocindexpage.ui to latest Glade
Change-Id: I0c93e8115a64824170ccc40bd793f803d45f6afa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135768
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-14 00:19:02 +02:00
Olivier Hallot
a809e8d53e Bump opttablepage.ui to latest Glade
Change-Id: I23e95e46ffe476a675bdb66e35c78c57b8eadfbe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135759
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-14 00:18:15 +02:00
Miklos Vajna
214438f1dc vcl: restore lost spinner images
This went wrong in commit 13aa508179
(remove unused defines, 2021-11-19), the trouble is that
postprocess/CustomTarget_images.mk needs these images to be listed in
bitmaps.hlst explictly, and the makefile won't see that the same names
are used in Throbber::getDefaultImageURLs(), constructed dynamically.

Change-Id: Ie7ea1734ed417d17e1ce54d6a755509ef52572d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135725
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-06-13 23:25:52 +02:00
Balazs Varga
be2252c8d3 Fix some cross-build targets errors
1. error - if disable JAVA is configured, set '--without-java',
otherwise it breaks python for the build part.
2. error - forward '--with-vendor' setting to sub config,
to avoid stupid windows system variable error.

Change-Id: Icebdfc5d6d2816fa53538d83d3ea206a6e99ddd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135724
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-06-13 22:25:22 +02:00
Xisco Fauli
77a28966f0 uitest: sc: reset values in paste special dialog
in preparation for https://gerrit.libreoffice.org/c/core/+/135110

Change-Id: I0bfa8ddd9b814239a0e284b1b219cf760ee34826
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135733
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-13 21:33:01 +02:00
Olivier Hallot
31bf1a7f18 Bump specialcharacters.ui to latest Glade
Change-Id: I5b001f5c38dda46f16e4a9619250d868a9489cad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135756
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-13 21:31:55 +02:00
Julien Nabet
2b7979d781 Revert "tdf#98743: TIFF export uses 96dpi by default"
This reverts commit 988285410f.

It worked with brand new file and A4 example but not with attachment of the bugtracker.

Change-Id: Ia33d06a994dd80a8fe0e0837f4e91fc8fdd5ce63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135795
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-06-13 21:14:06 +02:00
Olivier Hallot
3b3b1730a9 Bump labeloptionspage.ui to latest Glade
Change-Id: Id3f7041f913096dc3d62d8068d2a792d118af913
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135754
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-13 21:06:37 +02:00
Noel Grandin
9e0332bfb9 clang-tidy modernize-pass-by-value in dbaccess
Change-Id: I8f89ec8a73f82fd93320a710165df17180939f96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135731
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-13 20:37:35 +02:00
Eike Rathke
3ad12672e9 Resolves: tdf#149531 Use initial sheet range for VBA Columns and Rows
... if the ScTableSheetObj's ScRangeList is empty. It might even
be that was never intended to be used and worked only by accident
in the past (pre 6.0), but it's somewhat unclear. It may even get
in the way in case it exists and the (first) range was modified,
e.g. shrunk by a Delete, as the resulting column or row object
could be different from the initial sheet range.

Change-Id: Ib9911df1b23802054a5bb0621bb7f5559ef3f39b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135732
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-06-13 19:24:41 +02:00
Maxim Monastirsky
9bc1ffa215 tdf#125040 Make single mode toolbar context aware
This patch modifies the "Standard (Single Mode)" toolbar
to have an optional context-aware section, given that a
corresponding singlemode-<context-name>.xml files exist.
This is a lot like the "Contextual Single" NB, except
that it's implemented with regular toolbars, so docking/
customization/extensions/uno api etc. are all working.

In addition, the "Single Toolbar" mode was modified to
not show any other contextual toolbar. (But of course the
single mode toolbar itself is perfectly usable outside of
this mode.)

Change-Id: Id746d9df59340a81962a8689b132941deea54b6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135591
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2022-06-13 18:47:01 +02:00
Noel Grandin
0f01b42e73 clang-tidy modernize-pass-by-value in connectivity
Change-Id: I1f1b609254c7f8cfba14c248167f81b51684d8e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135727
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-13 18:11:03 +02:00
Michael Stahl
646c6ddd91 tdf#139982 sw: preserve flys in Replace with redlining enabled
The problem is that there isn't a redline type "Replace" so it's
represented as Delete+Insert.

To prevent the flys anchored in the text from being deleted, move the
anchors to the point between the old (deleted) and new (inserted) text.

(regression from commit 28b77c89df)

Change-Id: Ib600c9dbfb9421917e4b8d61195c48cf0b364f06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135604
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-06-13 17:59:14 +02:00
Stephan Bergmann
5687eba49f Drop obsolete preprocessor directives from UNOIDL files
...which were used by ildc, which is gone since
a8485d558f "[API CHANGE] Remove deprecated idlc
and regmerge from the SDK", and have always been ignored as legacy by its
unoidl-write replacement.

This change has been carried out (making use of GNU sed extensions) with

> for i in $(git ls-files \*.idl); do sed -i -z -E -e 's/\n\n((#[^\n]*\n)+\n)*(#[^\n]*\n)+\n?/\n\n/g' -e 's/\n(#[^\n]*\n)+/\n/g' "$i"; done && git checkout extensions/source/activex/so_activex.idl odk/examples/OLE/activex/so_activex.idl

which apparently happened to do the work.  (The final two files are not UNOIDL
source files.)

Change-Id: Ic9369e05d46e8f7e8a304ab01740b171b92335cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-13 16:27:45 +02:00
Michael Stahl
32dd76143b sc: ODF export: fix style:font-name on EE text/paragraph styles
The problem is that sc contains its own duplicate export of EditEngine
styles, where the SvxFontItem aFamilyName is exported directly to
style:font-name.

But style:font-name refers to a style:font-face, and for a given font
family name there may be multiple font-face elements whose names have a
counter appended, and they are written in some non-deterministic order,
so effectively this picks font-face at random.

In XMLTextExportPropertySetMapper::ContextFontFilter() there is already
code to do the lookup, and also a fallback when the lookup fails to a
set of individual attributes fo:font-family style:font-style-name
style:font-family-generic etc., which is actually used for fonts in
control shapes, which have "unknown" for one of the components, so there
could be some other problem with them.

It doesn't look possible for the lookup to fail for EditEngine items, as
ScXMLFontAutoStylePool_Impl should have added all of them.

This problem was detected by current ODFunDiff in 22 of 2000 ODS files;
with this fix only other problems remain.

Change-Id: I276f705296df628b0869526f4ea676c47a014328
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135684
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-06-13 16:26:40 +02:00
Noel Grandin
b7c260aee3 clang-tidy modernize-pass-by-value in chart2
Change-Id: I73ae444487571fb61a02a2c813c060d269d52a02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135723
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-13 16:04:27 +02:00
Noel Grandin
24d15ba86c loplugin:mergeclasses sd::TitledDockingWindow with sd::PaneDockingWindow
Change-Id: I77314048173ebba0dc0e03f710607b74e73f0bde
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135719
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-13 14:38:03 +02:00
Noel Grandin
4f20da3b33 remove #undef
which is unnecessary, and does nothing and seems to have been there
since
    commit 7b1d0af864
    Date:   Wed Apr 11 17:07:29 2007 +0000
    INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED

Change-Id: Ie6eaa1a939891a056f6fd1eb207db127352fc029
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135718
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-13 14:37:41 +02:00
Andreas Heinisch
e8f97879c4 tdf#133675 - Hyperlink dialog: change frame widtget from editbox to dropdown
Change-Id: Ibb8d5b14cf0f1524f6f554ee0ab77a14507330cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135657
Tested-by: Jenkins
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2022-06-13 14:31:45 +02:00
Olivier Hallot
1af6cba09e Fix grammar
Change-Id: I9914acada7df44548b0f1eece87445db0e69179d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135669
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-13 13:29:54 +02:00
Pranam Lashkari
9518a72e71 LOK: send state of Protect, UnsetCellsReadOnly
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I92675ed0033088233fb442138b39a3c8d663c614
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135454
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
(cherry picked from commit b8626e85a7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135389
Tested-by: Jenkins
2022-06-13 11:04:30 +02:00
Luboš Luňák
91b98efc2a make VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer() LOK-only
Because it's used only for LOK, and SvpSalVirtualDevice::CreateSurface()
otherwise wouldn't know whether to apply LOK DPI settings or not
(since this might be called for LOK tiled painting, when it should,
or it might be called from somewhere else while LOK is active, in which
case this should be handled normally). Getting that mismatched can cause
things like https://github.com/CollaboraOnline/online/issues/4834 .

Change-Id: I1df7b8a169c8ef2e799731a6695a032948536582
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135588
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-06-13 10:36:35 +02:00
Luboš Luňák
b7b06f28d5 avoid uninitialized data when handling WindowState
I get valgrind reports when I start LO with kf5 backend and
a maximized window, since in that case position and size are not
set (since the maximized state makes them irrelevant). The semantics
here seem to conflict, the caller of GetWindowState() sets flags
to say what data it wants, and SalFrame::GetWindowState() sets flags
to say what data it provides, but as can be seen here those aren't
necessarily the same. So actually use only those flags that are
in both sets.

Change-Id: I4559baab90d6f465382560549d52431b28119b3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135563
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-06-13 10:36:15 +02:00
Samuel Mehrbrodt
930ba0c1ec Fix comment
No need to mention gerrit URLs in code comments

Change-Id: I445f94211a3e660aa6e3482352f56ded7465e008
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135692
Tested-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2022-06-13 10:32:56 +02:00
Miklos Vajna
cad76135ef sw: prefix members of WW8DupProperties, WW8SelBoxInfo, WW8_WrPc and ...
... WW8_WrtBookmarks

See tdf#94879 for motivation.

Change-Id: I4a3ede4c48220fb61ee8ccb4bbfb955a46cf56d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135686
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-06-13 10:22:05 +02:00
Samuel Mehrbrodt
2fded499df Add XFillBackgroundItem::dumpAsXml
Change-Id: I21aa5ded0c9c114199c9d503b48437ec1a6171eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135691
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2022-06-13 10:18:49 +02:00
Adolfo Jayme Barrientos
3f817355a3 0.8 is too small on Windows; follow-up to 0ebbe1f00
Change-Id: Ie7b545acdb0648bccd39d452087c0b38c8c118e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135690
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-13 09:55:38 +02:00
Michael Weghorn
025477e244 vcl: Trigger IconView action on space key as well
Handle space key the same as the return key.
This e.g. allows to insert the selected element
into the formula this way in Math again after the
switch to IconView in

    commit d79c527c2a
    Date:   Wed Jun 1 11:20:12 2022 +0300

        Use IconView in SmElementsControl

gtk3 was already behaving that way without this
change in place.

Change-Id: I061b286723fedf023551afbb2184abc946b54b9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135592
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-06-13 09:55:23 +02:00
Adolfo Jayme Barrientos
f41b984255 TotD: Add a couple of missing words
The issue was flagged two years ago (!!) by Steen Rønnow.

Change-Id: I6d023bbe7c5392038f35b767acdf7f0ad0acd718
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135673
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-13 09:53:13 +02:00
Justin Luth
9a2e7bade3 tdf#145151 sw IsTableMode NumRule: unselected cells
...should not be affected when setting or deleting numbering.

This patch depends on follow-up patches to properly
detect if numbering is turned on or off in some cases.

This patch prevents numbering from "leaking" into the previous
cell if the cells were selected backwards.

Perhaps it would be better to fix the selection code itself
instead of handling all of these edge cases,
but doing that might have unintended consequences that
I wouldn't have any insight into. So this is safer.

Change-Id: I98e18d6056e93a4d89fdbe75b6237daca7832f41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134885
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-06-13 09:51:35 +02:00
Miklos Vajna
aa5824b2a6 tdf#149509 sw content controls: reject page break insertion
Similar to input fields, the intention is to keep the start and end of
(inline) content controls within the same text node, so just disable the
command in this context, as Word does.

Change-Id: Ib797ad164a3a36b4bbde4d686cde29adf6db96bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135599
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-06-13 08:09:51 +02:00
Miklos Vajna
c321498f91 sw content controls: reject typing inside checkbox or picture content controls
Content controls are editable by default (and not only editable, but
also capable of hosting rich text content), and Writer doesn't limit
the possibility to edit explicitly, either.

Certain content control types (checkbox and picture for now) limit the
hosted content though: checkbox overwrites the content on click and
picture is meant to host a single as-char anchored image. So far the
simple implementation Writer didn't enforce these limits, leading the
unexpected behavior when clicking on checkbox content controls (possibly
not only a checked/non-checked checkmark was toggled, but other content
was removed).

Fix the problem by making these content control types read-only: this is
what also Word does and this way you can't loose the content when you
can't enter it earlier.

We may want to also do this for dropdowns in the future, once combo
boxes will be supported.

Change-Id: I9d44206b3c719a64ec552f2fa0a076901094163e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135574
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-06-13 08:07:02 +02:00
Caolán McNamara
37dde4ef13 crashtesting: assert seen on loading forum-mso-de-79405.docx
Change-Id: I91200a8e409eec76de4ead22d200bf45f02b88b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135679
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-13 06:55:07 +02:00
Caolán McNamara
48de2ac373 crashtesting: assert seen on loading forum-mso-en-2633.pptx
probably since:

commit 855a56fea4
Date:   Fri May 13 08:12:17 2022 +0200

    tdf#148965 PPTX import: fix internal hyperlinks on shapes

Change-Id: I920cbbb5544cbe9d76f37b3d524c9ccebd426132
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135682
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-13 06:54:39 +02:00
Caolán McNamara
67a661800e crashtesting: fix crash seen on loading forum-mso-de-98993.xlsx
which may explain the backtraces seen with BitmapFilterStackBlur::filter
and BitmapBasicMorphologyFilter::filter in crashreporting

Change-Id: Ib55cde1603d354b8ca0e336a08fe2d73b548f73f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135680
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-13 06:54:11 +02:00
Caolán McNamara
7fee3f6243 Related: tdf#149490 OLE Object dialog should be modal
Change-Id: I909f2afbf149c4d92c97e04c2d8f93648e1e3162
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135655
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-13 06:53:31 +02:00
Adolfo Jayme Barrientos
8a09aa3eec Update git submodules
* Update helpcontent2 from branch 'master'
  to 9d11c15431aa1ae77c54d22e8a717cc7bdf3831b
  - Remove hardcoded product name from a translatable string
    
    Change-Id: I7788158520149c3b63b395fca089f6ecdd7b8f78
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135685
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-13 05:04:22 +02:00
Julien Nabet
c0e66cfab1 Fix context menu on image which doesnt display
- Launch Writer
- Insert any image in it
- Right click on it
=> Nothing displays
+ console shows:
warn:legacy.osl:67182:67182:vcl/source/window/menu.cxx:2750: PopupMenu::Execute: need a non-NULL window!

Regression from f71606c920
new loplugin:moveit

Change-Id: I89f5bfe2a3cd6a935b419d55c2f3e884c7eed2c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135681
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-06-12 20:20:24 +02:00
Caolán McNamara
90d4b93c5a crashtesting: forum-mso-de-92960 GetEnglishSearchFontName varying results
depending on if it's called once, or twice on the input string.

The first converts from Full-Width Characters to equivalent lower ASCII
range with non letters retained. And then the second iteration would
convert to lower case ASCII with non letters filtered out. Presumably
the intention is the Full-Width case should get directly to the same
results as multiple calls.

Change-Id: Idba4ebe04c907c160ee53abf6d5551550da032dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135678
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-12 18:31:47 +02:00
Caolán McNamara
55eeffe768 split out the code that extracts a lower-ascii version of a fontname
Change-Id: I77778ecd075712c41bd29324be090ab4a8351ab9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135677
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-12 18:31:22 +02:00
Olivier Hallot
ab37d64477 Add precisions to extended tip
Change-Id: I8d33d95dd1cb8a5b81ae837f78accad6060a94f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135667
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-12 13:18:20 +02:00
Olivier Hallot
3f2b5da839 Fix dialog name
Change-Id: I19c9157347488cf79acde6cf5af68baddc01a220
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135661
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-12 13:17:23 +02:00
Olivier Hallot
8c91f21b57 Bump docking3deffects.ui to latest Glade
Change-Id: I94fdc2d594f217a727e10fe69f5d7fcc746107bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135664
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-12 13:16:36 +02:00
Olivier Hallot
20ee72b916 Improve extended tip contents
Change-Id: Ie95d20bb1f5c8e153b3a9f9a088c835d5254880f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135665
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-12 13:16:01 +02:00
Olivier Hallot
a599fe4ac2 Bump envformatpage.ui to latest Glade
Change-Id: I74066e2c37a310c242d7222fce48fdc6f23a8a0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135658
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-12 13:14:30 +02:00
Maxim Monastirsky
881774e9e3 Related: tdf#125040 NB: rework print preview context
Current implementation broadcasts the context change before the
new controller was set on the frame (via XFrame::setComponent).
This isn't going to work for anything LayoutManager based, as
it responds to frame events by recreating all toolbars, so the
newly created toolbar won't see the context sent for the old
controller.

Solve that by delaying the context change to SfxShell::Activate,
like anywhere else in the codebase. And make NB listen to frame
events, so it could also switch listening to the new controller.

Also fixed a crash when switching to print preview in Writer with
the navigator in the sidebar being active. Ideally we shouldn't
even try to create sidebar panels in print preview, as the sidebar
as a whole is disabled. But left that for a future investigation.

Change-Id: I07759c676d2a2eb6f752fe778b559b15d2d759ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135492
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2022-06-12 10:38:27 +02:00
offtkp
932257c50c Add compression support for GZ through ZCodec
ZCodec uses zlib to deflate. That file has code
to allow for compressing to GZ but it's wrapped in defines.

There's places in code where there's need for zlib headers
(ie. svx/source/gallery2/codec.cxx:71) and there will be need
for gz header compression when EMZ/WMZ/SVGZ export support
is added.

Made compression functions care about mbGzLib bool. Also added
a SetCompressionMetadata function to set metadata which are otherwise
impossible to know (such as filename, which is needed in the header)

Change-Id: Ic01050262b0b15e0632564b139c66656afac4611
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135213
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-06-12 09:29:53 +02:00
Julien Nabet
988285410f tdf#98743: TIFF export uses 96dpi by default
Create a brand new odg with A4 format with just a rectangle or a smiley on it and export it in tiff.
Since we export the whole page, the size is:
- in cm: 21x29.7 (definition of A4)
- in inches: about 8.2677x11.6929

Taking a look at the value of the generated tiff, we got:
ImageWidth: 794
ImageLength: 1123

Notice that 794/8.2677 like 1123/11.6929 is about 96.
So resolution isn't 300x300 (like the code suggests) but 96x96.
Then let's remove all the useless mechanism to try to find the X and Y resolutions.

TIFF Documentation indicates that "XResolution" and "YResolution" tags use "RATIONAL" type which is defined as:
"Two LONGs: the first represents the numerator of a fraction; the second, the denominator."
Since we got a non floating value, we can use "1" for denominator and "96" for nominator.
With this we change TIFFWriter::ImplWriteResolution implementation to put the nominator first which corresponds to the resolution
passed by argument to the method and the denominator afterwards.

Finally, let's fix the name of the second of ImplWriteResolution, it's the resolution value, not the resolution unit.

Next step would be to use the dialog box for compressing options (like for png or jpg).
But for this I think we should take benefit of external lib "libtiff" since we now use it now for import.

Change-Id: I7dbd04e506e98c344f97e455955cdf2c2f6d83c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135631
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-06-11 21:35:14 +02:00