1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
29*cdf0e10cSrcweir #include "precompiled_ucb.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir /**************************************************************************
32*cdf0e10cSrcweir                                 TODO
33*cdf0e10cSrcweir  **************************************************************************
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir  **************************************************************************
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir     Props/Commands:
38*cdf0e10cSrcweir 
39*cdf0e10cSrcweir                            root    folder  folder  link    link
40*cdf0e10cSrcweir                                    (new)           (new)
41*cdf0e10cSrcweir     ----------------------------------------------------------------
42*cdf0e10cSrcweir     ContentType            x       x       x       x       x
43*cdf0e10cSrcweir     IsDocument             x       x       x       x       x
44*cdf0e10cSrcweir     IsFolder               x       x       x       x       x
45*cdf0e10cSrcweir     Title                  x       x       x       x       x
46*cdf0e10cSrcweir     TargetURL                                      x       x
47*cdf0e10cSrcweir     CreatableContentsInfo  x       x       x       x       x
48*cdf0e10cSrcweir 
49*cdf0e10cSrcweir     getCommandInfo         x       x       x       x       x
50*cdf0e10cSrcweir     getPropertySetInfo     x       x       x       x       x
51*cdf0e10cSrcweir     getPropertyValues      x       x       x       x       x
52*cdf0e10cSrcweir     setPropertyValues      x       x       x       x       x
53*cdf0e10cSrcweir     createNewContent       x               x
54*cdf0e10cSrcweir     insert                                 x               x
55*cdf0e10cSrcweir     delete                         x               x
56*cdf0e10cSrcweir     open                   x       x
57*cdf0e10cSrcweir     transfer               x       x
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir  *************************************************************************/
60*cdf0e10cSrcweir 
61*cdf0e10cSrcweir #include <com/sun/star/beans/Property.hpp>
62*cdf0e10cSrcweir #include <com/sun/star/beans/PropertyAttribute.hpp>
63*cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp>
64*cdf0e10cSrcweir #include <com/sun/star/ucb/CommandInfo.hpp>
65*cdf0e10cSrcweir #include <com/sun/star/ucb/OpenCommandArgument2.hpp>
66*cdf0e10cSrcweir #include <com/sun/star/ucb/TransferInfo.hpp>
67*cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx>
68*cdf0e10cSrcweir #include "hierarchycontent.hxx"
69*cdf0e10cSrcweir 
70*cdf0e10cSrcweir using namespace com::sun::star;
71*cdf0e10cSrcweir using namespace hierarchy_ucp;
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir //=========================================================================
74*cdf0e10cSrcweir //
75*cdf0e10cSrcweir // HierarchyContent implementation.
76*cdf0e10cSrcweir //
77*cdf0e10cSrcweir //=========================================================================
78*cdf0e10cSrcweir 
79*cdf0e10cSrcweir #define MAKEPROPSEQUENCE( a ) \
80*cdf0e10cSrcweir     uno::Sequence< beans::Property >( a, sizeof( a )  / sizeof( a[ 0 ] ) )
81*cdf0e10cSrcweir 
82*cdf0e10cSrcweir #define MAKECMDSEQUENCE( a ) \
83*cdf0e10cSrcweir     uno::Sequence< ucb::CommandInfo >( a, sizeof( a )  / sizeof( a[ 0 ] ) )
84*cdf0e10cSrcweir 
85*cdf0e10cSrcweir //=========================================================================
86*cdf0e10cSrcweir //
87*cdf0e10cSrcweir // IMPORTENT: If any property data ( name / type / ... ) are changed, then
88*cdf0e10cSrcweir //            HierarchyContent::getPropertyValues(...) must be adapted too!
89*cdf0e10cSrcweir //
90*cdf0e10cSrcweir //=========================================================================
91*cdf0e10cSrcweir 
92*cdf0e10cSrcweir // virtual
93*cdf0e10cSrcweir uno::Sequence< beans::Property > HierarchyContent::getProperties(
94*cdf0e10cSrcweir             const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
95*cdf0e10cSrcweir {
96*cdf0e10cSrcweir     osl::Guard< osl::Mutex > aGuard( m_aMutex );
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir     if ( m_eKind == LINK )
99*cdf0e10cSrcweir     {
100*cdf0e10cSrcweir         //=================================================================
101*cdf0e10cSrcweir         //
102*cdf0e10cSrcweir         // Link: Supported properties
103*cdf0e10cSrcweir         //
104*cdf0e10cSrcweir         //=================================================================
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir         if ( isReadOnly() )
107*cdf0e10cSrcweir         {
108*cdf0e10cSrcweir             static beans::Property aLinkPropertyInfoTable[] =
109*cdf0e10cSrcweir             {
110*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
111*cdf0e10cSrcweir                 // Required properties
112*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
113*cdf0e10cSrcweir                 beans::Property(
114*cdf0e10cSrcweir                     rtl::OUString(
115*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
116*cdf0e10cSrcweir                     -1,
117*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
118*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
119*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
120*cdf0e10cSrcweir                 ),
121*cdf0e10cSrcweir                 beans::Property(
122*cdf0e10cSrcweir                     rtl::OUString(
123*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
124*cdf0e10cSrcweir                     -1,
125*cdf0e10cSrcweir                     getCppuBooleanType(),
126*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
127*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
128*cdf0e10cSrcweir                 ),
129*cdf0e10cSrcweir                 beans::Property(
130*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
131*cdf0e10cSrcweir                     -1,
132*cdf0e10cSrcweir                     getCppuBooleanType(),
133*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
134*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
135*cdf0e10cSrcweir                 ),
136*cdf0e10cSrcweir                 beans::Property(
137*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
138*cdf0e10cSrcweir                     -1,
139*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
140*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
141*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
142*cdf0e10cSrcweir                 ),
143*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
144*cdf0e10cSrcweir                 // Optional standard properties
145*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
146*cdf0e10cSrcweir                 beans::Property(
147*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TargetURL" ) ),
148*cdf0e10cSrcweir                     -1,
149*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
150*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
151*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
152*cdf0e10cSrcweir                 ),
153*cdf0e10cSrcweir                 beans::Property(
154*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
155*cdf0e10cSrcweir                         "CreatableContentsInfo" ) ),
156*cdf0e10cSrcweir                     -1,
157*cdf0e10cSrcweir                     getCppuType( static_cast<
158*cdf0e10cSrcweir                         const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
159*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
160*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY )
161*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
162*cdf0e10cSrcweir                 // New properties
163*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
164*cdf0e10cSrcweir             };
165*cdf0e10cSrcweir             return MAKEPROPSEQUENCE( aLinkPropertyInfoTable );
166*cdf0e10cSrcweir         }
167*cdf0e10cSrcweir         else
168*cdf0e10cSrcweir         {
169*cdf0e10cSrcweir             static beans::Property aLinkPropertyInfoTable[] =
170*cdf0e10cSrcweir             {
171*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
172*cdf0e10cSrcweir                 // Required properties
173*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
174*cdf0e10cSrcweir                 beans::Property(
175*cdf0e10cSrcweir                     rtl::OUString(
176*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
177*cdf0e10cSrcweir                     -1,
178*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
179*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
180*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
181*cdf0e10cSrcweir                 ),
182*cdf0e10cSrcweir                 beans::Property(
183*cdf0e10cSrcweir                     rtl::OUString(
184*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
185*cdf0e10cSrcweir                     -1,
186*cdf0e10cSrcweir                     getCppuBooleanType(),
187*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
188*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
189*cdf0e10cSrcweir                 ),
190*cdf0e10cSrcweir                 beans::Property(
191*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
192*cdf0e10cSrcweir                     -1,
193*cdf0e10cSrcweir                     getCppuBooleanType(),
194*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
195*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
196*cdf0e10cSrcweir                 ),
197*cdf0e10cSrcweir                 beans::Property(
198*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
199*cdf0e10cSrcweir                     -1,
200*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
201*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
202*cdf0e10cSrcweir                 ),
203*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
204*cdf0e10cSrcweir                 // Optional standard properties
205*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
206*cdf0e10cSrcweir                 beans::Property(
207*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TargetURL" ) ),
208*cdf0e10cSrcweir                     -1,
209*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
210*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
211*cdf0e10cSrcweir                 ),
212*cdf0e10cSrcweir                 beans::Property(
213*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
214*cdf0e10cSrcweir                         "CreatableContentsInfo" ) ),
215*cdf0e10cSrcweir                     -1,
216*cdf0e10cSrcweir                     getCppuType( static_cast<
217*cdf0e10cSrcweir                         const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
218*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
219*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY )
220*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
221*cdf0e10cSrcweir                 // New properties
222*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
223*cdf0e10cSrcweir             };
224*cdf0e10cSrcweir             return MAKEPROPSEQUENCE( aLinkPropertyInfoTable );
225*cdf0e10cSrcweir         }
226*cdf0e10cSrcweir     }
227*cdf0e10cSrcweir     else if ( m_eKind == FOLDER )
228*cdf0e10cSrcweir     {
229*cdf0e10cSrcweir         //=================================================================
230*cdf0e10cSrcweir         //
231*cdf0e10cSrcweir         // Folder: Supported properties
232*cdf0e10cSrcweir         //
233*cdf0e10cSrcweir         //=================================================================
234*cdf0e10cSrcweir 
235*cdf0e10cSrcweir         if ( isReadOnly() )
236*cdf0e10cSrcweir         {
237*cdf0e10cSrcweir             static beans::Property aFolderPropertyInfoTable[] =
238*cdf0e10cSrcweir             {
239*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
240*cdf0e10cSrcweir                 // Required properties
241*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
242*cdf0e10cSrcweir                 beans::Property(
243*cdf0e10cSrcweir                     rtl::OUString(
244*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
245*cdf0e10cSrcweir                     -1,
246*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
247*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
248*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
249*cdf0e10cSrcweir                 ),
250*cdf0e10cSrcweir                 beans::Property(
251*cdf0e10cSrcweir                     rtl::OUString(
252*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
253*cdf0e10cSrcweir                     -1,
254*cdf0e10cSrcweir                     getCppuBooleanType(),
255*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
256*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
257*cdf0e10cSrcweir                 ),
258*cdf0e10cSrcweir                 beans::Property(
259*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
260*cdf0e10cSrcweir                     -1,
261*cdf0e10cSrcweir                     getCppuBooleanType(),
262*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
263*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
264*cdf0e10cSrcweir                 ),
265*cdf0e10cSrcweir                 beans::Property(
266*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
267*cdf0e10cSrcweir                     -1,
268*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
269*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
270*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
271*cdf0e10cSrcweir                 ),
272*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
273*cdf0e10cSrcweir                 // Optional standard properties
274*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
275*cdf0e10cSrcweir                 beans::Property(
276*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
277*cdf0e10cSrcweir                         "CreatableContentsInfo" ) ),
278*cdf0e10cSrcweir                     -1,
279*cdf0e10cSrcweir                     getCppuType( static_cast<
280*cdf0e10cSrcweir                         const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
281*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
282*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY )
283*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
284*cdf0e10cSrcweir                 // New properties
285*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
286*cdf0e10cSrcweir             };
287*cdf0e10cSrcweir             return MAKEPROPSEQUENCE( aFolderPropertyInfoTable );
288*cdf0e10cSrcweir         }
289*cdf0e10cSrcweir         else
290*cdf0e10cSrcweir         {
291*cdf0e10cSrcweir             static beans::Property aFolderPropertyInfoTable[] =
292*cdf0e10cSrcweir             {
293*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
294*cdf0e10cSrcweir                 // Required properties
295*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
296*cdf0e10cSrcweir                 beans::Property(
297*cdf0e10cSrcweir                     rtl::OUString(
298*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
299*cdf0e10cSrcweir                     -1,
300*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
301*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
302*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
303*cdf0e10cSrcweir                 ),
304*cdf0e10cSrcweir                 beans::Property(
305*cdf0e10cSrcweir                     rtl::OUString(
306*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
307*cdf0e10cSrcweir                     -1,
308*cdf0e10cSrcweir                     getCppuBooleanType(),
309*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
310*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
311*cdf0e10cSrcweir                 ),
312*cdf0e10cSrcweir                 beans::Property(
313*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
314*cdf0e10cSrcweir                     -1,
315*cdf0e10cSrcweir                     getCppuBooleanType(),
316*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
317*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY
318*cdf0e10cSrcweir                 ),
319*cdf0e10cSrcweir                 beans::Property(
320*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
321*cdf0e10cSrcweir                     -1,
322*cdf0e10cSrcweir                     getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
323*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
324*cdf0e10cSrcweir                 ),
325*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
326*cdf0e10cSrcweir                 // Optional standard properties
327*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
328*cdf0e10cSrcweir                 beans::Property(
329*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
330*cdf0e10cSrcweir                         "CreatableContentsInfo" ) ),
331*cdf0e10cSrcweir                     -1,
332*cdf0e10cSrcweir                     getCppuType( static_cast<
333*cdf0e10cSrcweir                         const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
334*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
335*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY )
336*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
337*cdf0e10cSrcweir                 // New properties
338*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
339*cdf0e10cSrcweir             };
340*cdf0e10cSrcweir             return MAKEPROPSEQUENCE( aFolderPropertyInfoTable );
341*cdf0e10cSrcweir         }
342*cdf0e10cSrcweir     }
343*cdf0e10cSrcweir     else
344*cdf0e10cSrcweir     {
345*cdf0e10cSrcweir         //=================================================================
346*cdf0e10cSrcweir         //
347*cdf0e10cSrcweir         // Root Folder: Supported properties
348*cdf0e10cSrcweir         //
349*cdf0e10cSrcweir         //=================================================================
350*cdf0e10cSrcweir 
351*cdf0e10cSrcweir         // Currently no difference between reonly /read-write
352*cdf0e10cSrcweir         // -> all props ar read-only
353*cdf0e10cSrcweir 
354*cdf0e10cSrcweir         static beans::Property aRootFolderPropertyInfoTable[] =
355*cdf0e10cSrcweir         {
356*cdf0e10cSrcweir             ///////////////////////////////////////////////////////////////
357*cdf0e10cSrcweir             // Required properties
358*cdf0e10cSrcweir             ///////////////////////////////////////////////////////////////
359*cdf0e10cSrcweir             beans::Property(
360*cdf0e10cSrcweir                 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
361*cdf0e10cSrcweir                 -1,
362*cdf0e10cSrcweir                 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
363*cdf0e10cSrcweir                 beans::PropertyAttribute::BOUND
364*cdf0e10cSrcweir                     | beans::PropertyAttribute::READONLY
365*cdf0e10cSrcweir             ),
366*cdf0e10cSrcweir             beans::Property(
367*cdf0e10cSrcweir                 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
368*cdf0e10cSrcweir                 -1,
369*cdf0e10cSrcweir                 getCppuBooleanType(),
370*cdf0e10cSrcweir                 beans::PropertyAttribute::BOUND
371*cdf0e10cSrcweir                     | beans::PropertyAttribute::READONLY
372*cdf0e10cSrcweir             ),
373*cdf0e10cSrcweir             beans::Property(
374*cdf0e10cSrcweir                 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
375*cdf0e10cSrcweir                 -1,
376*cdf0e10cSrcweir                 getCppuBooleanType(),
377*cdf0e10cSrcweir                 beans::PropertyAttribute::BOUND
378*cdf0e10cSrcweir                     | beans::PropertyAttribute::READONLY
379*cdf0e10cSrcweir             ),
380*cdf0e10cSrcweir             beans::Property(
381*cdf0e10cSrcweir                 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
382*cdf0e10cSrcweir                 -1,
383*cdf0e10cSrcweir                 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
384*cdf0e10cSrcweir                 beans::PropertyAttribute::BOUND
385*cdf0e10cSrcweir                     | beans::PropertyAttribute::READONLY
386*cdf0e10cSrcweir             ),
387*cdf0e10cSrcweir             ///////////////////////////////////////////////////////////////
388*cdf0e10cSrcweir             // Optional standard properties
389*cdf0e10cSrcweir             ///////////////////////////////////////////////////////////////
390*cdf0e10cSrcweir             beans::Property(
391*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
392*cdf0e10cSrcweir                         "CreatableContentsInfo" ) ),
393*cdf0e10cSrcweir                     -1,
394*cdf0e10cSrcweir                     getCppuType( static_cast<
395*cdf0e10cSrcweir                         const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
396*cdf0e10cSrcweir                     beans::PropertyAttribute::BOUND
397*cdf0e10cSrcweir                         | beans::PropertyAttribute::READONLY )
398*cdf0e10cSrcweir             ///////////////////////////////////////////////////////////////
399*cdf0e10cSrcweir             // New properties
400*cdf0e10cSrcweir             ///////////////////////////////////////////////////////////////
401*cdf0e10cSrcweir         };
402*cdf0e10cSrcweir         return MAKEPROPSEQUENCE( aRootFolderPropertyInfoTable );
403*cdf0e10cSrcweir     }
404*cdf0e10cSrcweir }
405*cdf0e10cSrcweir 
406*cdf0e10cSrcweir //=========================================================================
407*cdf0e10cSrcweir // virtual
408*cdf0e10cSrcweir uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
409*cdf0e10cSrcweir             const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
410*cdf0e10cSrcweir {
411*cdf0e10cSrcweir     osl::Guard< osl::Mutex > aGuard( m_aMutex );
412*cdf0e10cSrcweir 
413*cdf0e10cSrcweir     if ( m_eKind == LINK )
414*cdf0e10cSrcweir     {
415*cdf0e10cSrcweir         //=================================================================
416*cdf0e10cSrcweir         //
417*cdf0e10cSrcweir         // Link: Supported commands
418*cdf0e10cSrcweir         //
419*cdf0e10cSrcweir         //=================================================================
420*cdf0e10cSrcweir 
421*cdf0e10cSrcweir         if ( isReadOnly() )
422*cdf0e10cSrcweir         {
423*cdf0e10cSrcweir             static const ucb::CommandInfo aLinkCommandInfoTable[] =
424*cdf0e10cSrcweir             {
425*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
426*cdf0e10cSrcweir                 // Required commands
427*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
428*cdf0e10cSrcweir                 ucb::CommandInfo(
429*cdf0e10cSrcweir                     rtl::OUString(
430*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
431*cdf0e10cSrcweir                     -1,
432*cdf0e10cSrcweir                     getCppuVoidType()
433*cdf0e10cSrcweir                 ),
434*cdf0e10cSrcweir                 ucb::CommandInfo(
435*cdf0e10cSrcweir                     rtl::OUString(
436*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
437*cdf0e10cSrcweir                     -1,
438*cdf0e10cSrcweir                     getCppuVoidType()
439*cdf0e10cSrcweir                 ),
440*cdf0e10cSrcweir                 ucb::CommandInfo(
441*cdf0e10cSrcweir                     rtl::OUString(
442*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
443*cdf0e10cSrcweir                     -1,
444*cdf0e10cSrcweir                     getCppuType(
445*cdf0e10cSrcweir                         static_cast< uno::Sequence< beans::Property > * >( 0 ) )
446*cdf0e10cSrcweir                 ),
447*cdf0e10cSrcweir                 ucb::CommandInfo(
448*cdf0e10cSrcweir                     rtl::OUString(
449*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
450*cdf0e10cSrcweir                     -1,
451*cdf0e10cSrcweir                     getCppuType(
452*cdf0e10cSrcweir                         static_cast<
453*cdf0e10cSrcweir                             uno::Sequence< beans::PropertyValue > * >( 0 ) )
454*cdf0e10cSrcweir                 )
455*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
456*cdf0e10cSrcweir                 // Optional standard commands
457*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
458*cdf0e10cSrcweir 
459*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
460*cdf0e10cSrcweir                 // New commands
461*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
462*cdf0e10cSrcweir             };
463*cdf0e10cSrcweir             return MAKECMDSEQUENCE( aLinkCommandInfoTable );
464*cdf0e10cSrcweir         }
465*cdf0e10cSrcweir         else
466*cdf0e10cSrcweir         {
467*cdf0e10cSrcweir             static const ucb::CommandInfo aLinkCommandInfoTable[] =
468*cdf0e10cSrcweir             {
469*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
470*cdf0e10cSrcweir                 // Required commands
471*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
472*cdf0e10cSrcweir                 ucb::CommandInfo(
473*cdf0e10cSrcweir                     rtl::OUString(
474*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
475*cdf0e10cSrcweir                     -1,
476*cdf0e10cSrcweir                     getCppuVoidType()
477*cdf0e10cSrcweir                 ),
478*cdf0e10cSrcweir                 ucb::CommandInfo(
479*cdf0e10cSrcweir                     rtl::OUString(
480*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
481*cdf0e10cSrcweir                     -1,
482*cdf0e10cSrcweir                     getCppuVoidType()
483*cdf0e10cSrcweir                 ),
484*cdf0e10cSrcweir                 ucb::CommandInfo(
485*cdf0e10cSrcweir                     rtl::OUString(
486*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
487*cdf0e10cSrcweir                     -1,
488*cdf0e10cSrcweir                     getCppuType(
489*cdf0e10cSrcweir                         static_cast< uno::Sequence< beans::Property > * >( 0 ) )
490*cdf0e10cSrcweir                 ),
491*cdf0e10cSrcweir                 ucb::CommandInfo(
492*cdf0e10cSrcweir                     rtl::OUString(
493*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
494*cdf0e10cSrcweir                     -1,
495*cdf0e10cSrcweir                     getCppuType(
496*cdf0e10cSrcweir                         static_cast<
497*cdf0e10cSrcweir                             uno::Sequence< beans::PropertyValue > * >( 0 ) )
498*cdf0e10cSrcweir                 ),
499*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
500*cdf0e10cSrcweir                 // Optional standard commands
501*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
502*cdf0e10cSrcweir                 ucb::CommandInfo(
503*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
504*cdf0e10cSrcweir                     -1,
505*cdf0e10cSrcweir                     getCppuBooleanType()
506*cdf0e10cSrcweir                 ),
507*cdf0e10cSrcweir                 ucb::CommandInfo(
508*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
509*cdf0e10cSrcweir                     -1,
510*cdf0e10cSrcweir                     getCppuVoidType()
511*cdf0e10cSrcweir                 )
512*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
513*cdf0e10cSrcweir                 // New commands
514*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
515*cdf0e10cSrcweir             };
516*cdf0e10cSrcweir             return MAKECMDSEQUENCE( aLinkCommandInfoTable );
517*cdf0e10cSrcweir         }
518*cdf0e10cSrcweir     }
519*cdf0e10cSrcweir     else if ( m_eKind == FOLDER )
520*cdf0e10cSrcweir     {
521*cdf0e10cSrcweir         //=================================================================
522*cdf0e10cSrcweir         //
523*cdf0e10cSrcweir         // Folder: Supported commands
524*cdf0e10cSrcweir         //
525*cdf0e10cSrcweir         //=================================================================
526*cdf0e10cSrcweir 
527*cdf0e10cSrcweir         if ( isReadOnly() )
528*cdf0e10cSrcweir         {
529*cdf0e10cSrcweir             static const ucb::CommandInfo aFolderCommandInfoTable[] =
530*cdf0e10cSrcweir             {
531*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
532*cdf0e10cSrcweir                 // Required commands
533*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
534*cdf0e10cSrcweir                 ucb::CommandInfo(
535*cdf0e10cSrcweir                     rtl::OUString(
536*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
537*cdf0e10cSrcweir                     -1,
538*cdf0e10cSrcweir                     getCppuVoidType()
539*cdf0e10cSrcweir                 ),
540*cdf0e10cSrcweir                 ucb::CommandInfo(
541*cdf0e10cSrcweir                     rtl::OUString(
542*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
543*cdf0e10cSrcweir                     -1,
544*cdf0e10cSrcweir                     getCppuVoidType()
545*cdf0e10cSrcweir                 ),
546*cdf0e10cSrcweir                 ucb::CommandInfo(
547*cdf0e10cSrcweir                     rtl::OUString(
548*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
549*cdf0e10cSrcweir                     -1,
550*cdf0e10cSrcweir                     getCppuType(
551*cdf0e10cSrcweir                         static_cast< uno::Sequence< beans::Property > * >( 0 ) )
552*cdf0e10cSrcweir                 ),
553*cdf0e10cSrcweir                 ucb::CommandInfo(
554*cdf0e10cSrcweir                     rtl::OUString(
555*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
556*cdf0e10cSrcweir                     -1,
557*cdf0e10cSrcweir                     getCppuType(
558*cdf0e10cSrcweir                         static_cast<
559*cdf0e10cSrcweir                             uno::Sequence< beans::PropertyValue > * >( 0 ) )
560*cdf0e10cSrcweir                 ),
561*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
562*cdf0e10cSrcweir                 // Optional standard commands
563*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
564*cdf0e10cSrcweir                 ucb::CommandInfo(
565*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
566*cdf0e10cSrcweir                     -1,
567*cdf0e10cSrcweir                     getCppuType(
568*cdf0e10cSrcweir                         static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
569*cdf0e10cSrcweir                 )
570*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
571*cdf0e10cSrcweir                 // New commands
572*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
573*cdf0e10cSrcweir             };
574*cdf0e10cSrcweir             return MAKECMDSEQUENCE( aFolderCommandInfoTable );
575*cdf0e10cSrcweir         }
576*cdf0e10cSrcweir         else
577*cdf0e10cSrcweir         {
578*cdf0e10cSrcweir             static const ucb::CommandInfo aFolderCommandInfoTable[] =
579*cdf0e10cSrcweir             {
580*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
581*cdf0e10cSrcweir                 // Required commands
582*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
583*cdf0e10cSrcweir                 ucb::CommandInfo(
584*cdf0e10cSrcweir                     rtl::OUString(
585*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
586*cdf0e10cSrcweir                     -1,
587*cdf0e10cSrcweir                     getCppuVoidType()
588*cdf0e10cSrcweir                 ),
589*cdf0e10cSrcweir                 ucb::CommandInfo(
590*cdf0e10cSrcweir                     rtl::OUString(
591*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
592*cdf0e10cSrcweir                     -1,
593*cdf0e10cSrcweir                     getCppuVoidType()
594*cdf0e10cSrcweir                 ),
595*cdf0e10cSrcweir                 ucb::CommandInfo(
596*cdf0e10cSrcweir                     rtl::OUString(
597*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
598*cdf0e10cSrcweir                     -1,
599*cdf0e10cSrcweir                     getCppuType(
600*cdf0e10cSrcweir                         static_cast< uno::Sequence< beans::Property > * >( 0 ) )
601*cdf0e10cSrcweir                 ),
602*cdf0e10cSrcweir                 ucb::CommandInfo(
603*cdf0e10cSrcweir                     rtl::OUString(
604*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
605*cdf0e10cSrcweir                     -1,
606*cdf0e10cSrcweir                     getCppuType(
607*cdf0e10cSrcweir                         static_cast<
608*cdf0e10cSrcweir                             uno::Sequence< beans::PropertyValue > * >( 0 ) )
609*cdf0e10cSrcweir                 ),
610*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
611*cdf0e10cSrcweir                 // Optional standard commands
612*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
613*cdf0e10cSrcweir                 ucb::CommandInfo(
614*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
615*cdf0e10cSrcweir                     -1,
616*cdf0e10cSrcweir                     getCppuBooleanType()
617*cdf0e10cSrcweir                 ),
618*cdf0e10cSrcweir                 ucb::CommandInfo(
619*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
620*cdf0e10cSrcweir                     -1,
621*cdf0e10cSrcweir                     getCppuVoidType()
622*cdf0e10cSrcweir                 ),
623*cdf0e10cSrcweir                 ucb::CommandInfo(
624*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
625*cdf0e10cSrcweir                     -1,
626*cdf0e10cSrcweir                     getCppuType(
627*cdf0e10cSrcweir                         static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
628*cdf0e10cSrcweir                 ),
629*cdf0e10cSrcweir                 ucb::CommandInfo(
630*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
631*cdf0e10cSrcweir                     -1,
632*cdf0e10cSrcweir                     getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
633*cdf0e10cSrcweir                 ),
634*cdf0e10cSrcweir                 ucb::CommandInfo(
635*cdf0e10cSrcweir                     rtl::OUString(
636*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "createNewContent" ) ),
637*cdf0e10cSrcweir                     -1,
638*cdf0e10cSrcweir                     getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
639*cdf0e10cSrcweir                 )
640*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
641*cdf0e10cSrcweir                 // New commands
642*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
643*cdf0e10cSrcweir             };
644*cdf0e10cSrcweir             return MAKECMDSEQUENCE( aFolderCommandInfoTable );
645*cdf0e10cSrcweir         }
646*cdf0e10cSrcweir     }
647*cdf0e10cSrcweir     else
648*cdf0e10cSrcweir     {
649*cdf0e10cSrcweir         //=================================================================
650*cdf0e10cSrcweir         //
651*cdf0e10cSrcweir         // Root Folder: Supported commands
652*cdf0e10cSrcweir         //
653*cdf0e10cSrcweir         //=================================================================
654*cdf0e10cSrcweir 
655*cdf0e10cSrcweir         if ( isReadOnly() )
656*cdf0e10cSrcweir         {
657*cdf0e10cSrcweir             static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
658*cdf0e10cSrcweir             {
659*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
660*cdf0e10cSrcweir                 // Required commands
661*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
662*cdf0e10cSrcweir                 ucb::CommandInfo(
663*cdf0e10cSrcweir                     rtl::OUString(
664*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
665*cdf0e10cSrcweir                     -1,
666*cdf0e10cSrcweir                     getCppuVoidType()
667*cdf0e10cSrcweir                 ),
668*cdf0e10cSrcweir                 ucb::CommandInfo(
669*cdf0e10cSrcweir                     rtl::OUString(
670*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
671*cdf0e10cSrcweir                     -1,
672*cdf0e10cSrcweir                     getCppuVoidType()
673*cdf0e10cSrcweir                 ),
674*cdf0e10cSrcweir                 ucb::CommandInfo(
675*cdf0e10cSrcweir                     rtl::OUString(
676*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
677*cdf0e10cSrcweir                     -1,
678*cdf0e10cSrcweir                     getCppuType(
679*cdf0e10cSrcweir                         static_cast< uno::Sequence< beans::Property > * >( 0 ) )
680*cdf0e10cSrcweir                 ),
681*cdf0e10cSrcweir                 ucb::CommandInfo(
682*cdf0e10cSrcweir                     rtl::OUString(
683*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
684*cdf0e10cSrcweir                     -1,
685*cdf0e10cSrcweir                     getCppuType(
686*cdf0e10cSrcweir                         static_cast<
687*cdf0e10cSrcweir                             uno::Sequence< beans::PropertyValue > * >( 0 ) )
688*cdf0e10cSrcweir                 ),
689*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
690*cdf0e10cSrcweir                 // Optional standard commands
691*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
692*cdf0e10cSrcweir                 ucb::CommandInfo(
693*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
694*cdf0e10cSrcweir                     -1,
695*cdf0e10cSrcweir                     getCppuType(
696*cdf0e10cSrcweir                         static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
697*cdf0e10cSrcweir                 )
698*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
699*cdf0e10cSrcweir                 // New commands
700*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
701*cdf0e10cSrcweir             };
702*cdf0e10cSrcweir             return MAKECMDSEQUENCE( aRootFolderCommandInfoTable );
703*cdf0e10cSrcweir         }
704*cdf0e10cSrcweir         else
705*cdf0e10cSrcweir         {
706*cdf0e10cSrcweir             static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
707*cdf0e10cSrcweir             {
708*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
709*cdf0e10cSrcweir                 // Required commands
710*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
711*cdf0e10cSrcweir                 ucb::CommandInfo(
712*cdf0e10cSrcweir                     rtl::OUString(
713*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
714*cdf0e10cSrcweir                     -1,
715*cdf0e10cSrcweir                     getCppuVoidType()
716*cdf0e10cSrcweir                 ),
717*cdf0e10cSrcweir                 ucb::CommandInfo(
718*cdf0e10cSrcweir                     rtl::OUString(
719*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
720*cdf0e10cSrcweir                     -1,
721*cdf0e10cSrcweir                     getCppuVoidType()
722*cdf0e10cSrcweir                 ),
723*cdf0e10cSrcweir                 ucb::CommandInfo(
724*cdf0e10cSrcweir                     rtl::OUString(
725*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
726*cdf0e10cSrcweir                     -1,
727*cdf0e10cSrcweir                     getCppuType(
728*cdf0e10cSrcweir                         static_cast< uno::Sequence< beans::Property > * >( 0 ) )
729*cdf0e10cSrcweir                 ),
730*cdf0e10cSrcweir                 ucb::CommandInfo(
731*cdf0e10cSrcweir                     rtl::OUString(
732*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
733*cdf0e10cSrcweir                     -1,
734*cdf0e10cSrcweir                     getCppuType(
735*cdf0e10cSrcweir                         static_cast<
736*cdf0e10cSrcweir                             uno::Sequence< beans::PropertyValue > * >( 0 ) )
737*cdf0e10cSrcweir                 ),
738*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
739*cdf0e10cSrcweir                 // Optional standard commands
740*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
741*cdf0e10cSrcweir                 ucb::CommandInfo(
742*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
743*cdf0e10cSrcweir                     -1,
744*cdf0e10cSrcweir                     getCppuType(
745*cdf0e10cSrcweir                         static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
746*cdf0e10cSrcweir                 ),
747*cdf0e10cSrcweir                 ucb::CommandInfo(
748*cdf0e10cSrcweir                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
749*cdf0e10cSrcweir                     -1,
750*cdf0e10cSrcweir                     getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
751*cdf0e10cSrcweir                 ),
752*cdf0e10cSrcweir                 ucb::CommandInfo(
753*cdf0e10cSrcweir                     rtl::OUString(
754*cdf0e10cSrcweir                         RTL_CONSTASCII_USTRINGPARAM( "createNewContent" ) ),
755*cdf0e10cSrcweir                     -1,
756*cdf0e10cSrcweir                     getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
757*cdf0e10cSrcweir                 )
758*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
759*cdf0e10cSrcweir                 // New commands
760*cdf0e10cSrcweir                 ///////////////////////////////////////////////////////////
761*cdf0e10cSrcweir             };
762*cdf0e10cSrcweir             return MAKECMDSEQUENCE( aRootFolderCommandInfoTable );
763*cdf0e10cSrcweir         }
764*cdf0e10cSrcweir     }
765*cdf0e10cSrcweir }
766