summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorVarun Dhall <varun.dhall@studentpartner.com>2017-06-22 11:24:10 +0530
committerMichael Stahl <mstahl@redhat.com>2017-06-30 19:39:16 +0200
commit3c1fc723ff622d8a541fa26a3397ca4258332e4a (patch)
tree2f7d5b66c2dcad5db9910f7b683ac9509bf227aa /include/editeng
parenta429d4317d2d4f9d6a1a39d996ee9fa41096d741 (diff)
EditEngine: Changing export selection for copy/paste
Change-Id: I6f52f30eff76de5f0d641271ce3ea36ced572cc4 Reviewed-on: https://gerrit.libreoffice.org/39083 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/unotext.hxx45
1 files changed, 24 insertions, 21 deletions
diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx
index 70be94f6965d..3cc7932d25b6 100644
--- a/include/editeng/unotext.hxx
+++ b/include/editeng/unotext.hxx
@@ -507,24 +507,6 @@ public:
};
-class SvxUnoTextContentEnumeration : public ::cppu::WeakAggImplHelper1< css::container::XEnumeration >
-{
-private:
- css::uno::Reference< css::text::XText > mxParentText;
- std::unique_ptr<SvxEditSource> mpEditSource;
- sal_Int32 mnNextParagraph;
- const SvxUnoTextBase& mrText;
-
-public:
- SvxUnoTextContentEnumeration( const SvxUnoTextBase& _rText ) throw();
- virtual ~SvxUnoTextContentEnumeration() throw() override;
-
- // css::container::XEnumeration
- virtual sal_Bool SAL_CALL hasMoreElements( ) override;
- virtual css::uno::Any SAL_CALL nextElement( ) override;
-};
-
-
class SvxUnoTextContent : public SvxUnoTextRangeBase,
public css::text::XTextContent,
public css::container::XEnumerationAccess,
@@ -599,18 +581,39 @@ public:
};
+class SvxUnoTextContentEnumeration : public ::cppu::WeakAggImplHelper1< css::container::XEnumeration >
+{
+private:
+ css::uno::Reference< css::text::XText > mxParentText;
+ std::unique_ptr<SvxEditSource> mpEditSource;
+ sal_Int32 mnNextParagraph;
+ const SvxUnoTextBase& mrText;
+ const ESelection maSelection;
+ std::vector< rtl::Reference<SvxUnoTextContent> > maContents;
+
+public:
+ SvxUnoTextContentEnumeration( const SvxUnoTextBase& _rText, const ESelection& rSel ) throw();
+ virtual ~SvxUnoTextContentEnumeration() throw() override;
+
+ // css::container::XEnumeration
+ virtual sal_Bool SAL_CALL hasMoreElements( ) override;
+ virtual css::uno::Any SAL_CALL nextElement( ) override;
+};
+
+
class SvxUnoTextRangeEnumeration : public ::cppu::WeakAggImplHelper1< css::container::XEnumeration >
{
private:
- SvxEditSource* mpEditSource;
+ std::unique_ptr<SvxEditSource> mpEditSource;
css::uno::Reference< css::text::XText > mxParentText;
const SvxUnoTextBase& mrParentText;
sal_Int32 mnParagraph;
- std::vector<sal_Int32>* mpPortions;
+ std::vector< rtl::Reference<SvxUnoTextRange> > maPortions;
sal_uInt16 mnNextPortion;
+ const ESelection mnSel;
public:
- SvxUnoTextRangeEnumeration( const SvxUnoTextBase& rText, sal_Int32 nPara ) throw();
+ SvxUnoTextRangeEnumeration( const SvxUnoTextBase& rText, sal_Int32 nPara, const ESelection& rSel ) throw();
virtual ~SvxUnoTextRangeEnumeration() throw() override;
// css::container::XEnumeration