aboutsummaryrefslogtreecommitdiff
path: root/source/gl/sc/source/ui/drawfunc.po
blob: 755ab88abf01ac305d199136c4ccae0885a48769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
#. extracted from sc/source/ui/drawfunc
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.libreoffice.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
"POT-Creation-Date: 2013-11-20 13:02+0100\n"
"PO-Revision-Date: 2013-12-15 19:44+0000\n"
"Last-Translator: Xosé <xosecalvo@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: gl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: LibreOffice\n"
"X-Accelerator-Marker: ~\n"
"X-POOTLE-MTIME: 1387136648.0\n"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_RENAME_OBJECT\n"
"SID_RENAME_OBJECT\n"
"menuitem.text"
msgid "Name..."
msgstr "Nome..."

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_TITLE_DESCRIPTION_OBJECT\n"
"SID_TITLE_DESCRIPTION_OBJECT\n"
"menuitem.text"
msgid "Description..."
msgstr "Descrición..."

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_ARRANGESUB.SUBMENU_OBJARRANGE\n"
"SID_FRAME_UP\n"
"menuitem.text"
msgid "Bring ~Forward"
msgstr "~Traer cara a adiante"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_ARRANGESUB.SUBMENU_OBJARRANGE\n"
"SID_FRAME_DOWN\n"
"menuitem.text"
msgid "Send Back~ward"
msgstr "~Enviar cara a atrás"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_ARRANGESUB\n"
"SUBMENU_OBJARRANGE\n"
"menuitem.text"
msgid "~Arrange"
msgstr "Dis~por"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_ANCHORSUB.SUBMENU_ANCHOR\n"
"SID_ANCHOR_PAGE\n"
"menuitem.text"
msgid "To P~age"
msgstr "Á páxin~a"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_ANCHORSUB.SUBMENU_ANCHOR\n"
"SID_ANCHOR_CELL\n"
"menuitem.text"
msgid "To ~Cell"
msgstr "Á ~cela"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_ANCHORSUB\n"
"SUBMENU_ANCHOR\n"
"menuitem.text"
msgid "An~chor"
msgstr "~Ancorar"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"MN_ALIGNSUB\n"
"SID_OBJECT_ALIGN\n"
"menuitem.text"
msgid "A~lignment"
msgstr "A~liñamento"

