-
Notifications
You must be signed in to change notification settings - Fork 0
/
vfkDocument.py
134 lines (103 loc) · 2.96 KB
/
vfkDocument.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# -*- coding: utf-8 -*-
"""
/***************************************************************************
vfkPluginDialog
A QGIS plugin
Plugin umoznujici praci s daty katastru nemovitosti
-------------------
begin : 2015-06-11
git sha : $Format:%H$
copyright : (C) 2015 by Stepan Bambula
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
from builtins import object
from abc import ABCMeta, abstractmethod
from future.utils import with_metaclass
class TPair(object):
def __init__(self, first=u'', second=u''):
self.first = first
self.second = second
class VfkDocument(with_metaclass(ABCMeta, object)):
def __init__(self):
pass
@abstractmethod
def header(self):
pass
@abstractmethod
def footer(self):
pass
@abstractmethod
def heading1(self, text):
pass
@abstractmethod
def heading2(self, text):
pass
@abstractmethod
def heading3(self, text):
pass
@abstractmethod
def beginItemize(self):
pass
@abstractmethod
def endItemize(self):
pass
@abstractmethod
def beginItem(self):
pass
@abstractmethod
def endItem(self):
pass
@abstractmethod
def item(self, text):
pass
@abstractmethod
def beginTable(self):
pass
@abstractmethod
def endTable(self):
pass
@abstractmethod
def tableHeader(self, columns):
pass
@abstractmethod
def tableRow(self, columns):
pass
@abstractmethod
def tableRowOneColumnSpan(self, text):
pass
@abstractmethod
def link(self, href, text):
pass
@abstractmethod
def superScript(self, text):
pass
@abstractmethod
def newLine(self):
pass
@abstractmethod
def keyValueTable(self, content):
pass
@abstractmethod
def paragraph(self, text):
pass
@abstractmethod
def table(self, content, header):
pass
@abstractmethod
def text(self, text):
pass
@abstractmethod
def discardLastBeginTable(self):
pass
@abstractmethod
def isLastTableEmpty(self):
pass