summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/test/mtfxmldump.hxx13
-rw-r--r--include/test/xmltesttools.hxx5
2 files changed, 14 insertions, 4 deletions
diff --git a/include/test/mtfxmldump.hxx b/include/test/mtfxmldump.hxx
index 9da10c207ca2..86ffe9dcd3bb 100644
--- a/include/test/mtfxmldump.hxx
+++ b/include/test/mtfxmldump.hxx
@@ -13,23 +13,30 @@
#include <sal/config.h>
#include <test/testdllapi.hxx>
+#include <libxml/tree.h>
#include <vcl/gdimtf.hxx>
#include <vector>
class OOO_DLLPUBLIC_TEST MetafileXmlDump
{
std::vector<bool> maFilter;
- SvStream& mrStream;
public:
- MetafileXmlDump(SvStream& rStream);
+ MetafileXmlDump();
virtual ~MetafileXmlDump();
void filterActionType(const sal_uInt16 nActionType, bool bShouldFilter);
void filterAllActionTypes();
void filterNoneActionTypes();
- void dump(GDIMetaFile& rMetaFile);
+ /** The actual result that will be used for testing.
+
+ This function normally uses a SvMemoryStream for its operation; but
+ can use a physical file when a filename is specified in
+ pTempStreamName - this is useful when creating the test, to dump the
+ file for examination.
+ */
+ xmlDocPtr dumpAndParse(GDIMetaFile& rMetaFile, const OUString& rTempStreamName = OUString());
};
#endif
diff --git a/include/test/xmltesttools.hxx b/include/test/xmltesttools.hxx
index 4849ed9afb5b..058bbc251743 100644
--- a/include/test/xmltesttools.hxx
+++ b/include/test/xmltesttools.hxx
@@ -27,12 +27,15 @@
class OOO_DLLPUBLIC_TEST XmlTestTools
{
+public:
+ /// Return xmlDocPtr representation of the XML stream read from pStream.
+ static xmlDocPtr parseXmlStream(SvStream* pStream);
+
protected:
XmlTestTools();
virtual ~XmlTestTools();
htmlDocPtr parseXml(utl::TempFile& aTempFile);
- htmlDocPtr parseXmlStream(SvStream* pStream);
virtual void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx);