1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #include <cppunit/TestAssert.h>
11 #include <cppunit/TestFixture.h>
12 #include <cppunit/extensions/HelperMacros.h>
13 #include <cppunit/plugin/TestPlugIn.h>
15 #include <config_features.h>
17 #include <docmodel/theme/Theme.hxx>
21 class ThemeTest
: public CppUnit::TestFixture
25 CPPUNIT_TEST_FIXTURE(ThemeTest
, testPitchFamilyConversion
)
27 model::ThemeFont aFont
;
31 CPPUNIT_ASSERT_EQUAL(sal_Int16(0x12), aFont
.getPitchFamily());
33 aFont
.maPitch
= sal_Int16(0x7FF2); // only lower 4-bit
34 aFont
.maFamily
= sal_Int16(0x7FF3); // only lower 4-bit
36 CPPUNIT_ASSERT_EQUAL(sal_Int16(0x32), aFont
.getPitchFamily());
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */