summaryrefslogtreecommitdiff
path: root/unotools/source/accessibility
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2002-02-20 11:45:28 +0000
committerSascha Ballach <sab@openoffice.org>2002-02-20 11:45:28 +0000
commitbac2d1bff04853c7ef248f3fbb000a46fce4ccb5 (patch)
tree549bbcc40ac8a6595fd888cebe3d7cb882ed2971 /unotools/source/accessibility
parent732a8472a1d83654b6e457616eedd1c7f1e74765 (diff)
#95584#; add copy constructor
Diffstat (limited to 'unotools/source/accessibility')
-rw-r--r--unotools/source/accessibility/accessiblerelationsethelper.cxx18
-rw-r--r--unotools/source/accessibility/accessiblestatesethelper.cxx18
2 files changed, 32 insertions, 4 deletions
diff --git a/unotools/source/accessibility/accessiblerelationsethelper.cxx b/unotools/source/accessibility/accessiblerelationsethelper.cxx
index 2cf92130187a..55a826d2bf1e 100644
--- a/unotools/source/accessibility/accessiblerelationsethelper.cxx
+++ b/unotools/source/accessibility/accessiblerelationsethelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: accessiblerelationsethelper.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: sab $ $Date: 2002-02-05 16:37:45 $
+ * last change: $Author: sab $ $Date: 2002-02-20 12:45:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,6 +76,7 @@ class AccessibleRelationSetHelperImpl
{
public:
AccessibleRelationSetHelperImpl();
+ AccessibleRelationSetHelperImpl(const AccessibleRelationSetHelperImpl& rImpl);
~AccessibleRelationSetHelperImpl();
sal_Int32 getRelationCount( )
@@ -98,6 +99,11 @@ AccessibleRelationSetHelperImpl::AccessibleRelationSetHelperImpl()
{
}
+AccessibleRelationSetHelperImpl::AccessibleRelationSetHelperImpl(const AccessibleRelationSetHelperImpl& rImpl)
+ : maRelations(rImpl.maRelations)
+{
+}
+
AccessibleRelationSetHelperImpl::~AccessibleRelationSetHelperImpl()
{
}
@@ -163,6 +169,14 @@ AccessibleRelationSetHelper::AccessibleRelationSetHelper ()
mpHelperImpl = new AccessibleRelationSetHelperImpl();
}
+AccessibleRelationSetHelper::AccessibleRelationSetHelper (const AccessibleRelationSetHelper& rHelper)
+ : mpHelperImpl(NULL)
+{
+ if (rHelper.mpHelperImpl)
+ mpHelperImpl = new AccessibleRelationSetHelperImpl(*rHelper.mpHelperImpl);
+ else
+ mpHelperImpl = new AccessibleRelationSetHelperImpl();
+}
AccessibleRelationSetHelper::~AccessibleRelationSetHelper(void)
{
diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx
index 10d75b3cf3bc..4a2a8d44a82a 100644
--- a/unotools/source/accessibility/accessiblestatesethelper.cxx
+++ b/unotools/source/accessibility/accessiblestatesethelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: accessiblestatesethelper.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: sab $ $Date: 2002-02-19 08:29:29 $
+ * last change: $Author: sab $ $Date: 2002-02-20 12:45:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,6 +82,7 @@ class AccessibleStateSetHelperImpl
{
public:
AccessibleStateSetHelperImpl();
+ AccessibleStateSetHelperImpl(const AccessibleStateSetHelperImpl& rImpl);
~AccessibleStateSetHelperImpl();
sal_Bool IsEmpty ()
@@ -105,6 +106,11 @@ AccessibleStateSetHelperImpl::AccessibleStateSetHelperImpl()
{
}
+AccessibleStateSetHelperImpl::AccessibleStateSetHelperImpl(const AccessibleStateSetHelperImpl& rImpl)
+ : maStates(rImpl.maStates)
+{
+}
+
AccessibleStateSetHelperImpl::~AccessibleStateSetHelperImpl()
{
}
@@ -162,6 +168,14 @@ AccessibleStateSetHelper::AccessibleStateSetHelper ()
mpHelperImpl = new AccessibleStateSetHelperImpl();
}
+AccessibleStateSetHelper::AccessibleStateSetHelper (const AccessibleStateSetHelper& rHelper)
+ : mpHelperImpl(NULL)
+{
+ if (rHelper.mpHelperImpl)
+ mpHelperImpl = new AccessibleStateSetHelperImpl(*rHelper.mpHelperImpl);
+ else
+ mpHelperImpl = new AccessibleStateSetHelperImpl();
+}
AccessibleStateSetHelper::~AccessibleStateSetHelper(void)
{