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
diff --git a/svx/CppunitTest_svx_dialogs_test.mk b/svx/CppunitTest_svx_dialogs_test.mk
index efc2903..926e074 100644
--- a/svx/CppunitTest_svx_dialogs_test.mk
+++ b/svx/CppunitTest_svx_dialogs_test.mk
@@ -23,6 +23,10 @@ $(eval $(call gb_CppunitTest_set_include,svx_dialogs_test,\
    $$(INCLUDE) \
))

$(eval $(call gb_CppunitTest_use_custom_headers,svx_dialogs_test,\
    officecfg/registry \
))

$(eval $(call gb_CppunitTest_use_libraries,svx_dialogs_test, \
    basegfx \
    comphelper \
diff --git a/svx/source/dialog/SafeModeDialog.cxx b/svx/source/dialog/SafeModeDialog.cxx
index b499ae3..5aaa30e 100644
--- a/svx/source/dialog/SafeModeDialog.cxx
+++ b/svx/source/dialog/SafeModeDialog.cxx
@@ -19,6 +19,7 @@
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <svx/FileExportedDialog.hxx>
#include <officecfg/Office/Common.hxx>

#include <com/sun/star/task/OfficeRestartManager.hpp>
#include <com/sun/star/task/XInteractionHandler.hpp>
@@ -82,7 +83,8 @@ SafeModeDialog::SafeModeDialog(weld::Window* pParent)
    RadioBtnHdl(*mxRadioRestore);

    // 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");
    mxBugLink->set_uri(sURL);