summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/fieldwnd.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2002-09-24 12:07:08 +0000
committerSascha Ballach <sab@openoffice.org>2002-09-24 12:07:08 +0000
commit884e4a11fd6428ed294f9bcf9ec82a9cb0a08e27 (patch)
tree40970553299c84c9fb96d1e67a3ab2860beb06b0 /sc/source/ui/dbgui/fieldwnd.cxx
parent83ca8002e0fcc9c1493f7457b479c222e4e4b7fa (diff)
#99949#; add method to give the accessibility object the description
Diffstat (limited to 'sc/source/ui/dbgui/fieldwnd.cxx')
-rw-r--r--sc/source/ui/dbgui/fieldwnd.cxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx
index 794ed89f2f8e..a251b9f5a0eb 100644
--- a/sc/source/ui/dbgui/fieldwnd.cxx
+++ b/sc/source/ui/dbgui/fieldwnd.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fieldwnd.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: sab $ $Date: 2002-08-06 10:57:49 $
+ * last change: $Author: sab $ $Date: 2002-09-24 13:07:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,6 +78,12 @@
#ifndef _SC_ACCESSIBLEDATAPILOTCONTROL_HXX
#include "AccessibleDataPilotControl.hxx"
#endif
+#ifndef SC_SCRESID_HXX
+#include "scresid.hxx"
+#endif
+#ifndef SC_SC_HRC
+#include "sc.hrc"
+#endif
//===================================================================
@@ -720,6 +726,27 @@ void ScDPFieldWindow::GetExistingIndex( const Point& rPos, long& rnIndex )
rnIndex = 0;
}
+String ScDPFieldWindow::GetDescription()const
+{
+ String sDescription;
+ switch( eType )
+ {
+ case TYPE_COL:
+ sDescription = ScResId(STR_ACC_DATAPILOT_COL_DESCR);
+ break;
+ case TYPE_ROW:
+ sDescription = ScResId(STR_ACC_DATAPILOT_ROW_DESCR);
+ break;
+ case TYPE_DATA:
+ sDescription = ScResId(STR_ACC_DATAPILOT_DATA_DESCR);
+ break;
+ case TYPE_SELECT:
+ sDescription = ScResId(STR_ACC_DATAPILOT_SEL_DESCR);
+ break;
+ }
+ return sDescription;
+}
+
::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible > ScDPFieldWindow::CreateAccessible()
{
pAccessible =