diff options
Diffstat (limited to 'sw/source/uibase/inc/glossary.hxx')
-rw-r--r-- | sw/source/uibase/inc/glossary.hxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sw/source/uibase/inc/glossary.hxx b/sw/source/uibase/inc/glossary.hxx index 4ac5b6c8e4ec..c65ece04ea49 100644 --- a/sw/source/uibase/inc/glossary.hxx +++ b/sw/source/uibase/inc/glossary.hxx @@ -39,7 +39,9 @@ class SwOneExampleFrame; const short RET_EDIT = 100; -class SwGlossaryDlg : public SfxDialogController +class SwGlossaryDropTarget; + +class SwGlossaryDlg final : public SfxDialogController { friend class SwNewGlosNameDlg; @@ -76,6 +78,7 @@ class SwGlossaryDlg : public SfxDialogController std::unique_ptr<weld::Button> m_xPathBtn; std::unique_ptr<SwOneExampleFrame> m_xExampleFrame; std::unique_ptr<weld::CustomWeld> m_xExampleFrameWin; + std::unique_ptr<SwGlossaryDropTarget> m_xDropTarget; void EnableShortName(bool bOn = true); void ShowPreview(); @@ -83,17 +86,16 @@ class SwGlossaryDlg : public SfxDialogController DECL_LINK( NameModify, weld::Entry&, void ); DECL_LINK( NameDoubleClick, weld::TreeView&, bool ); DECL_LINK( GrpSelect, weld::TreeView&, void ); - DECL_LINK( MenuHdl, const OString&, void ); - DECL_LINK( EnableHdl, weld::ToggleButton&, void ); + DECL_LINK( MenuHdl, const OUString&, void ); + DECL_LINK( EnableHdl, weld::Toggleable&, void ); DECL_LINK( BibHdl, weld::Button&, void ); DECL_LINK( InsertHdl, weld::Button&, void ); DECL_LINK( PathHdl, weld::Button&, void ); - DECL_LINK( CheckBoxHdl, weld::ToggleButton&, void ); + DECL_LINK( CheckBoxHdl, weld::Toggleable&, void ); DECL_LINK( PreviewLoadedHdl, SwOneExampleFrame&, void ); DECL_LINK( KeyInputHdl, const KeyEvent&, bool ); DECL_LINK( TextFilterHdl, OUString&, bool ); - void Apply(); void Init(); std::unique_ptr<weld::TreeIter> DoesBlockExist(std::u16string_view sBlock, std::u16string_view rShort); void ShowAutoText(const OUString& rGroup, const OUString& rShortName); @@ -106,9 +108,9 @@ class SwGlossaryDlg : public SfxDialogController void DeleteEntry(); public: - SwGlossaryDlg(SfxViewFrame const * pViewFrame, SwGlossaryHdl* pGlosHdl, SwWrtShell *pWrtShell); - virtual short run() override; + SwGlossaryDlg(const SfxViewFrame& rViewFrame, SwGlossaryHdl* pGlosHdl, SwWrtShell *pWrtShell); virtual ~SwGlossaryDlg() override; + void Apply(); OUString GetCurrGrpName() const; OUString GetCurrShortName() const { |