#: drformsh.src
msgctxt ""
"drformsh.src\n"
"RID_POPUP_DRAWFORM\n"
"string.text"
msgid "Popup menu for form objects"
msgstr "Menú emerxente para obxectos de formulario"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_RESET\n"
"SID_TEXT_STANDARD\n"
"menuitem.text"
msgid "~Default"
msgstr "Pre~determinado"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR.RID_MN_FORMAT_STYLE\n"
"SID_SET_SUPER_SCRIPT\n"
"menuitem.text"
msgid "~Superscript"
msgstr "~Superíndice"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR.RID_MN_FORMAT_STYLE\n"
"SID_SET_SUB_SCRIPT\n"
"menuitem.text"
msgid "S~ubscript"
msgstr "~Subíndice"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR\n"
"RID_MN_FORMAT_STYLE\n"
"menuitem.text"
msgid "~Style"
msgstr "E~stilo"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR.RID_MN_FORMAT_ALGN\n"
"SID_ALIGNLEFT\n"
"menuitem.text"
msgid "~Left"
msgstr "~Esquerda"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR.RID_MN_FORMAT_ALGN\n"
"SID_ALIGNRIGHT\n"
"menuitem.text"
msgid "~Right"
msgstr "~Dereita"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR.RID_MN_FORMAT_ALGN\n"
"SID_ALIGNCENTERHOR\n"
"menuitem.text"
msgid "~Centered"
msgstr "~Centrado"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR.RID_MN_FORMAT_ALGN\n"
"SID_ALIGNBLOCK\n"
"menuitem.text"
msgid "~Justified"
msgstr "~Xustificado"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR\n"
"RID_MN_FORMAT_ALGN\n"
"menuitem.text"
msgid "~Alignment"
msgstr "~Aliñamento"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TEXT_ATTR\n"
"RID_MN_FORMAT_LINESPACE\n"
"menuitem.text"
msgid "~Line Spacing"
msgstr "Entre~liñado"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_EDITLNK\n"
"SID_DRAW_HLINK_EDIT\n"
"menuitem.text"
msgid "~Hyperlink..."
msgstr "~Ligazón..."

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_DELLNK\n"
"SID_DRAW_HLINK_DELETE\n"
"menuitem.text"
msgid "~Remove Hyperlink"
msgstr "~Retirar hipeligazón"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_DRWTXTATTR\n"
"SID_DRAWTEXT_ATTR_DLG\n"
"menuitem.text"
msgid "Te~xt..."
msgstr "Te~xto..."

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ASSIGNMACRO\n"
"SID_ASSIGNMACRO\n"
"menuitem.text"
msgid "Assig~n Macro..."
msgstr "Atri~buír macro..."

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ORIGINALSIZE\n"
"SID_ORIGINALSIZE\n"
"menuitem.text"
msgid "~Original Size"
msgstr "Tamaño ~orixinal"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_RENAME_OBJECT\n"
"SID_RENAME_OBJECT\n"
"menuitem.text"
msgid "Name..."
msgstr "Nome..."

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_TITLE_DESCRIPTION_OBJECT\n"
"SID_TITLE_DESCRIPTION_OBJECT\n"
"menuitem.text"
msgid "Description..."
msgstr "Descrición..."

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_MIRRORSUB.SUBMENU_OBJMIRROR\n"
"SID_MIRROR_VERTICAL\n"
"menuitem.text"
msgid "~Vertically"
msgstr "~Verticalmente"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_MIRRORSUB.SUBMENU_OBJMIRROR\n"
"SID_MIRROR_HORIZONTAL\n"
"menuitem.text"
msgid "~Horizontal"
msgstr "~Horizontal"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_MIRRORSUB\n"
"SUBMENU_OBJMIRROR\n"
"menuitem.text"
msgid "~Flip"
msgstr "~Voltear"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ARRANGESUB.SUBMENU_OBJARRANGE\n"
"SID_FRAME_UP\n"
"menuitem.text"
msgid "Bring ~Forward"
msgstr "~Traer cara a adiante"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ARRANGESUB.SUBMENU_OBJARRANGE\n"
"SID_FRAME_DOWN\n"
"menuitem.text"
msgid "Send Back~ward"
msgstr "~Enviar cara a atrás"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ARRANGESUB\n"
"SUBMENU_OBJARRANGE\n"
"menuitem.text"
msgid "~Arrange"
msgstr "Dis~por"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ANCHORSUB.SUBMENU_ANCHOR\n"
"SID_ANCHOR_PAGE\n"
"menuitem.text"
msgid "To P~age"
msgstr "Á páxin~a"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ANCHORSUB.SUBMENU_ANCHOR\n"
"SID_ANCHOR_CELL\n"
"menuitem.text"
msgid "To ~Cell"
msgstr "Á ~cela"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ANCHORSUB\n"
"SUBMENU_ANCHOR\n"
"menuitem.text"
msgid "An~chor"
msgstr "~Ancorar"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"MN_ALIGNSUB\n"
"SID_OBJECT_ALIGN\n"
"menuitem.text"
msgid "A~lignment"
msgstr "A~liñamento"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"RID_DRAW_OBJECTBAR\n"
"string.text"
msgid "Drawing Object Bar"
msgstr "Barra de obxectos de debuxo"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"RID_TEXT_TOOLBOX\n"
"string.text"
msgid "Text Object Bar"
msgstr "Barra de obxectos de texto"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"RID_GRAPHIC_OBJECTBAR\n"
"string.text"
msgid "Image Object Bar"
msgstr "Barra de obxectos de imaxe"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"RID_POPUP_DRAW\n"
"string.text"
msgid "Pop-up menu for drawing objects"
msgstr "Menú emerxente para obxectos de debuxo"

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"RID_POPUP_GRAPHIC.RID_POPUP_CHART\n"
"SID_EXPORT_AS_GRAPHIC\n"
"menuitem.text"
msgid "Export as Image.."
msgstr "Exportar como imaxe..."

