BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.Utils/Document/Excel/NPOI/SS/Formula/PTG/AttrPtg.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* ====================================================================
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.
==================================================================== */
namespace Zephyr.Utils.NPOI.SS.Formula.PTG
{
using System;
using System.Text;
using Zephyr.Utils.NPOI.Util;
using Zephyr.Utils.NPOI.HSSF.Record;
/**
* "Special Attributes"
* This seems to be a Misc Stuff and Junk record. One function it serves Is
* in SUM functions (i.e. SUM(A1:A3) causes an area PTG then an ATTR with the SUM option Set)
* @author andy
* @author Jason Height (jheight at chariot dot net dot au)
*/
public class AttrPtg : ControlPtg
{
public const byte sid = 0x19;
private static int SIZE = 4;
private byte field_1_options;
private short field_2_data;
/** only used for tAttrChoose: table of offsets to starts of args */
private int[] _jumpTable;
/** only used for tAttrChoose: offset to the tFuncVar for CHOOSE() */
private int _chooseFuncOffset;
// flags 'volatile' and 'space', can be combined.
// OOO spec says other combinations are theoretically possible but not likely to occur.
private static BitField semiVolatile = BitFieldFactory.GetInstance(0x01);
private static BitField optiIf = BitFieldFactory.GetInstance(0x02);
private static BitField optiChoose = BitFieldFactory.GetInstance(0x04);
private static BitField optiSkip = BitFieldFactory.GetInstance(0x08); // skip
private static BitField optiSum = BitFieldFactory.GetInstance(0x10);
private static BitField baxcel = BitFieldFactory.GetInstance(0x20); // 'assignment-style formula in a macro sheet'
private static BitField space = BitFieldFactory.GetInstance(0x40);
public static AttrPtg SUM = new AttrPtg(0x0010, 0, null, -1);
public class SpaceType
{
/** 00H = Spaces before the next token (not allowed before tParen token) */
后面还有 295 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
