diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-30 10:23:00 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-31 13:25:47 +0100 |
commit | 6d564bac023ef13955ad0269c91370396cf33d3e (patch) | |
tree | f31debe4f6fecb5f7557d427083602343448be9d /include/svx/xmlgrhlp.hxx | |
parent | 02eb7511f99d2e2322c57ea86695c3db87a037fd (diff) |
svx: Use constructor feature for SvXMLGraphicImportExportHelper.
Change-Id: Icc281ece80b81cdd95b6660c6a82077d283f5a62
Diffstat (limited to 'include/svx/xmlgrhlp.hxx')
-rw-r--r-- | include/svx/xmlgrhlp.hxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/include/svx/xmlgrhlp.hxx b/include/svx/xmlgrhlp.hxx index 7e399b0f47ef..3f653ca42663 100644 --- a/include/svx/xmlgrhlp.hxx +++ b/include/svx/xmlgrhlp.hxx @@ -31,19 +31,12 @@ #include <com/sun/star/embed/XStorage.hpp> #include <svx/svxdllapi.h> -// ---------------------- -// - SvXMLGraphicHelper - -// ---------------------- - enum SvXMLGraphicHelperMode { GRAPHICHELPER_MODE_READ = 0, GRAPHICHELPER_MODE_WRITE = 1 }; -// ---------------------- -// - SvXMLGraphicHelper - -// ---------------------- struct SvxGraphicHelperStream_Impl { ::com::sun::star::uno::Reference < ::com::sun::star::embed::XStorage > xStorage; @@ -119,42 +112,6 @@ public: virtual OUString SAL_CALL resolveOutputStream( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rxBinaryStream ) throw (::com::sun::star::uno::RuntimeException); }; - -// for instantiation via service manager -namespace svx -{ -/** Create this with createInstanceWithArguments. service name - "com.sun.star.comp.Svx.GraphicImportHelper", one argument which is the - XStorage. Without arguments no helper class is created. With an empty - argument the helper class is created and initialized like in the CTOR to - SvXMLGraphicHelper that only gets the create mode. - - You should call dispose after you no longer need this component. - - uses eCreateMode == GRAPHICHELPER_MODE_READ, bDirect == sal_True in - SvXMLGraphicHelper - */ -SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvXMLGraphicImportHelper_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr) throw( ::com::sun::star::uno::Exception ); -SVX_DLLPUBLIC ::com::sun::star::uno::Sequence< OUString > SAL_CALL SvXMLGraphicImportHelper_getSupportedServiceNames() throw(); -SVX_DLLPUBLIC OUString SAL_CALL SvXMLGraphicImportHelper_getImplementationName() throw(); - -/** Create this with createInstanceWithArguments. service name - "com.sun.star.comp.Svx.GraphicExportHelper", one argument which is the - XStorage. Without arguments no helper class is created. With an empty - argument the helper class is created and initialized like in the CTOR to - SvXMLGraphicHelper that only gets the create mode - - To write the Pictures stream, you have to call dispose at this component. - Make sure you call dipose before you commit the parent storage. - - uses eCreateMode == GRAPHICHELPER_MODE_WRITE, bDirect == sal_True in - SvXMLGraphicHelper - */ -SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvXMLGraphicExportHelper_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr) throw( ::com::sun::star::uno::Exception ); -SVX_DLLPUBLIC ::com::sun::star::uno::Sequence< OUString > SAL_CALL SvXMLGraphicExportHelper_getSupportedServiceNames() throw(); -SVX_DLLPUBLIC OUString SAL_CALL SvXMLGraphicExportHelper_getImplementationName() throw(); -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |