'encoding UTF-8 Do not remove or change this line! '************************************************************************** ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ' ' Copyright 2000, 2010 Oracle and/or its affiliates. ' ' OpenOffice.org - a multi-platform office productivity suite ' ' This file is part of OpenOffice.org. ' ' OpenOffice.org is free software: you can redistribute it and/or modify ' it under the terms of the GNU Lesser General Public License version 3 ' only, as published by the Free Software Foundation. ' ' OpenOffice.org is distributed in the hope that it will be useful, ' but WITHOUT ANY WARRANTY; without even the implied warranty of ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ' GNU Lesser General Public License version 3 for more details ' (a copy is included in the LICENSE file that accompanied this code). ' ' You should have received a copy of the GNU Lesser General Public License ' version 3 along with OpenOffice.org. If not, see ' ' for a copy of the LGPLv3 License. ' '/************************************************************************ '* '* owner : oliver.craemer@oracle.com '* '* short description : Continue Chart resource test - Menu FORMAT '* '************************************************************************ '* ' #1 tFormatXAxisMainGrid ' #1 tFormatYAxisMainGrid ' #1 tFormatZAxisMainGrid ' #1 tFormatXAxisMinorGrid ' #1 tFormatYAxisMinorGrid ' #1 tFormatZAxisMinorGrid ' #1 tFormatAllAxesGrids ' #1 tFormatLegend ' #1 tFormatChartWall ' #1 tFormatChartFloor ' #1 tFormatChartArea ' #1 tFormatChartType ' #1 tFormatDataRanges ' #1 tFormat3DView '* '\************************************************************************ testcase tFormatXAxisMainGrid '///Dialog test after invoking Format::Grid::X Axis Main Grid '/// endcase '------------------------------------------------------------- testcase tFormatYAxisMainGrid '///Dialog test after invoking Format::Grid::Y Axis Main Grid '/// endcase '------------------------------------------------------------- testcase tFormatZAxisMainGrid '///Dialog test after invoking Format::Grid::Z Axis Main Grid '/// endcase ' '------------------------------------------------------------------------------- ' testcase tFormatXAxisMinorGrid '///Dialog test after invoking Format::Grid::X Axis Minor Grid '/// Load simple chart document if fLoadVerySimpleChartAndSaveLocal() > 0 then warnlog "Loading test document seems to have failed -> Check this out!" goto endsub endif '/// Select chart using navigator call fSelectFirstOLE '/// Invoke Edit::Object::Edit to enter Inplace Mode EditObjectEdit sleep(1) '/// Invoke Format::Chart Type if fInvokeChartTypeDialog() > 0 then warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)" Call hCloseDocument goto endsub endif '/// Change Chart type to xy chart if fSetChartType( "xy" ) > 0 then warnlog "Something went wrong setting chart type to xy chart -> Check this out! (Previous log may help you)" Call hCloseDocument goto endsub endif '/// Close Chart Type dialog if fCloseChartTypeDialogOK() > 0 then warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)" Call hCloseDocument goto endsub endif '/// Invoke Insert::Grids if fInvokeGridsDialog() > 0 then warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)" Call hCloseDocument goto endsub endif Kontext "InsertGridsDialog" '/// Check Minor Grid X Axis if fSetGrid( MinorGridXAxis , TRUE ) > 0 then warnlog "Something went wrong enabling Minor Grid Y Axis -> Check this out! (Previous log may help you)" Call hCloseDocument goto endsub endif '/// Close Grids dialog if fCloseGridsDialogOK() > 0 then warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)" Call hCloseDocument goto endsub endif '/// Invoke Format::Grid::X Axis Minor Grid FormatGridXAxisMinorGrid '/// Check if tab-page Line exists Kontext "TabFormatChartLine" call DialogTest ( TabFormatChartLine ) '/// Close dialog TabFormatChartLine.Cancel '/// Close document Kontext "DocumentCalc" DocumentCalc.TypeKeys "" Call hCloseDocument endcase ' '------------------------------------------------------------------------------- ' testcase tFormatYAxisMinorGrid '///Dialog test after invoking Format::Grid::Y Axis Minor Grid '/// endcase ' '------------------------------------------------------------------------------- ' testcase tFormatAllAxesGrids '///Dialog test after invoking Format::Grid::All Grids '/// endcase '------------------------------------------------------------- testcase tFormatLegend '///Dialog test after invoking Format::Legend '/// endcase '------------------------------------------------------------- testcase tFormatChartWall '///Dialog test after invoking Format::Chart Wall '/// endcase '------------------------------------------------------------- testcase tFormatChartFloor '///Dialog test after invoking Format::Chart Floor '/// endcase '------------------------------------------------------------- testcase tFormatChartArea '///Dialog test after invoking Format::Chart Area '/// endcase '------------------------------------------------------------- testcase tFormatChartType '///Dialog test after invoking Format::Chart Type '/// endcase '------------------------------------------------------------- testcase tFormatDataRanges '///Dialog test after invoking Format::Data Ranges '/// endcase '------------------------------------------------------------- testcase tFormat3DView '///Dialog test after invoking Format::3D View '/// endcase '------------------------------------------------------------- '