Esempio n. 1
0
        public override Object Clone()
        {
            FormulaRecord rec = new FormulaRecord();

            CopyBaseFields(rec);
            rec.field_4_value       = field_4_value;
            rec.field_5_options     = field_5_options;
            rec.field_6_zero        = field_6_zero;
            rec.field_8_parsed_expr = field_8_parsed_expr.Copy();
            rec.specialCachedValue  = specialCachedValue;
            return(rec);
        }
Esempio n. 2
0
        /**
         * @return the equivalent {@link Ptg} array that the formula would have, were it not shared.
         */
        public Ptg[] GetFormulaTokens(FormulaRecord formula)
        {
            int formulaRow    = formula.Row;
            int formulaColumn = formula.Column;

            //Sanity checks
            if (!IsInRange(formulaRow, formulaColumn))
            {
                throw new Exception("Shared Formula Conversion: Coding Error");
            }
            SharedFormula sf = new SharedFormula(SpreadsheetVersion.EXCEL97);

            return(sf.ConvertSharedFormulas(field_7_parsed_expr.Tokens, formulaRow, formulaColumn));
            //return ConvertSharedFormulas(field_7_parsed_expr.Tokens, formulaRow, formulaColumn);
        }