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: w_insertgraphic.bas,v $
13 '* last change: $Author: fredrikh $ $Date: 2008-06-18 09:11:26 $
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 : helge.delfs@sun.com
36 '* short description : Test of Graphic function
38 '\*******************************************************************
40 global gSeperator
as String
41 global gMeasurementUnit
as String
48 use
"writer\tools\includes\w_tools.inc"
49 use
"writer\tools\includes\w_tool3.inc"
50 use
"writer\tools\includes\w_tool7.inc"
51 use
"writer\optional\includes\tools\tools1.inc"
52 use
"writer\optional\includes\tools\tools2.inc"
53 use
"writer\optional\includes\insertgraphic\w_insertgraphic1.inc"
54 use
"writer\optional\includes\insertgraphic\w_insertgraphic2.inc"
55 use
"writer\optional\includes\insertgraphic\w_insertgraphic3.inc"
56 use
"writer\optional\includes\insertgraphic\w_insertgraphic4.inc"
57 use
"writer\optional\includes\insertgraphic\w_insertgraphic5.inc"
59 printlog
Chr(13) + "Loading of Include - Files takes: " + Wielange ( StartZeit
)
60 printlog
Chr(13) + "******* Writer - Level 1 - Test *******"
61 printlog
Chr(13) + " - Test of Graphic function -"
63 Call hStatusIn ( "writer", "w_insertgraphic.bas" , "Graphic" )
64 Call wOptionsUndo("AutoCaption")
66 'Software Configuration:
67 'Getting the decimal seperator from global function
68 gSeperator
= GetDecimalSeperator()
69 'Setting the measurement unit to centimeters.
70 gMeasurementUnit
= fSetMeasurementToCM()
82 Call tInsertGraphic_10
83 Call tInsertGraphic_11
84 Call tInsertGraphic_12
85 Call tInsertGraphic_13
86 Call tInsertGraphic_14
87 Call tInsertGraphic_15
88 Call tInsertGraphic_16
89 Call tInsertGraphic_17
90 Call tInsertGraphic_18
91 Call tInsertGraphic_19
92 Call tInsertGraphic_20
93 Call tInsertGraphic_21
94 Call tInsertGraphic_22
95 Call tInsertGraphic_23
96 Call tInsertGraphic_24
97 Call tInsertGraphic_25
98 Call tInsertGraphic_26
99 Call tInsertGraphic_27
100 Call tInsertGraphic_28
101 Call tInsertGraphic_29
102 Call tInsertGraphic_30
103 Call tInsertGraphic_31
104 Call tInsertGraphic_32
105 Call tInsertGraphic_33
106 Call tInsertGraphic_34
107 Call tInsertGraphic_35
108 Call tInsertGraphic_36
109 Call tInsertGraphic_37
110 Call tInsertGraphic_38
111 Call tInsertGraphic_39
112 Call tInsertGraphic_40
113 Call tInsertGraphic_41
114 Call tInsertGraphic_42
115 Call tInsertGraphic_43
116 Call tInsertGraphic_44
117 Call tInsertGraphic_45
118 Call tInsertGraphic_46
119 Call tInsertGraphic_47
120 Call tInsertGraphic_48
121 Call tInsertGraphic_49
125 Printlog
Chr(13) + "End of Level 1 Test (Insert Graphic):"
126 Printlog
"Duration: "+ WieLange ( StartZeit
)
127 Printlog
"Date: " + Date + " Time: " + Time
132 use
"global\system\includes\master.inc"
133 use
"global\system\includes\gvariabl.inc"
135 gApplication
= "WRITER"