summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-24 17:10:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-24 20:38:51 +0100
commit6c5c6ede0103e15b8e8ac432f0ca7f6e00c9dcb4 (patch)
treeac9eee5af19ae935b09e58b5d0944b8b692c3e46 /include
parentde170db187852c42f6bad845d00c2b19b99e9a31 (diff)
tdf#146913 don't destroy the dialog if we just want to hide it
Change-Id: Ie534aba915120d12e65aa965e5435bc7575ecb29 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128879 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/basedlgs.hxx4
-rw-r--r--include/sfx2/childwin.hxx1
2 files changed, 3 insertions, 2 deletions
diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx
index c198f12dbc3b..e7cf250d1159 100644
--- a/include/sfx2/basedlgs.hxx
+++ b/include/sfx2/basedlgs.hxx
@@ -48,7 +48,7 @@ public:
// when the dialog has an associated SfxChildWin, typically for Modeless interaction
virtual void ChildWinDispose() {} // called from the associated SfxChildWin dtor
virtual void Close() {} // called by the SfxChildWin when the dialog is closed
- virtual void EndDialog(); // called by the SfxChildWin to close the dialog
+ virtual void EndDialog(int nResponse); // called by the SfxChildWin to close the dialog
};
class SfxModelessDialog_Impl;
@@ -73,7 +73,7 @@ public:
void Initialize (SfxChildWinInfo const * pInfo);
bool IsClosing() const;
virtual void Close() override;
- virtual void EndDialog() override;
+ virtual void EndDialog(int nRespose) override;
virtual void Activate() override;
virtual void Deactivate() override;
virtual void ChildWinDispose() override;
diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx
index 66d125accaf5..6a93b46d84be 100644
--- a/include/sfx2/childwin.hxx
+++ b/include/sfx2/childwin.hxx
@@ -155,6 +155,7 @@ public:
SAL_DLLPRIVATE void SetFactory_Impl( const SfxChildWinFactory* );
};
+const int nCloseResponseToJustHide = -42;
#define SFX_DECL_CHILDWINDOW(Class) \
public : \