Example #1
0
 public FontFaceChange(WP6Document doc, int index)
     : base(doc, index)
 {
     fontDescriptor      = new FontTypefaceDescriptorPoolPacket(doc, prefixIds[0] - 1);
     oldMatchedPointSize = BitConverter.ToInt16(nonDeletableInfo, 0);
     hashOfMatchedTypefaceDesscriptor = BitConverter.ToInt16(nonDeletableInfo, 2);
     matchedFontIndex       = BitConverter.ToInt16(nonDeletableInfo, 4);
     matchedPointSizeOfFont = BitConverter.ToInt16(nonDeletableInfo, 6);
 }
Example #2
0
 public FontSizeChange(WP6Document doc, int index)
     : base(doc, index)
 {
     oldDesiredTypefaceDescriptor = new FontTypefaceDescriptorPoolPacket(doc, prefixIds[0] - 1);
     desiredPointSize = BitConverter.ToInt16(nonDeletableInfo, 0);
     hashOfMatchedTypefaceDesscriptor = BitConverter.ToInt16(nonDeletableInfo, 2);
     matchedFontIndex = BitConverter.ToInt16(nonDeletableInfo, 4);
     matchedPointSizeOfFont = BitConverter.ToInt16(nonDeletableInfo, 6);
 }
Example #3
0
        public PageNumberPosition(WP6Document doc, int index)
            : base(doc, index)
        {
            hasTextContent = true;
            fontID         = new FontTypefaceDescriptorPoolPacket(doc, prefixIds[0] - 1);
            fontHash       = BitConverter.ToInt16(nonDeletableInfo, 0);
            BitArray b = new BitArray(nonDeletableInfo[2]);

            use                        = b.Get(0);
            copyOfFontHash             = BitConverter.ToInt16(nonDeletableInfo, 3);
            pointSize                  = BitConverter.ToInt16(nonDeletableInfo, 5);
            position                   = (PageNumberPositionEnum)nonDeletableInfo[7];
            matchedFontIndexInFontList = BitConverter.ToInt16(nonDeletableInfo, 8);
            matchedPointSizeOfFont     = BitConverter.ToInt16(nonDeletableInfo, 10);
            firstWordAttribute         = (PageNumberAttribute)BitConverter.ToInt16(nonDeletableInfo, 12);
            //leave alone 2nd word attribute for now, since WP doesn't even have blink or reverse video
            color.red               = (double)nonDeletableInfo[15] / 255;
            color.green             = (double)nonDeletableInfo[16] / 255;
            color.blue              = (double)nonDeletableInfo[17] / 255;
            color.shading           = (double)nonDeletableInfo[18] / 255;
            pageNumberHeight        = BitConverter.ToInt16(nonDeletableInfo, 19);
            NewPagePositionOverride = (PageNumberPositionEnum)nonDeletableInfo[21];
        }