[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 9 07:56:44 UTC 2019
sc/source/ui/Accessibility/AccessibleText.cxx | 25 ++++++++++++-------------
sc/source/ui/inc/AccessibleText.hxx | 6 +++---
2 files changed, 15 insertions(+), 16 deletions(-)
New commits:
commit 2d02930452be2252afb39f4706e818273cf019a0
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Apr 8 17:22:31 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Apr 9 09:56:20 2019 +0200
can use OutputDevice baseclass
Change-Id: I6c1af0332d9c34dbe22d6ee1325513824f95fb05
Reviewed-on: https://gerrit.libreoffice.org/70427
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx
index 11b6beed58cf..0e6d2dfb8320 100644
--- a/sc/source/ui/Accessibility/AccessibleText.cxx
+++ b/sc/source/ui/Accessibility/AccessibleText.cxx
@@ -105,11 +105,11 @@ void ScViewForwarder::SetInvalid()
class ScEditObjectViewForwarder : public SvxViewForwarder
{
- VclPtr<vcl::Window> mpWindow;
+ VclPtr<OutputDevice> mpWindow;
// #i49561# EditView needed for access to its visible area.
const EditView* mpEditView;
public:
- ScEditObjectViewForwarder( vcl::Window* pWindow,
+ ScEditObjectViewForwarder( OutputDevice* pWindow,
const EditView* _pEditView);
virtual bool IsValid() const override;
@@ -119,11 +119,10 @@ public:
void SetInvalid();
};
-ScEditObjectViewForwarder::ScEditObjectViewForwarder( vcl::Window* pWindow,
+ScEditObjectViewForwarder::ScEditObjectViewForwarder( OutputDevice* pWindow,
const EditView* _pEditView )
- :
- mpWindow(pWindow),
- mpEditView( _pEditView )
+ : mpWindow(pWindow)
+ , mpEditView( _pEditView )
{
}
@@ -301,9 +300,9 @@ ScPreviewNoteViewForwarder::ScPreviewNoteViewForwarder(ScPreviewShell* pViewShel
class ScEditViewForwarder : public SvxEditViewForwarder
{
EditView* mpEditView;
- VclPtr<vcl::Window> mpWindow;
+ VclPtr<OutputDevice> mpWindow;
public:
- ScEditViewForwarder(EditView* pEditView, vcl::Window* pWin);
+ ScEditViewForwarder(EditView* pEditView, OutputDevice* pWin);
virtual bool IsValid() const override;
virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const override;
@@ -317,9 +316,9 @@ public:
void SetInvalid();
};
-ScEditViewForwarder::ScEditViewForwarder(EditView* pEditView, vcl::Window* pWin)
- : mpEditView(pEditView),
- mpWindow(pWin)
+ScEditViewForwarder::ScEditViewForwarder(EditView* pEditView, OutputDevice* pWin)
+ : mpEditView(pEditView)
+ , mpWindow(pWin)
{
}
@@ -640,7 +639,7 @@ ScDocShell* ScAccessibleCellTextData::GetDocShell(ScTabViewShell* pViewShell)
return pDocSh;
}
-ScAccessibleEditObjectTextData::ScAccessibleEditObjectTextData(EditView* pEditView, vcl::Window* pWin, bool isClone)
+ScAccessibleEditObjectTextData::ScAccessibleEditObjectTextData(EditView* pEditView, OutputDevice* pWin, bool isClone)
:
mpEditView(pEditView),
mpEditEngine(pEditView ? pEditView->GetEditEngine() : nullptr),
@@ -731,7 +730,7 @@ IMPL_LINK(ScAccessibleEditObjectTextData, NotifyHdl, EENotify&, rNotify, void)
GetBroadcaster().Broadcast(*aHint);
}
-ScAccessibleEditLineTextData::ScAccessibleEditLineTextData(EditView* pEditView, vcl::Window* pWin)
+ScAccessibleEditLineTextData::ScAccessibleEditLineTextData(EditView* pEditView, OutputDevice* pWin)
:
ScAccessibleEditObjectTextData(pEditView, pWin),
mbEditEngineCreated(false)
diff --git a/sc/source/ui/inc/AccessibleText.hxx b/sc/source/ui/inc/AccessibleText.hxx
index bf631629237f..cf96a1d50254 100644
--- a/sc/source/ui/inc/AccessibleText.hxx
+++ b/sc/source/ui/inc/AccessibleText.hxx
@@ -103,7 +103,7 @@ class ScAccessibleEditObjectTextData : public ScAccessibleTextData
{
public:
// Add a para to indicate whether the object is cloned
- ScAccessibleEditObjectTextData(EditView* pEditView, vcl::Window* pWin, bool isClone = false);
+ ScAccessibleEditObjectTextData(EditView* pEditView, OutputDevice* pWin, bool isClone = false);
virtual ~ScAccessibleEditObjectTextData() override;
virtual ScAccessibleTextData* Clone() const override;
@@ -123,14 +123,14 @@ protected:
EditView* mpEditView;
EditEngine* mpEditEngine;
std::unique_ptr<SvxEditEngineForwarder> mpForwarder;
- VclPtr<vcl::Window> mpWindow;
+ VclPtr<OutputDevice> mpWindow;
bool mbIsCloned;
};
class ScAccessibleEditLineTextData : public ScAccessibleEditObjectTextData
{
public:
- ScAccessibleEditLineTextData(EditView* pEditView, vcl::Window* pWin);
+ ScAccessibleEditLineTextData(EditView* pEditView, OutputDevice* pWin);
virtual ~ScAccessibleEditLineTextData() override;
virtual ScAccessibleTextData* Clone() const override;
More information about the Libreoffice-commits
mailing list