Commit graph

491452 commits

Author SHA1 Message Date
Laurent Balland
619500d691 Impress templates notes: correct preview size
In Notes mode, these templates have a preview of 4/3 ratio. Change them
in 16/9 like the slides
Unification of preview and notes position and size

Change-Id: Ie088b2226e438476cf421f6351c3bd617e7e6bbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159876
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
2023-11-30 20:05:59 +01:00
Armin Le Grand (allotropia)
596c53b06c Make ScOutputData::DrawSelectiveObjects compatible
The implementation was not aware of the used functionality
in the used call to SdrPageView::DrawLayer: The given
OutputDevice is *not* intended to hand over a new render
target, it's used to allow the mechanism(s) to *identify*
one of multiple possibe registered render targets (which are
usually OutputDevice/SystemWindow). It is even the default
to call these method(s) with a nullptr which means to repaint
all registered OutputDevices/SystemWindows. This is no
tooling intended to repaint parts of a View to 'any'
OutputDevice.

This is not very obvious and there are already other places
in the office that do that wrong and never got cleaned-up,
therefore also being fallbacks to not just let those cases
fail, but at least paint something (and give you a warning).

The caveat is that these fallbacks (e.g. in
SdrPageView::DrawLayer) have to use temporary SdrPaintWindow/
SdrPageWindow instances to make the paint work. Especially
when a temporary SdrPageWindow is used an evtl. existing
VC/VOC/OC structure will not be used and with it also not
the existing primitive decompositions.

I thought about bigger changes in PageView/PaintView/
PageWindow/PaintWindow area to sort that out, but this is
- despite being utterly necessary - too expensive for now,
keep a note about this needed change for the future.

For now I will just use an already (also for this purpose
already existing) 'compromize' that will do it for now.

Change-Id: I8c7ccee1deb0d69aad1d2145a7ac2039aca685b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160155
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2023-11-30 19:52:41 +01:00
Julien Nabet
96b15a13e9 resave with latest glade (columnpage.ui)
Change-Id: I248c742f5ff0395de0a15c95c1a439eeecee0b6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160165
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-11-30 19:24:22 +01:00
Laurent Balland
95779d24f0 tdf#158230 Growing Liberty template: restore preview
Move Title-Slide master page at first place to get it from Master page
Side panel
Move picture from background of master page to image at the back
Other updates:
- remove unused fonts
- remove English text "number"

Change-Id: I8e6567ec3661ebce8ccd08f97d3661b1994c3ee7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159691
Tested-by: Jenkins
Reviewed-by: Stéphane Guillou <stephane.guillou@libreoffice.org>
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
2023-11-30 18:07:58 +01:00
Laurent Balland
58a3ca303c tdf158206 Nature Illustration template background
On first master page, move picture from page background to an object at
the background

Change-Id: I0f288396f63230fc0fe524b3e30f6d1fc4d7ef11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159808
Tested-by: Jenkins
Reviewed-by: Stéphane Guillou <stephane.guillou@libreoffice.org>
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
2023-11-30 18:04:58 +01:00
Mike Kaganski
9c22a72a2f tdf#158459: call DeleteAndJoin in strict reverse order
The crash was caused by removal of a paragraph break (pointed to by a
PaM returned by pDelPam->GetNext()), that resulted in merge of the node
pDelPam pointed to, with the previous node. The destructin of the node
made pDelPam dangle. In debug builds, an assertion failed in destructor
of SwContentIndexReg. I.e., since the code always called DeleteAndJoin
on pDelPam->GetNext(), the processing went from second-to-last deletion
towards the begin of the document, and the last deletion (represented
by pDelPam) was handled last, when GetNext call wrapped.

This change makes sure that the order is strict, from last to first.

Change-Id: I5cb7fe2f06d4138d3c445eeca8220f0a87a82626
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160158
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-11-30 17:35:50 +01:00
Michael Weghorn
865033f18e android: Add make dep to update build ID more reliably
So far, the build ID in liboSettings.gradle, and
therefore in the about dialog in Android Viewer
was not reliably updated in incremental builds.

For example, after a full build, then

    git commit --allow-empty -m "Dummy"
    make

, the build ID would still refer to the commit
from the full build, not the new dummy commit.

Since `instdir/program/versionrc` on Linux
and `instdir/program/version.ini` on Windows
gets updated properly, add an optional make
dependency on these files, using a wildcard.

