Commit graph

502375 commits

Author SHA1 Message Date
Miklos Vajna
8c7ad32314 svx: prefix members of SdrDragResize
See tdf#94879 for motivation.

Change-Id: I90f3a09e5dee630ead50954b1d8c5848b9319949
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178123
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-12-09 09:56:51 +01:00
Tomaž Vajngerl
917b039c99 pdf: forward declare IPDFEncryptor
To compile less when changing PDFEncryptor.

Change-Id: I56e19e12494488fedb929998f8e6d0ff3bf8008c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176456
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177875
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-12-09 08:41:48 +01:00
Tomaž Vajngerl
9b6be690a2 pdf: cleanup and improve PDFEncryptionProperties
Add clear method to clear the variables that we usually want to
be cleared. Also rename Encrypt to canEncrypt - which is more
clear what it means. Cleanup initializers.

Change-Id: I96735eb6f73a699fb0759496fc8781bcff3854de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176455
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177874
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-12-09 08:41:40 +01:00
Tomaž Vajngerl
6e049433e4 pdf: refactor and move encryption init. to a common function
This is needed because we have to separate the init. for both
encryption methods and we have to init both when the password is
entered. Currently we only prepared this, to make this possible
when we introduce the other encryption method.

Change-Id: Id6556ddc6a6218164a93bb689f03d6ec6dbad8b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176454
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177873
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-12-09 08:41:29 +01:00
Noel Grandin
29c32bf317 make conversion operator explicit
so less invisible behaviour

Change-Id: I497763cb4be554ddbd00831458f162d9d975742e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178115
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-12-09 07:11:32 +01:00
Mike Kaganski
16a534c617 Simplify OInputSeekStream
Change-Id: Ie8da09ad8f3e4425aaeb87f907e47a4e2148f164
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178118
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-09 05:26:39 +01:00
Mike Kaganski
e512091e89 Simplify InteractionContinuation and derivatives
Change-Id: Ib7294cc09255f7563ae14488ab7fb56d02092dc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178117
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-09 05:26:24 +01:00
Bogdan Buzea
a1b8b44bf9 tdf#131332: Replace custom date formats with ISO 8601
Change-Id: Ia9307e299f5cbf131b62e8936bc65aa8d7af8739
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177496
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-12-09 00:56:34 +01:00
Olivier Hallot
e67465f817 Update git submodules
* Update helpcontent2 from branch 'master'
  to 2fd0b5ff3a8599ee49a04b36c9203a03e6295f54
  - Add Tagalog to online help dropdown list
    
    Change-Id: Ie22b89529b3937a36806f87b3e9a049a14bc85b9
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/178120
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-12-09 00:04:24 +01:00
Caolán McNamara
e693261fbb tdf#144407 save the current window state on new document
so a new window of the same type will open with the same settings

Change-Id: I7ee4b476d207d1dbd538ce6c054d83f7281f0309
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178119
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-12-08 22:07:01 +01:00
Mike Kaganski
045a98c9ee Simplify SwAccessible*
Change-Id: I2994161bfa8fa3a88b3e66a9f4f12e4de6d5b025
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178096
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 20:19:47 +01:00
Mike Kaganski
76cf7c6fc0 Simplify UcbContentProviderProxy
Change-Id: I7366e31dc167707adf2c614049cee852e44d7ac1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178097
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-08 20:19:34 +01:00
Mike Kaganski
2ef6b7f9db Drop some OTypeCollection uses
Change-Id: Ia1467c44998961f5e0820fb4d0621a4189d49d9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178095
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 19:07:31 +01:00
Mike Kaganski
f8aa78379c Simplify ProgressMonitor, StatusIndicator
Change-Id: I1c17fa54e865c2750407783adbb2f73c095dbbfd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178094
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-08 17:49:59 +01:00
Mike Kaganski
98352eda9b Simplify ScCellRangesBase and descendants
Change-Id: I2416ab8a9263bd7858e0d62055067b3c6132e0b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178093
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 17:24:06 +01:00
Ilmari Lauhakangas
06e81f5783 Update readme files after Windows runtime baseline bump to 10
Change-Id: I9b26bed6eb02f4df59c1ffaa5d28aa50aa1cb6c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178091
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-12-08 17:04:19 +01:00
Caolán McNamara
f74aa7c201 cid#1635773 Dereference after null check
and

