tdf#38890 Remove hard-coded URLs in source Files

Project URLs are extracted to the Common.xcu files
and read in the source files.

Change-Id: I0da72ff033af6c155195b2f91177e7bf7d554daa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149115
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
This commit is contained in:
Adoche Onaji 2023-03-11 19:14:30 +01:00 committed by Stephan Bergmann
parent 1983695a64
commit b1dc8d302f
2 changed files with 7 additions and 1 deletions

View file

@ -23,6 +23,10 @@ $(eval $(call gb_CppunitTest_set_include,svx_dialogs_test,\
$$(INCLUDE) \ $$(INCLUDE) \
)) ))
$(eval $(call gb_CppunitTest_use_custom_headers,svx_dialogs_test,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_libraries,svx_dialogs_test, \ $(eval $(call gb_CppunitTest_use_libraries,svx_dialogs_test, \
basegfx \ basegfx \
comphelper \ comphelper \

View file

@ -19,6 +19,7 @@
#include <svx/dialmgr.hxx> #include <svx/dialmgr.hxx>
#include <svx/strings.hrc> #include <svx/strings.hrc>
#include <svx/FileExportedDialog.hxx> #include <svx/FileExportedDialog.hxx>
#include <officecfg/Office/Common.hxx>
#include <com/sun/star/task/OfficeRestartManager.hpp> #include <com/sun/star/task/OfficeRestartManager.hpp>
#include <com/sun/star/task/XInteractionHandler.hpp> #include <com/sun/star/task/XInteractionHandler.hpp>
@ -82,7 +83,8 @@ SafeModeDialog::SafeModeDialog(weld::Window* pParent)
RadioBtnHdl(*mxRadioRestore); RadioBtnHdl(*mxRadioRestore);
// Set URL for help button (module=safemode) // Set URL for help button (module=safemode)
OUString sURL("http://hub.libreoffice.org/send-feedback/?LOversion=" + utl::ConfigManager::getAboutBoxProductVersion() + OUString sURL(officecfg::Office::Common::Menus::SendFeedbackURL::get() //officecfg/registry/data/org/openoffice/Office/Common.xcu => https://hub.libreoffice.org/send-feedback/
+ "?LOversion=" + utl::ConfigManager::getAboutBoxProductVersion() +
"&LOlocale=" + utl::ConfigManager::getUILocale() + "&LOmodule=safemode"); "&LOlocale=" + utl::ConfigManager::getUILocale() + "&LOmodule=safemode");
mxBugLink->set_uri(sURL); mxBugLink->set_uri(sURL);