summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2021-03-29 11:52:05 +0300
committerGülşah Köse <gulsah.kose@collabora.com>2021-04-02 14:10:19 +0200
commite64dc07ca8300a997d6d3eebfc3e198ae55d290d (patch)
tree495a73240ab2fbad5ae825ada69842932f3790ac /sw/inc
parent2c64c4ac72ec5ec70ed3ded444f3b1006d116d60 (diff)
tdf#139906 Show warning message when data source is not avaible.
CurrentDatabaseDataSource config item holds a database name for a specific file. When document has CurrentDatabaseDataSource config item but LibreOffice doesn't have in registered databases we should notify the user at load time and put a button to fix the problem. Change-Id: Ia0a6fd53985fc2fb82ce37d3962b3f479c20a647 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113296 Tested-by: Jenkins Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/strings.hrc3
-rw-r--r--sw/inc/view.hxx6
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index 3d28229a8e1b..b4017a06cc80 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -1402,6 +1402,9 @@
#define STR_AUTOMARK_NO NC_("createautomarkdialog|no", "No")
#define STR_WRAP_PANEL_CUSTOM_STR NC_("sidebarwrap|customlabel", "Custom")
+#define STR_DATASOURCE_NOT_AVAILABLE NC_("STR_DATASOURCE_NOT_AVAILABLE", "Data source is not available. Mail merge wizard will not work properly.")
+#define STR_EXCHANGE_DATABASE NC_("STR_EXCHANGE_DATABASE", "Exchange Database")
+
#endif
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index 2b7fe95094ec..4232d315478a 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -555,6 +555,8 @@ public:
// form control has been activated
DECL_LINK( FormControlActivated, LinkParamNone*, void );
+ DECL_LINK( ExchangeDatabaseHandler, weld::Button&, void);
+
// edit links
void EditLinkDlg();
void AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId = nullptr);
@@ -624,6 +626,10 @@ public:
std::shared_ptr<SwMailMergeConfigItem> const & GetMailMergeConfigItem() const;
std::shared_ptr<SwMailMergeConfigItem> EnsureMailMergeConfigItem(const SfxItemSet* pArgs = nullptr);
+ OUString GetDataSourceName() const;
+ static bool IsDataSourceAvailable(const OUString sDataSourceName);
+ void AppendDataSourceInfobar();
+
void ExecFormatPaintbrush(SfxRequest const &);
void StateFormatPaintbrush(SfxItemSet &);