Beispiel #1
0
        /**
         * Constructs a PrintSetup (SetUP) record and Sets its fields appropriately.
         * @param in the RecordInputstream to Read the record from
         */

        public PrintSetupRecord(RecordInputStream in1)
        {
            field_1_paper_size    = in1.ReadShort();
            field_2_scale         = in1.ReadShort();
            field_3_page_start    = in1.ReadShort();
            field_4_fit_width     = in1.ReadShort();
            field_5_fit_height    = in1.ReadShort();
            field_6_options       = in1.ReadShort();
            field_7_hresolution   = in1.ReadShort();
            field_8_vresolution   = in1.ReadShort();
            field_9_headermargin  = in1.ReadDouble();
            field_10_footermargin = in1.ReadDouble();
            field_11_copies       = in1.ReadShort();
        }
Beispiel #2
0
        public OldFormulaRecord(RecordInputStream ris) :
            base(ris, ris.Sid == biff2_sid)
        {
            ;

            if (IsBiff2)
            {
                field_4_value = ris.ReadDouble();
            }
            else
            {
                long valueLongBits = ris.ReadLong();
                specialCachedValue = SpecialCachedValue.Create(valueLongBits);
                if (specialCachedValue == null)
                {
                    field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);
                }
            }

            if (IsBiff2)
            {
                field_5_options = (short)ris.ReadUByte();
            }
            else
            {
                field_5_options = ris.ReadShort();
            }

            int expression_len  = ris.ReadShort();
            int nBytesAvailable = ris.Available();

            field_6_Parsed_expr = Formula.Read(expression_len, ris, nBytesAvailable);
        }
Beispiel #3
0
 /**
  * Constructs a BottomMargin record and Sets its fields appropriately.
  *
  * @param in the RecordInputstream to Read the record from
  */
 public BottomMarginRecord(RecordInputStream in1)
 {
     field_1_margin = in1.ReadDouble();
 }
Beispiel #4
0
        /**
         * Constructs a Number record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public NumberRecord(RecordInputStream in1) : base(in1)
        {
            field_4_value = in1.ReadDouble();
        }
Beispiel #5
0
        /**
         * Constructs a Delta record and Sets its fields appropriately.
         * @param in the RecordInputstream to Read the record from
         */

        public DeltaRecord(RecordInputStream in1)
        {
            field_1_max_change = in1.ReadDouble();
        }