LibreOffice Module test (master)
1
test
source
text
textprintersettings.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
10
#include <com/sun/star/beans/XPropertySet.hpp>
11
12
#include <
test/unoapi_property_testers.hxx
>
13
#include <
test/text/textprintersettings.hxx
>
14
15
namespace
apitest
16
{
17
TextPrinterSettings::~TextPrinterSettings
() {}
18
void
TextPrinterSettings::testPrinterSettingsProperties
()
19
{
20
css::uno::Reference<css::beans::XPropertySet> xPrinterSettings(
init
(),
21
css::uno::UNO_QUERY_THROW);
22
23
testBooleanProperty
(xPrinterSettings,
"PrintGraphics"
);
24
testBooleanProperty
(xPrinterSettings,
"PrintTables"
);
25
testBooleanProperty
(xPrinterSettings,
"PrintDrawings"
);
26
testBooleanProperty
(xPrinterSettings,
"PrintLeftPages"
);
27
testBooleanProperty
(xPrinterSettings,
"PrintRightPages"
);
28
testBooleanProperty
(xPrinterSettings,
"PrintControls"
);
29
testBooleanProperty
(xPrinterSettings,
"PrintReversed"
);
30
testBooleanProperty
(xPrinterSettings,
"PrintControls"
);
31
testStringProperty
(xPrinterSettings,
"PrintFaxName"
,
"FaxName"
);
32
testBooleanProperty
(xPrinterSettings,
"PrintProspect"
);
33
testBooleanProperty
(xPrinterSettings,
"PrintPageBackground"
);
34
testBooleanProperty
(xPrinterSettings,
"PrintBlackFonts"
);
35
testBooleanOptionalProperty
(xPrinterSettings,
"PrintEmptyPages"
);
36
}
37
}
// end namespace apitest
38
39
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
apitest::TextPrinterSettings::testPrinterSettingsProperties
void testPrinterSettingsProperties()
Definition:
textprintersettings.cxx:18
apitest::TextPrinterSettings::~TextPrinterSettings
virtual ~TextPrinterSettings()
Definition:
textprintersettings.cxx:17
apitest::TextPrinterSettings::init
virtual css::uno::Reference< css::uno::XInterface > init()=0
apitest
Definition:
xpropertyset.cxx:36
apitest::testStringProperty
void testStringProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
Definition:
unoapi_property_testers.cxx:227
apitest::testBooleanProperty
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
Definition:
unoapi_property_testers.cxx:19
apitest::testBooleanOptionalProperty
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
Definition:
unoapi_property_testers.cxx:39
textprintersettings.hxx
unoapi_property_testers.hxx
Generated on Sun Jul 30 2023 04:27:11 for LibreOffice Module test (master) by
1.9.3