diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-04 21:32:26 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-04 23:35:00 +0200 |
commit | 087a610fcd5c0c354a9ed6bfccd3451b667d62a3 (patch) | |
tree | 87575c219da5545ee96de2051fc1ad9f2fe84450 /sw/source/ui/inc/selglos.hxx | |
parent | add a VclFrame::get_label (diff) | |
download | core-087a610fcd5c0c354a9ed6bfccd3451b667d62a3.tar.gz core-087a610fcd5c0c354a9ed6bfccd3451b667d62a3.zip |
convert insert autotext dialog to .ui
Change-Id: Ia57a5e74300fb52d2618b086fe51a8b33547101b
Diffstat (limited to 'sw/source/ui/inc/selglos.hxx')
-rw-r--r-- | sw/source/ui/inc/selglos.hxx | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/sw/source/ui/inc/selglos.hxx b/sw/source/ui/inc/selglos.hxx index 88da01455595..d86d4d56ae9d 100644 --- a/sw/source/ui/inc/selglos.hxx +++ b/sw/source/ui/inc/selglos.hxx @@ -29,32 +29,26 @@ class SwSelGlossaryDlg : public ModalDialog { protected: - ListBox aGlosBox; - FixedLine aGlosFL; - OKButton aOKBtn; - CancelButton aCancelBtn; - HelpButton aHelpBtn; + ListBox* m_pGlosBox; DECL_LINK(DoubleClickHdl, ListBox*); public: SwSelGlossaryDlg(Window * pParent, const OUString &rShortName); - ~SwSelGlossaryDlg(); - void InsertGlos(const OUString &rRegion, const OUString &rGlosName); // inline - sal_uInt16 GetSelectedIdx() const; // inline - void SelectEntryPos(sal_uInt16 nIdx); // inline + void InsertGlos(const OUString &rRegion, const OUString &rGlosName) + { + const OUString aTmp = rRegion + ":" + rGlosName; + m_pGlosBox->InsertEntry(aTmp); + } + sal_uInt16 GetSelectedIdx() const + { + return m_pGlosBox->GetSelectEntryPos(); + } + void SelectEntryPos(sal_uInt16 nIdx) + { + m_pGlosBox->SelectEntryPos(nIdx); + } }; -inline void SwSelGlossaryDlg::InsertGlos(const OUString &rRegion, - const OUString &rGlosName) -{ - const OUString aTmp = rRegion + ":" + rGlosName; - aGlosBox.InsertEntry( aTmp ); -} -inline sal_uInt16 SwSelGlossaryDlg::GetSelectedIdx() const -{ return aGlosBox.GetSelectEntryPos(); } -inline void SwSelGlossaryDlg::SelectEntryPos(sal_uInt16 nIdx) -{ aGlosBox.SelectEntryPos(nIdx); } - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |