diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/docvw/SidebarTxtControl.cxx | 7 | ||||
-rw-r--r-- | sw/source/uibase/docvw/SidebarTxtControl.hxx | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/SidebarTxtControl.cxx b/sw/source/uibase/docvw/SidebarTxtControl.cxx index c33e07e999e1..fde45169248d 100644 --- a/sw/source/uibase/docvw/SidebarTxtControl.cxx +++ b/sw/source/uibase/docvw/SidebarTxtControl.cxx @@ -430,6 +430,13 @@ Selection SidebarTextControl::GetSurroundingTextSelection() const return Selection( 0, 0 ); } +bool SidebarTextControl::DeleteSurroundingText(const Selection& rSelection) +{ + if (OutlinerView* pTextView = GetTextView()) + return pTextView->DeleteSurroundingText(rSelection); + return false; +} + css::uno::Reference< css::accessibility::XAccessible > SidebarTextControl::CreateAccessible() { diff --git a/sw/source/uibase/docvw/SidebarTxtControl.hxx b/sw/source/uibase/docvw/SidebarTxtControl.hxx index ab9c7604ee60..def75229cc01 100644 --- a/sw/source/uibase/docvw/SidebarTxtControl.hxx +++ b/sw/source/uibase/docvw/SidebarTxtControl.hxx @@ -46,6 +46,7 @@ class SidebarTextControl : public Control virtual void RequestHelp(const HelpEvent &rEvt) override; virtual OUString GetSurroundingText() const override; virtual Selection GetSurroundingTextSelection() const override; + virtual bool DeleteSurroundingText(const Selection& rSelection) override; public: SidebarTextControl( sw::annotation::SwAnnotationWin& rSidebarWin, |