LibreOffice Module ucb (master) 1
Functions
tdoc_content.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <o3tl/string_view.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/beans/IllegalTypeException.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/embed/InvalidStorageException.hpp>
#include <com/sun/star/embed/StorageWrappedTargetException.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/io/XActiveDataSink.hpp>
#include <com/sun/star/io/XActiveDataStreamer.hpp>
#include <com/sun/star/lang/IllegalAccessException.hpp>
#include <com/sun/star/packages/WrongPasswordException.hpp>
#include <com/sun/star/task/DocumentPasswordRequest.hpp>
#include <com/sun/star/task/XInteractionPassword.hpp>
#include <com/sun/star/ucb/CommandFailedException.hpp>
#include <com/sun/star/ucb/ContentAction.hpp>
#include <com/sun/star/ucb/ContentInfoAttribute.hpp>
#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
#include <com/sun/star/ucb/InsertCommandArgument.hpp>
#include <com/sun/star/ucb/InteractiveBadTransferURLException.hpp>
#include <com/sun/star/ucb/MissingInputStreamException.hpp>
#include <com/sun/star/ucb/NameClash.hpp>
#include <com/sun/star/ucb/NameClashException.hpp>
#include <com/sun/star/ucb/OpenCommandArgument2.hpp>
#include <com/sun/star/ucb/OpenMode.hpp>
#include <com/sun/star/ucb/TransferInfo.hpp>
#include <com/sun/star/ucb/UnsupportedCommandException.hpp>
#include <com/sun/star/ucb/UnsupportedDataSinkException.hpp>
#include <com/sun/star/ucb/UnsupportedNameClashException.hpp>
#include <com/sun/star/ucb/UnsupportedOpenModeException.hpp>
#include <com/sun/star/ucb/XCommandInfo.hpp>
#include <com/sun/star/ucb/XPersistentPropertySet.hpp>
#include <comphelper/propertysequence.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <ucbhelper/cancelcommandexecution.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/propertyvalueset.hxx>
#include <ucbhelper/macros.hxx>
#include <utility>
#include "tdoc_content.hxx"
#include "tdoc_resultset.hxx"
#include "tdoc_passwordrequest.hxx"
#include "../inc/urihelper.hxx"
Include dependency graph for tdoc_content.cxx:

Go to the source code of this file.

Functions

static ContentType lcl_getContentType (std::u16string_view rType)
 
 XTYPEPROVIDER_COMMON_IMPL (Content)
 
static OUString obtainPassword (const OUString &rName, task::PasswordRequestMode eMode, const uno::Reference< ucb::XCommandEnvironment > &xEnv)
 
static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream (const OUString &rUri, ContentProvider const *pProvider, const uno::Reference< ucb::XCommandEnvironment > &xEnv)
 

Function Documentation

◆ lcl_getContentType()

static ContentType lcl_getContentType ( std::u16string_view  rType)
static

◆ lcl_getTruncatedOutputStream()

static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream ( const OUString &  rUri,
ContentProvider const *  pProvider,
const uno::Reference< ucb::XCommandEnvironment > &  xEnv 
)
static
Exceptions
ucb::CommandFailedException
task::DocumentPasswordRequest
uno::RuntimeException

Definition at line 2706 of file tdoc_content.cxx.

References obtainPassword(), and tdoc_ucp::ContentProvider::queryOutputStream().

Referenced by tdoc_ucp::Content::getTruncatedOutputStream().

◆ obtainPassword()

static OUString obtainPassword ( const OUString &  rName,
task::PasswordRequestMode  eMode,
const uno::Reference< ucb::XCommandEnvironment > &  xEnv 
)
static
Exceptions
ucb::CommandFailedException
task::DocumentPasswordRequest

Definition at line 2611 of file tdoc_content.cxx.

References eMode.

Referenced by tdoc_ucp::Content::getStream(), and lcl_getTruncatedOutputStream().

◆ XTYPEPROVIDER_COMMON_IMPL()

XTYPEPROVIDER_COMMON_IMPL ( Content  )