| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | from __future__ import absolute_import |
| | from __future__ import print_function |
| | from __future__ import unicode_literals |
| |
|
| | from hwp5.binmodel.controlchar import CHID |
| | from hwp5.dataio import Enum |
| | from hwp5.dataio import Flags |
| | from hwp5.dataio import UINT32 |
| | from hwp5.dataio import WCHAR |
| | from hwp5.binmodel.controls._shared import Control |
| |
|
| |
|
| | class PageNumberPosition(Control): |
| | ''' 4.2.10.9. 쪽 번호 위치 ''' |
| | chid = CHID.PGNP |
| | Position = Enum(NONE=0, |
| | TOP_LEFT=1, TOP_CENTER=2, TOP_RIGHT=3, |
| | BOTTOM_LEFT=4, BOTTOM_CENTER=5, BOTTOM_RIGHT=6, |
| | OUTSIDE_TOP=7, OUTSIDE_BOTTOM=8, |
| | INSIDE_TOP=9, INSIDE_BOTTOM=10) |
| | Flags = Flags(UINT32, |
| | 0, 7, 'shape', |
| | 8, 11, Position, 'position') |
| |
|
| | def attributes(cls): |
| | yield cls.Flags, 'flags' |
| | yield WCHAR, 'usersymbol' |
| | yield WCHAR, 'prefix' |
| | yield WCHAR, 'suffix' |
| | yield WCHAR, 'dash' |
| | attributes = classmethod(attributes) |
| |
|