LibreOffice Module test (master) 1
unoapixml_test.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
11
12#include <com/sun/star/frame/Desktop.hpp>
13#include <com/sun/star/frame/XStorable.hpp>
16
17#include <sfx2/app.hxx>
18#include <sfx2/objsh.hxx>
19#include <utility>
20
21using namespace css;
22using namespace css::uno;
23
25 : UnoApiTest(path)
26{
27}
28
29xmlDocUniquePtr UnoApiXmlTest::parseExport(OUString const& rStreamName)
30{
31 std::unique_ptr<SvStream> const pStream(parseExportStream(maTempFile.GetURL(), rStreamName));
32 xmlDocUniquePtr pXmlDoc = parseXmlStream(pStream.get());
33 return pXmlDoc;
34}
35
36/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
utl::TempFileNamed maTempFile
Definition: unoapi_test.hxx:68
xmlDocUniquePtr parseExport(OUString const &rStreamName)
UnoApiXmlTest(OUString path)
static xmlDocUniquePtr parseXmlStream(SvStream *pStream)
Return xmlDocPtr representation of the XML stream read from pStream.
static std::unique_ptr< SvStream > parseExportStream(const OUString &url, const OUString &rStreamName)
OUString const & GetURL() const
std::unique_ptr< xmlDoc, xmlDocDeleter > xmlDocUniquePtr
Definition: xmldocptr.hxx:18