xref: /trunk/main/UnoControls/inc/definesunocontrols.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX
29*cdf0e10cSrcweir #define _UNOCONTROLS_DEFINES_CTRL_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
32*cdf0e10cSrcweir // includes
33*cdf0e10cSrcweir #include <limits.h> // defines for min/max of INT
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir namespace unocontrols{
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
38*cdf0e10cSrcweir // global defines for all UnoControls
39*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
40*cdf0e10cSrcweir #define UNOCONTROLS_TRGB_COLORDATA( t,r,g,b )               ((INT32)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16)|(((UINT32)((UINT8)(t)))<<24))
41*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir // defines for BaseControl
44*cdf0e10cSrcweir #ifdef _UNOCONTROLS_BASECONTROL_CTRL_HXX
45*cdf0e10cSrcweir     #define BASECONTROL_IDLCLASSNAME                        "BaseControl"
46*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_PMULTIPLEXER                NULL
47*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_X                           0
48*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_Y                           0
49*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_WIDTH                       100
50*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_HEIGHT                      100
51*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_VISIBLE                     FALSE
52*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_INDESIGNMODE                FALSE
53*cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_ENABLE                      TRUE
54*cdf0e10cSrcweir     #define BASECONTROL_SERVICE_VCLTOOLKIT                  "com.sun.star.awt.VclToolkit"
55*cdf0e10cSrcweir #endif
56*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
59*cdf0e10cSrcweir // defines for BaseContainerControl
60*cdf0e10cSrcweir #ifdef _UNOCONTROLS_BASECONTAINERCONTROL_CTRL_HXX
61*cdf0e10cSrcweir     #define BASECONTAINERCONTROL_IDLCLASSNAME               "BaseContainerControl"
62*cdf0e10cSrcweir #endif
63*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
66*cdf0e10cSrcweir // defines for ProgressBar
67*cdf0e10cSrcweir #ifdef _UNOCONTROLS_PROGRESSBAR_CTRL_HXX
68*cdf0e10cSrcweir     #define PROGRESSBAR_IDLCLASSNAME                        "XProgressbar"
69*cdf0e10cSrcweir     #define PROGRESSBAR_SERVICENAME                         "com.sun.star.awt.XProgressBar"
70*cdf0e10cSrcweir     #define PROGRESSBAR_IMPLEMENTATIONNAME                  "stardiv.UnoControls.ProgressBar"
71*cdf0e10cSrcweir     #define PROGRESSBAR_FREEBORDER                          2
72*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_HORIZONTAL                  TRUE
73*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_BLOCKDIMENSION              Size(1,1)
74*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_BACKGROUNDCOLOR             UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 )    // lightgray
75*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_FOREGROUNDCOLOR             UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x80 )    // blue
76*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_MINRANGE                    INT_MIN
77*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_MAXRANGE                    INT_MAX
78*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_BLOCKVALUE                  1
79*cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_VALUE                       PROGRESSBAR_DEFAULT_MINRANGE
80*cdf0e10cSrcweir     #define PROGRESSBAR_LINECOLOR_BRIGHT                    UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF )    // white
81*cdf0e10cSrcweir     #define PROGRESSBAR_LINECOLOR_SHADOW                    UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 )    // black
82*cdf0e10cSrcweir #endif
83*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
84*cdf0e10cSrcweir 
85*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
86*cdf0e10cSrcweir // defines for FrameControl
87*cdf0e10cSrcweir #ifdef _UNOCONTROLS_FRAMECONTROL_CTRL_HXX
88*cdf0e10cSrcweir     #define FRAMECONTROL_IDLCLASSNAME                       "FrameControl"
89*cdf0e10cSrcweir     #define FRAMECONTROL_SERVICENAME                        "com.sun.star.frame.FrameControl"
90*cdf0e10cSrcweir     #define FRAMECONTROL_IMPLEMENTATIONNAME                 "stardiv.UnoControls.FrameControl"
91*cdf0e10cSrcweir     #define FRAMECONTROL_DEFAULT_COMPONENTURL               "private:factory/swriter"
92*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_LOADERARGUMENTS       "LoaderArguments"
93*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_COMPONENTURL          "ComponentURL"
94*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_FRAME                 "Frame"
95*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_IDLCLASSES            "IDLClasses"
96*cdf0e10cSrcweir     #define FRAMECONTROL_ERRORTEXT_VOSENSHURE               "This is an invalid property handle."
97*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_COUNT                     4                                                       // you must count the propertys
98*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_COMPONENTURL              0                                                       // Id must be the index into the array
99*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_FRAME                     1
100*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_IDLCLASSES                2
101*cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_LOADERARGUMENTS           3
102*cdf0e10cSrcweir #endif
103*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
104*cdf0e10cSrcweir 
105*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
106*cdf0e10cSrcweir // defines for ProgressMonitor
107*cdf0e10cSrcweir #ifdef _UNOCONTROLS_PROGRESSMONITOR_CTRL_HXX
108*cdf0e10cSrcweir     #define PROGRESSMONITOR_IDLCLASSNAME                    "XProgressMonitor"
109*cdf0e10cSrcweir     #define PROGRESSMONITOR_SERVICENAME                     "com.sun.star.awt.XProgressMonitor"
110*cdf0e10cSrcweir     #define PROGRESSMONITOR_IMPLEMENTATIONNAME              "stardiv.UnoControls.ProgressMonitor"
111*cdf0e10cSrcweir     #define PROGRESSMONITOR_FREEBORDER                      10                                                      // border around and between the controls
112*cdf0e10cSrcweir     #define PROGRESSMONITOR_WIDTH_RELATION                  4                                                       // reserve 1/4 for button width and rest for progressbar width
113*cdf0e10cSrcweir     #define PROGRESSMONITOR_HEIGHT_RELATION                 5                                                       // reserve 1/5 for button and progressbar heigth and rest for text height
114*cdf0e10cSrcweir     #define PROGRESSMONITOR_FIXEDTEXT_SERVICENAME           "com.sun.star.awt.UnoControlFixedText"
115*cdf0e10cSrcweir     #define PROGRESSMONITOR_BUTTON_SERVICENAME              "com.sun.star.awt.UnoControlButton"
116*cdf0e10cSrcweir     #define PROGRESSMONITOR_FIXEDTEXT_MODELNAME             "com.sun.star.awt.UnoControlFixedTextModel"
117*cdf0e10cSrcweir     #define PROGRESSMONITOR_BUTTON_MODELNAME                "com.sun.star.awt.UnoControlButtonModel"
118*cdf0e10cSrcweir     #define PROGRESSMONITOR_CONTROLNAME_TEXT                "Text"                                                  // identifier the control in container
119*cdf0e10cSrcweir     #define PROGRESSMONITOR_CONTROLNAME_BUTTON              "Button"                                                //              -||-
120*cdf0e10cSrcweir     #define PROGRESSMONITOR_CONTROLNAME_PROGRESSBAR         "ProgressBar"                                           //              -||-
121*cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_BUTTONLABEL             "Abbrechen"
122*cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_TOPIC                   "\0"
123*cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_TEXT                    "\0"
124*cdf0e10cSrcweir     #define PROGRESSMONITOR_BACKGROUNDCOLOR                 UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 )    // lighgray
125*cdf0e10cSrcweir     #define PROGRESSMONITOR_LINECOLOR_BRIGHT                UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF )    // white
126*cdf0e10cSrcweir     #define PROGRESSMONITOR_LINECOLOR_SHADOW                UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 )    // black
127*cdf0e10cSrcweir     #define PROGRESSMONITOR_HEIGHT_PROGRESSBAR              15
128*cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_WIDTH                   350
129*cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_HEIGHT                  100
130*cdf0e10cSrcweir #endif
131*cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
132*cdf0e10cSrcweir 
133*cdf0e10cSrcweir }   // namespace unocontrols
134*cdf0e10cSrcweir 
135*cdf0e10cSrcweir #endif  // #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX
136