2.9.30 TextRuler

Referenced by: DefaultRulerAtom, TextRulerAtom

A structure that specifies tabbing, margins, and indentation for text.


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

A

B

C

D

E

F

G

H

I

J

K

L

M

reserved

cLevels (optional)

defaultTabSize (optional)

tabs (variable)

...

leftMargin1 (optional)

indent1 (optional)

leftMargin2 (optional)

indent2 (optional)

leftMargin3 (optional)

indent3 (optional)

leftMargin4 (optional)

indent4 (optional)

leftMargin5 (optional)

indent5 (optional)

A - fDefaultTabSize (1 bit): A bit that specifies whether defaultTabSize exists.

B - fCLevels (1 bit): A bit that specifies whether cLevels exists.

C - fTabStops (1 bit): A bit that specifies whether tabs exists.

D - fLeftMargin1 (1 bit): A bit that specifies whether leftMargin1 exists.

E - fLeftMargin2 (1 bit): A bit that specifies whether leftMargin2 exists.

F - fLeftMargin3 (1 bit): A bit that specifies whether leftMargin3 exists.

G - fLeftMargin4 (1 bit): A bit that specifies whether leftMargin4 exists.

H - fLeftMargin5 (1 bit): A bit that specifies whether leftMargin5 exists.

I - fIndent1 (1 bit): A bit that specifies whether indent1 exists.

J - fIndent2 (1 bit): A bit that specifies whether indent2 exists.

K - fIndent3 (1 bit): A bit that specifies whether indent3 exists.

L - fIndent4 (1 bit): A bit that specifies whether indent4 exists.

M - fIndent5 (1 bit): A bit that specifies whether indent5 exists.

reserved (19 bits): MUST be zero and MUST be ignored.

cLevels (2 bytes): An optional signed integer that specifies the number of style levels in this text ruler. It MUST exist if and only if fCLevels is TRUE.

defaultTabSize (2 bytes): An optional TabSize that specifies the default tab size for this text ruler. It MUST exist if and only if fDefaultTabSize is TRUE.

tabs (variable): An optional TabStops structure that specifies the tab stops for this text ruler. It MUST exist if and only if fTabStops is TRUE.

leftMargin1 (2 bytes): An optional MarginOrIndent that specifies the left margin for text that has an IndentLevel equal to 0x0000. It MUST exist if and only if fLeftMargin1 is TRUE.

indent1 (2 bytes): An optional MarginOrIndent that specifies the indentation for text that has an IndentLevel equal to 0x0000. It MUST exist if and only if fIndent1 is TRUE.

leftMargin2 (2 bytes): An optional MarginOrIndent that specifies the left margin for text that has an IndentLevel equal to 0x0001. It MUST exist if and only if fLeftMargin2 is TRUE.

indent2 (2 bytes): An optional MarginOrIndent that specifies the indentation for text that has an IndentLevel equal to 0x0001. It MUST exist if and only if fIndent2 is TRUE.

leftMargin3 (2 bytes): An optional MarginOrIndent that specifies the left margin for text that has an IndentLevel equal to 0x0002. It MUST exist if and only if fLeftMargin3 is TRUE.

indent3 (2 bytes): An optional MarginOrIndent that specifies the indentation for text that has an IndentLevel equal to 0x0002. It MUST exist if and only if fIndent3 is TRUE.

leftMargin4 (2 bytes): An optional MarginOrIndent that specifies the left margin for text that has an IndentLevel equal to 0x0003. It MUST exist if and only if fLeftMargin4 is TRUE.

indent4 (2 bytes): An optional MarginOrIndent that specifies the indentation for text that has an IndentLevel equal to 0x0003. It MUST exist if and only if fIndent4 is TRUE.

leftMargin5 (2 bytes): An optional MarginOrIndent that specifies the left margin for text that has an IndentLevel equal to 0x0004. It MUST exist if and only if fLeftMargin5 is TRUE.

indent5 (2 bytes): An optional MarginOrIndent that specifies the indentation for text that has an IndentLevel equal to 0x0004. It MUST exist if and only if fIndent5 is TRUE.