summaryrefslogtreecommitdiff
path: root/include/vcl/svapp.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-11-23 08:21:15 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2018-12-05 14:38:22 +0100
commit329db5d412cc0d5e0f97cb939b94259679396ead (patch)
tree9792a66601ab6f9a02eb0f5808ce7664ec9d4ab1 /include/vcl/svapp.hxx
parentbcc28ff92493dbc9a51acb1cf693b9ce3162a110 (diff)
Make Application::SetDialogCancelMode "private"
Change callers to Application::EnableHeadlessMode instead except for the Frame dispose sequence, which has to disable a fatal mode temporary. Since Frame is not a unique identifier, rename it to XFrameImpl, otherwise we get a "non-unique" compile error for other files. When we update our gcc baseline, we should be able to forward declare and friend XFrameImpl and really make it private. Change-Id: Ifcad0355adade8f6539ec092b174dd70af8352c2 Reviewed-on: https://gerrit.libreoffice.org/64050 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include/vcl/svapp.hxx')
-rw-r--r--include/vcl/svapp.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx
index 9032ebc7f299..6249e3449e6f 100644
--- a/include/vcl/svapp.hxx
+++ b/include/vcl/svapp.hxx
@@ -1129,9 +1129,13 @@ public:
/** Sets the dialog cancel mode for headless environments.
+ This should be private, but XFrameImpl needs to access it and current
+ baseline gcc doesn't support forward definition of anonymous classes.
+ You probably should use EnableHeadlessMode instead.
+
@param mode DialogCancel mode value
- @see GetDialogCancelMode, IsDialogCancelEnabled
+ @see GetDialogCancelMode, IsDialogCancelEnabled, EnableHeadlessMode
*/
static void SetDialogCancelMode( DialogCancelMode mode );