summaryrefslogtreecommitdiffstats
path: root/svtools/source/control/valueimp.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 13:40:07 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 13:40:07 +0000
commitff09f8d6ef2c613037f039dbcafcad6b76243a48 (patch)
tree4d939a068cb9eafbc274c8b14a085aaf8c23b84d /svtools/source/control/valueimp.hxx
parentnew version for SRX644 (diff)
downloadcore-ff09f8d6ef2c613037f039dbcafcad6b76243a48.tar.gz
core-ff09f8d6ef2c613037f039dbcafcad6b76243a48.zip
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'svtools/source/control/valueimp.hxx')
-rw-r--r--svtools/source/control/valueimp.hxx38
1 files changed, 36 insertions, 2 deletions
diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx
index 19c08e4b34bb..45f6afe92f7e 100644
--- a/svtools/source/control/valueimp.hxx
+++ b/svtools/source/control/valueimp.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: valueimp.hxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: af $ $Date: 2002-11-20 16:35:31 $
+ * last change: $Author: hr $ $Date: 2003-03-27 14:37:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -105,6 +105,9 @@
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLEEVENTBROADCASTER_HPP_
#include <drafts/com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
#endif
+#ifndef _COM_SUN_STAR_LANG_DISPOSEDEXCEPTION_HPP_
+#include <com/sun/star/lang/DisposedException.hpp>
+#endif
#include <vector>
@@ -248,6 +251,37 @@ private:
usually called from the WeakComponentImplHelper class.
*/
virtual void SAL_CALL disposing (void);
+
+ /** Return the number of items. This takes the None-Item into account.
+ */
+ USHORT getItemCount (void) const;
+
+ /** Return the item associated with the given index. The None-Item is
+ taken into account which, when present, is taken to be the first
+ (with index 0) item.
+ @param nIndex
+ Index of the item to return. The index 0 denotes the None-Item
+ when present.
+ @return
+ Returns NULL when the given index is out of range.
+ */
+ ValueSetItem* getItem (USHORT nIndex) const;
+
+ /** Check whether or not the object has been disposed (or is in the
+ state of beeing disposed). If that is the case then
+ DisposedException is thrown to inform the (indirect) caller of the
+ foul deed.
+ */
+ void ValueSetAcc::ThrowIfDisposed (void)
+ throw (::com::sun::star::lang::DisposedException);
+
+ /** Check whether or not the object has been disposed (or is in the
+ state of beeing disposed).
+
+ @return sal_True, if the object is disposed or in the course
+ of being disposed. Otherwise, sal_False is returned.
+ */
+ sal_Bool IsDisposed (void);
};
// ----------------