diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-19 02:19:33 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:18 +0200 |
commit | 742a1d7ea13be85947e103a506844dea450da1cc (patch) | |
tree | 3064bb9ac425438c314f7fe35414564432103827 /sfx2 | |
parent | f06c50870c507444177ed604e08884d44f3e9770 (diff) |
uitest: set ids for a few UI objects created in code
Change-Id: I421b97448bb596b134908ca6ddd60d7b4f60b186
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 4b33e3171006..84dcd1c7b500 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -440,14 +440,20 @@ void SfxTabDialog::Init_Impl(bool bFmtFlag) m_pResetBtn = m_pUIBuilder->get<PushButton>("reset"); m_bOwnsResetBtn = m_pResetBtn == nullptr; if (m_bOwnsResetBtn) + { m_pResetBtn = VclPtr<PushButton>::Create(m_pActionArea.get()); + m_pResetBtn->set_id("reset"); + } else m_pImpl->bHideResetBtn = !m_pResetBtn->IsVisible(); m_pBaseFmtBtn = m_pUIBuilder->get<PushButton>("standard"); m_bOwnsBaseFmtBtn = m_pBaseFmtBtn == nullptr; if (m_bOwnsBaseFmtBtn) + { m_pBaseFmtBtn = VclPtr<PushButton>::Create(m_pActionArea.get()); + m_pBaseFmtBtn->set_id("standard"); + } m_pOKBtn->SetClickHdl( LINK( this, SfxTabDialog, OkHdl ) ); m_pCancelBtn->SetClickHdl( LINK( this, SfxTabDialog, CancelHdl ) ); |