diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2017-08-15 17:21:26 +0000 |
---|---|---|
committer | Akshay Deep <akshaydeepiitr@gmail.com> | 2017-08-15 21:12:14 +0200 |
commit | f9af8a35fc1aad055af2b5e6b6eab45a7d060719 (patch) | |
tree | 81fa258c68bc1365fe2d9a3d28de28b66537829b /include/vcl/textview.hxx | |
parent | b6f39c47fb477f16c65631523b0c18b4f262fadf (diff) |
tdf#111337 - Introduce alternative workflows at the special characters dialog
Change-Id: I6a8fe2476adc5c4379c76dfaef090d1b5cd81ea0
Reviewed-on: https://gerrit.libreoffice.org/41170
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
Diffstat (limited to 'include/vcl/textview.hxx')
-rw-r--r-- | include/vcl/textview.hxx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx index 76e8e7ccbac5..9688d9544782 100644 --- a/include/vcl/textview.hxx +++ b/include/vcl/textview.hxx @@ -51,6 +51,32 @@ namespace i18nutil { struct ImpTextView; class ExtTextEngine; +class VCL_DLLPUBLIC TETextDataObject : public css::datatransfer::XTransferable, + public ::cppu::OWeakObject + +{ +private: + OUString maText; + SvMemoryStream maHTMLStream; + +public: + explicit TETextDataObject( const OUString& rText ); + + OUString& GetText() { return maText; } + SvMemoryStream& GetHTMLStream() { return maHTMLStream; } + + // css::uno::XInterface + css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; + void SAL_CALL acquire() throw() override { OWeakObject::acquire(); } + void SAL_CALL release() throw() override { OWeakObject::release(); } + + // css::datatransfer::XTransferable + css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor ) override; + css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( ) override; + sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor ) override; +}; + + class VCL_DLLPUBLIC TextView : public vcl::unohelper::DragAndDropClient { friend class TextEngine; |