#: objdraw.src
msgctxt ""
"objdraw.src\n"
"RID_POPUP_GRAPHIC\n"
"RID_POPUP_DRAWTEXT\n"
"string.text"
msgid "Pop-up menu for text objects"
msgstr "Menú emerxente para obxectos de texto"
vate/kendy/condformat-api LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
AgeCommit message (Collapse)Author
2023-11-16tdf#146386 deprecate, remove usage of Inet::Settings::ooInetFTPProxyNameMichael Stahl
* officecfg: deprecate Inet::Settings::ooInetFTPProxyName/Port * ucbhelper: stop handling these settings * sfx2: remove SID_INET_FTP_PROXY_NAME and SID_INET_FTP_PROXY_PORT and usage from SfxApplication::GetOptions() * shell: remove proxy config code from backends * stoc: the JavaVM would have its "ftp.proxyHost" properties set based on officecfg values; remove that * sysui,vcl: remove protocol from KDE desktop files and file picker Change-Id: Iba02676cf6e519e2fa60ba925209436d38e75f49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159500 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-03-22gtk3_kde5: Don't call deprecated QFileDialog::setConfirmOverwriteMichael Weghorn
QFileDialog documentation says [1]: > This property is obsolete. It is provided to keep old source code > working. We strongly advise against using it in new code. > > This property holds whether the filedialog should ask before accepting a > selected file, when the accept mode is AcceptSave > > Use setOption(DontConfirmOverwrite, !enabled) or > !testOption(DontConfirmOverwrite) instead. Documentation on `QFileDialog::DontConfirmOverwrite` [2] says: > QFileDialog::DontConfirmOverwrite 0x00000004 Don't ask for > confirmation if an existing file is selected. By default confirmation is > requested. It already said that 10 years ago. Given that's the default, there's no need to set it explicitly at all. [1] https://doc.qt.io/qt-5/qfiledialog-obsolete.html#confirmOverwrite-prop [2] https://doc.qt.io/qt-5/qfiledialog.html#Option-enum Change-Id: I77a0022dc4128d157ba49c9aa8de447bb2c08379 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131923 Tested-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2020-02-03tdf#75280 Convert inappropriate use of sal_uIntPtr to better integer typesEda Nur Var
Since KDE is a desktop environment, I have infered that the class which the _winId variable belongs to makes user interaction, such as file picking from a window, possible. I have checked related functions and seen that winId is the id number of windows on the screen and the window whose Id is defined as 0 is avaliable to user interaction. Hence _winId could be an integer type instead of a pointer. Change-Id: I98897e55342630e3a0e8b98fc081e14541621ae2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87469 Reviewed-by: Milian Wolff <milian.wolff@kdab.com> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-01-14Silence -Werror,-Wdeprecated-declarations for nowStephan Bergmann
...as seen with qt5-qtbase-devel-5.13.2-1.fc31.x86_64: > vcl/unx/gtk3_kde5/kde5_filepicker.cxx:233:18: error: 'setConfirmOverwrite' is deprecated: Use setOption(DontConfirmOverwrite, !enabled) instead [-Werror,-Wdeprecated-declarations] > _dialog->setConfirmOverwrite(true); > ^ > /usr/include/qt5/QtWidgets/qfiledialog.h:174:5: note: 'setConfirmOverwrite' has been explicitly marked deprecated here > QT_DEPRECATED_X("Use setOption(DontConfirmOverwrite, !enabled) instead") > ^ Change-Id: I322dda4353a69746cc80afade8206c3cecee8a96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86799 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-10-25tdf#42949 Fix IWYU warnings in vcl/unx/gtk3 and gtk3_kde5/Gabor Kelemen
Also recheck vcl/source after recent reworks and f-u-i updates. Some new blacklist entries were needed for keeping existing fw declarations in headers. Add blacklist entries for removals causing no-pch build failures that were reverted in: a3b03ba1316b1ec0a9b0a3b45b96dc0a49aa9f1f 75d924db95559cff5f699bad8fe34bb0aeac0ff6 b57052ec2bbe548ca495a32b4bfce1d1c71caf33 Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I71227806288b68ef2a2cd56244899fd56bd0db8d Reviewed-on: https://gerrit.libreoffice.org/81163 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-09-28"KWINDOWSYSTEM_DEPRECATED static void setMainWindow" (take 2)Julien Nabet
/home/julien/lo/libreoffice/vcl/unx/gtk3_kde5/kde5_filepicker.cxx: In member function ‘virtual bool KDE5FilePicker::eventFilter(QObject*, QEvent*)’: /home/julien/lo/libreoffice/vcl/unx/gtk3_kde5/kde5_filepicker.cxx:271:51: error: ‘static void KWindowSystem::setMainWindow(QWidget*, WId)’ is deprecated [-Werror=deprecated-declarations] 271 | KWindowSystem::setMainWindow(w, _winId); | ^ In file included from /usr/include/KF5/KWindowSystem/KWindowSystem:1, from /home/julien/lo/libreoffice/vcl/unx/gtk3_kde5/kde5_filepicker.cxx:24: /usr/include/KF5/KWindowSystem/kwindowsystem.h:255:42: note: declared here 255 | KWINDOWSYSTEM_DEPRECATED static void setMainWindow(QWidget *subwindow, WId mainwindow); | ^~~~~~~~~~~~~ There's a new method we could use but it's only possible when baseline will include kwindowsystem >= 5.62 Change-Id: Idd3dca98e15585077c20848613fce72c5daae0e2 Reviewed-on: https://gerrit.libreoffice.org/79781 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-09-28Revert "KWINDOWSYSTEM_DEPRECATED static void setMainWindow"Julien Nabet
the function is only available from kwindowsystem 5.62, so more recent that our baseline. This reverts commit 94e22f5a2fcc9f193ce0370805156ad5320d4141. Change-Id: I6957a7d4438cd57c4a0eab29a9c615d45eaa2235 Reviewed-on: https://gerrit.libreoffice.org/79776 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2019-09-27KWINDOWSYSTEM_DEPRECATED static void setMainWindowJulien Nabet
/home/julien/lo/libreoffice/vcl/unx/gtk3_kde5/kde5_filepicker.cxx: In member function ‘virtual bool KDE5FilePicker::eventFilter(QObject*, QEvent*)’: /home/julien/lo/libreoffice/vcl/unx/gtk3_kde5/kde5_filepicker.cxx:271:51: error: ‘static void KWindowSystem::setMainWindow(QWidget*, WId)’ is deprecated [-Werror=deprecated-declarations] 271 | KWindowSystem::setMainWindow(w, _winId); | ^ In file included from /usr/include/KF5/KWindowSystem/KWindowSystem:1, from /home/julien/lo/libreoffice/vcl/unx/gtk3_kde5/kde5_filepicker.cxx:24: /usr/include/KF5/KWindowSystem/kwindowsystem.h:255:42: note: declared here 255 | KWINDOWSYSTEM_DEPRECATED static void setMainWindow(QWidget *subwindow, WId mainwindow); | ^~~~~~~~~~~~~ Change-Id: I6c8d4277b06d503b402042fbf234e9300db423c5 Reviewed-on: https://gerrit.libreoffice.org/79751 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2019-07-22kf5/gtk3_kde5 fpickers: Drop unused 'allowRemoteUrls'Michael Weghorn
Change-Id: I591bf9fbe6e22bedda5a94334130a4f674cd66e6 Reviewed-on: https://gerrit.libreoffice.org/76110 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2019-07-21tdf#125922 rename kde5 to kf5 + plasma5Jan-Marek Glogowski
Just as the gtk3 plugin isn't named GNOME, rename kde5 to kf5, as it is based on the KDE frameworks 5 libraries. This also includes: * a convenience alias to load the kf5 VCL plugin in case someone requests the kde5 plugin. * keep convenience kde5 configure switch, but warn about it * rename detected desktop from kde5 to plasma5 Change-Id: I6764a05b81a5edbf284484c234fee2649aacf735 Reviewed-on: https://gerrit.libreoffice.org/75313 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2019-04-27tdf#123750 gtk3_kde5: Show removable devices in file dialogMichael Weghorn
Do the same for the gtk3_kde5 VCL plugin as commit 2c69c93fdb871809825fe8b9aff40b7afb093be8 does for the kde5 one. Change-Id: I6fc91d1dbe133bd905c033c9fce7d48c0b6464a0 Reviewed-on: https://gerrit.libreoffice.org/71384 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2019-04-25gtk3_kde5: Make folder selection more intuitiveMichael Weghorn
When 'QFileDialog::Directory' is set, the native Plasma QFileDialog does not consider the clicked directory to be selected, but rather the base directory shown in the dialog, s. https://bugs.kde.org/show_bug.cgi?id=406464 . Therefore don't set the option when in a KDE Plasma desktop environment (which the kde5 VCL plugin also doesn't do). This works around the above issue in the Plasma desktop integration. Change-Id: Ib3d0978ab56b6e50ee45f7ad997ec051b35faf54 Reviewed-on: https://gerrit.libreoffice.org/71223 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2019-01-31tdf#123077 gtk3_kde5: Set KFileWidget's custom widget only onceMichael Weghorn
Since the event filter is only used to set the custom widget in the KFileWidget, it can and needs to be removed again once this has been done; which also avoids crashes. (s. https://gerrit.libreoffice.org/#/c/67185/ for more infos, where the same thing is done for kde5) Change-Id: I5c719fb17510916b4730ed5c00bb638df2f183e3 Reviewed-on: https://gerrit.libreoffice.org/67184 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2019-01-30tdf#122752 gtk3_kde5: Use non-native fpicker for non-Plasma desktopsMichael Weghorn
Adding the custom widgets to the native dialog currently depends on the native dialog using a KFileWidget, which is just the case for the native QFileDialog implementation on Plasma/KDE5. In order not to lose custom controls for non-Plasma desktops, fall back to using the non-native QFileDialog there and adding the custom controls to its layout. This was mostly taken over from Qt5FileDialog. (This is a similar approach as that taken for the kde5 VCL plugin in https://gerrit.libreoffice.org/#/c/67106/ ). Adding the controls to the layout returned by 'QFileDialog::layout()' cannot be used for the native dialog as well, since a nullptr is returned in this case. From QFileDialog doc: > By default, a platform-native file dialog will be used if the platform > has one. In that case, the widgets which would otherwise be used to > construct the dialog will not be instantiated, so related accessors such > as layout() and itemDelegate() will return null. You can set the > DontUseNativeDialog option to ensure that the widget-based > implementation will be used instead of the native dialog. Change-Id: I75fbe7731da28d0dc7df878f4c57e141d4d89902 Reviewed-on: https://gerrit.libreoffice.org/67111 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Michael Weghorn <m.weghorn@posteo.de>
2018-11-09tdf#121276 gtk3_kde5: Don't prevent creating new filesMichael Weghorn
This takes over for gtk3_kde5 what was done for kde5 in commit c0f45c89063fa5c4334ff9e624d24d48638ffb4d. Change-Id: Ieca71498bd0cc00ca07b83f6e1178d983169d5be Reviewed-on: https://gerrit.libreoffice.org/63172 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2018-08-12tdf#119133: Fix initial file and folder selectionKatarina Behrens
what d7fc00e1f7ab7a44e6102a and 1af4ab72e2488515fcaede already does for kde5 Change-Id: I924bdc5cfd6a12ff7bdbeef36d606c03307cb99b Reviewed-on: https://gerrit.libreoffice.org/58832 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-02-16gtk3_kde5: Checkboxes on the left, texts on the rightKatarina Behrens
QFormLayout does it the other way round (text left, checkbox right) and it looks odd, so use QGridLayout Change-Id: Iff4255f695ce17561bac44e496a3567e1b438581 Reviewed-on: https://gerrit.libreoffice.org/49815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2018-01-25Properly restore size of KDE5 file picker dialogMilian Wolff
The event filter we installed prevented the show event from reaching the KDEPlatformFileDialogHelper::show method. This prevented the dialog from being restored to the size chosen by the user previously. Change-Id: I7af457f19f59d27bd104f8f70d9f4767da6641ee Reviewed-on: https://gerrit.libreoffice.org/48591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-01-23Various loplugin in --enable-gtk3-kde5 codeStephan Bergmann
Change-Id: I006e7fddcb58edb597867e0dd6f2b81ddac3457e
2018-01-23Support opening of (some) remote URLs through the KDE file dialogMilian Wolff
LO already supports http, https, webdav and webdavs through the WebDAVContentProvider. Ftp is supported via FTPContentProvider and then finally we have the GIOContentProvider that can potentially support SMB, if the dependencies for that are met. We now configure the KDE file dialog to allow these remote protocols. Note that this filtering depends on https://phabricator.kde.org/D10024 and https://phabricator.kde.org/D10025 to have any effect. Then we rewrite the URLs we receive from KIO to a format that is supported by LO. Most notably, we prepend `vnd.sun.star.` to the webdav URL schemes, such that they get picked up by the WebDAVContentProvider. Then finally, we clear the username from the smb:// URLs we get from KIO, as that prevents GIO from opening them. In all cases, the user will get prompted a second time for the credentials required to access the remote resource. This is unfortunate, but better than nothing. In the future, we may solve this issue through either a separate KIO UCP or by getting support for the FDO Secret Service specification in KWallet. Change-Id: I91df28434b115639c2698968e2a672b3320bf8e2 Reviewed-on: https://gerrit.libreoffice.org/48350 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-01-23Introduce gtk3_kde5 vcl pluginMilian Wolff
This is a hybrid plugin which mostly wraps the GTK3 vclplug. Only the file and folder picker are replaced by KDE dialogs. This gives us a well-maintained GTK LO base with basic KDE integration with minimum effort. To prevent issues with nested event loops, the KDE dialogs are launched from a separate process, the new lo_kde5filepicker helper executable. A trivial stdin/stdout IPC mechanism transfers the data between LO and the Qt/KDE helper. The usage of an external process also allows us to copy'n'paste between LO and the KDE file dialog without freezing the UI, as would happen when one would do this in-process. This is in general also the architecture applied by the kmozillahelper, which is used to integrate KDE file dialogs into Firefox. While the KDE dialog is shown, the GTK3 main window is disabled and close requests are ignored. The KDE dialog in turn also sets the LO window as transient parent. Together, this makes the illusion perfect and the KDE dialog behaves like a modal dialog. This works properly also with multiple LO main windows, and only individual windows will get blocked as one would expect. Functionality wise, most of the features of the KDE4 dialog are supported. You can pick files and folders, and save files under a new name. Some custom checkbox widgets are supported, but lists, buttons and preview widgets are not yet implemented. Also, loading remote files via KIO is not possible yet. Change-Id: I1a97cf7c272307a19ace4222d5f12253bc722829 Reviewed-on: https://gerrit.libreoffice.org/47718 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>