public Comment_AnnotationPacket(WP6Document document, int prefixID) :
     base(document, prefixID)
 {
     if (prefixID > -1)
     {
         text = new GeneralWPText_Packet(document, childID[0] - 1);
         if (_data[dataIndex] == 0)
         {
             commentType = CommentType.comment;
         }
         else
         {
             commentType = CommentType.annotation;
             commentTime = new DateTime(BitConverter.ToInt16(_data, dataIndex + 1), _data[dataIndex + 3],
                                        _data[dataIndex + 4], _data[dataIndex + 5], _data[dataIndex + 6], _data[dataIndex + 7]);
             color.red     = (double)_data[dataIndex + 11] / 255;
             color.green   = (double)_data[dataIndex + 12] / 255;
             color.blue    = (double)_data[dataIndex + 13] / 255;
             color.shading = (double)_data[dataIndex + 14] / 255;
             dataIndex    += 14; //this is not what the spec says but is what actually works!!!
             userInitials  = getWPWordString();
             userName      = getWPWordString();
         }
     }
 }
 public TableOfAuthoritiesMarkPacket(WP6Document document, int prefixID) :
     base(document, prefixID)
 {
     if (prefixID > -1)
     {
         childPID       = new GeneralWPText_Packet(document, prefixID);
         shortFormName  = getWPWordString();
         TOASectionName = getWPWordString();
     }
 }
Beispiel #3
0
 public Header_FooterFunction(WP6Document doc, int index)
     : base(doc, index)
 {
     // for now, ignore the possible second prefixID (user assistant)
     if (prefixIds[0] > 0)
     {
         content = new GeneralWPText_Packet(document, prefixIds[0] - 1);
         // WP numbers prefixIDs beginning with 1, so need to subtract 1 to get correct ID
     }
     occurrence = (Header_FooterOccurrence)nonDeletableInfo[0];  // cast to enum
 }
Beispiel #4
0
 public EndNoteOn(WP6Document doc, int index)
     : base(doc, index)
 {
     endnoteText = new GeneralWPText_Packet(doc, prefixIds[0] - 1);
 }
Beispiel #5
0
 public DelayedCodes(WP6Document doc, int index)
     : base(doc, index)
 {
     numPages = BitConverter.ToInt16(nonDeletableInfo, 2);
     codes    = new GeneralWPText_Packet(doc, prefixIds[0] - 1);
 }