diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-09-10 09:36:23 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-09-11 09:27:02 +0200 |
commit | 313b8b0db3b68b7938f5cd138c6a226d00a47b67 (patch) | |
tree | b91fd3b443dc6b0d914a032fce96c4d22f6e8cbd /sd/source/ui/unoidl | |
parent | cbcfda9b2079ea4ef83b2a42828408b5f70f7692 (diff) |
initial DocumentSettingsSerializer interface impl.
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 24c9332e3756..a4aa2b196b63 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -55,6 +55,7 @@ #include "../inc/ViewShell.hxx" #include "../inc/FrameView.hxx" #include "Outliner.hxx" +#include <xmloff/settingsstore.hxx> #include <editeng/editstat.hxx> #include <svx/unoapi.hxx> @@ -78,7 +79,8 @@ using namespace ::com::sun::star::i18n; namespace sd { class DocumentSettings : public WeakImplHelper3< XPropertySet, XMultiPropertySet, XServiceInfo >, - public comphelper::PropertySetHelper + public comphelper::PropertySetHelper, + public DocumentSettingsSerializer { public: DocumentSettings( SdXImpressDocument* pModel ); @@ -110,6 +112,14 @@ namespace sd virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(RuntimeException); + // DocumentSettingsSerializer cf. xmloff + virtual uno::Sequence<beans::PropertyValue> + filterStreamsFromStorage(const uno::Reference< embed::XStorage > &xStorage, + const uno::Sequence<beans::PropertyValue>& aConfigProps ); + virtual uno::Sequence<beans::PropertyValue> + filterStreamsToStorage(const uno::Reference< embed::XStorage > &xStorage, + const uno::Sequence<beans::PropertyValue>& aConfigProps ); + protected: virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ); virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException ); @@ -279,6 +289,26 @@ void DocumentSettings::AssignURL( XPropertyListType t, const Any* pValue, bool * delete pList; } +uno::Sequence<beans::PropertyValue> + DocumentSettings::filterStreamsFromStorage( + const uno::Reference< embed::XStorage > &xStorage, + const uno::Sequence<beans::PropertyValue>& aConfigProps ) +{ + (void) xStorage; +// fprintf( stderr, "filter streams from storage\n" ); + return aConfigProps; +} + +uno::Sequence<beans::PropertyValue> + DocumentSettings::filterStreamsToStorage( + const uno::Reference< embed::XStorage > &xStorage, + const uno::Sequence<beans::PropertyValue>& aConfigProps ) +{ + (void) xStorage; +// fprintf( stderr, "filter streams to storage\n" ); + return aConfigProps; +} + void DocumentSettings::_setPropertyValues( const PropertyMapEntry** ppEntries, const Any* pValues ) throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException ) { ::SolarMutexGuard aGuard; |