merge the formfield patch from ooo-build
[ooovba.git] / goodies / source / inv / waves.hxx
blob34da84bf8688bab09e941646a5453a7491af1571
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: waves.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _WAVES_HXX
31 #define _WAVES_HXX
33 #include <tools/solar.h>
35 #define MAX_LEN 250
36 #define WAVES 10
37 #define RANMAX 60
39 #ifdef WIN
40 #pragma data_seg( "MY_DATA", "DATA" )
41 #endif
43 USHORT ranpos[RANMAX*2+1] =
44 { 60,
45 10,20,50,20,90,20,130,20,170,20,210,20,250,20,290,20,330,20,370,20,
46 30,50,70,50,110,50,150,50,190,50,230,50,270,50,310,50,350,50,390,50,
47 10,80,50,80,90,80,130,80,170,80,210,80,250,80,290,80,330,80,370,80,
48 30,110,70,110,110,110,150,110,190,110,230,110,270,110,310,110,350,
49 110,390,110,
50 10,140,50,140,90,140,130,140,170,140,210,140,250,140,290,140,330,140,
51 370,140,
52 30,170,70,170,110,170,150,170,190,170,230,170,270,170,310,170,350,
53 170,390,170
56 long levelpuf[RANMAX*3+2] =
57 { 0, 0, 0, 0, 0};
59 BYTE waves[WAVES][MAX_LEN] = {
60 { 11, 0, 10, 20, 0, 50, 20, 0, 90, 20, 0, 130, 20, 0, 170, 20,
61 0, 30, 50, 0, 70, 50, 0, 110, 50, 0, 150, 50, 0, 190, 50,
62 4,100, 200,
63 240, 240, 0 },
64 { 12, 1, 10, 20, 1, 50, 20, 1, 90, 20, 1, 130, 20, 1, 170, 20,
65 1, 30, 50, 1, 70, 50, 1, 110, 50, 1, 150, 50, 1, 190, 50,
66 4,80, 200, 4,120,200,
67 15, 15, 15 },
68 { 13, 2, 10, 20, 2, 50, 20, 2, 90, 20, 2, 130, 20, 2, 170, 20,
69 2, 30, 50, 2, 70, 50, 2, 110, 50, 2, 150, 50, 2, 190, 50,
70 4,5,250, 4,100,190, 4,200,230,
71 240, 240, 0 },
72 { 14, 3, 10, 20, 3, 50, 20, 3, 90, 20, 3, 130, 20, 3, 170, 20,
73 3, 30, 50, 3, 70, 50, 3, 110, 50, 3, 150, 50, 3, 190, 50,
74 4, 10,190, 4,50,240, 4,120,250, 4, 180,210,
75 15, 15, 15 },
76 { 25, 0, 10, 50, 0, 10, 90, 0, 10, 130,
77 1, 50, 30, 1, 50, 70, 1, 50, 110,
78 2, 90, 10, 1, 90, 50, 2, 90, 90,
79 3,130, 10, 3,130, 50, 3,130, 90,
80 2,170, 10, 1,170, 50, 2,170, 90,
81 1,210, 30, 1,210, 70, 1,210, 110,
82 0,250, 50, 0,250, 90, 0,250, 130,
83 4, 211, 211, 4, 215, 115, 4, 230,230, 4,198, 210,
84 15, 6, 15 },
85 { 18, 3, 10, 10, 3, 50, 10, 3, 90, 10, 3, 130, 10, 3, 170, 10,
86 2, 30, 50, 2, 70 , 50, 2, 110, 50, 2, 150, 50,
87 4,10,90,1, 50, 90, 1, 90, 90, 1, 130, 90,
88 0, 70, 130, 0, 110, 130,4,150,110,
89 0, 90, 170, 4, 120, 200,
90 240, 255, 0 },
91 { 15, 0, 50, 50, 0, 100, 50, 0, 150, 50, 0, 200, 50, 0, 250, 50,
92 2, 50, 100, 2, 150, 100, 2, 250, 100,
93 3, 100, 150, 3, 200, 150,
94 0, 50, 200, 1, 100, 200, 0, 150, 200, 1, 200, 200, 0, 250 ,200,
95 255, 249, 15 },
96 { 20, 1, 10, 20, 1, 50, 20, 1, 90, 20, 1, 130, 20, 1, 170, 20,
97 1, 30, 50, 1, 70, 50, 1, 110, 50, 1, 150, 50, 1, 190, 50,
98 2, 10, 80, 2, 50, 80, 2, 90, 80, 2, 130, 80, 2, 170, 80,
99 2, 30, 110, 2, 70, 110, 2, 110, 110, 2, 150, 110, 2, 190, 110,
100 240, 240, 0 },
102 { 40, 0, 10, 20, 0, 50, 20, 0, 90, 20, 0, 130, 20, 0, 170, 20,
103 0, 30, 50, 0, 70, 50, 0, 110, 50, 0, 150, 50, 0, 190, 50,
104 1, 10, 80, 1, 50, 80, 1, 90, 80, 1, 130, 80, 1, 170, 80,
105 1, 30, 110, 1, 70, 110, 1, 110, 110, 1, 150, 110, 1, 190, 110,
106 2, 10, 140, 2, 50, 140, 2, 90, 140, 2, 130, 140, 2, 170, 140,
107 0, 30, 170, 0, 70, 170, 0, 110, 170, 0, 150, 170, 0, 190, 170,
108 3, 10, 200, 3, 50, 200, 3, 90, 200, 3, 130, 200, 3, 170, 200,
109 0, 30, 230, 0, 70, 230, 0, 110, 230, 0, 150, 230, 0, 190, 230,
110 15, 15, 15 },
111 { 64, 0, 5, 5, 0, 40, 5, 0, 75, 5, 0, 110, 5, 0, 145, 5, 0, 180, 5, 0, 215, 5, 0, 250, 5,
112 0, 5, 40, 0, 40, 40, 0, 75, 40, 0, 110, 40, 0, 145, 40, 0, 180, 40, 0, 215, 40, 0, 250, 40,
113 0, 5, 75, 1, 40, 75, 2, 75, 75, 2, 110, 75, 2, 145, 75, 2, 180, 75, 1, 215, 75, 0, 250, 75,
114 0, 5, 110, 1, 40, 110, 2, 75, 110, 0, 110, 110, 3, 145, 110, 2, 180, 110, 1, 215, 110, 0, 250, 110,
115 0, 5, 145, 1, 40, 145, 2, 75, 145, 3, 110, 145, 0, 145, 145, 2, 180, 145, 1, 215, 145, 0, 250, 145,
116 0, 5, 180, 1, 40, 180, 2, 75, 180, 2, 110, 180, 2, 145, 180, 2, 180, 180, 1, 215, 180, 0, 250, 180,
117 0, 5, 215, 0, 40, 215, 0, 75, 215, 0, 110, 215, 0, 145, 215, 0, 180, 215, 0, 215, 215, 0, 250, 215,
118 0, 5, 250, 0, 40, 250, 0, 75, 250, 0, 110, 250, 0, 145, 250, 0, 180, 250, 0, 215, 250, 0, 250, 250,
119 255, 255, 255 },
121 #endif