📄 parser.cs
字号:
using System;
namespace Microsoft.Fawvw.Components.NExcel.Biff.Formula
{
/// <summary> Interface used by the two different types of formula parser</summary>
internal interface Parser
{
/// <summary> Gets the string version of the formula
///
/// </summary>
/// <returns> the formula as a string
/// </returns>
string Formula
{
get;
}
/// <summary> Gets the bytes for the formula. This takes into account any
/// token mapping necessary because of shared formulas
///
/// </summary>
/// <returns> the bytes in RPN
/// </returns>
sbyte[] Bytes
{
get;
}
/// <summary> Parses the formula
///
/// </summary>
/// <exception cref=""> FormulaException if an error occurs
/// </exception>
void parse();
/// <summary> Adjusts all the relative cell references in this formula by the
/// amount specified.
///
/// </summary>
/// <param name="">colAdjust
/// </param>
/// <param name="">rowAdjust
/// </param>
void adjustRelativeCellReferences(int colAdjust, int rowAdjust);
/// <summary> Called when a column is inserted on the specified sheet. Tells
/// the formula parser to update all of its cell references beyond this
/// column
///
/// </summary>
/// <param name="sheetIndex">the sheet on which the column was inserted
/// </param>
/// <param name="col">the column number which was inserted
/// </param>
/// <param name="currentSheet">TRUE if this formula is on the sheet in which the
/// column was inserted, FALSE otherwise
/// </param>
void columnInserted(int sheetIndex, int col, bool currentSheet);
/// <summary> Called when a column is inserted on the specified sheet. Tells
/// the formula parser to update all of its cell references beyond this
/// column
///
/// </summary>
/// <param name="sheetIndex">the sheet on which the column was removed
/// </param>
/// <param name="col">the column number which was removed
/// </param>
/// <param name="currentSheet">TRUE if this formula is on the sheet in which the
/// column was inserted, FALSE otherwise
/// </param>
void columnRemoved(int sheetIndex, int col, bool currentSheet);
/// <summary> Called when a column is inserted on the specified sheet. Tells
/// the formula parser to update all of its cell references beyond this
/// column
///
/// </summary>
/// <param name="sheetIndex">the sheet on which the column was inserted
/// </param>
/// <param name="row">the column number which was inserted
/// </param>
/// <param name="currentSheet">TRUE if this formula is on the sheet in which the
/// column was inserted, FALSE otherwise
/// </param>
void rowInserted(int sheetIndex, int row, bool currentSheet);
/// <summary> Called when a column is inserted on the specified sheet. Tells
/// the formula parser to update all of its cell references beyond this
/// column
///
/// </summary>
/// <param name="sheetIndex">the sheet on which the column was removed
/// </param>
/// <param name="row">the column number which was removed
/// </param>
/// <param name="currentSheet">TRUE if this formula is on the sheet in which the
/// column was inserted, FALSE otherwise
/// </param>
void rowRemoved(int sheetIndex, int row, bool currentSheet);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -