diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-24 16:08:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-24 16:10:30 +0000 |
commit | 08706f37737a2b5c92ef3c6e492b152e75fcd11b (patch) | |
tree | 1dbc6380c671f0c794a554c072b5cd433542f023 /sfx2 | |
parent | eeecaf597ae2fb45ab575fd6aab5fcbe3428c033 (diff) |
restore the helpid for impress animation dialog after initialization
Document and centralize the uses of undoing the helpid clear after
helpid->uniqueid hack
Change-Id: I4e651235407a0eca26dc0acfc089ef8f8ce57b13
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/basedlgs.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/basedlgs.hxx b/sfx2/inc/sfx2/basedlgs.hxx index c3684e5a883c..fe86e3d0d659 100644 --- a/sfx2/inc/sfx2/basedlgs.hxx +++ b/sfx2/inc/sfx2/basedlgs.hxx @@ -40,6 +40,16 @@ class HelpButton; class Button; class FixedLine; +//There is a hack which hides the HelpId for a Dialog in SfxModelessDialog +//and SfxDockingWindow, where it is changed into a UniqueId and cleared +//This reverses the clear of the HelpId + +SFX2_DLLPUBLIC inline void reverseUniqueHelpIdHack(Window &rWindow) +{ + if (rWindow.GetHelpId().isEmpty()) + rWindow.SetHelpId(rWindow.GetUniqueId()); +} + // class SfxModalDialog -------------------------------------------------- class SFX2_DLLPUBLIC SfxModalDialog: public ModalDialog |