2.4.344 WebPub

The WebPub record specifies the information for a single published Web page.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

frtRefHeaderU

...

...

tws

twd

A

B

C

D

reserved2

reserved3

unused2

nStyleId

cb

srcName (variable)

...

stFileDest (variable)

...

stDivId (variable)

...

stTitle (variable)

...

crtID (optional)

frtRgb (variable)

...

unused3

frtRefHeaderU (12 bytes): An FrtRefHeaderU structure. If the value of tws is 4, then frtRefHeaderU.ref8 specifies the range of cells associated with this record and frtRefHeaderU.grbitFrt.fFrtRef MUST be 1. If the value of tws is not 4, then frtRefHeaderU.grbigFrt.fFrtRef MUST be zero.

tws (1 byte): An unsigned integer that specifies the type of Web source that was published. It MUST be a value from the following table:

Value

Meaning

0xFF

The source is undefined.

0x00

Workbook

0x01

Entire sheet

0x02

Print area

0x03

AutoFilter range

0x04

Range of cells

0x05

Chart

0x06

PivotTable report

0x07

Query table (external data range)

0x08

Named range

twd (1 byte): An unsigned integer that specifies the type of Web page created and whether the item is static or interactive. It MUST be a value from the following table:

Value

Meaning

0x00

Non-interactive page, only for viewing

0x01

Uses workbook functionality

0x02

Uses PivotTable functionality

0x03

Uses chart functionality

A - unused1 (1 bit): Undefined and MUST be ignored.

B - fAutoRepublish (1 bit):  This bit specifies whether to republish the Web page when it is saved.

C - reserved1 (1 bit): MUST be zero and MUST be ignored.

D - fMhtml (1 bit):  This bit specifies whether the file is published as a single Web page or as a Web page with references to other files.

reserved2 (12 bits): MUST be zero and MUST be ignored.

reserved3 (2 bytes): MUST be zero and MUST be ignored.

unused2 (2 bytes): Undefined and MUST be ignored.

nStyleId (4 bytes):  An unsigned integer that specifies the unique identifier for this published content.

cb (4 bytes): An unsigned integer that specifies the size of the data that follows in this record according to the following formula:

size of srcName + size of stFileDest + size of stDivId + size of stTitle + size of crtID + size of frtRGB + size of unused3

 The value MUST be greater than 0.

srcName (variable): A WebPubString structure that specifies the named range to be published.  The field MUST exist if and only if the value of tws is greater than 4. The character count in the string MUST be less than or equal to 255.

stFileDest (variable): A WebPubString structure that specifies the URL or the path to the location of the published page. The character count in the string MUST be less than or equal to 255.

stDivId (variable):  A WebPubString structure that specifies the destination bookmark of the published page. The character count in the string MUST be less than or equal to 255.

stTitle (variable): A WebPubString structure that specifies the title of the published item.

crtID (4 bytes):  An MSOSPID structure, as specified in [MS-ODRAW], that specifies the published chart object. This field MUST exist if and only if tws equals 5.

frtRgb (variable): A binary stream that specifies the bytes reserved for future use. The size of this field in bytes is calculated according to the following formula:

size of this record – 30 – size of srcName – size of stFileDest – size of stDivId – size of stTitle – size of crtID<143>

unused3 (2 bytes):  Undefined and MUST be ignored.