office-gobmx/test/source/unoapixml_test.cxx
Xisco Fauli 366812f72f UnoApiXmlTest: remove workaround to handle chart file names in tests
No longer needed after 269585d6b4
"oox, sd: fix ever-increasing chart IDs when exporting to PPTX"
and b27b250f70
"sc: fix ever-increasing chart IDs when exporting to XLSX"
Also restored the documents modified in d913584909
"UnoApiXmlTest: merge parseExport from ChartTest" to ensure
only one chart was possible per document. Sample documents in unittests
can have more than one chart now, since the chart file name wouldn't
change

Kudos to Miklos Vajna for fixing the chart file names when exporting them

Change-Id: I10e2c44e41953a2d0d08bbb2a813134861e74660
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148461
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-03-08 12:15:03 +00:00

36 lines
1 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <test/unoapixml_test.hxx>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <sfx2/app.hxx>
#include <sfx2/objsh.hxx>
#include <utility>
using namespace css;
using namespace css::uno;
UnoApiXmlTest::UnoApiXmlTest(OUString path)
: UnoApiTest(path)
{
}
xmlDocUniquePtr UnoApiXmlTest::parseExport(OUString const& rStreamName)
{
std::unique_ptr<SvStream> const pStream(parseExportStream(maTempFile.GetURL(), rStreamName));
xmlDocUniquePtr pXmlDoc = parseXmlStream(pStream.get());
return pXmlDoc;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */