xref: /trunk/main/UnoControls/inc/definesunocontrols.hxx (revision 9b004a7b05cb3557beee722aecdce5c60ff2a1e9)
1f6c049e2SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3f6c049e2SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4f6c049e2SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5f6c049e2SAndrew Rist  * distributed with this work for additional information
6f6c049e2SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7f6c049e2SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8f6c049e2SAndrew Rist  * "License"); you may not use this file except in compliance
9f6c049e2SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11f6c049e2SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13f6c049e2SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14f6c049e2SAndrew Rist  * software distributed under the License is distributed on an
15f6c049e2SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16f6c049e2SAndrew Rist  * KIND, either express or implied.  See the License for the
17f6c049e2SAndrew Rist  * specific language governing permissions and limitations
18f6c049e2SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20f6c049e2SAndrew Rist  *************************************************************/
21f6c049e2SAndrew Rist 
22cdf0e10cSrcweir #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX
23cdf0e10cSrcweir #define _UNOCONTROLS_DEFINES_CTRL_HXX
24cdf0e10cSrcweir 
25cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
26cdf0e10cSrcweir // includes
27cdf0e10cSrcweir #include <limits.h> // defines for min/max of INT
28cdf0e10cSrcweir 
29cdf0e10cSrcweir namespace unocontrols{
30cdf0e10cSrcweir 
31cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
32cdf0e10cSrcweir // global defines for all UnoControls
33cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
34cdf0e10cSrcweir #define UNOCONTROLS_TRGB_COLORDATA( t,r,g,b )               ((INT32)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16)|(((UINT32)((UINT8)(t)))<<24))
35cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
36cdf0e10cSrcweir 
37cdf0e10cSrcweir // defines for BaseControl
38cdf0e10cSrcweir #ifdef _UNOCONTROLS_BASECONTROL_CTRL_HXX
39cdf0e10cSrcweir     #define BASECONTROL_IDLCLASSNAME                        "BaseControl"
40cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_PMULTIPLEXER                NULL
41cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_X                           0
42cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_Y                           0
43cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_WIDTH                       100
44cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_HEIGHT                      100
45cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_VISIBLE                     FALSE
46cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_INDESIGNMODE                FALSE
47cdf0e10cSrcweir     #define BASECONTROL_DEFAULT_ENABLE                      TRUE
48cdf0e10cSrcweir     #define BASECONTROL_SERVICE_VCLTOOLKIT                  "com.sun.star.awt.VclToolkit"
49cdf0e10cSrcweir #endif
50cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
51cdf0e10cSrcweir 
52cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
53cdf0e10cSrcweir // defines for BaseContainerControl
54cdf0e10cSrcweir #ifdef _UNOCONTROLS_BASECONTAINERCONTROL_CTRL_HXX
55cdf0e10cSrcweir     #define BASECONTAINERCONTROL_IDLCLASSNAME               "BaseContainerControl"
56cdf0e10cSrcweir #endif
57cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
58cdf0e10cSrcweir 
59cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
60cdf0e10cSrcweir // defines for ProgressBar
61cdf0e10cSrcweir #ifdef _UNOCONTROLS_PROGRESSBAR_CTRL_HXX
62cdf0e10cSrcweir     #define PROGRESSBAR_IDLCLASSNAME                        "XProgressbar"
63cdf0e10cSrcweir     #define PROGRESSBAR_SERVICENAME                         "com.sun.star.awt.XProgressBar"
64cdf0e10cSrcweir     #define PROGRESSBAR_IMPLEMENTATIONNAME                  "stardiv.UnoControls.ProgressBar"
65cdf0e10cSrcweir     #define PROGRESSBAR_FREEBORDER                          2
66cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_HORIZONTAL                  TRUE
67cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_BLOCKDIMENSION              Size(1,1)
68cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_BACKGROUNDCOLOR             UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 )    // lightgray
69cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_FOREGROUNDCOLOR             UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x80 )    // blue
70cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_MINRANGE                    INT_MIN
71cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_MAXRANGE                    INT_MAX
72cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_BLOCKVALUE                  1
73cdf0e10cSrcweir     #define PROGRESSBAR_DEFAULT_VALUE                       PROGRESSBAR_DEFAULT_MINRANGE
74cdf0e10cSrcweir     #define PROGRESSBAR_LINECOLOR_BRIGHT                    UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF )    // white
75cdf0e10cSrcweir     #define PROGRESSBAR_LINECOLOR_SHADOW                    UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 )    // black
76cdf0e10cSrcweir #endif
77cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
78cdf0e10cSrcweir 
79cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
80cdf0e10cSrcweir // defines for FrameControl
81cdf0e10cSrcweir #ifdef _UNOCONTROLS_FRAMECONTROL_CTRL_HXX
82cdf0e10cSrcweir     #define FRAMECONTROL_IDLCLASSNAME                       "FrameControl"
83cdf0e10cSrcweir     #define FRAMECONTROL_SERVICENAME                        "com.sun.star.frame.FrameControl"
84cdf0e10cSrcweir     #define FRAMECONTROL_IMPLEMENTATIONNAME                 "stardiv.UnoControls.FrameControl"
85cdf0e10cSrcweir     #define FRAMECONTROL_DEFAULT_COMPONENTURL               "private:factory/swriter"
86cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_LOADERARGUMENTS       "LoaderArguments"
87cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_COMPONENTURL          "ComponentURL"
88cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_FRAME                 "Frame"
89cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTYNAME_IDLCLASSES            "IDLClasses"
90cdf0e10cSrcweir     #define FRAMECONTROL_ERRORTEXT_VOSENSHURE               "This is an invalid property handle."
91*9b004a7bSmseidel     #define FRAMECONTROL_PROPERTY_COUNT                     4                                                       // you must count the properties
92cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_COMPONENTURL              0                                                       // Id must be the index into the array
93cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_FRAME                     1
94cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_IDLCLASSES                2
95cdf0e10cSrcweir     #define FRAMECONTROL_PROPERTY_LOADERARGUMENTS           3
96cdf0e10cSrcweir #endif
97cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
98cdf0e10cSrcweir 
99cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
100cdf0e10cSrcweir // defines for ProgressMonitor
101cdf0e10cSrcweir #ifdef _UNOCONTROLS_PROGRESSMONITOR_CTRL_HXX
102cdf0e10cSrcweir     #define PROGRESSMONITOR_IDLCLASSNAME                    "XProgressMonitor"
103cdf0e10cSrcweir     #define PROGRESSMONITOR_SERVICENAME                     "com.sun.star.awt.XProgressMonitor"
104cdf0e10cSrcweir     #define PROGRESSMONITOR_IMPLEMENTATIONNAME              "stardiv.UnoControls.ProgressMonitor"
105cdf0e10cSrcweir     #define PROGRESSMONITOR_FREEBORDER                      10                                                      // border around and between the controls
106cdf0e10cSrcweir     #define PROGRESSMONITOR_WIDTH_RELATION                  4                                                       // reserve 1/4 for button width and rest for progressbar width
107cce2cef2Smseidel     #define PROGRESSMONITOR_HEIGHT_RELATION                 5                                                       // reserve 1/5 for button and progressbar height and rest for text height
108cdf0e10cSrcweir     #define PROGRESSMONITOR_FIXEDTEXT_SERVICENAME           "com.sun.star.awt.UnoControlFixedText"
109cdf0e10cSrcweir     #define PROGRESSMONITOR_BUTTON_SERVICENAME              "com.sun.star.awt.UnoControlButton"
110cdf0e10cSrcweir     #define PROGRESSMONITOR_FIXEDTEXT_MODELNAME             "com.sun.star.awt.UnoControlFixedTextModel"
111cdf0e10cSrcweir     #define PROGRESSMONITOR_BUTTON_MODELNAME                "com.sun.star.awt.UnoControlButtonModel"
112cdf0e10cSrcweir     #define PROGRESSMONITOR_CONTROLNAME_TEXT                "Text"                                                  // identifier the control in container
113cdf0e10cSrcweir     #define PROGRESSMONITOR_CONTROLNAME_BUTTON              "Button"                                                //              -||-
114cdf0e10cSrcweir     #define PROGRESSMONITOR_CONTROLNAME_PROGRESSBAR         "ProgressBar"                                           //              -||-
115cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_BUTTONLABEL             "Abbrechen"
116cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_TOPIC                   "\0"
117cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_TEXT                    "\0"
118*9b004a7bSmseidel     #define PROGRESSMONITOR_BACKGROUNDCOLOR                 UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 )    // lightgray
119cdf0e10cSrcweir     #define PROGRESSMONITOR_LINECOLOR_BRIGHT                UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF )    // white
120cdf0e10cSrcweir     #define PROGRESSMONITOR_LINECOLOR_SHADOW                UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 )    // black
121cdf0e10cSrcweir     #define PROGRESSMONITOR_HEIGHT_PROGRESSBAR              15
122cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_WIDTH                   350
123cdf0e10cSrcweir     #define PROGRESSMONITOR_DEFAULT_HEIGHT                  100
124cdf0e10cSrcweir #endif
125cdf0e10cSrcweir //-------------------------------------------------------------------------------------------------------------------
126cdf0e10cSrcweir 
127cdf0e10cSrcweir }   // namespace unocontrols
128cdf0e10cSrcweir 
129cdf0e10cSrcweir #endif  // #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX
130*9b004a7bSmseidel 
131*9b004a7bSmseidel /* vim: set noet sw=4 ts=4: */
132