/**************************************************************
 * 
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 * 
 *************************************************************/


#include "HelpIds.hrc"
#include "tp_ChartType.hrc"
#include "SchSlotIds.hxx"
#include "dlg_CreationWizard.hrc"
#include "CommonResources.hrc"

#ifndef _SVT_CONTROLDIMS_HRC_
#include <svtools/controldims.hrc>
#endif

#define MASKCOLOR MaskColor = Color { Red = 0xC000 ; Green = 0xC000 ; Blue = 0xC000 ; }

#define WIDTH_MAINLIST 75
#define HEIGHT_MAINLIST 122
#define WIDTH_IMAGELIST 150
#define HEIGHT_IMAGELIST 50
#define WIDTH_3D 100
#define POS_X_MAINLIST 6
#define POS_X_IMAGELIST (POS_X_MAINLIST+WIDTH_MAINLIST+6)
#define POS_Y1 8
#define POS_Y_LIST (POS_Y1+RSC_CD_FIXEDTEXT_HEIGHT+4)
#define POS_Y_VALUE_X_AXIS (POS_Y_LIST+HEIGHT_IMAGELIST+RSC_SP_CTRL_Y+2)
#define POS_Y_3D_LOOK (POS_Y_VALUE_X_AXIS+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y)
#define POS_Y_STACKING (POS_Y_3D_LOOK+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y)
#define POS_Y_SPLINES (POS_Y_STACKING+4*12+12)
#define POS_Y_XVALUE_SORTING (POS_Y_SPLINES+4+12)

#define POS_X_SPLINES_1 (8)
#define POS_Y_SPLINES_2 (8)
#define POS_Y_SPLINES_3 (POS_Y_SPLINES_2+13)
#define POS_Y_SPLINES_4 (POS_Y_SPLINES_3+13)
#define POS_Y_SPLINES_5 (POS_Y_SPLINES_4+RSC_CD_FIXEDTEXT_HEIGHT)

#define SPLINES_WIDTH_RADIO 45
#define SPLINES_WIDTH_METRIC_TEXT 60
#define POS_X_SPLINE_EXTRAS  (POS_X_SPLINES_1+SPLINES_WIDTH_RADIO+RSC_SP_FLGR_SPACE_X+RSC_CD_FIXEDLINE_WIDTH+2*RSC_SP_FLGR_SPACE_X)
#define WIZ_FIXEDLINE_WIDTH (CHART_WIZARD_PAGEWIDTH-POS_X_MAINLIST-6)
#define WIDTH_XVALUE_SORTING (WIDTH_IMAGELIST)

#define SPLINE_DIALOG_WIDTH 172
#define SPLINE_DIALOG_HEIGHT 59