Change-Id: If3b1d4d811a5e4316a26bb17f246b66858dcf80f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160157
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 17:31:54 +01:00
Julien Nabet
13366298ed Gtk-WARNING Could not read property GtkBox:pack_type
...with value begin of type GtkPackType: Could not parse enum: 'begin'

To reproduce this:
- launch Writer
- menu Format
- choose Columns...

Change-Id: I591d925f1375ffbc5583ea8f6a4470a6721174c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160141
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-11-30 17:06:59 +01:00
Michael Weghorn
35b7aa3a86 android: Separate build ID and vendor from versionName
So far, the versionName for the LibreOffice APK/app bundle
included the build ID and vendor, was e.g.
"24.2.0.0.alpha1+/2972af9045a5/The Document Foundation".

That versionName would be split again to extract the build ID
and vendor to display them in the about dialog.

No longer include build ID and vendor in the `versionName`,
but use separate build config variables, similar to what
is done for the privacy policy.

This slightly simplifies the code for the about dialog.

But more importantly, the previous `versionName` scheme
would make it impossible to automate the F-Droid update
of the app, because the scheme is not compatible with
the expectations of F-Droid's update mechanism, see the
F-Droid merge request to update LibreOffice Viewer to 7.6.3 [1]
for more details, in particular the (eventually not merged)
commit [2] mentioning what manual steps would still be needed
when trying to semi-automate the update at least.

[1] https://gitlab.com/fdroid/fdroiddata/-/merge_requests/14080
[2] https://gitlab.com/fdroid/fdroiddata/-/merge_requests/14080/diffs?commit_id=bfc062a358dc574326a29f08e01c0e80cadd80cb

Change-Id: Ibede06d13095d8e83dcc88ee09a8a610d6a9de0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160150
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 14:40:24 +01:00
Michael Weghorn
da82f0b5de android: Drop trailing whitespace in Makefile
Change-Id: Ic68471bbbc18e5fa0a66dbf57e3e7156ef824e50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160149
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 14:40:17 +01:00
Michael Weghorn
3ee963afc7 android: Simplify vendor info handling for about dialog
Similar to

    Change-Id: Iaa78f5a6020bea4ed80a1b41d3b23cc8d313813c
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Thu Nov 30 12:00:52 2023 +0100

    android: Simplify version info handling for about dialog

, also simplify the handling of the vendor info text by
retrieving the text from the string resource right away.

Change-Id: I7d56b1814454be2bc8d13e01265f0a0db6d865be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160147
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 14:40:08 +01:00
Michael Weghorn
4958e21332 android: Simplify version info handling for about dialog
* Don't set and retrieve the placeholder text in/from
  the TexView in the about dialog, but use the string
  resource directly.
* Add the HTML code directly in the string resource,
  rather than having to fiddle with that in the Java
  code.

With this in place, only the version name and the
commit hash need to be replaced.

Since there is no placeholder text in the text view,
it's also no longer necessary to explicitly set an
empty string in case of an exception.

Change-Id: Iaa78f5a6020bea4ed80a1b41d3b23cc8d313813c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160146
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 14:39:59 +01:00
Stephan Bergmann
f824c4f23c Extended loplugin:ostr
Change-Id: I987d6d60ca2d1e8ed8b8cde1e0c7996c0fff71b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160006
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-11-30 14:35:13 +01:00
Michael Weghorn
266a0e72e8 android: Remove 'build' dir in 'clean' make target
Add the build dir (`android/source/build`) to the
directories to be removed when cleaning.

Previously, this was't cleaned, which could be seen
e.g. by the fact that a fresh build would result in
this warning being shown

    > Task :compileStrippedUIEditingDebugJavaWithJavac
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.

while a

    make android.clean
    make android

after a full build wouldn't.

Change-Id: I00a4f8b1fda9fbefb3b8f806b1997eceded117fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160145
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 14:18:22 +01:00
Julien Nabet
b4ff86cf73 Use "set logging enabled on/off" instead of deprecated "set logging on/off"
With GNU gdb (Debian 13.2-1) 13.2, I noticed this trace on console when using --backtrace

Warning: 'set logging on', an alias for the command 'set logging enabled', is deprecated.
Use 'set logging enabled on'.

