28#ifndef __STRUCTURES_GENERATED_H__
29#define __STRUCTURES_GENERATED_H__
31#include "libmswrite_defs.h"
104 class HeaderGenerated :
public NeedsDevice
107 static const int s_size = 98;
110 HeaderGenerated (
const HeaderGenerated &rhs);
119 DWord m_numCharBytesPlus128;
121 Word m_pageFootnoteTable;
122 Word m_pageSectionProperty;
123 Word m_pageSectionTable;
124 Word m_pagePageTable;
125 Word m_pageFontTable;
129 HeaderGenerated &operator= (
const HeaderGenerated &rhs);
131 virtual bool verifyVariables (
void);
132 virtual bool writeToArray (
void);
134 static const Word magicDefault = Word (0xBE31);
135 static const Word zeroDefault = Word (0);
136 static const Word magic2Default = Word (0xAB00);
150 virtual bool readFromDevice (
void);
151 virtual bool writeToDevice (
void);
154 virtual ~HeaderGenerated ();
161 Word getMagic (
void)
const {
return m_magic; }
162 void setMagic (
const Word val) { m_magic = val; }
164 Word getPageParaInfo (
void)
const {
return m_pageParaInfo; }
165 void setPageParaInfo (
const Word val) { m_pageParaInfo = val; }
167 Word getPageFootnoteTable (
void)
const {
return m_pageFootnoteTable; }
168 void setPageFootnoteTable (
const Word val) { m_pageFootnoteTable = val; }
170 Word getPageSectionProperty (
void)
const {
return m_pageSectionProperty; }
171 void setPageSectionProperty (
const Word val) { m_pageSectionProperty = val; }
173 Word getPageSectionTable (
void)
const {
return m_pageSectionTable; }
174 void setPageSectionTable (
const Word val) { m_pageSectionTable = val; }
176 Word getPagePageTable (
void)
const {
return m_pagePageTable; }
177 void setPagePageTable (
const Word val) { m_pagePageTable = val; }
179 Word getPageFontTable (
void)
const {
return m_pageFontTable; }
180 void setPageFontTable (
const Word val) { m_pageFontTable = val; }
182 Word getNumPages (
void)
const {
return m_numPages; }
183 void setNumPages (
const Word val) { m_numPages = val; }
187 class PageLayoutGenerated :
public NeedsDevice
190 static const int s_size = 33;
193 PageLayoutGenerated (
const PageLayoutGenerated &rhs);
202 Word m_pageNumberStart;
210 Word m_headerFromTop;
211 Word m_footerFromTop;
219 PageLayoutGenerated &operator= (
const PageLayoutGenerated &rhs);
221 virtual bool verifyVariables (
void);
222 virtual bool writeToArray (
void);
224 static const Byte magic102Default = Byte (102);
225 static const Word magic512Default = Word (512);
226 static const Word pageHeightDefault = Word (Inch2Twip (11));
227 static const Word pageWidthDefault = Word (Inch2Twip (8.5));
228 static const Word pageNumberStartDefault = Word (1);
229 static const Word topMarginDefault = Word (Inch2Twip (1));
230 static const Word textHeightDefault = Word (Inch2Twip (9));
231 static const Word leftMarginDefault = Word (Inch2Twip (1.25));
232 static const Word textWidthDefault = Word (Inch2Twip (6));
233 static const Word magic256Default = Word (256);
234 static const Word headerFromTopDefault = Word (Inch2Twip (0.75));
235 static const Word footerFromTopDefault = Word (Inch2Twip (10.25 ));
236 static const Word magic720Default = Word (720);
237 static const Word zeroDefault = Word (0);
238 static const Word magic1080Default = Word (1080);
239 static const Word unknownDefault = Word (0);
240 static const Word zero2Default = Word (0);
244 virtual bool readFromDevice (
void);
245 virtual bool writeToDevice (
void);
247 PageLayoutGenerated ();
248 virtual ~PageLayoutGenerated ();
254 class SectionDescriptorGenerated :
public NeedsDevice
257 static const int s_size = 10;
260 SectionDescriptorGenerated (
const SectionDescriptorGenerated &rhs);
265 DWord m_afterEndCharByte;
267 DWord m_sectionPropertyLocation;
269 SectionDescriptorGenerated &operator= (
const SectionDescriptorGenerated &rhs);
271 virtual bool verifyVariables (
void);
272 virtual bool writeToArray (
void);
275 static const Word undefinedDefault = Word (0);
280 virtual bool readFromDevice (
void);
281 virtual bool writeToDevice (
void);
283 SectionDescriptorGenerated ();
284 virtual ~SectionDescriptorGenerated ();
291 DWord getAfterEndCharByte (
void)
const {
return m_afterEndCharByte; }
292 void setAfterEndCharByte (
const DWord val) { m_afterEndCharByte = val; }
294 DWord getSectionPropertyLocation (
void)
const {
return m_sectionPropertyLocation; }
295 void setSectionPropertyLocation (
const DWord val) { m_sectionPropertyLocation = val; }
299 class SectionDescriptor;
301 class SectionTableGenerated :
public NeedsDevice
304 static const int s_size = 24;
307 SectionTableGenerated (
const SectionTableGenerated &rhs);
312 Word m_numSectionDescriptors;
314 SectionDescriptor *m_sed [2];
316 SectionTableGenerated &operator= (
const SectionTableGenerated &rhs);
318 virtual bool verifyVariables (
void);
319 virtual bool writeToArray (
void);
321 static const Word numSectionDescriptorsDefault = Word (2);
322 static const Word undefinedDefault = Word (0);
327 virtual bool readFromDevice (
void);
328 virtual bool writeToDevice (
void);
330 SectionTableGenerated ();
331 virtual ~SectionTableGenerated ();
335 class FontGenerated :
public NeedsDevice
338 static const int s_size = 3;
341 FontGenerated (
const FontGenerated &rhs);
351 FontGenerated &operator= (
const FontGenerated &rhs);
353 virtual bool verifyVariables (
void);
354 virtual bool writeToArray (
void);
356 static const Word numDataBytesDefault = Word (0);
357 static const Byte familyDefault = Byte (0);
361 virtual bool readFromDevice (
void);
362 virtual bool writeToDevice (
void);
365 virtual ~FontGenerated ();
373 Word getNumDataBytes (
void)
const {
return m_numDataBytes; }
374 void setNumDataBytes (
const Word val) { m_numDataBytes = val; }
376 Byte getFamily (
void)
const {
return m_family; }
377 void setFamily (
const Byte val) { m_family = val; }
381 class FontTableGenerated :
public NeedsDevice
384 static const int s_size = 2;
387 FontTableGenerated (
const FontTableGenerated &rhs);
396 FontTableGenerated &operator= (
const FontTableGenerated &rhs);
398 virtual bool verifyVariables (
void);
399 virtual bool writeToArray (
void);
401 static const Word numFontsDefault = Word (0);
405 virtual bool readFromDevice (
void);
406 virtual bool writeToDevice (
void);
408 FontTableGenerated ();
409 virtual ~FontTableGenerated ();
416 Word getNumFonts (
void)
const {
return m_numFonts; }
417 void setNumFonts (
const Word val) { m_numFonts = val; }
421 class PagePointerGenerated :
public NeedsDevice
424 static const int s_size = 6;
427 PagePointerGenerated (
const PagePointerGenerated &rhs);
433 DWord m_firstCharByte;
435 PagePointerGenerated &operator= (
const PagePointerGenerated &rhs);
437 virtual bool verifyVariables (
void);
438 virtual bool writeToArray (
void);
445 virtual bool readFromDevice (
void);
446 virtual bool writeToDevice (
void);
448 PagePointerGenerated ();
449 virtual ~PagePointerGenerated ();
456 Word getPageNumber (
void)
const {
return m_pageNumber; }
457 void setPageNumber (
const Word val) { m_pageNumber = val; }
459 DWord getFirstCharByte (
void)
const {
return m_firstCharByte; }
460 void setFirstCharByte (
const DWord val) { m_firstCharByte = val; }
465 class PageTableGenerated :
public NeedsDevice
468 static const int s_size = 4;
471 PageTableGenerated (
const PageTableGenerated &rhs);
476 Word m_numPagePointers;
481 PageTableGenerated &operator= (
const PageTableGenerated &rhs);
483 virtual bool verifyVariables (
void);
484 virtual bool writeToArray (
void);
486 static const Word numPagePointersDefault = Word (0);
487 static const Word zeroDefault = Word (0);
491 virtual bool readFromDevice (
void);
492 virtual bool writeToDevice (
void);
494 PageTableGenerated ();
495 virtual ~PageTableGenerated ();
501 class FormatPointerGenerated :
public NeedsDevice
504 static const int s_size = 6;
507 FormatPointerGenerated (
const FormatPointerGenerated &rhs);
512 DWord m_afterEndCharBytePlus128;
513 Word m_formatPropertyOffset;
515 FormatPointerGenerated &operator= (
const FormatPointerGenerated &rhs);
517 virtual bool verifyVariables (
void);
518 virtual bool writeToArray (
void);
525 virtual bool readFromDevice (
void);
526 virtual bool writeToDevice (
void);
528 FormatPointerGenerated ();
529 virtual ~FormatPointerGenerated ();
536 DWord getAfterEndCharBytePlus128 (
void)
const {
return m_afterEndCharBytePlus128; }
537 void setAfterEndCharBytePlus128 (
const DWord val) { m_afterEndCharBytePlus128 = val; }
539 Word getFormatPropertyOffset (
void)
const {
return m_formatPropertyOffset; }
540 void setFormatPropertyOffset (
const Word val) { m_formatPropertyOffset = val; }
544 class FormatCharPropertyGenerated :
public NeedsDevice,
public UseThisMuch
547 static const int s_size = 7;
550 FormatCharPropertyGenerated (
const FormatCharPropertyGenerated &rhs);
562 unsigned m_isBold : 1;
563 unsigned m_isItalic : 1;
564 unsigned m_fontCodeLow : 6;
570 unsigned m_isUnderlined : 1;
572 unsigned m_isPageNumber : 1;
573 unsigned m_zero2 : 1;
576 unsigned m_fontCodeHigh : 3;
577 unsigned m_zero3 : 5;
582 FormatCharPropertyGenerated &operator= (
const FormatCharPropertyGenerated &rhs);
584 Word getNumDataBytes (
void)
const {
return UseThisMuch::getNeedNumDataBytes (); }
586 void updateNumDataBytes (
void) { m_numDataBytes = UseThisMuch::getNeedNumDataBytes (); }
588 virtual bool verifyVariables (
void);
589 virtual bool writeToArray (
void);
591 static const Byte numDataBytesDefault = Byte (0);
592 static const Byte unknownDefault = Byte (1);
593 static const unsigned isBoldDefault = unsigned (0);
594 static const unsigned isItalicDefault = unsigned (0);
596 static const Byte fontSizeDefault = Byte (24);
597 static const unsigned isUnderlinedDefault = unsigned (0);
599 static const unsigned isPageNumberDefault = unsigned (0);
600 static const unsigned zero2Default = unsigned (0);
603 static const Byte positionDefault = Byte (0);
607 virtual bool readFromDevice (
void);
608 virtual bool writeToDevice (
void);
610 FormatCharPropertyGenerated ();
611 virtual ~FormatCharPropertyGenerated ();
618 bool getIsBold (
void)
const {
return m_isBold; }
619 void setIsBold (
const bool val) { m_isBold = val; signalHaveSetData (m_isBold ==
bool (0), 8 + 1); }
621 bool getIsItalic (
void)
const {
return m_isItalic; }
622 void setIsItalic (
const bool val) { m_isItalic = val; signalHaveSetData (m_isItalic ==
bool (0), 9 + 1); }
625 unsigned getFontCodeLow (
void)
const {
return m_fontCodeLow; }
626 void setFontCodeLow (
const unsigned val) { m_fontCodeLow = val; signalHaveSetData (m_fontCodeLow ==
unsigned (0), 10 + 6); }
628 bool getIsUnderlined (
void)
const {
return m_isUnderlined; }
629 void setIsUnderlined (
const bool val) { m_isUnderlined = val; signalHaveSetData (m_isUnderlined ==
bool (0), 24 + 1); }
631 bool getIsPageNumber (
void)
const {
return m_isPageNumber; }
632 void setIsPageNumber (
const bool val) { m_isPageNumber = val; signalHaveSetData (m_isPageNumber ==
bool (0), 30 + 1); }
635 unsigned getFontCodeHigh (
void)
const {
return m_fontCodeHigh; }
636 void setFontCodeHigh (
const unsigned val) { m_fontCodeHigh = val; signalHaveSetData (m_fontCodeHigh ==
unsigned (0), 32 + 3); }
639 Byte getPosition (
void)
const {
return m_position; }
640 void setPosition (
const Byte val) { m_position = val; signalHaveSetData (m_position == Byte (0), 40 + 8); }
644 class FormatParaPropertyTabulatorGenerated :
public NeedsDevice
647 static const int s_size = 4;
650 FormatParaPropertyTabulatorGenerated (
const FormatParaPropertyTabulatorGenerated &rhs);
659 FormatParaPropertyTabulatorGenerated &operator= (
const FormatParaPropertyTabulatorGenerated &rhs);
661 virtual bool verifyVariables (
void);
662 virtual bool writeToArray (
void);
664 static const Word indentDefault = Word (0);
665 static const Byte typeDefault = Byte (0);
666 static const Byte zeroDefault = Byte (0);
670 virtual bool readFromDevice (
void);
671 virtual bool writeToDevice (
void);
673 FormatParaPropertyTabulatorGenerated ();
674 virtual ~FormatParaPropertyTabulatorGenerated ();
681 Word getIndent (
void)
const {
return m_indent; }
682 void setIndent (
const Word val) { m_indent = val; }
685 Byte getType (
void)
const {
return m_type; }
686 void setType (
const Byte val) { m_type = val; }
690 class FormatParaPropertyTabulator;
691 class FormatParaPropertyGenerated :
public NeedsDevice,
public UseThisMuch
694 static const int s_size = 79;
697 FormatParaPropertyGenerated (
const FormatParaPropertyGenerated &rhs);
703 Byte m_magic0_60_or_61;
708 Short m_leftIndentFirstLine;
713 unsigned m_headerOrFooter : 1;
714 unsigned m_isNotNormalParagraph : 2;
715 unsigned m_isOnFirstPage : 1;
716 unsigned m_isObject : 1;
717 unsigned m_zero2 : 3;
720 FormatParaPropertyTabulator *m_tab [14];
722 FormatParaPropertyGenerated &operator= (
const FormatParaPropertyGenerated &rhs);
724 Word getNumDataBytes (
void)
const {
return UseThisMuch::getNeedNumDataBytes (); }
726 void updateNumDataBytes (
void) { m_numDataBytes = UseThisMuch::getNeedNumDataBytes (); }
728 virtual bool verifyVariables (
void);
729 virtual bool writeToArray (
void);
731 static const Byte numDataBytesDefault = Byte (0);
732 static const Byte magic0_60_or_61Default = Byte (60);
733 static const Byte alignmentDefault = Byte (0);
734 static const Word magic30Default = Word (30);
735 static const Word rightIndentDefault = Word (0);
736 static const Word leftIndentDefault = Word (0);
737 static const Short leftIndentFirstLineDefault = Short (0);
738 static const Word lineSpacingDefault = Word (240);
740 static const unsigned headerOrFooterDefault = unsigned (0);
742 static const unsigned isOnFirstPageDefault = unsigned (0);
743 static const unsigned isObjectDefault = unsigned (0);
750 virtual bool readFromDevice (
void);
751 virtual bool writeToDevice (
void);
753 FormatParaPropertyGenerated ();
754 virtual ~FormatParaPropertyGenerated ();
761 Byte getAlignment (
void)
const {
return m_alignment; }
762 void setAlignment (
const Byte val) { m_alignment = val; signalHaveSetData (m_alignment == Byte (0), 8 + 8); }
764 Word getRightIndent (
void)
const {
return m_rightIndent; }
765 void setRightIndent (
const Word val) { m_rightIndent = val; signalHaveSetData (m_rightIndent == Word (0), 32 + 16); }
767 Word getLeftIndent (
void)
const {
return m_leftIndent; }
768 void setLeftIndent (
const Word val) { m_leftIndent = val; signalHaveSetData (m_leftIndent == Word (0), 48 + 16); }
770 Word getLineSpacing (
void)
const {
return m_lineSpacing; }
771 void setLineSpacing (
const Word val) { m_lineSpacing = val; signalHaveSetData (m_lineSpacing == Word (240), 80 + 16); }
773 bool getHeaderOrFooter (
void)
const {
return m_headerOrFooter; }
774 void setHeaderOrFooter (
const bool val) { m_headerOrFooter = val; signalHaveSetData (m_headerOrFooter ==
bool (0), 128 + 1); }
776 unsigned getIsNotNormalParagraph (
void)
const {
return m_isNotNormalParagraph; }
777 void setIsNotNormalParagraph (
const unsigned val) { m_isNotNormalParagraph = val; signalHaveSetData (m_isNotNormalParagraph ==
unsigned (0), 129 + 2); }
779 bool getIsOnFirstPage (
void)
const {
return m_isOnFirstPage; }
780 void setIsOnFirstPage (
const bool val) { m_isOnFirstPage = val; signalHaveSetData (m_isOnFirstPage ==
bool (0), 131 + 1); }
782 bool getIsObject (
void)
const {
return m_isObject; }
783 void setIsObject (
const bool val) { m_isObject = val; signalHaveSetData (m_isObject ==
bool (0), 132 + 1); }
787 class FormatInfoPageGenerated :
public NeedsDevice
790 static const int s_size = 128;
793 FormatInfoPageGenerated (
const FormatInfoPageGenerated &rhs);
798 DWord m_firstCharBytePlus128;
799 Byte m_packedStructs [123];
800 Byte m_numFormatPointers;
802 FormatInfoPageGenerated &operator= (
const FormatInfoPageGenerated &rhs);
804 virtual bool verifyVariables (
void);
805 virtual bool writeToArray (
void);
809 static const Byte numFormatPointersDefault = Byte (0);
813 virtual bool readFromDevice (
void);
814 virtual bool writeToDevice (
void);
816 FormatInfoPageGenerated ();
817 virtual ~FormatInfoPageGenerated ();
823 class BMP_BitmapFileHeaderGenerated :
public NeedsDevice
826 static const int s_size = 14;
829 BMP_BitmapFileHeaderGenerated (
const BMP_BitmapFileHeaderGenerated &rhs);
837 DWord m_actualImageOffset;
839 BMP_BitmapFileHeaderGenerated &operator= (
const BMP_BitmapFileHeaderGenerated &rhs);
841 virtual bool verifyVariables (
void);
842 virtual bool writeToArray (
void);
844 static const Word magicDefault = Word (Word (
'B') + (Word (
'M') << 8));
851 virtual bool readFromDevice (
void);
852 virtual bool writeToDevice (
void);
854 BMP_BitmapFileHeaderGenerated ();
855 virtual ~BMP_BitmapFileHeaderGenerated ();
862 DWord getTotalBytes (
void)
const {
return m_totalBytes; }
863 void setTotalBytes (
const DWord val) { m_totalBytes = val; }
865 DWord getActualImageOffset (
void)
const {
return m_actualImageOffset; }
866 void setActualImageOffset (
const DWord val) { m_actualImageOffset = val; }
871 class BMP_BitmapInfoHeaderGenerated :
public NeedsDevice
874 static const int s_size = 40;
877 BMP_BitmapInfoHeaderGenerated (
const BMP_BitmapInfoHeaderGenerated &rhs);
882 DWord m_numHeaderBytes;
889 Long m_xPixelsPerMeter;
890 Long m_yPixelsPerMeter;
892 DWord m_coloursImportant;
894 BMP_BitmapInfoHeaderGenerated &operator= (
const BMP_BitmapInfoHeaderGenerated &rhs);
896 virtual bool verifyVariables (
void);
897 virtual bool writeToArray (
void);
899 static const DWord numHeaderBytesDefault = DWord (s_size);
902 static const Word numPlanesDefault = Word (1);
904 static const DWord compressionDefault = DWord (0);
905 static const DWord sizeImageDefault = DWord (0);
906 static const Long xPixelsPerMeterDefault = Long (0);
907 static const Long yPixelsPerMeterDefault = Long (0);
908 static const DWord coloursUsedDefault = DWord (0);
913 virtual bool readFromDevice (
void);
914 virtual bool writeToDevice (
void);
916 BMP_BitmapInfoHeaderGenerated ();
917 virtual ~BMP_BitmapInfoHeaderGenerated ();
924 Long getWidth (
void)
const {
return m_width; }
925 void setWidth (
const Long val) { m_width = val; }
927 Long getHeight (
void)
const {
return m_height; }
928 void setHeight (
const Long val) { m_height = val; }
930 Word getNumPlanes (
void)
const {
return m_numPlanes; }
931 void setNumPlanes (
const Word val) { m_numPlanes = val; }
933 Word getBitsPerPixel (
void)
const {
return m_bitsPerPixel; }
934 void setBitsPerPixel (
const Word val) { m_bitsPerPixel = val; }
936 DWord getCompression (
void)
const {
return m_compression; }
937 void setCompression (
const DWord val) { m_compression = val; }
939 DWord getSizeImage (
void)
const {
return m_sizeImage; }
940 void setSizeImage (
const DWord val) { m_sizeImage = val; }
942 Long getXPixelsPerMeter (
void)
const {
return m_xPixelsPerMeter; }
943 void setXPixelsPerMeter (
const Long val) { m_xPixelsPerMeter = val; }
945 Long getYPixelsPerMeter (
void)
const {
return m_yPixelsPerMeter; }
946 void setYPixelsPerMeter (
const Long val) { m_yPixelsPerMeter = val; }
948 DWord getColoursUsed (
void)
const {
return m_coloursUsed; }
949 void setColoursUsed (
const DWord val) { m_coloursUsed = val; }
951 DWord getColoursImportant (
void)
const {
return m_coloursImportant; }
952 void setColoursImportant (
const DWord val) { m_coloursImportant = val; }
957 class BMP_BitmapColourIndexGenerated :
public NeedsDevice
960 static const int s_size = 4;
963 BMP_BitmapColourIndexGenerated (
const BMP_BitmapColourIndexGenerated &rhs);
973 BMP_BitmapColourIndexGenerated &operator= (
const BMP_BitmapColourIndexGenerated &rhs);
975 virtual bool verifyVariables (
void);
976 virtual bool writeToArray (
void);
981 static const Byte reservedDefault = Byte (0);
985 virtual bool readFromDevice (
void);
986 virtual bool writeToDevice (
void);
988 BMP_BitmapColourIndexGenerated ();
989 virtual ~BMP_BitmapColourIndexGenerated ();
996 Byte getBlue (
void)
const {
return m_blue; }
997 void setBlue (
const Byte val) { m_blue = val; }
999 Byte getGreen (
void)
const {
return m_green; }
1000 void setGreen (
const Byte val) { m_green = val; }
1002 Byte getRed (
void)
const {
return m_red; }
1003 void setRed (
const Byte val) { m_red = val; }
1007 class BitmapHeaderGenerated :
public NeedsDevice
1010 static const int s_size = 14;
1013 BitmapHeaderGenerated (
const BitmapHeaderGenerated &rhs);
1023 Byte m_bitsPerPixel;
1026 BitmapHeaderGenerated &operator= (
const BitmapHeaderGenerated &rhs);
1028 virtual bool verifyVariables (
void);
1029 virtual bool writeToArray (
void);
1031 static const Word zeroDefault = Word (0);
1032 static const Word widthDefault = Word (0);
1033 static const Word heightDefault = Word (0);
1034 static const Word widthBytesDefault = Word (0);
1035 static const Byte numPlanesDefault = Byte (0);
1036 static const Byte bitsPerPixelDefault = Byte (0);
1037 static const DWord zero2Default = DWord (0);
1041 virtual bool readFromDevice (
void);
1042 virtual bool writeToDevice (
void);
1044 BitmapHeaderGenerated ();
1045 virtual ~BitmapHeaderGenerated ();
1052 Word getWidth (
void)
const {
return m_width; }
1053 void setWidth (
const Word val) { m_width = val; }
1055 Word getHeight (
void)
const {
return m_height; }
1056 void setHeight (
const Word val) { m_height = val; }
1058 Word getWidthBytes (
void)
const {
return m_widthBytes; }
1059 void setWidthBytes (
const Word val) { m_widthBytes = val; }
1061 Byte getNumPlanes (
void)
const {
return m_numPlanes; }
1062 void setNumPlanes (
const Byte val) { m_numPlanes = val; }
1064 Byte getBitsPerPixel (
void)
const {
return m_bitsPerPixel; }
1065 void setBitsPerPixel (
const Byte val) { m_bitsPerPixel = val; }
1070 class WMFHeaderGenerated :
public NeedsDevice
1073 static const int s_size = 18;
1076 WMFHeaderGenerated (
const WMFHeaderGenerated &rhs);
1086 DWord m_maxRecordSize;
1089 WMFHeaderGenerated &operator= (
const WMFHeaderGenerated &rhs);
1091 virtual bool verifyVariables (
void);
1092 virtual bool writeToArray (
void);
1094 static const Word fieldTypeDefault = Word (1);
1095 static const Word headerSizeDefault = Word (9);
1096 static const Word winVersionDefault = Word (0x0300);
1098 static const Word numObjectsDefault = Word (0);
1100 static const Word zeroDefault = Word (0);
1104 virtual bool readFromDevice (
void);
1105 virtual bool writeToDevice (
void);
1107 WMFHeaderGenerated ();
1108 virtual ~WMFHeaderGenerated ();
1115 DWord getFileSize (
void)
const {
return m_fileSize; }
1116 void setFileSize (
const DWord val) { m_fileSize = val; }
1118 DWord getMaxRecordSize (
void)
const {
return m_maxRecordSize; }
1119 void setMaxRecordSize (
const DWord val) { m_maxRecordSize = val; }
1123 class ImageGenerated :
public NeedsDevice
1126 static const int s_size = 40;
1129 ImageGenerated (
const ImageGenerated &rhs);
1148 BitmapHeader *m_bmh;
1150 Word m_numHeaderBytes;
1151 DWord m_numDataBytes;
1152 Word m_horizontalScalingRel1000;
1153 Word m_verticalScalingRel1000;
1157 ImageGenerated &operator= (
const ImageGenerated &rhs);
1159 virtual bool verifyVariables (
void);
1160 virtual bool writeToArray (
void);
1165 static const Word MFP_unknownDefault = Word (0);
1166 static const Word indentDefault = Word (0);
1169 static const Word zeroDefault = Word (0);
1171 static const Word numHeaderBytesDefault = Word (s_size);
1173 static const Word horizontalScalingRel1000Default = Word (1000);
1174 static const Word verticalScalingRel1000Default = Word (1000);
1178 virtual bool readFromDevice (
void);
1179 virtual bool writeToDevice (
void);
1182 virtual ~ImageGenerated ();
1189 Word getIndent (
void)
const {
return m_indent; }
1190 void setIndent (
const Word val) { m_indent = val; }
1193 Word getNumHeaderBytes (
void)
const {
return m_numHeaderBytes; }
1194 void setNumHeaderBytes (
const Word val) { m_numHeaderBytes = val; }
1197 DWord getNumDataBytes (
void)
const {
return m_numDataBytes; }
1198 void setNumDataBytes (
const DWord val) { m_numDataBytes = val; }
1201 class OLEGenerated :
public NeedsDevice
1204 static const int s_size = 40;
1207 OLEGenerated (
const OLEGenerated &rhs);
1220 DWord m_numDataBytes;
1224 Word m_numHeaderBytes;
1226 Word m_widthScaledRel1000;
1227 Word m_heightScaledRel1000;
1231 OLEGenerated &operator= (
const OLEGenerated &rhs);
1233 virtual bool verifyVariables (
void);
1234 virtual bool writeToArray (
void);
1237 static const DWord zeroDefault = DWord (0);
1242 static const Word zero2Default = Word (0);
1244 static const DWord zero3Default = DWord (0);
1246 static const Word zero4Default = Word (0);
1248 static const DWord zero5Default = DWord (0);
1254 virtual bool readFromDevice (
void);
1255 virtual bool writeToDevice (
void);
1258 virtual ~OLEGenerated ();
1265 Word getObjectType (
void)
const {
return m_objectType; }
1266 void setObjectType (
const Word val) { m_objectType = val; }
1268 Word getIndent (
void)
const {
return m_indent; }
1269 void setIndent (
const Word val) { m_indent = val; }
1271 Word getWidth (
void)
const {
return m_width; }
1272 void setWidth (
const Word val) { m_width = val; }
1274 Word getHeight (
void)
const {
return m_height; }
1275 void setHeight (
const Word val) { m_height = val; }
1278 DWord getNumDataBytes (
void)
const {
return m_numDataBytes; }
1279 void setNumDataBytes (
const DWord val) { m_numDataBytes = val; }
1281 DWord getObjectName (
void)
const {
return m_objectName; }
1282 void setObjectName (
const DWord val) { m_objectName = val; }
1284 Word getWidthScaledRel1000 (
void)
const {
return m_widthScaledRel1000; }
1285 void setWidthScaledRel1000 (
const Word val) { m_widthScaledRel1000 = val; }
1287 Word getHeightScaledRel1000 (
void)
const {
return m_heightScaledRel1000; }
1288 void setHeightScaledRel1000 (
const Word val) { m_heightScaledRel1000 = val; }