defnamesbuffer.cxx (ca5ec200) defnamesbuffer.cxx (dffa72de)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 488 unchanged lines hidden (view full) ---

497 if( !isGlobalName() ) switch( mcBuiltinId )
498 {
499 case BIFF_DEFNAME_CRITERIA: nNameFlags = FILTER_CRITERIA; break;
500 case BIFF_DEFNAME_PRINTAREA: nNameFlags = PRINT_AREA; break;
501 case BIFF_DEFNAME_PRINTTITLES: nNameFlags = COLUMN_HEADER | ROW_HEADER; break;
502 }
503
504 // create the name and insert it into the document, maCalcName will be changed to the resulting name
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 488 unchanged lines hidden (view full) ---

497 if( !isGlobalName() ) switch( mcBuiltinId )
498 {
499 case BIFF_DEFNAME_CRITERIA: nNameFlags = FILTER_CRITERIA; break;
500 case BIFF_DEFNAME_PRINTAREA: nNameFlags = PRINT_AREA; break;
501 case BIFF_DEFNAME_PRINTTITLES: nNameFlags = COLUMN_HEADER | ROW_HEADER; break;
502 }
503
504 // create the name and insert it into the document, maCalcName will be changed to the resulting name
505 mxNamedRange = createNamedRangeObject( maCalcName, nNameFlags );
505 mxNamedRange = createNamedRangeObject( maCalcName, maModel.mnSheet, nNameFlags );
506 // index of this defined name used in formula token arrays
507 PropertySet aPropSet( mxNamedRange );
508 aPropSet.getProperty( mnTokenIndex, PROP_TokenIndex );
509}
510
511void DefinedName::convertFormula()
512{
513 Reference< XFormulaTokens > xTokens( mxNamedRange, UNO_QUERY );

--- 179 unchanged lines hidden ---
506 // index of this defined name used in formula token arrays
507 PropertySet aPropSet( mxNamedRange );
508 aPropSet.getProperty( mnTokenIndex, PROP_TokenIndex );
509}
510
511void DefinedName::convertFormula()
512{
513 Reference< XFormulaTokens > xTokens( mxNamedRange, UNO_QUERY );

--- 179 unchanged lines hidden ---