summaryrefslogtreecommitdiff
path: root/svx/source/accessibility/AccessibleParaManager.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2002-07-24 15:19:19 +0000
committerThorsten Behrens <thb@openoffice.org>2002-07-24 15:19:19 +0000
commit93c120c5e0d03bbe30253188dcbb95c91719dec1 (patch)
treeeeea93d50e85923ea152608305fb106cb0c3cfd9 /svx/source/accessibility/AccessibleParaManager.cxx
parent92c355223eed76fb1d1846bc655354292afff1ae (diff)
#101702# Don't send events except from disposeandclear in Dispose
Diffstat (limited to 'svx/source/accessibility/AccessibleParaManager.cxx')
-rw-r--r--svx/source/accessibility/AccessibleParaManager.cxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/svx/source/accessibility/AccessibleParaManager.cxx b/svx/source/accessibility/AccessibleParaManager.cxx
index ccab852dfe81..d5f77e81f292 100644
--- a/svx/source/accessibility/AccessibleParaManager.cxx
+++ b/svx/source/accessibility/AccessibleParaManager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleParaManager.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: thb $ $Date: 2002-06-12 13:41:41 $
+ * last change: $Author: thb $ $Date: 2002-07-24 16:19:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -341,6 +341,25 @@ namespace accessibility
::std::for_each( begin(), end(), aAdapter );
}
+ // not generic yet, no arguments...
+ class AccessibleParaManager_DisposeChildren : public ::std::unary_function< accessibility::AccessibleEditableTextPara&, void >
+ {
+ public:
+ AccessibleParaManager_DisposeChildren() {}
+ void operator()( accessibility::AccessibleEditableTextPara& rPara )
+ {
+ rPara.Dispose();
+ }
+ };
+
+ void AccessibleParaManager::Dispose()
+ {
+ AccessibleParaManager_DisposeChildren aFunctor;
+
+ ::std::for_each( begin(), end(),
+ WeakChildAdapter< AccessibleParaManager_DisposeChildren > (aFunctor) );
+ }
+
// not generic yet, too many method arguments...
class StateChangeEvent : public ::std::unary_function< accessibility::AccessibleEditableTextPara&, void >
{