/* -*- 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 #include #include #include #include using namespace ::com::sun::star; namespace { /// Tests for writerfilter/source/dmapper/CellColorHandler.cxx. class Test : public UnoApiTest { public: Test() : UnoApiTest("/writerfilter/qa/cppunittests/dmapper/data/") { } }; CPPUNIT_TEST_FIXTURE(Test, test129205) { loadFromURL(u"tdf129205.docx"); uno::Reference xTextDocument(mxComponent, uno::UNO_QUERY); uno::Reference xParaEnumAccess(xTextDocument->getText(), uno::UNO_QUERY); uno::Reference xParaEnum = xParaEnumAccess->createEnumeration(); uno::Reference xPara(xParaEnum->nextElement(), uno::UNO_QUERY); drawing::FillStyle eFillStyle = drawing::FillStyle::FillStyle_NONE; xPara->getPropertyValue("FillStyle") >>= eFillStyle; // Without the accompanying fix in place, this test would have failed with: // - Expected: drawing::FillStyle_NONE // - Actual : FillStyle_SOLID // i.e. the paragraph had a solid fill, making the header image invisible. CPPUNIT_ASSERT_EQUAL(drawing::FillStyle_NONE, eFillStyle); } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */