summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-03-12 13:04:41 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-03-12 12:56:02 +0100
commitafea2bbcd5cb879d18cda6eae3dfe893f6044be4 (patch)
treeb4e635b61f748a5397fd3e503496650b71dd721f /include
parentab9eff78f05e71d4d853fe72c03823287b49c93b (diff)
svtools: cleanup GraphicAccess
Change-Id: I1eb2b5dd6859653594771d950992dfca38161446 Reviewed-on: https://gerrit.libreoffice.org/51104 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/imageresourceaccess.hxx68
1 files changed, 31 insertions, 37 deletions
diff --git a/include/svtools/imageresourceaccess.hxx b/include/svtools/imageresourceaccess.hxx
index ee30ab0b75dc..0ad0eb7d35cb 100644
--- a/include/svtools/imageresourceaccess.hxx
+++ b/include/svtools/imageresourceaccess.hxx
@@ -29,45 +29,39 @@ class SvStream;
namespace svt
{
+namespace GraphicAccess
+{
-
- //= GraphicAccess
-
- /** helper class for obtaining streams (which also can be used with the ImageProducer)
- from a resource
- */
- namespace GraphicAccess
- {
- /** determines whether the given URL denotes an image within a resource */
- SVT_DLLPUBLIC bool isSupportedURL( const OUString& _rURL );
-
- /** for a given URL of an image within a resource, this method retrieves an SvStream for this image.
-
- This method works for arbitrary URLs denoting an image, since the
- css::graphics::GraphicsProvider service is used
- to resolve the URL. However, obtaining the stream is expensive (since
- the image must be copied), so you are strongly encouraged to only use it
- when you know that the image is small enough.
- */
- SVT_DLLPUBLIC SvStream* getImageStream(
- const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
- const OUString& _rImageResourceURL
- );
-
- /** for a given URL of an image within a resource, this method retrieves
- an css::io::XInputStream for this image.
- */
- SVT_DLLPUBLIC css::uno::Reference< css::io::XInputStream >
- getImageXStream(
- const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
- const OUString& _rImageResourceURL
- );
- }
-
-
+/** Helpers for obtaining streams (which also can be used with the ImageProducer)
+ from a resource.
+*/
+
+/** determines whether the given URL denotes an image within a resource */
+SVT_DLLPUBLIC bool isSupportedURL(OUString const & rURL);
+
+/** for a given URL of an image within a resource, this method retrieves an
+ SvStream for this image.
+
+ This method works for arbitrary URLs denoting an image, since the
+ css::graphics::GraphicsProvider service is used
+ to resolve the URL. However, obtaining the stream is expensive (since
+ the image must be copied), so you are strongly encouraged to only use it
+ when you know that the image is small enough.
+*/
+SVT_DLLPUBLIC SvStream* getImageStream(
+ css::uno::Reference<css::uno::XComponentContext> const & rxContext,
+ OUString const & rImageResourceURL);
+
+/** for a given URL of an image within a resource, this method retrieves
+ an css::io::XInputStream for this image.
+*/
+SVT_DLLPUBLIC css::uno::Reference<css::io::XInputStream> getImageXStream(
+ css::uno::Reference<css::uno::XComponentContext> const & rxContext,
+ OUString const & rImageResourceURL);
+
+} // namespace GraphicAccess
} // namespace svt
-
-#endif // DBA14_ INCLUDED_SVTOOLS_IMAGERESOURCEACCESS_HXX
+#endif // INCLUDED_SVTOOLS_IMAGERESOURCEACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */