webdavcontentcaps.cxx (59ddfc10) | webdavcontentcaps.cxx (06594b87) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 24 unchanged lines hidden (view full) --- 33#include <com/sun/star/beans/Property.hpp> 34#include <com/sun/star/beans/PropertyAttribute.hpp> 35#include <com/sun/star/beans/PropertyValue.hpp> 36#include <com/sun/star/ucb/CommandInfo.hpp> 37#include <com/sun/star/ucb/ContentInfo.hpp> 38#include <com/sun/star/ucb/OpenCommandArgument2.hpp> 39#include <com/sun/star/ucb/InsertCommandArgument.hpp> 40#include <com/sun/star/ucb/PostCommandArgument2.hpp> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 24 unchanged lines hidden (view full) --- 33#include <com/sun/star/beans/Property.hpp> 34#include <com/sun/star/beans/PropertyAttribute.hpp> 35#include <com/sun/star/beans/PropertyValue.hpp> 36#include <com/sun/star/ucb/CommandInfo.hpp> 37#include <com/sun/star/ucb/ContentInfo.hpp> 38#include <com/sun/star/ucb/OpenCommandArgument2.hpp> 39#include <com/sun/star/ucb/InsertCommandArgument.hpp> 40#include <com/sun/star/ucb/PostCommandArgument2.hpp> |
41#include <com/sun/star/ucb/PropertyCommandArgument.hpp> |
|
41#include <com/sun/star/ucb/TransferInfo.hpp> 42#include <com/sun/star/uno/Sequence.hxx> 43#include <com/sun/star/util/DateTime.hpp> 44#include <com/sun/star/ucb/Lock.hpp> 45#include <com/sun/star/ucb/LockEntry.hpp> 46#include "webdavcontent.hxx" 47#include "webdavprovider.hxx" 48#include "DAVSession.hxx" --- 475 unchanged lines hidden (view full) --- 524 525//========================================================================= 526// virtual 527uno::Sequence< ucb::CommandInfo > Content::getCommands( 528 const uno::Reference< ucb::XCommandEnvironment > & xEnv ) 529{ 530 osl::Guard< osl::Mutex > aGuard( m_aMutex ); 531 | 42#include <com/sun/star/ucb/TransferInfo.hpp> 43#include <com/sun/star/uno/Sequence.hxx> 44#include <com/sun/star/util/DateTime.hpp> 45#include <com/sun/star/ucb/Lock.hpp> 46#include <com/sun/star/ucb/LockEntry.hpp> 47#include "webdavcontent.hxx" 48#include "webdavprovider.hxx" 49#include "DAVSession.hxx" --- 475 unchanged lines hidden (view full) --- 525 526//========================================================================= 527// virtual 528uno::Sequence< ucb::CommandInfo > Content::getCommands( 529 const uno::Reference< ucb::XCommandEnvironment > & xEnv ) 530{ 531 osl::Guard< osl::Mutex > aGuard( m_aMutex ); 532 |
532 uno::Sequence< ucb::CommandInfo > aCmdInfo( 8 ); | 533 uno::Sequence< ucb::CommandInfo > aCmdInfo( 10 ); |
533 534 /////////////////////////////////////////////////////////////// 535 // Mandatory commands 536 /////////////////////////////////////////////////////////////// 537 538 aCmdInfo[ 0 ] = 539 ucb::CommandInfo( 540 rtl::OUString( --- 48 unchanged lines hidden (view full) --- 589 /////////////////////////////////////////////////////////////// 590 591 aCmdInfo[ 7 ] = 592 ucb::CommandInfo( 593 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "post" ) ), 594 -1, 595 getCppuType( static_cast< 596 ucb::PostCommandArgument2 * >( 0 ) ) ); | 534 535 /////////////////////////////////////////////////////////////// 536 // Mandatory commands 537 /////////////////////////////////////////////////////////////// 538 539 aCmdInfo[ 0 ] = 540 ucb::CommandInfo( 541 rtl::OUString( --- 48 unchanged lines hidden (view full) --- 590 /////////////////////////////////////////////////////////////// 591 592 aCmdInfo[ 7 ] = 593 ucb::CommandInfo( 594 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "post" ) ), 595 -1, 596 getCppuType( static_cast< 597 ucb::PostCommandArgument2 * >( 0 ) ) ); |
598 aCmdInfo[ 8 ] = 599 ucb::CommandInfo( 600 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "addProperty" ) ), 601 -1, 602 getCppuType( static_cast< 603 ucb::PropertyCommandArgument * >( 0 ) ) ); 604 aCmdInfo[ 9 ] = 605 ucb::CommandInfo( 606 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "removeProperty" ) ), 607 -1, 608 getCppuType( static_cast< 609 rtl::OUString * >( 0 ) ) ); |
|
597 598 sal_Bool bFolder = sal_False; 599 600 try 601 { 602 bFolder = isFolder( xEnv ); 603 } 604 catch ( uno::Exception const & ) --- 55 unchanged lines hidden --- | 610 611 sal_Bool bFolder = sal_False; 612 613 try 614 { 615 bFolder = isFolder( xEnv ); 616 } 617 catch ( uno::Exception const & ) --- 55 unchanged lines hidden --- |