Change-Id: Ic03911ea94aff57dee8f594744147302ef01a1ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160143
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-11-30 13:47:53 +01:00
Khaled Hosny
fdbf404073 vcl: Fix comment
The comment is saying the opposite of what the code is doing.

Change-Id: I16cc44b56f90f622cedb87b9107d17b940665896
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160144
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
2023-11-30 13:18:02 +01:00
Michael Weghorn
68ccc26f64 android: Update com.google.android.material:material to 1.10.0
Depends on the previous commit

    Change-Id: I2778d8c181daa92530c769a168a9e186b6ea079c
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Wed Nov 29 13:33:33 2023 +0100

        android: Update compileSdk/targetSdkVersion to 34

Change-Id: Ibdb7e002d599d42256290febc422cf86b2694d46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160087
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:18:01 +01:00
Michael Weghorn
97166cb9e0 android: Update compileSdk/targetSdkVersion to 34
API version 33 refers to Android 14.

I didn't notice anything requiring changes
when going over the release notes for all apps running on
Android 14 [1] and apps targeting Android 14 [2].

(Taking a look whether making use of the new possibility to
request/grant partial access to photos and videos [3]
for the "Insert" -> "Select Photo" feature
and testing the app with the newly available 200% text
scaling [4] might make sense at some point, but is unrelated
to bumping the versions as done in this commit.)

[1] https://developer.android.com/about/versions/14/behavior-changes-all
[2] https://developer.android.com/about/versions/14/behavior-changes-14
[3] https://developer.android.com/about/versions/14/behavior-changes-all#partial-photo-video-access
[4] https://developer.android.com/about/versions/14/behavior-changes-all#non-linear-font-scaling

Change-Id: I2778d8c181daa92530c769a168a9e186b6ea079c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160086
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:52 +01:00
Michael Weghorn
8fea1b2038 android: Update Android Gradle Plugin to 8.1.4
This is a prerequisite for updating the compile and target
SDK versions to API level 34, which requires and AGP minimum
version of 8.1.1.

Change-Id: I27d12ec3c9bc3dac8a5df18459a57f1a1e990197
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160085
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:44 +01:00
Michael Weghorn
cebf1b1187 android: Use 'compileSdk' instead of deprecated 'compileSdkVersion'
See [1] and [2]. From what I can see, they are equivalent
for our use.

This addresses a "'compileSdkVersion' is deprectaed." warning shown
in Android Studio.

[1] https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/dsl/CommonExtension#compilesdk
[2] https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/dsl/CommonExtension#compilesdkversion

Change-Id: I9a7416d8b3750a5f8f8281c6e226fc7bbe665776
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160084
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:37 +01:00
Michael Weghorn
c33c375b90 android: No longer extract native libs
As described in more detail in

    commit 45fbfbfeae
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Mar 27 17:04:37 2020 +0100

        tdf#131622 android: Extract native libs again

, extracting native libraries was necessary for the NSS
library to be able to load modules like `libnssckbi.so`
at runtime. Without this, opening password-protected
files would fail.

However, this has in the meanwhile been addressed
differently in the following commit (probably in the
context of the online-based/Collabora Online app), so
extracting libs is no longer needed:

    commit 16a7f98f99
    Author: Mert Tumer <mert.tumer@collabora.com>
    Date:   Wed Sep 30 17:14:59 2020 +0300

        Fix libnssckbi not found error on Android

        This error causes Android App to be unable to
        open Password-protected documents.

        Change-Id: Iacbacb1c780025752e2447db325b075c58947818
        Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
        Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103658
        Tested-by: Jenkins
        Reviewed-by: Andras Timar <andras.timar@collabora.com>

Therefore, no longer extract the libraries, which also addresses
addresses this warning shown during the build:

    > Task :processStrippedUIEditingDebugMainManifest
    .../android/source/AndroidManifest.xml:16:9-41 Warning:
            android:extractNativeLibs should not be specified in this source AndroidManifest.xml file. See https://d.android.com/guide/topics/manifest/application-element#extractNativeLibs for more information.
    The AGP Upgrade Assistant can remove the attribute from the AndroidManifest.xml file and update the build file accordingly. See https://d.android.com/studio/build/agp-upgrade-assistant for more information.

Change-Id: I867beea0bce8398806375048e87a152e1348d016
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160079
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:30 +01:00
Michael Weghorn
fa1f867cac tdf#124480 android: Set bg color for calc formula bar
For the layout containing the Calc address/formula bar,
explicitly set a background color that matches the theme.

Otherwise, those text views would be using white font on
white background when using dark theme, making the text
unreadable.

Change-Id: I5fdf9e04f8bb331ca6a57bf3046a7ebb9ccb0d1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160078
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:22 +01:00
Michael Weghorn
c82a594da3 tdf#124480 android: Avoid using color attr requiring API 23
Using "colorBackgroundFloating" requires API level 23 [1],
but our current minimum API level is 16 (when building with
NDK 23).

Therefore, define an own color `background_floating` instead
and use the correspodning color values from the material theme
(`background_floating_material_{dark,light}` depending on whether
dark/night mode is enabled or not.

This makes the app work again in a quick test with an x86 AVD
with API level 16 instead of crashing on startup.

Change-Id: I7b8378b42e9fc7430ec4ed263d4cb8b42027a930
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160077
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:14 +01:00
Michael Weghorn
322f8e8cb7 tdf#124480 android: Use an actual button for "Select file to open"
Instead of using a TextView and setting `?attr/colorButtonNormal`
for the background color, just use a button right away, which also
makes sure that the proper button color is used and avoids
using `colorButtonNormal` only available from API level 21 on. [1]

Also drop the extra `LinearLayout` parent that was only containing
this one TextView.

While at it, drop an unused import.

[1] https://developer.android.com/reference/android/R.attr#colorButtonNormal

Change-Id: Ie2f7e2646d20f4051fb2513fb8fd72572ce19217
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160076
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:07 +01:00
Michael Weghorn
31a689b831 tdf#124480 android: Use themed color for icon on start activity
Similar to how

        Change-Id I2061878067d21dcd743ad6ca8d1018db323755d6
        Author: Michael Weghorn <m.weghorn@posteo.de>
        Date:   Tue Nov 28 14:22:54 2023 +0100

            tdf#124480 android: Use themed color for more icons

did for the icons in the toolbars, use the themed color for
the directory icon in the start activity as well.
While at it, switch to using the same shade of gray that
the toolbar icons also use.
And rename the icon to drop the "_grey" suffix, since this
is now themed and no longer using a hard-coded color.

Change-Id: I9fcf51b712a01aab3b9754bcfbd817c89171a64f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160075
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:17:00 +01:00
Michael Weghorn
59093ecb1c tdf#124480 android: Rename icons no longer using hard-coded color
As already mentioned in

    Change-Id I2061878067d21dcd743ad6ca8d1018db323755d6
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue Nov 28 14:22:54 2023 +0100

        tdf#124480 android: Use themed color for more icons

, do this:

> Given the icons are no longer hard-coded to be black,
> the files with a "_black" suffix will be renamed in
> a follow-up commit. (Separate commit to keep the
> diff clearer.)

Change-Id: Ie2d3433934569dc97530a35d88bda01802af96b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160074
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:16:51 +01:00
Michael Weghorn
f37dcb43c0 tdf#124480 android: Use themed color for more icons
These icons used in the toolbars were previously using a
hard-coded fill color.
Most of them were using black, but `ic_line` and `ic_rect`
used in the "Insert" tab of the bottom toolbar, were
previously using a lighter gray than the other items in there
for no apparent reason.

Switch all of them to use the themed `toolbar_foreground`
color that other icons are also using.

Together with

    Change-Id Ic699fd1cecc607bd5e748648113336fe045e72b1
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue Nov 28 13:13:12 2023 +0100

        tdf#124480 android: Override icon color for dark theme

, this makes these icons use a light color when using
the dark system theme.

Given the icons are no longer hard-coded to be black,
the files with a "_black" suffix will be renamed in
a follow-up commit. (Separate commit to keep the
diff clearer.)

Change-Id: I2061878067d21dcd743ad6ca8d1018db323755d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160073
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:16:41 +01:00
Michael Weghorn
fbca561b97 tdf#124480 android: Drop unused icons
Change-Id: I811d9190c0c163db93ec981855f735d47e071cbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160071
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:16:34 +01:00
Michael Weghorn
26d06d6c88 tdf#124480 android: Override icon color for dark theme
Add a `values-night/colors.xml` that can be used to
override the colors specified in `values/colors.xml`
specifically for the dark theme.

Specify a light color for `toolbar_foreground`,
which is the color used for (most) toolbar icons,
both for the top-level as well as the bottom
toolbar.

This makes most icons show up in proper contrast
when using dark mode. Others are not making use of
the color defined here and will have to be looked
into separately.

Change-Id: Ic699fd1cecc607bd5e748648113336fe045e72b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160070
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:16:27 +01:00
Michael Weghorn
84996f452f tdf#124480 android: Use theme bg color for bottom toolbars
Instead of hard-coding the background color
for the 2 toolbars shown at the bottom
(`toolbar_bottom` and the color picker), use
"colorPrimary" from the theme.

Stop overriding "colorPrimary" in
`LibreOfficeTheme.Toolbar`, which would otherwise
result in a hard-coded white color being used again.

This makes those toolbars show up in a darker color
when dark theme is enabled.

Stop hard-coding the font color of the items in
the "Style" tab in the bottom toolbar to black, but
use the primary font color instead, so a light color
is automatically used when using the dark theme.

Change-Id: Ib09ca47e8695903cdfa9f4eb100dc88ecae652a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160069
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:16:17 +01:00
Michael Weghorn
d82a9cb8d6 tdf#124480 android: Support dark theme
Support dark theme by inheriting from the
corresponding "AppCompat.DayNight" themes rather than
forcing the use of a light theme by using the
"AppCompat.Light" variants, s.a. [1].

With this in place, the app will automatically use a
dark theme for the Android UI controls when that's
enabled in the Android system settings.

Toolbars and menus mostly look as expected.
The bottom toolbar will be handled separately.
Icons will also have to be adapted in a follow-up
step to provide for better contrast, since they're
currently designed for light mode/white background.

[1] https://developer.android.com/develop/ui/views/theming/darktheme#themes-styles

Change-Id: Ia08edcc9d22b93caa67b146dcf90ee5fd02ee550
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160068
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:16:10 +01:00
Michael Weghorn
9e7df5bdf2 tdf#124480 android: Replace hard-coded bg color with themeable one
or drop explicitly setting background color where the
one from the parent widget should be used.

See also
https://developer.android.com/develop/ui/views/theming/darktheme#themes-styles

Change-Id: I21dc4b7c45e2cc5add96d603abe5e781d4e09992
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160067
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:16:02 +01:00
Michael Weghorn
10cdb83428 tdf#124480 android: Use MaterialToolbar and drop manual bg color
This ensures these 2 toolbars will also use the correct color
in dark mode once support for that is added in a subsequent
commit.

Change-Id: Idcea5096c4e4bdf8ddc6b28df0fc6df05074980b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160066
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-30 12:15:54 +01:00
Xisco Fauli
3f22de75b3 Update git submodules
* Update translations from branch 'master'
  to 994b9356742bd38a188a376d41fca1bd9d0fa396
  - update translations for master
    
    and force-fix errors using pocheck
    
    Change-Id: I0f72d1c24f7afc10c6e48b7c6eb8cac811c7a325
2023-11-30 11:55:45 +01:00
Heiko Tietze
48ba98a51f Resolves tdf#158412 - Don't show chevron in quick find bar
Change-Id: I50f0bb7d8a406b77baccc626ca99b656d170ecf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160093
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-11-30 11:41:38 +01:00
Heiko Tietze
fe946f86ad Bump Glade version
Change-Id: If440010790e170fa1c88b8cbdef5f7eaa3efd686
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160108
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-11-30 11:40:59 +01:00
Caolán McNamara
aa0604e81d cppunit test for notification of note position changes on row/col changes
Change-Id: I32ed5cd249400f71903e7aa848ba63d03abbd9b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160139
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-11-30 11:38:46 +01:00
Caolán McNamara
d9e9caf2ea No kit notification of note position changes on insert/delete row
while there is for insert/delete col.

Inserting/Deleting a column will explicitly update comments as part of a
bulk operation and block the drawing layer from updating any existing
captions before that. A side-effect of this is that the note captions
are generated for all comments in the moved cols when this happens.

While with a row the drawing layer is allowed update existing caption
positions and doesn't generate any new captions.

Presumably there's a missed optimization for insert/delete cols to
not generate extra captions that didn't exist before the change, but
leave that aside for now and add a UpdateNoteCaptions that just
notifies of note position changes when rows are inserted/deleted and
continue to piggy back on the note caption update for insert/delete
cols.

Change-Id: I4d76d15aee1de9ea5553e90b2051354bce02b1db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160138
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-11-30 11:38:39 +01:00
Stephan Bergmann
baf36dc7ca Extended loplugin:ostr: hwpfilter
Change-Id: I1cd5359c192897d3d497eec977de10cedcc8f7b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160120
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-11-30 09:53:24 +01:00
Stephan Bergmann
f20425e6de Extended loplugin:ostr: oox
Change-Id: Ie6db1edbad5305e4935a9fdc03dab36861bf2c8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160112
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-11-30 09:53:07 +01:00
Stephan Bergmann
a492775fe2 Extended loplugin:ostr: i18nlangtag
Change-Id: I9e5b989f0508d1479572523ab6929828f0f1b85f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160119
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-11-30 09:00:14 +01:00
Stephan Bergmann
52a8d560d8 Extended loplugin:ostr: l10ntools
Change-Id: I259867d548c3a6b5322d38584270a325b93f1776
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160117
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-11-30 09:00:00 +01:00
Stephan Bergmann
bc012f13d5 Extended loplugin:ostr: codemaker
Change-Id: I7addfbde8ee8603eb8ca692debb2ac369347c6c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160127
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-11-30 08:59:49 +01:00
László Németh
93ab1bc6be tdf#158419 sw: revert lost unit test testOfz64109
which was removed accidentally by commit 20cbe88ce5
"tdf#119908 tdf#158419 sw smart justify: fix cursor position".

Change-Id: Ia96d9d8d8980dbf05aaa58d454e2d9b568555d81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160129
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-11-30 08:35:03 +01:00
Miklos Vajna
eb077be775 CppunitTest_sw_ww8import: avoid external fonts
- sw/qa/extras/ww8import/data/tdf124601.doc:
  - replace 'Open Sans Light' with 'Noto Sans'
  - replace 'Open Sans' with 'Noto Sans'

Change-Id: I3f3018d9d2a216b8ddb1d26cab845b27f0f7e9f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160128
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-11-30 08:26:39 +01:00
Noel Grandin
1932a549b2 use more SwTwips in CalcSpacing
Change-Id: Ic7409c2993014f97531f3d77533cf7a82712707a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160122
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-30 07:01:43 +01:00
DaeHyun Sung
f86f7f6e15 Update git submodules
* Update dictionaries from branch 'master'
  to fa49c03d49f52ea0efc9adf589ff707433878d53
  - Update the Korean Dictionaries: ko-KR
    
    Update Korean dictionary file (ko_KR.dic) by DaeHyun Sung (2023.05.14)
    Also, update readme description
    
    Change-Id: Iebaad8c33d8a94bfa4e7427c0a3d218ea4d7c109
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/151732
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
    Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-11-30 06:46:54 +01:00
Kevin Suo
34fe1610cb Sync LC_OutLineNumberingLevel of zh-CN with en-US locale
The previous order makes the UI tooltip does not match with the
numbering style shown, per tdf#148023.

Also add a commonly used Chinese-specific outline numbering style.
The other old styles with the Chapters and Sections etc are removed
because they are useless.

Change-Id: I585cd0e704af35125c7c38561f500e83f1a465dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160081
Tested-by: Jenkins
Reviewed-by: Kevin Suo <suokunlong@126.com>
2023-11-30 02:52:27 +01:00
Kevin Suo
6fffa9fdf2 tdf#152583 follow-up: Sync LC_NumberingLevel of zh-CN with en-US locale
The previous order makes the UI tooltip does not match with the
numbering style shown, per tdf#148023.

Also re-arrange the remaining Chinese-specific styles to make the most
commonly used ones come first.

Change-Id: I913180b1ca385e8a604b16b63ebfa130aca059c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160080
Tested-by: Jenkins
Reviewed-by: Kevin Suo <suokunlong@126.com>
2023-11-30 02:52:03 +01:00
Patrick Luby
3b942f6efa Related: tdf#155092 translate Y coordinate for height differences
When in live resize, the NSView's height may have changed before
the CGLayer has been resized. This causes the CGLayer's content
to be drawn just above or below the top left corner of the view
so translate the Y coordinate by any difference between the
NSView's height and the CGLayer's height.

Change-Id: Iac13fa8374977e098f8311c55e182ef5a5ebec30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160131
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@libreoffice.org>
2023-11-30 01:10:36 +01:00