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;
 
The StdfPost2000 structure specifies general information about a style.

Class and fields descriptions are quoted from Microsoft Office Word 97-2007 Binary File Format and [MS-DOC] - v20110608 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 Microsoft Office Word 97-2007 Binary File Format Specification [*.doc] and [MS-DOC] - v20110608 Word (.doc) Binary File Format
 
 public abstract class StdfPost2000AbstractType
 {
 
     protected short field_1_info1;
     /**/private static final BitField istdLink = new BitField(0x0FFF);
     /**/private static final BitField fHasOriginalStyle = new BitField(0x1000);
     /**/private static final BitField fSpare = new BitField(0xE000);
     protected long field_2_rsid;
     protected short field_3_info3;
     /**/private static final BitField iftcHtml = new BitField(0x0007);
     /**/private static final BitField unused = new BitField(0x0008);
     /**/private static final BitField iPriority = new BitField(0xFFF0);
 
     protected StdfPost2000AbstractType()
     {
     }
 
     protected void fillFieldsbyte[] dataint offset )
     {
                           = LittleEndian.getShort(data, 0x0 + offset);
                            = LittleEndian.getUInt(data, 0x2 + offset);
                           = LittleEndian.getShort(data, 0x6 + offset);
     }
 
     public void serializebyte[] dataint offset )
     {
         LittleEndian.putShort(data, 0x0 + offset);
         LittleEndian.putUInt(data, 0x2 + offset);
         LittleEndian.putShort(data, 0x6 + offset);
     }

    
Size of record
 
     public static int getSize()
     {
         return 0 + 2 + 4 + 2;
     }
 
     public String toString()
     {
         StringBuilder builder = new StringBuilder();
         builder.append("[StdfPost2000]\n");
         builder.append("    .info1                = ");
         builder.append(" (").append(getInfo1()).append(" )\n");
         builder.append("         .istdLink                 = ").append(getIstdLink()).append('\n');
         builder.append("         .fHasOriginalStyle        = ").append(isFHasOriginalStyle()).append('\n');
         builder.append("         .fSpare                   = ").append(getFSpare()).append('\n');
         builder.append("    .rsid                 = ");
         builder.append(" (").append(getRsid()).append(" )\n");
         builder.append("    .info3                = ");
         builder.append(" (").append(getInfo3()).append(" )\n");
         builder.append("         .iftcHtml                 = ").append(getIftcHtml()).append('\n');
         builder.append("         .unused                   = ").append(isUnused()).append('\n');
         builder.append("         .iPriority                = ").append(getIPriority()).append('\n');
 
         builder.append("[/StdfPost2000]\n");
         return builder.toString();
     }

    
Get the info1 field for the StdfPost2000 record.
    @Internal
    public short getInfo1()
    {
        return ;
    }

    
Set the info1 field for the StdfPost2000 record.
    @Internal
    public void setInfo1short field_1_info1 )
    {
        this. = field_1_info1;
    }

    
An unsigned integer that specifies the revision save identifier of the session when this style definition was last modified.
    @Internal
    public long getRsid()
    {
        return ;
    }

    
An unsigned integer that specifies the revision save identifier of the session when this style definition was last modified.
    @Internal
    public void setRsidlong field_2_rsid )
    {
        this. = field_2_rsid;
    }

    
Get the info3 field for the StdfPost2000 record.
    @Internal
    public short getInfo3()
    {
        return ;
    }

    
Set the info3 field for the StdfPost2000 record.
    @Internal
    public void setInfo3short field_3_info3 )
    {
        this. = field_3_info3;
    }

    
Sets the istdLink field value. An unsigned integer that specifies the istd of the style that is linked to this one, or 0x0000 if this style is not linked to any other style in the document.
    @Internal
    public void setIstdLinkshort value )
    {
         = (short).setValue(value);
    }

    
An unsigned integer that specifies the istd of the style that is linked to this one, or 0x0000 if this style is not linked to any other style in the document.

Returns:
the istdLink field value.
    @Internal
    public short getIstdLink()
    {
        return ( short ).getValue();
    }

    
Sets the fHasOriginalStyle field value. Specifies whether the style is revision-marked. A revision-marked style stores the pre-revision formatting in addition to the current formatting. If this bit is set to 1, the cupx member of StdfBase MUST include the formatting sets that specify that pre-revision formatting
    @Internal
    public void setFHasOriginalStyleboolean value )
    {
         = (short).setBoolean(value);
    }

    
Specifies whether the style is revision-marked. A revision-marked style stores the pre-revision formatting in addition to the current formatting. If this bit is set to 1, the cupx member of StdfBase MUST include the formatting sets that specify that pre-revision formatting

Returns:
the fHasOriginalStyle field value.
    @Internal
    public boolean isFHasOriginalStyle()
    {
        return .isSet();
    }

    
Sets the fSpare field value. Specifies whether the paragraph height information in the fcPlcfPhe field of FibRgFcLcb97
    @Internal
    public void setFSparebyte value )
    {
         = (short).setValue(value);
    }

    
Specifies whether the paragraph height information in the fcPlcfPhe field of FibRgFcLcb97

Returns:
the fSpare field value.
    @Internal
    public byte getFSpare()
    {
        return ( byte ).getValue();
    }

    
Sets the iftcHtml field value. This field is undefined and MUST be ignored
    @Internal
    public void setIftcHtmlbyte value )
    {
         = (short).setValue(value);
    }

    
This field is undefined and MUST be ignored

Returns:
the iftcHtml field value.
    @Internal
    public byte getIftcHtml()
    {
        return ( byte ).getValue();
    }

    
Sets the unused field value. This value MUST be zero and MUST be ignored
    @Internal
    public void setUnusedboolean value )
    {
         = (short).setBoolean(value);
    }

    
This value MUST be zero and MUST be ignored

Returns:
the unused field value.
    @Internal
    public boolean isUnused()
    {
        return .isSet();
    }

    
Sets the iPriority field value. An unsigned integer that specifies the priority value that is assigned to this style and that is used when ordering the styles by priority in the user interface
    @Internal
    public void setIPriorityshort value )
    {
         = (short).setValue(value);
    }

    
An unsigned integer that specifies the priority value that is assigned to this style and that is used when ordering the styles by priority in the user interface

Returns:
the iPriority field value.
    @Internal
    public short getIPriority()
    {
        return ( short ).getValue();
    }
}  // END OF CLASS
New to GrepCode? Check out our FAQ X