/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * 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 .
*/
ContextHandlerRef DataSourceContext::onCreateContext( sal_Int32 nElement, const AttributeList& )
{ switch( getCurrentElement() )
{ case C_TOKEN( cat ): case C_TOKEN( xVal ): case C_TOKEN( ext ): switch( nElement )
{ case C_TOKEN( multiLvlStrRef ): case C_TOKEN( strLit ): case C_TOKEN( strRef ): case C15_TOKEN( datalabelsRange ):
OSL_ENSURE( !mrModel.mxDataSeq, "DataSourceContext::onCreateContext - multiple data sequences" ); returnnew StringSequenceContext( *this, mrModel.mxDataSeq.create() );
case C_TOKEN( numLit ): case C_TOKEN( numRef ):
OSL_ENSURE( !mrModel.mxDataSeq, "DataSourceContext::onCreateContext - multiple data sequences" ); returnnew DoubleSequenceContext( *this, mrModel.mxDataSeq.create() );
} break;
case C_TOKEN( plus ): case C_TOKEN( minus ): case C_TOKEN( val ): case C_TOKEN( yVal ): case C_TOKEN( bubbleSize ): switch( nElement )
{ case C_TOKEN( numLit ): case C_TOKEN( numRef ):
OSL_ENSURE( !mrModel.mxDataSeq, "DataSourceContext::onCreateContext - multiple data sequences" ); returnnew DoubleSequenceContext( *this, mrModel.mxDataSeq.create() );
} break;
} return nullptr;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.