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 10f6c049e2SAndrew Rist * 11f6c049e2SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12f6c049e2SAndrew Rist * 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. 19f6c049e2SAndrew Rist * 20f6c049e2SAndrew Rist *************************************************************/ 21f6c049e2SAndrew Rist 22f6c049e2SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX 25cdf0e10cSrcweir #define _UNOCONTROLS_DEFINES_CTRL_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 28cdf0e10cSrcweir // includes 29cdf0e10cSrcweir #include <limits.h> // defines for min/max of INT 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace unocontrols{ 32cdf0e10cSrcweir 33cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 34cdf0e10cSrcweir // global defines for all UnoControls 35cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 36cdf0e10cSrcweir #define UNOCONTROLS_TRGB_COLORDATA( t,r,g,b ) ((INT32)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16)|(((UINT32)((UINT8)(t)))<<24)) 37cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 38cdf0e10cSrcweir 39cdf0e10cSrcweir // defines for BaseControl 40cdf0e10cSrcweir #ifdef _UNOCONTROLS_BASECONTROL_CTRL_HXX 41cdf0e10cSrcweir #define BASECONTROL_IDLCLASSNAME "BaseControl" 42cdf0e10cSrcweir #define BASECONTROL_DEFAULT_PMULTIPLEXER NULL 43cdf0e10cSrcweir #define BASECONTROL_DEFAULT_X 0 44cdf0e10cSrcweir #define BASECONTROL_DEFAULT_Y 0 45cdf0e10cSrcweir #define BASECONTROL_DEFAULT_WIDTH 100 46cdf0e10cSrcweir #define BASECONTROL_DEFAULT_HEIGHT 100 47cdf0e10cSrcweir #define BASECONTROL_DEFAULT_VISIBLE FALSE 48cdf0e10cSrcweir #define BASECONTROL_DEFAULT_INDESIGNMODE FALSE 49cdf0e10cSrcweir #define BASECONTROL_DEFAULT_ENABLE TRUE 50cdf0e10cSrcweir #define BASECONTROL_SERVICE_VCLTOOLKIT "com.sun.star.awt.VclToolkit" 51cdf0e10cSrcweir #endif 52cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 53cdf0e10cSrcweir 54cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 55cdf0e10cSrcweir // defines for BaseContainerControl 56cdf0e10cSrcweir #ifdef _UNOCONTROLS_BASECONTAINERCONTROL_CTRL_HXX 57cdf0e10cSrcweir #define BASECONTAINERCONTROL_IDLCLASSNAME "BaseContainerControl" 58cdf0e10cSrcweir #endif 59cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 60cdf0e10cSrcweir 61cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 62cdf0e10cSrcweir // defines for ProgressBar 63cdf0e10cSrcweir #ifdef _UNOCONTROLS_PROGRESSBAR_CTRL_HXX 64cdf0e10cSrcweir #define PROGRESSBAR_IDLCLASSNAME "XProgressbar" 65cdf0e10cSrcweir #define PROGRESSBAR_SERVICENAME "com.sun.star.awt.XProgressBar" 66cdf0e10cSrcweir #define PROGRESSBAR_IMPLEMENTATIONNAME "stardiv.UnoControls.ProgressBar" 67cdf0e10cSrcweir #define PROGRESSBAR_FREEBORDER 2 68cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_HORIZONTAL TRUE 69cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_BLOCKDIMENSION Size(1,1) 70cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_BACKGROUNDCOLOR UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 ) // lightgray 71cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_FOREGROUNDCOLOR UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x80 ) // blue 72cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_MINRANGE INT_MIN 73cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_MAXRANGE INT_MAX 74cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_BLOCKVALUE 1 75cdf0e10cSrcweir #define PROGRESSBAR_DEFAULT_VALUE PROGRESSBAR_DEFAULT_MINRANGE 76cdf0e10cSrcweir #define PROGRESSBAR_LINECOLOR_BRIGHT UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white 77cdf0e10cSrcweir #define PROGRESSBAR_LINECOLOR_SHADOW UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black 78cdf0e10cSrcweir #endif 79cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 80cdf0e10cSrcweir 81cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 82cdf0e10cSrcweir // defines for FrameControl 83cdf0e10cSrcweir #ifdef _UNOCONTROLS_FRAMECONTROL_CTRL_HXX 84cdf0e10cSrcweir #define FRAMECONTROL_IDLCLASSNAME "FrameControl" 85cdf0e10cSrcweir #define FRAMECONTROL_SERVICENAME "com.sun.star.frame.FrameControl" 86cdf0e10cSrcweir #define FRAMECONTROL_IMPLEMENTATIONNAME "stardiv.UnoControls.FrameControl" 87cdf0e10cSrcweir #define FRAMECONTROL_DEFAULT_COMPONENTURL "private:factory/swriter" 88cdf0e10cSrcweir #define FRAMECONTROL_PROPERTYNAME_LOADERARGUMENTS "LoaderArguments" 89cdf0e10cSrcweir #define FRAMECONTROL_PROPERTYNAME_COMPONENTURL "ComponentURL" 90cdf0e10cSrcweir #define FRAMECONTROL_PROPERTYNAME_FRAME "Frame" 91cdf0e10cSrcweir #define FRAMECONTROL_PROPERTYNAME_IDLCLASSES "IDLClasses" 92cdf0e10cSrcweir #define FRAMECONTROL_ERRORTEXT_VOSENSHURE "This is an invalid property handle." 93cdf0e10cSrcweir #define FRAMECONTROL_PROPERTY_COUNT 4 // you must count the propertys 94cdf0e10cSrcweir #define FRAMECONTROL_PROPERTY_COMPONENTURL 0 // Id must be the index into the array 95cdf0e10cSrcweir #define FRAMECONTROL_PROPERTY_FRAME 1 96cdf0e10cSrcweir #define FRAMECONTROL_PROPERTY_IDLCLASSES 2 97cdf0e10cSrcweir #define FRAMECONTROL_PROPERTY_LOADERARGUMENTS 3 98cdf0e10cSrcweir #endif 99cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 100cdf0e10cSrcweir 101cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 102cdf0e10cSrcweir // defines for ProgressMonitor 103cdf0e10cSrcweir #ifdef _UNOCONTROLS_PROGRESSMONITOR_CTRL_HXX 104cdf0e10cSrcweir #define PROGRESSMONITOR_IDLCLASSNAME "XProgressMonitor" 105cdf0e10cSrcweir #define PROGRESSMONITOR_SERVICENAME "com.sun.star.awt.XProgressMonitor" 106cdf0e10cSrcweir #define PROGRESSMONITOR_IMPLEMENTATIONNAME "stardiv.UnoControls.ProgressMonitor" 107cdf0e10cSrcweir #define PROGRESSMONITOR_FREEBORDER 10 // border around and between the controls 108cdf0e10cSrcweir #define PROGRESSMONITOR_WIDTH_RELATION 4 // reserve 1/4 for button width and rest for progressbar width 109*9a9ccb4aSmseidel #define PROGRESSMONITOR_HEIGHT_RELATION 5 // reserve 1/5 for button and progressbar height and rest for text height 110cdf0e10cSrcweir #define PROGRESSMONITOR_FIXEDTEXT_SERVICENAME "com.sun.star.awt.UnoControlFixedText" 111cdf0e10cSrcweir #define PROGRESSMONITOR_BUTTON_SERVICENAME "com.sun.star.awt.UnoControlButton" 112cdf0e10cSrcweir #define PROGRESSMONITOR_FIXEDTEXT_MODELNAME "com.sun.star.awt.UnoControlFixedTextModel" 113cdf0e10cSrcweir #define PROGRESSMONITOR_BUTTON_MODELNAME "com.sun.star.awt.UnoControlButtonModel" 114cdf0e10cSrcweir #define PROGRESSMONITOR_CONTROLNAME_TEXT "Text" // identifier the control in container 115cdf0e10cSrcweir #define PROGRESSMONITOR_CONTROLNAME_BUTTON "Button" // -||- 116cdf0e10cSrcweir #define PROGRESSMONITOR_CONTROLNAME_PROGRESSBAR "ProgressBar" // -||- 117cdf0e10cSrcweir #define PROGRESSMONITOR_DEFAULT_BUTTONLABEL "Abbrechen" 118cdf0e10cSrcweir #define PROGRESSMONITOR_DEFAULT_TOPIC "\0" 119cdf0e10cSrcweir #define PROGRESSMONITOR_DEFAULT_TEXT "\0" 120cdf0e10cSrcweir #define PROGRESSMONITOR_BACKGROUNDCOLOR UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 ) // lighgray 121cdf0e10cSrcweir #define PROGRESSMONITOR_LINECOLOR_BRIGHT UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white 122cdf0e10cSrcweir #define PROGRESSMONITOR_LINECOLOR_SHADOW UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black 123cdf0e10cSrcweir #define PROGRESSMONITOR_HEIGHT_PROGRESSBAR 15 124cdf0e10cSrcweir #define PROGRESSMONITOR_DEFAULT_WIDTH 350 125cdf0e10cSrcweir #define PROGRESSMONITOR_DEFAULT_HEIGHT 100 126cdf0e10cSrcweir #endif 127cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------------- 128cdf0e10cSrcweir 129cdf0e10cSrcweir } // namespace unocontrols 130cdf0e10cSrcweir 131cdf0e10cSrcweir #endif // #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX 132