LibreOffice Module embeddedobj (master) 1
Functions
persistence.cxx File Reference
#include <commonembobj.hxx>
#include <com/sun/star/embed/Aspects.hpp>
#include <com/sun/star/document/XStorageBasedDocument.hpp>
#include <com/sun/star/embed/EmbedStates.hpp>
#include <com/sun/star/embed/EntryInitModes.hpp>
#include <com/sun/star/embed/StorageWrappedTargetException.hpp>
#include <com/sun/star/embed/WrongStateException.hpp>
#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/embed/XOptimizedStorage.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/EmbedUpdateModes.hpp>
#include <com/sun/star/embed/StorageFactory.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/TempFile.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/frame/XLoadable.hpp>
#include <com/sun/star/frame/XModule.hpp>
#include <com/sun/star/lang/NoSupportException.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/util/XModifiable.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/IllegalTypeException.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <comphelper/fileformat.h>
#include <comphelper/storagehelper.hxx>
#include <comphelper/mimeconfighelper.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/propertyvalue.hxx>
#include <unotools/mediadescriptor.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <sal/log.hxx>
#include <unotools/configmgr.hxx>
#include "persistence.hxx"
Include dependency graph for persistence.cxx:

Go to the source code of this file.

Functions

uno::Sequence< beans::PropertyValue > GetValuableArgs_Impl (const uno::Sequence< beans::PropertyValue > &aMedDescr, bool bCanUseDocumentBaseURL)
 
static uno::Sequence< beans::PropertyValue > addAsTemplate (const uno::Sequence< beans::PropertyValue > &aOrig)
 
static uno::Reference< io::XInputStream > createTempInpStreamFromStor (const uno::Reference< embed::XStorage > &xStorage, const uno::Reference< uno::XComponentContext > &xContext)
 
static void TransferMediaType (const uno::Reference< embed::XStorage > &i_rSource, const uno::Reference< embed::XStorage > &i_rTarget)
 
static uno::Reference< util::XCloseable > CreateDocument (const uno::Reference< uno::XComponentContext > &_rxContext, const OUString &_rDocumentServiceName, bool _bEmbeddedScriptSupport, const bool i_bDocumentRecoverySupport)
 
static void SetDocToEmbedded (const uno::Reference< frame::XModel > &rDocument, const OUString &aModuleName)
 

Function Documentation

◆ addAsTemplate()

static uno::Sequence< beans::PropertyValue > addAsTemplate ( const uno::Sequence< beans::PropertyValue > &  aOrig)
static

Definition at line 94 of file persistence.cxx.

References Name, and nLength.

Referenced by OCommonEmbeddedObject::CreateDocFromMediaDescr_Impl().

◆ CreateDocument()

static uno::Reference< util::XCloseable > CreateDocument ( const uno::Reference< uno::XComponentContext > &  _rxContext,
const OUString &  _rDocumentServiceName,
bool  _bEmbeddedScriptSupport,
const bool  i_bDocumentRecoverySupport 
)
static

◆ createTempInpStreamFromStor()

static uno::Reference< io::XInputStream > createTempInpStreamFromStor ( const uno::Reference< embed::XStorage > &  xStorage,
const uno::Reference< uno::XComponentContext > &  xContext 
)
static

◆ GetValuableArgs_Impl()

uno::Sequence< beans::PropertyValue > GetValuableArgs_Impl ( const uno::Sequence< beans::PropertyValue > &  aMedDescr,
bool  bCanUseDocumentBaseURL 
)

◆ SetDocToEmbedded()

static void SetDocToEmbedded ( const uno::Reference< frame::XModel > &  rDocument,
const OUString &  aModuleName 
)
static

◆ TransferMediaType()

static void TransferMediaType ( const uno::Reference< embed::XStorage > &  i_rSource,
const uno::Reference< embed::XStorage > &  i_rTarget 
)
static

Definition at line 174 of file persistence.cxx.

References DBG_UNHANDLED_EXCEPTION, and u.

Referenced by OCommonEmbeddedObject::setPersistentEntry().