Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /* ====================================================================
     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.
 ==================================================================== */
 package org.apache.poi.hwpf.model.types;
 
List Format Override (LFO).

Class and fields descriptions are quoted from [MS-DOC] --v20110315; Word (.doc) Binary File Format

NOTE: This source is automatically generated please do not modify this file. Either subclass or remove the record in src/types/definitions.

This class is internal. It content or properties may change without notice due to changes in our knowledge of internal Microsoft Word binary structures.

Author(s):
Sergey Vladimirov; according to [MS-DOC] --v20110315; Word (.doc) Binary File Format; Copyright (c) Microsoft Corporation
 
 public abstract class LFOAbstractType
 {
 
     protected int field_1_lsid;
     protected int field_2_unused1;
     protected int field_3_unused2;
     protected byte field_4_clfolvl;
     protected byte field_5_ibstFltAutoNum;
     protected Grfhic field_6_grfhic;
     protected byte field_7_unused3;
 
     protected LFOAbstractType()
     {
         this. = new Grfhic();
     }
 
     protected void fillFieldsbyte[] dataint offset )
     {
                            = LittleEndian.getIntdata, 0x0 + offset );
                         = LittleEndian.getIntdata, 0x4 + offset );
                         = LittleEndian.getIntdata, 0x8 + offset );
                         = data[ 0xc + offset ];
                  = data[ 0xd + offset ];
                          = new Grfhicdata, 0xe + offset );
                         = data[ 0xf + offset ];
     }
 
     public void serializebyte[] dataint offset )
     {
         LittleEndian.putIntdata, 0x0 + offset );
         LittleEndian.putIntdata, 0x4 + offset );
         LittleEndian.putIntdata, 0x8 + offset );
         data[ 0xc + offset ] = ;
         data[ 0xd + offset ] = ;
         .serializedata, 0xe + offset );
         data[ 0xf + offset ] = ;
     }
 
     public byte[] serialize()
     {
         final byte[] result = new bytegetSize() ];
         serializeresult, 0 );
         return result;
     }

    
Size of record
 
     public static int getSize()
     {
         return 0 + 4 + 4 + 4 + 1 + 1 + 1 + 1;
     }
 
     @Override
     public boolean equalsObject obj )
     {
         if ( this == obj )
             return true;
         if ( obj == null )
             return false;
         if ( getClass() != obj.getClass() )
            return false;
        LFOAbstractType other = (LFOAbstractTypeobj;
        if (  != other.field_1_lsid )
            return false;
        if (  != other.field_2_unused1 )
            return false;
        if (  != other.field_3_unused2 )
            return false;
        if (  != other.field_4_clfolvl )
            return false;
        if (  != other.field_5_ibstFltAutoNum )
            return false;
        if (  == null )
        {
            if ( other.field_6_grfhic != null )
                return false;
        }
        else if ( !.equalsother.field_6_grfhic ) )
            return false;
        if (  != other.field_7_unused3 )
            return false;
        return true;
    }
    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ;
        result = prime * result + ;
        result = prime * result + ;
        result = prime * result + ;
        result = prime * result + ;
        result = prime * result
                + (( == null) ? 0 : .hashCode());
        result = prime * result + ;
        return result;
    }
    public String toString()
    {
        StringBuilder builder = new StringBuilder();
        builder.append("[LFO]\n");
        builder.append"    .lsid                 = " );
        builder.append(" ( ").append ).append" )\n" );
        builder.append"    .unused1              = " );
        builder.append(" ( ").append ).append" )\n" );
        builder.append"    .unused2              = " );
        builder.append(" ( ").append ).append" )\n" );
        builder.append"    .clfolvl              = " );
        builder.append(" ( ").append ).append" )\n" );
        builder.append"    .ibstFltAutoNum       = " );
        builder.append(" ( ").append ).append" )\n" );
        builder.append"    .grfhic               = " );
        builder.append(" ( ").append == null ? "null" : .toString().replaceAll"\n""\n    " ) ).append" )\n" );
        builder.append"    .unused3              = " );
        builder.append(" ( ").append ).append" )\n" );
        builder.append("[/LFO]");
        return builder.toString();
    }

    
A signed integer that specifies the list identifier of an LSTF. This LFO corresponds to the LSTF in PlfLst.rgLstf that has an lsid whose value is equal to this value..
    @Internal
    public int getLsid()
    {
        return ;
    }

    
A signed integer that specifies the list identifier of an LSTF. This LFO corresponds to the LSTF in PlfLst.rgLstf that has an lsid whose value is equal to this value..
    @Internal
    public void setLsidint field_1_lsid )
    {
        this. = field_1_lsid;
    }

    
This field MUST be ignored.
    @Internal
    public int getUnused1()
    {
        return ;
    }

    
This field MUST be ignored.
    @Internal
    public void setUnused1int field_2_unused1 )
    {
        this. = field_2_unused1;
    }

    
This field MUST be ignored.
    @Internal
    public int getUnused2()
    {
        return ;
    }

    
This field MUST be ignored.
    @Internal
    public void setUnused2int field_3_unused2 )
    {
        this. = field_3_unused2;
    }

    
An unsigned integer that specifies the field that this LFO represents..
    @Internal
    public byte getClfolvl()
    {
        return ;
    }

    
An unsigned integer that specifies the field that this LFO represents..
    @Internal
    public void setClfolvlbyte field_4_clfolvl )
    {
        this. = field_4_clfolvl;
    }

    
Used for AUTONUM field emulation.
    @Internal
    public byte getIbstFltAutoNum()
    {
        return ;
    }

    
Used for AUTONUM field emulation.
    @Internal
    public void setIbstFltAutoNumbyte field_5_ibstFltAutoNum )
    {
        this. = field_5_ibstFltAutoNum;
    }

    
HTML compatibility flags.
    @Internal
    public Grfhic getGrfhic()
    {
        return ;
    }

    
HTML compatibility flags.
    @Internal
    public void setGrfhicGrfhic field_6_grfhic )
    {
        this. = field_6_grfhic;
    }

    
This field MUST be ignored.
    @Internal
    public byte getUnused3()
    {
        return ;
    }

    
This field MUST be ignored.
    @Internal
    public void setUnused3byte field_7_unused3 )
    {
        this. = field_7_unused3;
    }
}  // END OF CLASS
New to GrepCode? Check out our FAQ X