Bump for 3.6-28
[LibreOffice.git] / ucb / source / ucp / hierarchy / hierarchycontentcaps.cxx
blobf8bca868a62da4cd3a4ee7ecad87db6eadfddfbe
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
30 /**************************************************************************
31 TODO
32 **************************************************************************
34 **************************************************************************
36 Props/Commands:
38 root folder folder link link
39 (new) (new)
40 ----------------------------------------------------------------
41 ContentType x x x x x
42 IsDocument x x x x x
43 IsFolder x x x x x
44 Title x x x x x
45 TargetURL x x
46 CreatableContentsInfo x x x x x
48 getCommandInfo x x x x x
49 getPropertySetInfo x x x x x
50 getPropertyValues x x x x x
51 setPropertyValues x x x x x
52 createNewContent x x
53 insert x x
54 delete x x
55 open x x
56 transfer x x
58 *************************************************************************/
60 #include <com/sun/star/beans/Property.hpp>
61 #include <com/sun/star/beans/PropertyAttribute.hpp>
62 #include <com/sun/star/beans/PropertyValue.hpp>
63 #include <com/sun/star/ucb/CommandInfo.hpp>
64 #include <com/sun/star/ucb/OpenCommandArgument2.hpp>
65 #include <com/sun/star/ucb/TransferInfo.hpp>
66 #include <com/sun/star/uno/Sequence.hxx>
67 #include <sal/macros.h>
68 #include "hierarchycontent.hxx"
70 using namespace com::sun::star;
71 using namespace hierarchy_ucp;
73 //=========================================================================
75 // HierarchyContent implementation.
77 //=========================================================================
79 #define MAKEPROPSEQUENCE( a ) \
80 uno::Sequence< beans::Property >( a, sizeof( a ) / sizeof( a[ 0 ] ) )
82 #define MAKECMDSEQUENCE( a ) \
83 uno::Sequence< ucb::CommandInfo >( a, sizeof( a ) / sizeof( a[ 0 ] ) )
85 //=========================================================================
87 // IMPORTENT: If any property data ( name / type / ... ) are changed, then
88 // HierarchyContent::getPropertyValues(...) must be adapted too!
90 //=========================================================================
92 // virtual
93 uno::Sequence< beans::Property > HierarchyContent::getProperties(
94 const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
96 osl::Guard< osl::Mutex > aGuard( m_aMutex );
98 if ( m_eKind == LINK )
100 //=================================================================
102 // Link: Supported properties
104 //=================================================================
106 if ( isReadOnly() )
108 static beans::Property aLinkPropertyInfoTable[] =
110 ///////////////////////////////////////////////////////////
111 // Required properties
112 ///////////////////////////////////////////////////////////
113 beans::Property(
114 rtl::OUString(
115 RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
117 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
118 beans::PropertyAttribute::BOUND
119 | beans::PropertyAttribute::READONLY
121 beans::Property(
122 rtl::OUString(
123 RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
125 getCppuBooleanType(),
126 beans::PropertyAttribute::BOUND
127 | beans::PropertyAttribute::READONLY
129 beans::Property(
130 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
132 getCppuBooleanType(),
133 beans::PropertyAttribute::BOUND
134 | beans::PropertyAttribute::READONLY
136 beans::Property(
137 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
139 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
140 beans::PropertyAttribute::BOUND
141 | beans::PropertyAttribute::READONLY
143 ///////////////////////////////////////////////////////////
144 // Optional standard properties
145 ///////////////////////////////////////////////////////////
146 beans::Property(
147 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TargetURL" ) ),
149 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
150 beans::PropertyAttribute::BOUND
151 | beans::PropertyAttribute::READONLY
153 beans::Property(
154 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
155 "CreatableContentsInfo" ) ),
157 getCppuType( static_cast<
158 const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
159 beans::PropertyAttribute::BOUND
160 | beans::PropertyAttribute::READONLY )
161 ///////////////////////////////////////////////////////////
162 // New properties
163 ///////////////////////////////////////////////////////////
165 return MAKEPROPSEQUENCE( aLinkPropertyInfoTable );
167 else
169 static beans::Property aLinkPropertyInfoTable[] =
171 ///////////////////////////////////////////////////////////
172 // Required properties
173 ///////////////////////////////////////////////////////////
174 beans::Property(
175 rtl::OUString(
176 RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
178 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
179 beans::PropertyAttribute::BOUND
180 | beans::PropertyAttribute::READONLY
182 beans::Property(
183 rtl::OUString(
184 RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
186 getCppuBooleanType(),
187 beans::PropertyAttribute::BOUND
188 | beans::PropertyAttribute::READONLY
190 beans::Property(
191 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
193 getCppuBooleanType(),
194 beans::PropertyAttribute::BOUND
195 | beans::PropertyAttribute::READONLY
197 beans::Property(
198 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
200 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
201 beans::PropertyAttribute::BOUND
203 ///////////////////////////////////////////////////////////
204 // Optional standard properties
205 ///////////////////////////////////////////////////////////
206 beans::Property(
207 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TargetURL" ) ),
209 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
210 beans::PropertyAttribute::BOUND
212 beans::Property(
213 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
214 "CreatableContentsInfo" ) ),
216 getCppuType( static_cast<
217 const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
218 beans::PropertyAttribute::BOUND
219 | beans::PropertyAttribute::READONLY )
220 ///////////////////////////////////////////////////////////
221 // New properties
222 ///////////////////////////////////////////////////////////
224 return MAKEPROPSEQUENCE( aLinkPropertyInfoTable );
227 else if ( m_eKind == FOLDER )
229 //=================================================================
231 // Folder: Supported properties
233 //=================================================================
235 if ( isReadOnly() )
237 static beans::Property aFolderPropertyInfoTable[] =
239 ///////////////////////////////////////////////////////////
240 // Required properties
241 ///////////////////////////////////////////////////////////
242 beans::Property(
243 rtl::OUString(
244 RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
246 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
247 beans::PropertyAttribute::BOUND
248 | beans::PropertyAttribute::READONLY
250 beans::Property(
251 rtl::OUString(
252 RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
254 getCppuBooleanType(),
255 beans::PropertyAttribute::BOUND
256 | beans::PropertyAttribute::READONLY
258 beans::Property(
259 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
261 getCppuBooleanType(),
262 beans::PropertyAttribute::BOUND
263 | beans::PropertyAttribute::READONLY
265 beans::Property(
266 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
268 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
269 beans::PropertyAttribute::BOUND
270 | beans::PropertyAttribute::READONLY
272 ///////////////////////////////////////////////////////////
273 // Optional standard properties
274 ///////////////////////////////////////////////////////////
275 beans::Property(
276 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
277 "CreatableContentsInfo" ) ),
279 getCppuType( static_cast<
280 const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
281 beans::PropertyAttribute::BOUND
282 | beans::PropertyAttribute::READONLY )
283 ///////////////////////////////////////////////////////////
284 // New properties
285 ///////////////////////////////////////////////////////////
287 return MAKEPROPSEQUENCE( aFolderPropertyInfoTable );
289 else
291 static beans::Property aFolderPropertyInfoTable[] =
293 ///////////////////////////////////////////////////////////
294 // Required properties
295 ///////////////////////////////////////////////////////////
296 beans::Property(
297 rtl::OUString(
298 RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
300 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
301 beans::PropertyAttribute::BOUND
302 | beans::PropertyAttribute::READONLY
304 beans::Property(
305 rtl::OUString(
306 RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
308 getCppuBooleanType(),
309 beans::PropertyAttribute::BOUND
310 | beans::PropertyAttribute::READONLY
312 beans::Property(
313 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
315 getCppuBooleanType(),
316 beans::PropertyAttribute::BOUND
317 | beans::PropertyAttribute::READONLY
319 beans::Property(
320 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
322 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
323 beans::PropertyAttribute::BOUND
325 ///////////////////////////////////////////////////////////
326 // Optional standard properties
327 ///////////////////////////////////////////////////////////
328 beans::Property(
329 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
330 "CreatableContentsInfo" ) ),
332 getCppuType( static_cast<
333 const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
334 beans::PropertyAttribute::BOUND
335 | beans::PropertyAttribute::READONLY )
336 ///////////////////////////////////////////////////////////
337 // New properties
338 ///////////////////////////////////////////////////////////
340 return MAKEPROPSEQUENCE( aFolderPropertyInfoTable );
343 else
345 //=================================================================
347 // Root Folder: Supported properties
349 //=================================================================
351 // Currently no difference between reonly /read-write
352 // -> all props ar read-only
354 static beans::Property aRootFolderPropertyInfoTable[] =
356 ///////////////////////////////////////////////////////////////
357 // Required properties
358 ///////////////////////////////////////////////////////////////
359 beans::Property(
360 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
362 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
363 beans::PropertyAttribute::BOUND
364 | beans::PropertyAttribute::READONLY
366 beans::Property(
367 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
369 getCppuBooleanType(),
370 beans::PropertyAttribute::BOUND
371 | beans::PropertyAttribute::READONLY
373 beans::Property(
374 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
376 getCppuBooleanType(),
377 beans::PropertyAttribute::BOUND
378 | beans::PropertyAttribute::READONLY
380 beans::Property(
381 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
383 getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
384 beans::PropertyAttribute::BOUND
385 | beans::PropertyAttribute::READONLY
387 ///////////////////////////////////////////////////////////////
388 // Optional standard properties
389 ///////////////////////////////////////////////////////////////
390 beans::Property(
391 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
392 "CreatableContentsInfo" ) ),
394 getCppuType( static_cast<
395 const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
396 beans::PropertyAttribute::BOUND
397 | beans::PropertyAttribute::READONLY )
398 ///////////////////////////////////////////////////////////////
399 // New properties
400 ///////////////////////////////////////////////////////////////
402 return MAKEPROPSEQUENCE( aRootFolderPropertyInfoTable );
406 //=========================================================================
407 // virtual
408 uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
409 const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
411 osl::Guard< osl::Mutex > aGuard( m_aMutex );
413 if ( m_eKind == LINK )
415 //=================================================================
417 // Link: Supported commands
419 //=================================================================
421 if ( isReadOnly() )
423 static const ucb::CommandInfo aLinkCommandInfoTable[] =
425 ///////////////////////////////////////////////////////////
426 // Required commands
427 ///////////////////////////////////////////////////////////
428 ucb::CommandInfo(
429 rtl::OUString(
430 RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
432 getCppuVoidType()
434 ucb::CommandInfo(
435 rtl::OUString(
436 RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
438 getCppuVoidType()
440 ucb::CommandInfo(
441 rtl::OUString(
442 RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
444 getCppuType(
445 static_cast< uno::Sequence< beans::Property > * >( 0 ) )
447 ucb::CommandInfo(
448 rtl::OUString(
449 RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
451 getCppuType(
452 static_cast<
453 uno::Sequence< beans::PropertyValue > * >( 0 ) )
455 ///////////////////////////////////////////////////////////
456 // Optional standard commands
457 ///////////////////////////////////////////////////////////
459 ///////////////////////////////////////////////////////////
460 // New commands
461 ///////////////////////////////////////////////////////////
463 return MAKECMDSEQUENCE( aLinkCommandInfoTable );
465 else
467 static const ucb::CommandInfo aLinkCommandInfoTable[] =
469 ///////////////////////////////////////////////////////////
470 // Required commands
471 ///////////////////////////////////////////////////////////
472 ucb::CommandInfo(
473 rtl::OUString(
474 RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
476 getCppuVoidType()
478 ucb::CommandInfo(
479 rtl::OUString(
480 RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
482 getCppuVoidType()
484 ucb::CommandInfo(
485 rtl::OUString(
486 RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
488 getCppuType(
489 static_cast< uno::Sequence< beans::Property > * >( 0 ) )
491 ucb::CommandInfo(
492 rtl::OUString(
493 RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
495 getCppuType(
496 static_cast<
497 uno::Sequence< beans::PropertyValue > * >( 0 ) )
499 ///////////////////////////////////////////////////////////
500 // Optional standard commands
501 ///////////////////////////////////////////////////////////
502 ucb::CommandInfo(
503 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
505 getCppuBooleanType()
507 ucb::CommandInfo(
508 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
510 getCppuVoidType()
512 ///////////////////////////////////////////////////////////
513 // New commands
514 ///////////////////////////////////////////////////////////
516 return MAKECMDSEQUENCE( aLinkCommandInfoTable );
519 else if ( m_eKind == FOLDER )
521 //=================================================================
523 // Folder: Supported commands
525 //=================================================================
527 if ( isReadOnly() )
529 static const ucb::CommandInfo aFolderCommandInfoTable[] =
531 ///////////////////////////////////////////////////////////
532 // Required commands
533 ///////////////////////////////////////////////////////////
534 ucb::CommandInfo(
535 rtl::OUString(
536 RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
538 getCppuVoidType()
540 ucb::CommandInfo(
541 rtl::OUString(
542 RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
544 getCppuVoidType()
546 ucb::CommandInfo(
547 rtl::OUString(
548 RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
550 getCppuType(
551 static_cast< uno::Sequence< beans::Property > * >( 0 ) )
553 ucb::CommandInfo(
554 rtl::OUString(
555 RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
557 getCppuType(
558 static_cast<
559 uno::Sequence< beans::PropertyValue > * >( 0 ) )
561 ///////////////////////////////////////////////////////////
562 // Optional standard commands
563 ///////////////////////////////////////////////////////////
564 ucb::CommandInfo(
565 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
567 getCppuType(
568 static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
570 ///////////////////////////////////////////////////////////
571 // New commands
572 ///////////////////////////////////////////////////////////
574 return MAKECMDSEQUENCE( aFolderCommandInfoTable );
576 else
578 static const ucb::CommandInfo aFolderCommandInfoTable[] =
580 ///////////////////////////////////////////////////////////
581 // Required commands
582 ///////////////////////////////////////////////////////////
583 ucb::CommandInfo(
584 rtl::OUString(
585 RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
587 getCppuVoidType()
589 ucb::CommandInfo(
590 rtl::OUString(
591 RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
593 getCppuVoidType()
595 ucb::CommandInfo(
596 rtl::OUString(
597 RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
599 getCppuType(
600 static_cast< uno::Sequence< beans::Property > * >( 0 ) )
602 ucb::CommandInfo(
603 rtl::OUString(
604 RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
606 getCppuType(
607 static_cast<
608 uno::Sequence< beans::PropertyValue > * >( 0 ) )
610 ///////////////////////////////////////////////////////////
611 // Optional standard commands
612 ///////////////////////////////////////////////////////////
613 ucb::CommandInfo(
614 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
616 getCppuBooleanType()
618 ucb::CommandInfo(
619 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
621 getCppuVoidType()
623 ucb::CommandInfo(
624 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
626 getCppuType(
627 static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
629 ucb::CommandInfo(
630 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
632 getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
634 ucb::CommandInfo(
635 rtl::OUString(
636 RTL_CONSTASCII_USTRINGPARAM( "createNewContent" ) ),
638 getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
640 ///////////////////////////////////////////////////////////
641 // New commands
642 ///////////////////////////////////////////////////////////
644 return MAKECMDSEQUENCE( aFolderCommandInfoTable );
647 else
649 //=================================================================
651 // Root Folder: Supported commands
653 //=================================================================
655 if ( isReadOnly() )
657 static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
659 ///////////////////////////////////////////////////////////
660 // Required commands
661 ///////////////////////////////////////////////////////////
662 ucb::CommandInfo(
663 rtl::OUString(
664 RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
666 getCppuVoidType()
668 ucb::CommandInfo(
669 rtl::OUString(
670 RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
672 getCppuVoidType()
674 ucb::CommandInfo(
675 rtl::OUString(
676 RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
678 getCppuType(
679 static_cast< uno::Sequence< beans::Property > * >( 0 ) )
681 ucb::CommandInfo(
682 rtl::OUString(
683 RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
685 getCppuType(
686 static_cast<
687 uno::Sequence< beans::PropertyValue > * >( 0 ) )
689 ///////////////////////////////////////////////////////////
690 // Optional standard commands
691 ///////////////////////////////////////////////////////////
692 ucb::CommandInfo(
693 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
695 getCppuType(
696 static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
698 ///////////////////////////////////////////////////////////
699 // New commands
700 ///////////////////////////////////////////////////////////
702 return MAKECMDSEQUENCE( aRootFolderCommandInfoTable );
704 else
706 static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
708 ///////////////////////////////////////////////////////////
709 // Required commands
710 ///////////////////////////////////////////////////////////
711 ucb::CommandInfo(
712 rtl::OUString(
713 RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
715 getCppuVoidType()
717 ucb::CommandInfo(
718 rtl::OUString(
719 RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
721 getCppuVoidType()
723 ucb::CommandInfo(
724 rtl::OUString(
725 RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
727 getCppuType(
728 static_cast< uno::Sequence< beans::Property > * >( 0 ) )
730 ucb::CommandInfo(
731 rtl::OUString(
732 RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
734 getCppuType(
735 static_cast<
736 uno::Sequence< beans::PropertyValue > * >( 0 ) )
738 ///////////////////////////////////////////////////////////
739 // Optional standard commands
740 ///////////////////////////////////////////////////////////
741 ucb::CommandInfo(
742 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
744 getCppuType(
745 static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
747 ucb::CommandInfo(
748 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
750 getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
752 ucb::CommandInfo(
753 rtl::OUString(
754 RTL_CONSTASCII_USTRINGPARAM( "createNewContent" ) ),
756 getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
758 ///////////////////////////////////////////////////////////
759 // New commands
760 ///////////////////////////////////////////////////////////
762 return MAKECMDSEQUENCE( aRootFolderCommandInfoTable );
767 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */