From f360244e5ddb6b607e752a0df3c37ccefaec1d9f Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel@peralex.com>
Date: Wed, 24 Aug 2016 15:51:14 +0200
Subject: drop enum IAccessibleViewForwarderListener::ChangeType

since only one of it's values was in use, and simplify the
ViewForwarderChanged method as a consequence.

Change-Id: I00544c9b0a601c01e49519be5bafe192c6f735f6
---
 include/svx/AccessibleShape.hxx                  |  3 +--
 include/svx/ChildrenManager.hxx                  |  4 +---
 include/svx/IAccessibleViewForwarderListener.hxx | 18 ++----------------
 3 files changed, 4 insertions(+), 21 deletions(-)

(limited to 'include')

diff --git a/include/svx/AccessibleShape.hxx b/include/svx/AccessibleShape.hxx
index 8bafaec6b53f..8f961fffb111 100644
--- a/include/svx/AccessibleShape.hxx
+++ b/include/svx/AccessibleShape.hxx
@@ -323,8 +323,7 @@ public:
         throw (css::uno::RuntimeException, std::exception) override;
 
     //=====  IAccessibleViewForwarderListener  ================================
-    virtual void ViewForwarderChanged (ChangeType aChangeType,
-        const IAccessibleViewForwarder* pViewForwarder) override;
+    virtual void ViewForwarderChanged() override;
 
     //=====  lang::XEventListener  ============================================
 
diff --git a/include/svx/ChildrenManager.hxx b/include/svx/ChildrenManager.hxx
index bb1cab720a80..c85bd1b3428e 100644
--- a/include/svx/ChildrenManager.hxx
+++ b/include/svx/ChildrenManager.hxx
@@ -192,9 +192,7 @@ public:
     */
     void RemoveFocus();
 
-    void ViewForwarderChanged(
-        IAccessibleViewForwarderListener::ChangeType aChangeType,
-        const IAccessibleViewForwarder* pViewForwarder);
+    void ViewForwarderChanged();
 
 private:
     rtl::Reference<ChildrenManagerImpl> mpImpl;
diff --git a/include/svx/IAccessibleViewForwarderListener.hxx b/include/svx/IAccessibleViewForwarderListener.hxx
index d9f27e80d415..b4195d1ed025 100644
--- a/include/svx/IAccessibleViewForwarderListener.hxx
+++ b/include/svx/IAccessibleViewForwarderListener.hxx
@@ -39,25 +39,11 @@ class IAccessibleViewForwarder;
 class IAccessibleViewForwarderListener
 {
 public:
-    /** Enumeration of the different change types.
-    */
-    enum ChangeType {TRANSFORMATION, VISIBLE_AREA, STATE};
 
     /** This method is called to indicate a change of the specified view
-        forwarder.
-        @param aChangeType
-            The type of the change.  TRANSFORMATION indicates a change of
-            the coordinate transformation with a constant visible area.  If
-            the visible area changes, just use VISIBLE_AREA.  This changes
-            the transformation implicitly.  The value STATE indicates a
-            change of the validity state.  Check the IsValid method of the
-            view forwarder before doing further calls.
-        @param pViewForwarder
-            The modified view forwarder.  It is specified just in case that
-            there is more than one view forwarder in use at the same time.
+        forwarder, specifically, a change in visible area.
     */
-    virtual void ViewForwarderChanged (ChangeType aChangeType,
-        const IAccessibleViewForwarder* pViewForwarder) = 0;
+    virtual void ViewForwarderChanged() = 0;
 
 protected:
     ~IAccessibleViewForwarderListener() {}
-- 
cgit