From cc71e03d3b249989639d2073e8e9635d5de0b158 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 4 Mar 2013 13:03:57 +0000 Subject: audit GetParent harder wrt GetParentDialog weed out assumption that widgets are direct children of Dialogs Change-Id: Ib2cf0c8862bd5e82b13380634ed82ca7fcc746b8 --- cui/source/dialogs/hangulhanjadlg.cxx | 2 +- cui/source/dialogs/hyphen.cxx | 4 ++-- cui/source/tabpages/numfmt.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index afad83fed451..87e4b163945e 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -1422,7 +1422,7 @@ namespace svx rLoseFocusHdl.Call( this ); m_rScrollBar.SetThumbPos( m_rScrollBar.GetThumbPos() + ( _bUp? -1 : 1 ) ); - ( static_cast< HangulHanjaEditDictDialog* >( GetParent() ) )->UpdateScrollbar(); + ( static_cast< HangulHanjaEditDictDialog* >( GetParentDialog() ) )->UpdateScrollbar(); } SuggestionEdit::SuggestionEdit( Window* pParent, const ResId& rResId, diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx index 983893ac63b0..82bef8d49f11 100644 --- a/cui/source/dialogs/hyphen.cxx +++ b/cui/source/dialogs/hyphen.cxx @@ -52,11 +52,11 @@ void HyphenEdit::KeyInput( const KeyEvent& rKEvt ) switch ( nCode ) { case KEY_LEFT: - ( (SvxHyphenWordDialog*)GetParent() )->SelLeft(); + ( (SvxHyphenWordDialog*)GetParentDialog() )->SelLeft(); break; case KEY_RIGHT: - ( (SvxHyphenWordDialog*)GetParent() )->SelRight(); + ( (SvxHyphenWordDialog*)GetParentDialog() )->SelRight(); break; case KEY_TAB: diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 8f97f013b3a6..a2f375a97244 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -1119,7 +1119,7 @@ IMPL_LINK( SvxNumberFormatTabPage, DoubleClickHdl_Impl, SvxFontListBox*, pLb ) } else { - SfxNoLayoutSingleTabDialog* pParent = dynamic_cast< SfxNoLayoutSingleTabDialog* >( GetParent() ); + SfxNoLayoutSingleTabDialog* pParent = dynamic_cast< SfxNoLayoutSingleTabDialog* >( GetParentDialog() ); OKButton* pOKButton = pParent ? pParent->GetOKButton() : NULL; if ( pOKButton ) pOKButton->Click(); -- cgit v1.2.3