1*e38fe63cSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*e38fe63cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*e38fe63cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*e38fe63cSAndrew Rist * distributed with this work for additional information 6*e38fe63cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*e38fe63cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*e38fe63cSAndrew Rist * "License"); you may not use this file except in compliance 9*e38fe63cSAndrew Rist * with the License. You may obtain a copy of the License at 10*e38fe63cSAndrew Rist * 11*e38fe63cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*e38fe63cSAndrew Rist * 13*e38fe63cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*e38fe63cSAndrew Rist * software distributed under the License is distributed on an 15*e38fe63cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*e38fe63cSAndrew Rist * KIND, either express or implied. See the License for the 17*e38fe63cSAndrew Rist * specific language governing permissions and limitations 18*e38fe63cSAndrew Rist * under the License. 19*e38fe63cSAndrew Rist * 20*e38fe63cSAndrew Rist *************************************************************/ 21*e38fe63cSAndrew Rist 22*e38fe63cSAndrew Rist 23cdf0e10cSrcweir#ifndef _CHART2_RES_TITLES_SRC 24cdf0e10cSrcweir#define _CHART2_RES_TITLES_SRC 25cdf0e10cSrcweir 26cdf0e10cSrcweir#include "res_Titles.hrc" 27cdf0e10cSrcweir#include "HelpIds.hrc" 28cdf0e10cSrcweir 29cdf0e10cSrcweir#define TITLES_HEIGHT 12 30cdf0e10cSrcweir#define indentLabel 3 31cdf0e10cSrcweir#define fixedLinesHeight RSC_CD_FIXEDLINE_HEIGHT 32cdf0e10cSrcweir 33cdf0e10cSrcweir#define TITLES( xpos, ypos, availableWidth, indentLabel, fixedLinesHeight ) \ 34cdf0e10cSrcweirEdit ED_MAINTITLE \ 35cdf0e10cSrcweir{ \ 36cdf0e10cSrcweir HelpID = HID_SCH_TITLE_MAIN; \ 37cdf0e10cSrcweir Border = TRUE ; \ 38cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos ) ; \ 39cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 40cdf0e10cSrcweir TabStop = TRUE ; \ 41cdf0e10cSrcweir}; \ 42cdf0e10cSrcweirEdit ED_SUBTITLE \ 43cdf0e10cSrcweir{ \ 44cdf0e10cSrcweir HelpID = HID_SCH_TITLE_SUB; \ 45cdf0e10cSrcweir Border = TRUE ; \ 46cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+TITLES_HEIGHT+4 ) ; \ 47cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 48cdf0e10cSrcweir TabStop = TRUE ; \ 49cdf0e10cSrcweir}; \ 50cdf0e10cSrcweirEdit ED_X_AXIS \ 51cdf0e10cSrcweir{ \ 52cdf0e10cSrcweir HelpID = HID_SCH_TITLE_X; \ 53cdf0e10cSrcweir Border = TRUE ; \ 54cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3) ) ; \ 55cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 56cdf0e10cSrcweir TabStop = TRUE ; \ 57cdf0e10cSrcweir}; \ 58cdf0e10cSrcweirEdit ED_Y_AXIS \ 59cdf0e10cSrcweir{ \ 60cdf0e10cSrcweir HelpID = HID_SCH_TITLE_Y; \ 61cdf0e10cSrcweir Border = TRUE ; \ 62cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3) ) ; \ 63cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 64cdf0e10cSrcweir TabStop = TRUE ; \ 65cdf0e10cSrcweir}; \ 66cdf0e10cSrcweirEdit ED_Z_AXIS \ 67cdf0e10cSrcweir{ \ 68cdf0e10cSrcweir HelpID = HID_SCH_TITLE_Z; \ 69cdf0e10cSrcweir Border = TRUE ; \ 70cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3) ) ; \ 71cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 72cdf0e10cSrcweir TabStop = TRUE ; \ 73cdf0e10cSrcweir}; \ 74cdf0e10cSrcweirEdit ED_SECONDARY_X_AXIS \ 75cdf0e10cSrcweir{ \ 76cdf0e10cSrcweir HelpID = HID_SCH_TITLE_SECONDARY_X; \ 77cdf0e10cSrcweir Border = TRUE ; \ 78cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3) ) ; \ 79cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 80cdf0e10cSrcweir TabStop = TRUE ; \ 81cdf0e10cSrcweir}; \ 82cdf0e10cSrcweirEdit ED_SECONDARY_Y_AXIS \ 83cdf0e10cSrcweir{ \ 84cdf0e10cSrcweir HelpID = HID_SCH_TITLE_SECONDARY_Y; \ 85cdf0e10cSrcweir Border = TRUE ; \ 86cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3) ) ; \ 87cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 88cdf0e10cSrcweir TabStop = TRUE ; \ 89cdf0e10cSrcweir}; \ 90cdf0e10cSrcweirFixedText FT_MAINTITLE \ 91cdf0e10cSrcweir{ \ 92cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2 ) ; \ 93cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 94cdf0e10cSrcweir Text [ en-US ] = "~Title" ; \ 95cdf0e10cSrcweir}; \ 96cdf0e10cSrcweirFixedText FT_SUBTITLE \ 97cdf0e10cSrcweir{ \ 98cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+TITLES_HEIGHT+4 ) ; \ 99cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 100cdf0e10cSrcweir Text [ en-US ] = "~Subtitle" ; \ 101cdf0e10cSrcweir}; \ 102cdf0e10cSrcweirFixedLine FL_AXES \ 103cdf0e10cSrcweir{ \ 104cdf0e10cSrcweir Pos = MAP_APPFONT( xpos ,ypos+2+2*(TITLES_HEIGHT+4)+0 ); \ 105cdf0e10cSrcweir Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \ 106cdf0e10cSrcweir Text[ en-US ] = "Axes"; \ 107cdf0e10cSrcweir}; \ 108cdf0e10cSrcweirFixedText FT_TITLE_X_AXIS \ 109cdf0e10cSrcweir{ \ 110cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3) ) ; \ 111cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 112cdf0e10cSrcweir Text [ en-US ] = "~X axis" ; \ 113cdf0e10cSrcweir}; \ 114cdf0e10cSrcweirFixedText FT_TITLE_Y_AXIS \ 115cdf0e10cSrcweir{ \ 116cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3) ) ; \ 117cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 118cdf0e10cSrcweir Text [ en-US ] = "~Y axis" ; \ 119cdf0e10cSrcweir}; \ 120cdf0e10cSrcweirFixedText FT_TITLE_Z_AXIS \ 121cdf0e10cSrcweir{ \ 122cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3) ) ; \ 123cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 124cdf0e10cSrcweir Text [ en-US ] = "~Z axis" ; \ 125cdf0e10cSrcweir}; \ 126cdf0e10cSrcweirFixedLine FL_SECONDARY_AXES \ 127cdf0e10cSrcweir{ \ 128cdf0e10cSrcweir Pos = MAP_APPFONT( xpos ,ypos+2+5*(TITLES_HEIGHT+4)+3+(fixedLinesHeight+3) ); \ 129cdf0e10cSrcweir Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \ 130cdf0e10cSrcweir Text[ en-US ] = "Secondary Axes"; \ 131cdf0e10cSrcweir}; \ 132cdf0e10cSrcweirFixedText FT_TITLE_SECONDARY_X_AXIS \ 133cdf0e10cSrcweir{ \ 134cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3) ) ; \ 135cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 136cdf0e10cSrcweir Text [ en-US ] = "X ~axis" ; \ 137cdf0e10cSrcweir}; \ 138cdf0e10cSrcweirFixedText FT_TITLE_SECONDARY_Y_AXIS \ 139cdf0e10cSrcweir{ \ 140cdf0e10cSrcweir Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3) ) ; \ 141cdf0e10cSrcweir Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \ 142cdf0e10cSrcweir Text [ en-US ] = "Y ax~is" ; \ 143cdf0e10cSrcweir}; 144cdf0e10cSrcweir 145cdf0e10cSrcweir#endif 146