#74475# Added test case for executing 'reorganizeData' command.
This commit is contained in:
parent
0dc935f2b3
commit
9ef2853a25
1 changed files with 22 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue