1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 '* Copyright 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: g_print.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 10:42:40 $
15 '* This file is part of OpenOffice.org.
17 '* OpenOffice.org is free software: you can redistribute it and/or modify
18 '* it under the terms of the GNU Lesser General Public License version 3
19 '* only, as published by the Free Software Foundation.
21 '* OpenOffice.org is distributed in the hope that it will be useful,
22 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
23 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 '* GNU Lesser General Public License version 3 for more details
25 '* (a copy is included in the LICENSE file that accompanied this code).
27 '* You should have received a copy of the GNU Lesser General Public License
28 '* version 3 along with OpenOffice.org. If not, see
29 '* <http://www.openoffice.org/license.html>
30 '* for a copy of the LGPLv3 License.
32 '/************************************************************************
34 '* Owner : wolfram.garten@sun.com
36 '* short description :
38 '**************************************************************************************
40 '\*************************************************************************************
45 printlog "Inserting testtext."
46 hTextrahmenErstellen ("This is an automated print test with testtool for GRAPHICS ",90,90,80,10)
47 hTextrahmenErstellen ("Version : "+ gVersionsnummer + " / " + gLanguage,80,90,70,10)
48 hTextrahmenErstellen ("Date / Time : "+ Date + " / " + Time,70,90,60,10)
49 hTextrahmenErstellen ("Machine / User: " + gPCName + " " + gUser,60,90,50,10)
51 printlog "Opening print Dialog."
54 if active.exists(2) then
56 qaerrorlog "There is no printer available - please install one on your system!"
62 ' Not yet active since this feature is not build into the master: i85355
63 ' printlog "Checking options for impress..."
64 ' if (gApplication = "IMPRESS") then
65 ' if PrintContent.GetSelIndex <> 1 then
66 ' warnlog "Not first entry selected!"
68 ' printlog " First entry selected."
71 ' if PrintContent.GetItemCount <> 4 then
72 ' warnlog "Entry-number of PrintContent listbox is wrong!"
74 ' printlog "Entry-number of PrintContent listbox is 4."
77 ' PrintContent.Select 2
78 ' if SlidesPerPage.IsEnabled then
79 ' printlog "SlidesPerPage active."
81 ' warnlog "SlidesPerPage did not get active!"
85 ' printlog "Vertical checked."
86 ' HorizontalOrder.Check
87 ' printlog "Horizontal checked again."
90 ' printlog "This is not impress, so no further print content testing."
93 printlog "Opening Options dialog."
96 Kontext "DruckerZusaetzeDraw"
98 printlog "Checking brochure printing."
99 if Prospekt.IsChecked then
100 warnlog "Somebody forgot to uncheck the prospect printing!"
103 printlog "Brochure printing is checked."
110 AusgeblendeteSeiten.Check
111 SeitengroesseAnpassen.Check
112 AusDruckereinstellung.Check
114 DruckerZusaetzeDraw.OK
118 Kontext "DruckerZusaetzeDraw"
119 if NOT Seitenname.IsChecked Then
120 warnlog " - Page name not checked"
122 printlog "Page name checked."
125 if NOT Datum.IsChecked Then
126 warnlog " - Date not checked"
128 printlog "Date is checked."
131 if NOT Zeit.IsChecked Then
132 warnlog " - Time not checked"
134 printlog "Time is checked."
137 if NOT AusgeblendeteSeiten.IsChecked Then
138 warnlog " - Hidden pages not checked"
140 printlog "Hidden pages checked."
143 if NOT SeitengroesseAnpassen.IsChecked Then
144 warnlog " - Fit to page not checked"
146 printlog "Fit to page checked."
149 if NOT AusDruckereinstellung.IsChecked Then
150 warnlog " - Paper tray from printer settings not checked"
152 printlog "Paper tray checked."
155 AusDruckereinstellung.UnCheck
157 DruckerZusaetzeDraw.OK