cid#1635777 Dereference after null check

pass ScDocument& around when we know it can't be null,
drop mpDoc and redundant null checks

Change-Id: Ia7efe71c561ff084fbb2dc3cbabd02852a656099
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178046
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-12-08 16:56:15 +01:00
Mike Kaganski
b083e27de5 GetCurrentPackageFullName is available in the baseline Windows 10
Change-Id: Ie5d46f6a53af9a9a68ae98d4de28021fa1ee7eaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178088
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 16:56:00 +01:00
Caolán McNamara
46cfd8d2a7 cid#1636664 Dereference after null check
Change-Id: I916212471a80417a582192920427999ee6a425d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178078
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-12-08 16:55:53 +01:00
Mike Kaganski
4a09777d8f Windows 10 is the baseline, drop checks for older versions
Change-Id: I78c3b1e6efc73095cd11cecc4ffc30acba02f943
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178089
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 16:31:23 +01:00
Mike Kaganski
fdd0730052 tdf#138615: canonicalize the paths with wildcards, to process long paths
Now that we discontinued support of Windows 7, PathCchCanonicalizeEx is
definitely available.

Change-Id: I38b0ff5b6810dfbd6ee6fe84693f71b8392a1808
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178086
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 16:13:13 +01:00
Ilmari Lauhakangas
04957a8d32 Drop BCryptKeyDerivation.patch.1 from xmlsec
Change-Id: I161f3cfc334d6be0263536800cb028b8e7310823
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178080
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 15:37:54 +01:00
Ilmari Lauhakangas
de3baea91f Drop vcl/win/gdi/dw-extra.h after baseline bump
Change-Id: Ib303b35837fd73cc3dea77e5095f6d00c9dfa1bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178082
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-12-08 15:32:05 +01:00
Ilmari Lauhakangas
599dc2a504 Remove Windows 7, 8 and 8.1 from driver blocklist code
Change-Id: If3138b9b603c21a9cc6fedc08a7db144fb9f00ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178077
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 14:58:47 +01:00
Ilmari Lauhakangas
7dd9d6525a Drop windows7.patch.1 from pdfium
Change-Id: Idb458e3e65bc22d148cc68e496aa0dda32fec2a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178079
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 14:57:21 +01:00
Marc Mondesir
143e89dbf8 tdf#119745: Fix touchpad scrolling for Slides and Pages panes.
Use fractional lines scrolled to calculate distance to scroll view,
instead of jumping forward or backward a full page every call based on
sign. Also fixes existing bugs: horizontal pane can scroll too far to
right; and snapping pane from vertical to horizontal can break scrolling
if view partially scrolled.

Change-Id: I0ead4710a296aac26f1cf1a0fc48e6ea403271a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177836
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-12-08 14:24:47 +01:00
Caolán McNamara
18399240f2 cid#1607671 Data race condition
Change-Id: Id2e87001b77087a072705ba7ffa1a2190220a082
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178074
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-12-08 14:02:45 +01:00
Caolán McNamara
32767d081e cid#1607247 Overflowed constant
Change-Id: I9648bc8a41a44a98fd8d0d78e889228948e38a34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178045
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-12-08 12:33:30 +01:00
Andreas Heinisch
813f34d672 tdf#79298 - FORMATTING: Copy/paste: import strikethrough attribute
Change-Id: I0539e87f2a87f869e234ed7c944b9da6bd0e82bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177847
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2024-12-08 12:00:37 +01:00
Mike Kaganski
c4dee829f3 Simplify SvtFilePicker
Change-Id: I2b6d1589c25cb1fa4711f088641afe1bfe1d7411
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178072
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-08 10:12:42 +01:00
Michael Weghorn
495e38c853 tdf#130857 qt weld: Implement QtInstanceTreeView::selected_foreach
This gets used in the "Tools" -> "XML Filter Settings" dialog
in Writer when selecting multiple rows in the tree view,
then clicking the "Save as Package" button.

The result with SAL_VCL_QT_USE_WELDED_WIDGETS=1 and the
qt6 VCL plugin in XMLFilterSettingsDialog::onSave looks
as expected with this change in place (variables `aFilters`
and `nFilters` contain the selected filters and total
count of these when observed with a breakpoint after the call to
`m_xFilterListBox->selected_foreach`).

The method still triggers an assert later in a WIP
branch where support for that dialog is declared,
because `QtInstanceWindow::GetXWindow` is called,
but not implemented yet.

Change-Id: Iab47f391106132b5a6ee03fd2ad1902d493c0999
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178070
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-12-08 09:56:19 +01:00
Michael Weghorn
aad48b06e7 tdf#130857 qt weld: Add tree view iter and implement some methods
Add a new QtInstanceTreeIter struct as the weld::TreeIter
implementaton for QtInstanceTreeView.
It uses the QModelIndex of the item it points to.

Add QtInstanceTreeView::modelIndex helper methods
to convert both, an int row index and a QtInstanceTreeIter
to a QModelIndex.
This can be used to deduplicate code when (re)implementing
the methods that have two variants that either take an
int row index or a TreeIter input param.

For QtInstanceTreeView::get_id, add a new variant that
takes a QModelIndex and move the existing logic from
the implementation for the int param there and reuse
it to implemetnat the variant taking a TreeIter param
as well.

Implement a few more methods taking or returning
a weld::TreeIter.

Change-Id: I0508ad14a43214faccc6a3cba208400031bb231c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178069
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-12-08 09:55:52 +01:00
Michael Weghorn
254743e93f tdf#130857 qt weld: Implement QtInstanceTreeView::remove
Side note: In Writer's "Tool" > "XML Filter Settings" dialog,
trying to always delete the first entry works 3 times
(when using a fresh profile), but doing it again after then
doesn't remove the entry from the treeview, but the entry is
still gone when closing and reopening the dialog.

That's the same with gtk3 however, weld::TreeView::remove
doesn't get called. So it's not a problem in the weld::TreeView
implementations, but probably in XMLFilterSettingsDialog
or some other underlying logic.

Change-Id: Ic91b3d1d62b66574b9e0710b17b2d9606d27a0fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178068
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-12-08 09:55:44 +01:00
Michael Weghorn
044f2113dc tdf#130857 qt weld: Report selected tree view row only once
Now that support for multiple columns has been implemented
in QtInstanceTreeView, iterating over all selected model
indices and appending their row index to the vector
results in the row being appended once fore each column
of the selected row. (Index seen twice in `aRows` in
XMLFilterSettingsDialog::updateStates while debugging
another issue in the "Tools" > "XML Filter Settings" dialog
with the qt6 VCL plugin and SAL_VCL_QT_USE_WELDED_WIDGETS=1).

Use QItemSelectionModel::selectedRows (with the default column
index of 0) instead of QItemSelectionModel::selectedIndexes
to prevent that.

Change-Id: Ic8caa299549d954ed844c39c4b2ba957edf2b404
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178067
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-12-08 09:55:36 +01:00
Michael Weghorn
9c33476730 tdf#130857 qt weld: Fix incorrect param order for row/col
In QtInstanceTreeView::get_id, the nPos param is the
row number, but was incorrectly passed as the
second parameter to QStandardItemModel::index [1]
which is for the column. Swap the params to fix that.

Passing incorrectly would trigger a crash in a WIP branch
for Writer's "Tools" -> "XML Filter Settings" dialog when
clicking on the second row, as the ID data is only set
for the item in the first, not the second column,
so `pInfo` in XMLFilterSettingsDialog::updateStates
would be null.

Backtrace:

    1 XMLFilterSettingsDialog::updateStates xmlfiltersettingsdialog.cxx 183 0x7f3eb862194e
    2 XMLFilterSettingsDialog::SelectionChangedHdl_Impl xmlfiltersettingsdialog.cxx 153 0x7f3eb8621859
    3 XMLFilterSettingsDialog::LinkStubSelectionChangedHdl_Impl xmlfiltersettingsdialog.cxx 151 0x7f3eb861e8cd
    4 Link<weld::TreeView&, void>::Call link.hxx 111 0x7f3eeb997aa1
    5 weld::TreeView::signal_selection_changed weld.hxx 989 0x7f3eeb99733c
    6 QtInstanceTreeView::handleSelectionChanged QtInstanceTreeView.cxx 781 0x7f3eeb98cb2d
    7 QtPrivate::FunctorCall<std::integer_sequence<unsigned long>, QtPrivate::List<>, void, void (QtInstanceTreeView:: *)()>::call(void (QtInstanceTreeView:: *)(), QtInstanceTreeView *, void * *)::{lambda()#1}::operator()() const qobjectdefs_impl.h 127 0x7f3eeb998141
    8 QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<unsigned long>, QtPrivate::List<>, void, void (QtInstanceTreeView:: *)()>::call(void (QtInstanceTreeView:: *)(), QtInstanceTreeView *, void * *)::{lambda()#1}>(void * *, QtPrivate::FunctorCall<std::integer_sequence<unsigned long>, QtPrivate::List<>, void, void (QtInstanceTreeView:: *)()>::call(void (QtInstanceTreeView:: *)(), QtInstanceTreeView *, void * *)::{lambda()#1}&&) qobjectdefs_impl.h 65 0x7f3eeb998079
    9 QtPrivate::FunctorCall<std::integer_sequence<unsigned long>, QtPrivate::List<>, void, void (QtInstanceTreeView:: *)()>::call(void (QtInstanceTreeView:: *)(), QtInstanceTreeView *, void * *) qobjectdefs_impl.h 126 0x7f3eeb997fab
    10 QtPrivate::FunctionPointer<void (QtInstanceTreeView:: *)()>::call<QtPrivate::List<>, void>(void (QtInstanceTreeView:: *)(), QtInstanceTreeView *, void * *) qobjectdefs_impl.h 174 0x7f3eeb997f2d
    11 QtPrivate::QCallableObject<void (QtInstanceTreeView:: *)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void * *, bool *) qobjectdefs_impl.h 545 0x7f3eeb997e56
    12 QtPrivate::QSlotObjectBase::call qobjectdefs_impl.h 461 0x7f3eeaa5ce22
    13 doActivate<false> qobject.cpp 4139 0x7f3eeab1c644
    14 QMetaObject::activate qobject.cpp 4199 0x7f3eeab121b3
    15 QMetaObject::activate<void, QItemSelection, QItemSelection> qobjectdefs.h 306 0x7f3eeaf93da5
    16 QItemSelectionModel::selectionChanged moc_qitemselectionmodel.cpp 390 0x7f3eeaf85b76
    17 QItemSelectionModel::emitSelectionChanged qitemselectionmodel.cpp 2029 0x7f3eeaf87a2f
    18 QItemSelectionModel::select qitemselectionmodel.cpp 1372 0x7f3eeaf872f9
    19 QTreeViewPrivate::select qtreeview.cpp 4016 0x7f3ee906f2ec
    20 QTreeView::setSelection qtreeview.cpp 2393 0x7f3ee906eaae
    ... <More>

Change-Id: Icf6b3004ab95991da69c0ff86201421d620aaa43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178066
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-12-08 09:55:29 +01:00
Mike Kaganski
c91edf5e57 SvtRemoteFilePicker doesn't extend SvtFilePicker's interface list
Change-Id: Iad25fa30a550494ba5a27d30f703ee6748fd338c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178071
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-08 08:23:20 +01:00
Michael Weghorn
4d91b67e1f tdf#130857 qt weld: Evaluate button box orientation
Set orientation to vertical if that's specified
in the .ui file instead of using the default of
horizontal.

This is used by the button box on the right hand side
of the "Tools" -> "XML Filter Settings" dialog.

Change-Id: I64460037649dcd24897c7a5d7148430836702edc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178064
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-12-08 01:22:39 +01:00
Michael Weghorn
77f4c8c78a tdf#130857 qt weld: Set tree view column header title
Make the `extractTitle` helper function used by
VclBuilder a static method in the BuilderBase
base class for reuse by QtBuilder.

In QtBuilder::makeObject, when encountering a "GtkTreeViewColumn"
object, add a new column to the QTreeView and set the
column title in the underlying model using
QStandardItemModel::setHeaderData.
Return the parent (tree view).
(Returning no object would cause WidgetBuilder::handleObject
to call WidgetBuilder::insertObject again, and thus result
in every column being processed twice, i.e. the double
amount of columns would be inserted).

Adjust QtInstanceTreeView::clear to no longer
call QStandardItemModel::clear [1], as that would
not only remove the "actual" items, but also the
header items, i.e. the column titles would get lost
as well. Remove all rows instead.

With this in place, the tree view in Writer's
"Tool" -> "XML Filter Settings" dialog has the
correct data + title set on open in a WIP branch
where support for that dialog is declared in
QtInstanceBuilder. (Other aspects in the dialog
still need to be addressed however.)

[1] https://doc.qt.io/qt-6/qstandarditemmodel.html#clear

Change-Id: I59956c007ed73cddb299ad2374afd88199ddc94d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178063
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-12-08 01:22:33 +01:00
Michael Weghorn
36ab4833c9 tdf#130857 qt weld: Implement QtInstanceTreeView::columns_autosize
QTreeView::resizeColumnToContents [1] looks like the Qt
equivalent for GTK's gtk_tree_view_columns_autosize [2].

[1] https://doc.qt.io/qt-6/qtreeview.html#resizeColumnToContents
[2] https://docs.gtk.org/gtk3/method.TreeView.columns_autosize.html

Change-Id: I4771896fb932834f51fa48ceaa3557181f474fcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178062
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-12-08 01:22:26 +01:00
Michael Weghorn
23ea73587a tdf#130857 qt weld: Implement QtInstanceTreeView::set_text
For now, require that the actual column index is passed.

The weld::TreeView::set_text doc mentions

    // col index -1 sets the first text column

, but that is not supported yet, so assert a different
index is passed for now.
Revisit when implementing support for a dialog that actually
makes use of this.

Change-Id: I8ba6e965ba22542bf3151548200b92c8c6b085d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178061
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-12-08 01:22:20 +01:00
Mike Kaganski
a26173266d Simplify a bit
Change-Id: I7ecbf2c1e4b08175dabd29782a40dd2f25fe040c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178058
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-08 00:00:43 +01:00
Stephan Bergmann
8075798b22 Fix check for further exotic protocols
...that were added in 59891cd398 "look at
'embedded' protocols for protocols that support them"

Change-Id: I42836d6fd27cd99e39ab07e626053f002a2651f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178047
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-12-07 22:22:23 +01:00
Mike Kaganski
05eb50c396 Simplify unocontrols::BaseControl hierarchy
Change-Id: I7c690cd429b2ac52f8aac602b4c9129bdd774b09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178052
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-07 22:14:59 +01:00
Mike Kaganski
cd9976d2b1 Avoid needless temporary Sequence creation
Change-Id: Ia0b6df8b329136292917c94ee5d5e69a0931a200
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178056
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-07 22:13:44 +01:00
Mike Kaganski
8fdef54870 Simplify OPropertyContainer::getBaseTypes
Change-Id: I438d510e05329163dabdc8ed42d3a97d49e19ef9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178055
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-07 21:55:58 +01:00
Mike Kaganski
831700824d Simplify getTypes implementations
Change-Id: Ia0f7e8497f628b17a108a4dd8ffebc60745b7d6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178054
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-07 21:55:52 +01:00
Mike Kaganski
75f5c610de Simplify OPreparedStatement
Change-Id: I1c36ec85d1acafc5c6ef33ea250ac6027d604da7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178053
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-07 21:55:46 +01:00
Mike Kaganski
ec0a49ecc7 Windows 7-8.1 support was removed, prevent install on these old systems
There is no simple "Windows is 10 or newer" check in MSI, with the
Microsoft policy of "you don't need to know real Windows version".
See also https://developercommunity.visualstudio.com/t/detect-a-windows-version-from-msi/412198

The values that MSI sees (e.g. on my Win11) are:

Property(C): VersionNT = 603
Property(C): VersionNT64 = 603
Property(C): WindowsBuild = 9600

So those can't be used for the check. I use the WINMAJORVER that is
read from registry (Software\Microsoft\Windows NT\CurrentVersion).

There is no more need to check and install UCRT; it was dropped.

Change-Id: Ic02d6aeb965e9684bafd4357f969980f77000e73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178049
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-07 20:06:46 +01:00
Mike Kaganski
762d76d9a4 Simplify avmedia::SoundHandler
Change-Id: I253d6eda265e3e93d4b85ac35376a96676a68553
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178050
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-07 20:06:37 +01:00
Mike Kaganski
04c62acc63 Use std::initializer_list, C-style array instead of more expensive Sequence
Change-Id: Ibb268268926cc91f595f19026f6cee4b5a74a8bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178038
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-07 19:10:08 +01:00