LibreOffice Module embeddedobj (master) 1
|
#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"
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) |
|
static |
Definition at line 94 of file persistence.cxx.
Referenced by OCommonEmbeddedObject::CreateDocFromMediaDescr_Impl().
|
static |
Definition at line 190 of file persistence.cxx.
References aArguments, SAL_WARN_IF, and u.
Referenced by OCommonEmbeddedObject::CreateDocFromMediaDescr_Impl(), OCommonEmbeddedObject::InitNewDocument_Impl(), OCommonEmbeddedObject::LoadDocumentFromStorage_Impl(), and OCommonEmbeddedObject::LoadLink_Impl().
|
static |
Definition at line 121 of file persistence.cxx.
References cppu::getCaughtException(), and SAL_WARN_IF.
Referenced by OCommonEmbeddedObject::LoadDocumentFromStorage_Impl().
uno::Sequence< beans::PropertyValue > GetValuableArgs_Impl | ( | const uno::Sequence< beans::PropertyValue > & | aMedDescr, |
bool | bCanUseDocumentBaseURL | ||
) |
Definition at line 67 of file persistence.cxx.
Referenced by OCommonEmbeddedObject::LinkInit_Impl(), OCommonEmbeddedObject::reload(), OCommonEmbeddedObject::setPersistentEntry(), and OCommonEmbeddedObject::storeAsEntry().
|
static |
Definition at line 222 of file persistence.cxx.
References aSeq, and comphelper::makePropertyValue().
Referenced by OCommonEmbeddedObject::EmbedAndReparentDoc_Impl().
|
static |
Definition at line 174 of file persistence.cxx.
References DBG_UNHANDLED_EXCEPTION, and u.
Referenced by OCommonEmbeddedObject::setPersistentEntry().