LibreOffice Module test (master)  1
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 
14 
15 namespace apitest
16 {
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: */
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
void testStringProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)