summaryrefslogtreecommitdiff
path: root/svtools/source/brwbox/brwbox3.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-06-21 13:04:32 +0000
committerOcke Janssen <oj@openoffice.org>2002-06-21 13:04:32 +0000
commit93d5a2dc0ca2f18edaeefe99fda6ce4191024778 (patch)
treea6ed1fb3b178d73b414b8436e6978335a25840bb /svtools/source/brwbox/brwbox3.cxx
parentc01da9296ab39ccdc32f6b5bf44933925701fb8c (diff)
#99812# new helper method used to know if accessible object was already created
Diffstat (limited to 'svtools/source/brwbox/brwbox3.cxx')
-rw-r--r--svtools/source/brwbox/brwbox3.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/svtools/source/brwbox/brwbox3.cxx b/svtools/source/brwbox/brwbox3.cxx
index d6a2633fc683..aeed34663231 100644
--- a/svtools/source/brwbox/brwbox3.cxx
+++ b/svtools/source/brwbox/brwbox3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: brwbox3.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: oj $ $Date: 2002-06-21 08:29:15 $
+ * last change: $Author: oj $ $Date: 2002-06-21 14:04:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -158,6 +158,7 @@ Reference< XAccessible > BrowseBox::CreateAccessible()
Reference< XAccessible > BrowseBox::CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumnId )
{
// BBINDEX_TABLE must be the table
+ OSL_ENSURE(m_pImpl->m_pAccessible,"Invalid call: Accessible is null");
return new svt::AccessibleBrowseBoxTableCell(m_pImpl->m_pAccessible->getAccessibleChild(::svt::BBINDEX_TABLE),*this,NULL,_nRow,_nColumnId);
}
// -----------------------------------------------------------------------------
@@ -412,5 +413,9 @@ void BrowseBox::commitBrowseBoxEvent(sal_Int16 _nEventId,
m_pImpl->m_pAccessible->commitEvent( _nEventId, _rNewValue, _rOldValue);
}
// -----------------------------------------------------------------------------
-
+sal_Bool BrowseBox::isAccessibleCreated() const
+{
+ return m_pImpl->m_pAccessible != NULL;
+}
+// -----------------------------------------------------------------------------