summaryrefslogtreecommitdiff
path: root/vcl/inc/graphic/GraphicFormatDetector.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/graphic/GraphicFormatDetector.hxx')
-rw-r--r--vcl/inc/graphic/GraphicFormatDetector.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/vcl/inc/graphic/GraphicFormatDetector.hxx b/vcl/inc/graphic/GraphicFormatDetector.hxx
index b38561f790c3..f2f0393caeee 100644
--- a/vcl/inc/graphic/GraphicFormatDetector.hxx
+++ b/vcl/inc/graphic/GraphicFormatDetector.hxx
@@ -23,10 +23,19 @@
#include <tools/stream.hxx>
#include <vector>
-VCL_DLLPUBLIC bool peekGraphicFormat(SvStream& rStream, OUString& rFormatExtension, bool bTest);
-
namespace vcl
{
+/***
+ * This function is has two modes:
+ * - determine the file format when bTest = false
+ * returns true, success
+ * out rFormatExtension - on success: file format string
+ * - verify file format when bTest = true
+ * returns false, if file type can't be verified
+ * true, if the format is verified or the format is not known
+ */
+VCL_DLLPUBLIC bool peekGraphicFormat(SvStream& rStream, OUString& rFormatExtension, bool bTest);
+
class VCL_DLLPUBLIC GraphicFormatDetector
{
public: