summaryrefslogtreecommitdiffstats
path: root/kspread/OASIS.txt
blob: bf0feb94b9e98d853e73f0c01458c8cc214588bd (plain)
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
 
===========================================================
  STATUS of OASIS support in KSpread
===========================================================

*Legend*
   [ ] Not implemented   
   [x] Implemented   
   [!] Implemented, not fully compatible


Cell
   [x] Obscured/covered cells
   [x] Column spans
   [x] Row spans
   [!] Comment/annotation
   [!] Hyperlink
   [!] Validation
   [!] Conditional formatting
   [x] Value, Type and Result
       [x] Boolean
       [x] String
       [x] Number
           [x] Floating-point
           [ ] Percentage
           [ ] Currency
           [x] Date
           [x] Time
           [x] Fraction
           [x] Scientific

Format
   [x] Font family
   [x] Font size
   [!] Numeric format 
   [X] Borders
   [ ] Border shadow
   [X] Font color
   [X] Background style

Sheet
   [x] Sheet name
   [x] Display or hide
   [x] Protection status
   [x] Marker position (Not reload)
   [x] Sheet properties (view options)
   [ ] Value highlighting
   [ ] Sheet tab color (Not supported by kspread)

Document/Workbook   
   [x] Active sheet
   [x] Header
   [x] Footer
   [x] Page layout
   [x] Protection status
   [x] Print range
   [x] Print setup

View Settings
         
Formula (not supported yet)

Configuration Settings
    ShowZeroValues
    ShowNotes
    [X] ShowGrid
    GridColor
    ShowPageBreak
    LinkUpdateMode
    HasColumnRowHeaders
    HasSheetTabs
    IsOutlineSymbolsSet
    IsSnapToRaster
    RasterIsVisible
    RasterResolutionX
    RasterResolutionY
    RasterSubdivisionX
    RasterSubdivisionY
    IsRasterAxisSynchronized
    AutoCalculate
    PrinterName
    PrinterSetup
    ApplyUserData
    CharacterCompressionType
    IsKernAsianPunctuation
    SaveVersionOnClose
    UpdateFromTemplate

===========================================================
  REMARKS, INCOMPATIBILITIES, etc
===========================================================

KSpread does not support rich text. Any cells/annotations which contain 
rich text will be converted to simple plain text.

Link may not fully compatible since KSpread can only link the whole cell, 
not partial text. For example, if the text is "Visit the website" where only 
the string "website" is a hyperlink to an URL, in KSpread the whole string 
"Visit the website" becomes the link. Consequently, if the text contains 
two or more links, only the first link will be used.
(I will fixe when we convert it to kotext)

===========================================================
  IN PROGRESS
===========================================================
-> Save/load numeric-style

===========================================================
  TODO
===========================================================
-> after loading cursor position me must update view
-> fix default value (for printing)
-> Save/load spell checking ignore word into settings.xml
-> Save/load col-width/row-height into settings.xml
-> Fix load conditional attribute, for the moment it load just one style

===========================================================
  EXEMPLARY XML SNIPPETS
===========================================================

Hyperlink (whole cell)
    <table:table-cell>
      <text:p>
        <text:a xlink:href="http://www.koffice.org/">Visit KOffice website</text:a>
      </text:p>
    </table:table-cell>
    
Hyperlink (one word, rich text)
    <table:table-cell>
      <text:p>
      This is a 
        <text:a xlink:href="http://www.kde.org/">link</text:a>
       to somewhere
      </text:p>
    </table:table-cell>

Link to another cell
    <table:table-cell>
      <text:p>
        <text:a xlink:href="#A1">Jump to Home</text:a>
      </text:p>
    </table:table-cell>

Multiline Text inside cell
    <table:table-cell>
      <text:p>Halo There</text:p>
      <text:p>What's up guys</text:p>
      <text:p>This is very long indeed</text:p>
    </table:table-cell>

Merged cells
     <table:table-cell table:style-name="ce2" office:value-type="string" 
     office:string-value="These A1:B1 are merged together" table:number-columns-spanned="2">
       <text:p>These A1:B1 are merged together</text:p>
     </table:table-cell>
     <table:covered-table-cell table:style-name="ce3"/>

Cell horizontal alignment: top
    <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties style:vertical-align="top"/>
    </style:style>

Cell horizontal alignment: middle
    <style:style style:name="ce2" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties style:vertical-align="middle"/>
    </style:style>

Cell horizontal alignment: bottom
    <style:style style:name="ce3" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties style:vertical-align="bottom"/>
    </style:style>

Cell vertical alignment: top
    <style:style style:name="ce5" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties fo:text-align="center" 
      style:text-align-source="fix" style:repeat-content="none" 
      fo:margin-left="0in" style:vertical-align="top"/>
    </style:style>

Cell vertical alignment: middle
    <style:style style:name="ce6" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties fo:text-align="center" 
      style:text-align-source="fix" style:repeat-content="none" 
      fo:margin-left="0in" style:vertical-align="middle"/>
    </style:style>


Cell vertical alignment: bottom
    <style:style style:name="ce7" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties fo:text-align="center" 
      style:text-align-source="fix" style:repeat-content="none" 
      fo:margin-left="0in" style:vertical-align="bottom"/>
    </style:style>

    <style:style style:name="Heading" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties style:text-align-source="fix" style:repeat-content="false"/>
      <style:paragraph-properties fo:text-align="center"/>
      <style:text-properties fo:font-size="16pt" fo:font-style="italic" fo:font-weight="bold"/>
    </style:style>


Unprotected cell
    <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default">
      <style:table-cell-properties style:cell-protect="none" 
      style:print-content="true"/>
    </style:style>

Protected sheet
    <table:table table:name="Sheet1" table:style-name="ta1" 
    table:protected="true" table:protection-key="Fa52hNHBdTG7CgoGGStwsTuzHyI=" 
    table:automatic-print-range="false">
    ....
    </table:table>
    
Repeate-header-rows:
        <table:table-header-rows>
          <table:table-row table:style-name="ro1">
            <table:table-cell table:number-columns-repeated="2"/>
            <table:table-cell table:style-name="Default"/>
            <table:table-cell table:number-columns-repeated="3"/>
          </table:table-row>
          <table:table-row table:style-name="ro1">
            <table:table-cell table:number-columns-repeated="3"/>
            <table:table-cell table:style-name="ce1" table:number-columns-repeated="3"/>
          </table:table-row>
        </table:table-header-rows>

Repeate header columns
----------------------
        <table:table-header-columns>
          <table:table-column table:style-name="co1" table:number-columns-repeated="2" table:default-cell-style-name="ce5"/>
          <table:table-column table:style-name="co1" table:default-cell-style-name="Default"/>
        </table:table-header-columns>

Bug found:
----------
- duplicate cell area is not good.
- Style is not save/load correctly
- Cell format is not saving/loading