TabPage TP_CHARTTYPE
{
	Hide = TRUE ;
	HelpID = HID_DIAGRAM_TYPE;
	SVLook = TRUE ;
	Size = MAP_APPFONT ( CHART_WIZARD_PAGEWIDTH , CHART_WIZARD_PAGEHEIGHT ) ;

    FixedText FT_CHARTTYPE
	{
		Pos = MAP_APPFONT ( POS_X_MAINLIST-1 , POS_Y1 ) ;
		Size = MAP_APPFONT ( WIZ_FIXEDLINE_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ;
		TabStop = FALSE ;
		Text [ en-US ] = "Choose a chart type";
	};
	ListBox LB_CHARTTYPE
	{
		HelpId = HID_SCH_CTL_TYPE ;
		Border = TRUE ;
		TabStop = TRUE ;
		Pos = MAP_APPFONT ( POS_X_MAINLIST , POS_Y_LIST ) ;
		Size = MAP_APPFONT ( WIDTH_MAINLIST, HEIGHT_MAINLIST ) ;
	};
	Control CT_CHARTVARIANT
	{
		HelpId = HID_SCH_CTL_VARIANT ;
		Border = TRUE ;
		Pos = MAP_APPFONT ( POS_X_IMAGELIST , POS_Y_LIST ) ;
		Size = MAP_APPFONT ( WIDTH_IMAGELIST , HEIGHT_IMAGELIST ) ;
		TabStop = TRUE ;
	};

	CheckBox CB_X_AXIS_CATEGORIES
	{
	    HelpID = "chart2:CheckBox:TP_CHARTTYPE:CB_X_AXIS_CATEGORIES";
        Pos = MAP_APPFONT ( POS_X_IMAGELIST , POS_Y_VALUE_X_AXIS ) ;
        Size = MAP_APPFONT ( 150 , 10 ) ;
		Text [ en-US ] = "X axis with Categories" ;
    };
    CheckBox CB_3D_LOOK
	{
        HelpID = "chart2:CheckBox:TP_CHARTTYPE:CB_3D_LOOK";
	    Pos = MAP_APPFONT ( POS_X_IMAGELIST , POS_Y_3D_LOOK ) ;
        Size = MAP_APPFONT ( WIDTH_3D , 10 ) ;
		Text [ en-US ] = "~3D Look" ;
    };
    ListBox LB_3D_SCHEME
	{
        HelpID = "chart2:ListBox:TP_CHARTTYPE:LB_3D_SCHEME";
	    Border = TRUE;
        TabStop = TRUE;
        DropDown = TRUE;
	    Pos = MAP_APPFONT ( POS_X_IMAGELIST+WIDTH_3D+4 , POS_Y_3D_LOOK ) ;
		Size = MAP_APPFONT ( 60, 12 ) ;
	};

    CheckBox CB_STACKED
	{
        HelpID = "chart2:CheckBox:TP_CHARTTYPE:CB_STACKED";
        Pos = MAP_APPFONT ( POS_X_IMAGELIST , POS_Y_STACKING ) ;
        Size = MAP_APPFONT ( 150 , 10 ) ;
		Text [ en-US ] = "~Stack series" ;
    };
    RadioButton RB_STACK_Y
	{
        HelpID = "chart2:RadioButton:TP_CHARTTYPE:RB_STACK_Y";
	    Pos = MAP_APPFONT ( POS_X_IMAGELIST+RSC_SP_CHK_TEXTINDENT, POS_Y_STACKING+12  ) ;
		Size = MAP_APPFONT ( 80 , 10 ) ;
		TabStop = TRUE ;
        //Uebereinander (summiere Y-Werte)
		//On top (sum Y-values)
		Text [ en-US ] = "On top";
    };
    RadioButton RB_STACK_Y_PERCENT
	{
        HelpID = "chart2:RadioButton:TP_CHARTTYPE:RB_STACK_Y_PERCENT";
	    Pos = MAP_APPFONT ( POS_X_IMAGELIST+RSC_SP_CHK_TEXTINDENT, POS_Y_STACKING+2*12  ) ;
		Size = MAP_APPFONT ( 80 , 10 ) ;
		TabStop = TRUE ;
		Text [ en-US ] = "Percent";
    };
    RadioButton RB_STACK_Z
	{
        HelpID = "chart2:RadioButton:TP_CHARTTYPE:RB_STACK_Z";
	    Pos = MAP_APPFONT ( POS_X_IMAGELIST+RSC_SP_CHK_TEXTINDENT, POS_Y_STACKING+3*12  ) ;
		Size = MAP_APPFONT ( 80 , 10 ) ;
		TabStop = TRUE ;
		//Hintereinander (verteile Datenreihen auf der Z-Achse)
		//Deep (spread series on Z-Axis)
		Text [ en-US ] = "Deep";
    };

    CheckBox CB_SPLINES
	{
        HelpID = "chart2:CheckBox:TP_CHARTTYPE:CB_SPLINES";
        Pos = MAP_APPFONT ( POS_X_IMAGELIST , POS_Y_SPLINES ) ;
        Size = MAP_APPFONT ( 150 , 10 ) ;
		Text [ en-US ] = "S~mooth lines" ;
    };

    PushButton PB_SPLINE_DIALOG
	{
        HelpID = "chart2:PushButton:TP_CHARTTYPE:PB_SPLINE_DIALOG";
	    TabStop = TRUE ;
        Pos = MAP_APPFONT ( POS_X_IMAGELIST , POS_Y_SPLINES-6 ) ;
        Size = MAP_APPFONT ( 12 , 14 ) ;
        Text [ en-US ] = "Properties..." ;
    };
    
    CheckBox CB_XVALUE_SORTING
    {
        HelpID = "chart2:CheckBox:TP_CHARTTYPE:CB_XVALUE_SORTING";
        TabStop = TRUE ;
        Pos = MAP_APPFONT ( POS_X_IMAGELIST , POS_Y_XVALUE_SORTING ) ;
        Size = MAP_APPFONT ( WIDTH_XVALUE_SORTING , 10 ) ;
		Text [ en-US ] = "~Sort by X values" ;
    };
    
};

ModalDialog DLG_SPLINE_PROPERTIES
{
	HelpID = HID_SCH_DLG_SPLINE_PROPERTIES;
	Size = MAP_APPFONT ( SPLINE_DIALOG_WIDTH , SPLINE_DIALOG_HEIGHT ) ;
	OutputSize = TRUE ;
	SVLook = TRUE ;
    Moveable = TRUE ;
	Closeable = TRUE;
    RadioButton RB_SPLINES_CUBIC
	{
        HelpID = "chart2:RadioButton:DLG_SPLINE_PROPERTIES:RB_SPLINES_CUBIC";
		Pos = MAP_APPFONT ( POS_X_SPLINES_1, POS_Y_SPLINES_2  ) ;
		Size = MAP_APPFONT ( SPLINES_WIDTH_RADIO , 10 ) ;
		TabStop = TRUE ;
		Text [ en-US ] = "Cubic spline";
    };
    RadioButton RB_SPLINES_B
	{
        HelpID = "chart2:RadioButton:DLG_SPLINE_PROPERTIES:RB_SPLINES_B";
		Pos = MAP_APPFONT ( POS_X_SPLINES_1, POS_Y_SPLINES_3  ) ;
		Size = MAP_APPFONT ( SPLINES_WIDTH_RADIO , 10 ) ;
		TabStop = TRUE ;
		Text [ en-US ] = "B-Spline";
    };

    FixedLine FL_SPLINE_SEPARATOR
    {
        Pos = MAP_APPFONT ( POS_X_SPLINE_EXTRAS-RSC_CD_FIXEDLINE_WIDTH-RSC_SP_FLGR_SPACE_X , POS_Y_SPLINES_2 ) ;
        Size = MAP_APPFONT ( RSC_CD_FIXEDLINE_WIDTH , 2*12 ) ;
        Vert = TRUE ;
    };

    FixedText FT_SPLINE_RESOLUTION
	{
		Pos = MAP_APPFONT ( POS_X_SPLINE_EXTRAS , POS_Y_SPLINES_2  ) ;
		Size = MAP_APPFONT ( SPLINES_WIDTH_METRIC_TEXT , 10 ) ;
		Text [ en-US ] = "~Resolution" ;
	};
	MetricField MF_SPLINE_RESOLUTION
	{
	    HelpID = "chart2:MetricField:DLG_SPLINE_PROPERTIES:MF_SPLINE_RESOLUTION";
		Border = TRUE ;
		Pos = MAP_APPFONT ( POS_X_SPLINE_EXTRAS+SPLINES_WIDTH_METRIC_TEXT+RSC_SP_FLGR_SPACE_X , POS_Y_SPLINES_2-2  ) ;
		Size = MAP_APPFONT ( 25 , 12 ) ;
		TabStop = TRUE ;
		Repeat = TRUE ;
		Spin = TRUE ;
		Minimum = 1 ;
		Maximum = 100 ;
		StrictFormat = TRUE ;
		Unit = FUNIT_CUSTOM ;
		First = 1 ;
		Last = 100 ;
		SpinSize = 1 ;
	};

    FixedText FT_SPLINE_ORDER
	{
		Pos = MAP_APPFONT ( POS_X_SPLINE_EXTRAS , POS_Y_SPLINES_3  ) ;
		Size = MAP_APPFONT ( SPLINES_WIDTH_METRIC_TEXT , 10 ) ;
		Text [ en-US ] = "~Data points order" ;
	};
	MetricField MF_SPLINE_ORDER
	{
	    HelpID = "chart2:MetricField:DLG_SPLINE_PROPERTIES:MF_SPLINE_ORDER";
		Border = TRUE ;
		Pos = MAP_APPFONT ( POS_X_SPLINE_EXTRAS+SPLINES_WIDTH_METRIC_TEXT+RSC_SP_FLGR_SPACE_X , POS_Y_SPLINES_3-2  ) ;
		Size = MAP_APPFONT ( 25 , 12 ) ;
		TabStop = TRUE ;
		Repeat = TRUE ;
		Spin = TRUE ;
		Minimum = 1 ;
		Maximum = 100 ;
		StrictFormat = TRUE ;
		Unit = FUNIT_CUSTOM ;
		First = 1 ;
		Last = 100 ;
		SpinSize = 1 ;
	};
	FixedLine FL_SPLINE_DIALOGBUTTONS
	{
	    Pos = MAP_APPFONT ( 0 , POS_Y_SPLINES_4 ) ;
		Size = MAP_APPFONT ( SPLINE_DIALOG_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ;
	};
	BUTTONS_HELP_OK_CANCEL_NEXT(POS_X_SPLINES_1,POS_Y_SPLINES_5)
};
