'encoding UTF-8 Do not remove or change this line! '************************************************************************** '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. '* '* Copyright 2008 by Sun Microsystems, Inc. '* '* OpenOffice.org - a multi-platform office productivity suite '* '* $RCSfile: ch_tools_data_labels.inc,v $ '* '* $Revision: 1.1 $ '* '* last change: $Author: jsi $ $Date: 2008-06-13 14:27:02 $ '* '* 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@sun.com '* '* short description : Tool library for Data Labels dialog '* '************************************************************************************************** '* ' #1 fInvokeDataLabelsDialog ' #1 fCloseDataLabelsDialogOK ' #1 fSetShowValue ' #1 fSetValueType ' #1 fSetShowLabelText ' #1 fSetShowLegendIconWithLabel '* '\************************************************************************************************ 'ch_tools_data_labels.inc - Library for automation of the 'Insert::Data Labels...' dialog 'This Include contains a set of functions to modify the controls of the Data Labels dialog. 'All functions are designed to return error-codes depending on the behaviour of the action applied. 'Return codes: 'Error 0: Success. 'Error 1: The basic action beeing applied caused a serious problem, e.g. a crash. 'Error 2 TO 9: A functional problem occured. 'Error 11 TO 19: Wrong marginal conditions end up in Failure, e.g. control not visible. 'NOTE: This errors can also be used for 'negative' testing. 'Error 42: Wrong input. Probably only of interest during test development . 'Error 99: Unexpected behaviour - Shouldn't normally occur. 'ATTENTION: 'Only Errors 42 and 99 throw 'Warnlogs'. 'All other errors are silent! 'They only throw QAErrorlogs the give a hint what probably went wrong. 'Expected Errors MUST exclusivly be handled by the calling routine! ' '-------------------------------------------------------------------- ' function fInvokeDataLabelsDialog() as INTEGER fInvokeDataLabelsDialog = 99 '///Function to invoke the 'Insert::Data Labels...' dialog/// '///No Input '///Returns error-code: '///+ 0 := Sucess '///+ 1 := Serious problem trying to invoke the dialog '///+ 2 := Failure (Dialog not present after invocation) '///+99 := Unexpected error '///Step-by-Step/// '/// end function ' '-------------------------------------------------------------------- ' function fCloseDataLabelsDialogOK() as INTEGER fCloseDataLabelsDialogOK = 99 '///Function to close the Data Labels dialog using OK button/// '///No Input '///Returns error-code: '///+ 0 := Sucess '///+ 1 := Serious problem trying to Close the dialog '///+ 2 := Failure (Dialog present after applying OK button) '///+15 := Dialog not present before closing '///+99 := Unexpected error '///Step-by-Step/// '/// end function ' '-------------------------------------------------------------------- ' function fSetShowValue ( bShowValueCheck as BOOLEAN ) as INTEGER fSetShowValue = 99 '///Function to check 'Show Value'/// '///BOOLEAN bShowValueCheck '///+TRUE := Check 'Show Value' - FALSE := Uncheck 'Show Value' '///Returns error-code: '///+ 0 := Sucess '///+ 1 := Serious problem trying to check 'Show Value' '///+ 2 := 'Show Value' was not set '///+12 := Check-box for 'Show Value' is not enabled '///+99 := Unexpected error '///Step-by-Step/// '/// end function ' '-------------------------------------------------------------------- ' function fSetValueType ( oValueType as OBJECT ) as INTEGER fSetValueType = 99 '///Function to select Value Type/// '///Input: '///OBJECT oValueType '///+Declaration name of Radio-Button: AsNumber and AsPercentage are valid values '///Returns error-code: '///+ 0 := Sucess '///+ 1 := Serious problem trying to check Legend position radio-button '///+ 2 := Value type radio-button was not set '///+12 := Radio-Button for desired Value type is not enabled '///+99 := Unexpected error '///Step-by-Step/// '/// end function ' '-------------------------------------------------------------------- ' function fSetShowLabelText ( bShowLabelTextCheck as BOOLEAN ) as INTEGER fSetShowLabelText = 99 '///Function to check 'Show Label Text'/// '///BOOLEAN bShowLabelTextCheck '///+TRUE := Check 'Show Label Text' - FALSE := Uncheck 'Show Label Text' '///Returns error-code: '///+ 0 := Sucess '///+ 1 := Serious problem trying to check 'Show Label Text' '///+ 2 := 'Show Label Text' was not set '///+12 := Check-box for 'Show Label Text' is not enabled '///+99 := Unexpected error '///Step-by-Step/// '/// end function ' '-------------------------------------------------------------------- ' function fSetShowLegendIconWithLabel ( bShowLegendIconCheck as BOOLEAN ) as INTEGER fSetShowLegendIconWithLabel = 99 '///Function to check 'Show Legend Icon With Label'/// '///BOOLEAN bShowLegendIconCheck '///+TRUE := Check 'Show Legend Icon With Label' - FALSE := Uncheck 'Show Legend Icon With Label' '///Returns error-code: '///+ 0 := Sucess '///+ 1 := Serious problem trying to check 'Show Legend Icon With Label' '///+ 2 := 'Show Legend Icon With Label' was not set '///+12 := Check-box for 'Show Legend Icon With Label' is not enabled '///+99 := Unexpected error '///Step-by-Step/// '/// end function