'encoding UTF-8 Do not remove or change this line! '************************************************************** ' ' 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. ' '************************************************************** '* '* 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