/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
bool QtInstanceBuilder::IsUIFileSupported(const OUString& rUIFile, const weld::Widget* pParent)
{ // set of supported UI files // // The idea is to implement functionality needed for a specific UI file/dialog // in QtInstanceBuilder, then add it to the set of supported UI files here. // This allows looking at one .ui file at a time and only having to implement // what is relevant for that particular one, without having to implement the full // weld API at once. static std::unordered_set<OUString> aSupportedUIFiles = {
u"cui/ui/aboutdialog.ui"_ustr,
u"cui/ui/breaknumberoption.ui"_ustr,
u"cui/ui/fontfeaturesdialog.ui"_ustr,
u"cui/ui/fontfragment.ui"_ustr,
u"cui/ui/insertrowcolumn.ui"_ustr,
u"cui/ui/javastartparametersdialog.ui"_ustr,
u"cui/ui/namedialog.ui"_ustr,
u"cui/ui/numberdialog.ui"_ustr,
u"cui/ui/objecttitledescdialog.ui"_ustr,
u"cui/ui/optlingupage.ui"_ustr,
u"cui/ui/optnewdictionarydialog.ui"_ustr,
u"cui/ui/password.ui"_ustr,
u"cui/ui/pastespecial.ui"_ustr,
u"cui/ui/querydeletedictionarydialog.ui"_ustr,
u"cui/ui/qrcodegen.ui"_ustr,
u"cui/ui/querydialog.ui"_ustr,
u"cui/ui/searchattrdialog.ui"_ustr,
u"cui/ui/securityoptionsdialog.ui"_ustr,
u"cui/ui/selectpathdialog.ui"_ustr,
u"cui/ui/similaritysearchdialog.ui"_ustr,
u"cui/ui/spelloptionsdialog.ui"_ustr,
u"cui/ui/splitcellsdialog.ui"_ustr,
u"cui/ui/tipofthedaydialog.ui"_ustr,
u"cui/ui/toolbartabpage.ui"_ustr,
u"cui/ui/uipickerdialog.ui"_ustr,
u"cui/ui/uitabpage.ui"_ustr,
u"cui/ui/welcomedialog.ui"_ustr,
u"cui/ui/whatsnewtabpage.ui"_ustr,
u"cui/ui/zoomdialog.ui"_ustr,
u"dbaccess/ui/savedialog.ui"_ustr,
u"dbaccess/ui/tabledesignsavemodifieddialog.ui"_ustr,
u"filter/ui/testxmlfilter.ui"_ustr,
u"filter/ui/xmlfiltertabpagegeneral.ui"_ustr,
u"filter/ui/xmlfiltertabpagetransformation.ui"_ustr,
u"filter/ui/xmlfiltersettings.ui"_ustr,
u"filter/ui/xsltfilterdialog.ui"_ustr,
u"modules/BasicIDE/ui/gotolinedialog.ui"_ustr,
u"modules/scalc/ui/groupbydate.ui"_ustr,
u"modules/scalc/ui/inputstringdialog.ui"_ustr,
u"modules/scalc/ui/insertcells.ui"_ustr,
u"modules/scalc/ui/movecopysheet.ui"_ustr,
u"modules/scalc/ui/optdlg.ui"_ustr,
u"modules/scalc/ui/selectsource.ui"_ustr,
u"modules/scalc/ui/showsheetdialog.ui"_ustr,
u"modules/schart/ui/insertaxisdlg.ui"_ustr,
u"modules/simpress/ui/presentationdialog.ui"_ustr,
u"modules/smath/ui/alignmentdialog.ui"_ustr,
u"modules/smath/ui/fontdialog.ui"_ustr,
u"modules/smath/ui/fontsizedialog.ui"_ustr,
u"modules/smath/ui/fonttypedialog.ui"_ustr,
u"modules/smath/ui/savedefaultsdialog.ui"_ustr,
u"modules/smath/ui/smathsettings.ui"_ustr,
u"modules/smath/ui/spacingdialog.ui"_ustr,
u"modules/spropctrlr/ui/taborder.ui"_ustr,
u"modules/swriter/ui/authenticationsettingsdialog.ui"_ustr,
u"modules/swriter/ui/columnwidth.ui"_ustr,
u"modules/swriter/ui/editcategories.ui"_ustr,
u"modules/swriter/ui/endnotepage.ui"_ustr,
u"modules/swriter/ui/footendnotedialog.ui"_ustr,
u"modules/swriter/ui/footnotepage.ui"_ustr,
u"modules/swriter/ui/inforeadonlydialog.ui"_ustr,
u"modules/swriter/ui/insertbreak.ui"_ustr,
u"modules/swriter/ui/inserttable.ui"_ustr,
u"modules/swriter/ui/printoptionspage.ui"_ustr,
u"modules/swriter/ui/renameobjectdialog.ui"_ustr,
u"modules/swriter/ui/rowheight.ui"_ustr,
u"modules/swriter/ui/splittable.ui"_ustr,
u"modules/swriter/ui/wordcount.ui"_ustr,
u"sfx/ui/helpmanual.ui"_ustr,
u"sfx/ui/inputdialog.ui"_ustr,
u"sfx/ui/licensedialog.ui"_ustr,
u"sfx/ui/password.ui"_ustr,
u"sfx/ui/printeroptionsdialog.ui"_ustr,
u"sfx/ui/querysavedialog.ui"_ustr,
u"sfx/ui/safemodequerydialog.ui"_ustr,
u"svt/ui/addresstemplatedialog.ui"_ustr,
u"svt/ui/printersetupdialog.ui"_ustr,
u"svt/ui/restartdialog.ui"_ustr,
u"svx/ui/compressgraphicdialog.ui"_ustr,
u"svx/ui/docrecoverysavedialog.ui"_ustr,
u"svx/ui/fontworkgallerydialog.ui"_ustr,
u"svx/ui/deletefooterdialog.ui"_ustr,
u"svx/ui/deleteheaderdialog.ui"_ustr,
u"svx/ui/gotopagedialog.ui"_ustr,
u"svx/ui/safemodedialog.ui"_ustr,
u"uui/ui/password.ui"_ustr,
u"vcl/ui/openlockedquerybox.ui"_ustr,
u"vcl/ui/printerdevicepage.ui"_ustr,
u"vcl/ui/printerpaperpage.ui"_ustr,
u"vcl/ui/printerpropertiesdialog.ui"_ustr,
u"vcl/ui/printprogressdialog.ui"_ustr,
u"xmlsec/ui/macrosecuritydialog.ui"_ustr,
u"xmlsec/ui/securitylevelpage.ui"_ustr,
u"xmlsec/ui/securitytrustpage.ui"_ustr,
u"writerperfect/ui/exportepub.ui"_ustr,
};
// These UI files are used in multiple places and only supported within // native Qt dialogs/widgets static std::unordered_set<OUString> aSupportedWithQtParent = {
u"cui/ui/appearance.ui"_ustr,
u"svt/ui/datewindow.ui"_ustr,
};
if (aSupportedUIFiles.contains(rUIFile)) returntrue;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.