summaryrefslogtreecommitdiff
path: root/ucb/workben
diff options
context:
space:
mode:
authorMatthias Huetsch <mhu@openoffice.org>2001-06-06 17:23:10 +0000
committerMatthias Huetsch <mhu@openoffice.org>2001-06-06 17:23:10 +0000
commit9ef2853a25b35d132697c62ed0892d3668a007ef (patch)
treec8f0243f44fc240367e2b9aeb19da4282e48fdea /ucb/workben
parent0dc935f2b3c7ec393e2ac7bfcaa049e3dd338e64 (diff)
#74475# Added test case for executing 'reorganizeData' command.
Diffstat (limited to 'ucb/workben')
-rw-r--r--ucb/workben/ucb/ucbdemo.cxx24
1 files changed, 22 insertions, 2 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index 878f59fb03f6..98e4fc4bfa8f 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ucbdemo.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: sb $ $Date: 2001-05-03 08:49:33 $
+ * last change: $Author: mhu $ $Date: 2001-06-06 18:23:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1971,6 +1971,7 @@ void SAL_CALL UcbContent::propertiesChange(
#define MYWIN_ITEMID_URI2SYS 22
#define MYWIN_ITEMID_OFFLINE 23
#define MYWIN_ITEMID_ONLINE 24
+#define MYWIN_ITEMID_REORGANIZE 25
//-------------------------------------------------------------------------
class MyWin : public WorkWindow
@@ -2148,6 +2149,15 @@ MyWin::MyWin( Window *pParent, WinBits nWinStyle,
RTL_CONSTASCII_STRINGPARAM(
"Search the content" ) ) );
+ m_pTool->InsertItem ( MYWIN_ITEMID_REORGANIZE,
+ UniString::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM(
+ "Reorganize" ) ) );
+ m_pTool->SetHelpText( MYWIN_ITEMID_REORGANIZE,
+ UniString::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM(
+ "Reorganize the content storage" ) ) );
+
m_pTool->InsertSeparator();
m_pTool->InsertItem ( MYWIN_ITEMID_COPY,
UniString::CreateFromAscii(
@@ -2485,6 +2495,16 @@ IMPL_LINK( MyWin, ToolBarHandler, ToolBox*, pToolBox )
break;
+ case MYWIN_ITEMID_REORGANIZE:
+ if ( m_pContent )
+ m_pContent->executeCommand (
+ OUString::createFromAscii ("reorganizeData"),
+ Any());
+ else
+ print( "No content!" );
+
+ break;
+
case MYWIN_ITEMID_COPY:
if ( m_pContent )
m_pContent->transfer( aCmdLine, sal_False );