This file is indexed.

/usr/share/vsdump/chunks_parse_cmds.tbl is in vsdump 0.0.45-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
# vsdump: test program to dump and parse content of vsd file
#
# Copyright (C) 2006-2007	Valek Filippov (frob@df.ru)
#
# This file is dual-licensed (GPLv3 and ASLv2, see COPYING and COPYING_ASL2).
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 3 or later of the GNU General Public
# License as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
# USA
#
#
# version 0.0.26
#
# Need to extend with 'format' field for conversion length (inch->mm), angles(rad->degree) and enums (e.g.
# for aligns -- left/right/justify etc.
#
# The Format description for .tbl file.
# Lines start with # are comments.
# Every list of commands starts with 'start ch_type'
# and ends with 'end'.
# In between start and end are space-separeted lines
# with 'type', 'offset', 'name' values.  
# Atm I use 'atoi', so only decimal value is allowed for ch_type, type and offset.
# The possible values for 'type' are:
# 0..7  - flag at bit 0..7 at offset 'offset'
# 8	  - 1 byte value
# 9	  - 8 bytes IEEE-754 fraction
# 10(a) - name of chunk (we must start with a name atm, because with parse for printing)
# 11(b) - offset to start of blocks 
# 12(c) - text block
# 13(d) - some "name" from the list
# 14(e) - one byte "function" from the list
# 15(f) - some "function" from the list
# 16	  - string, next byte is length terminating '0' wasn't added to length
# 17	  - 'ForeignData'
# 18	  - Dump it to file as-is
# 25    - 2 bytes LE
# 26    - 4 bytes LE
# 27	  - Tabs? [experimental]
# 21	- offset to start of blocks in version 11
# 28    - extension for image files [experimental]
# 29    - num of parts and type for OLE [experimental]
# 30    - 3 bytes RGB-color
# 31    - 9 bytes -- 1st is 'Unit', + 8 bytes IEEE-754 fraction

# Quick workaround for losing of 1st table
start 10
end

start 12
17 0 ForeignData
end

start 13
10 0 OLE_Info
29 0 0
18 0 0
end

start 14
10 0 Text
12 8 0
18 0 0
end

start 16
10 0 Data1
12 0 0
end

start 17
10 0 Data2
12 0 0
end

start 18
10 0 Data3
12 0 0
end

start 21
10 0 Stream15
9 53 Center X
9 61 Center Y
18 0 0
end

start 24
10 0 Stream18
18 0 0
end

start 25
10 0 FaceName
16 24 0
end

start 26
10 0 Stream1a
18 0 0
end

start 31
17 0 OLEData
end

start 40
10 0 Unknown 0x28
9 39 Unknown1
9 47 Unknown2
18 0 0
end

start 44
10 0 Unknown 0x2c
18 0 0
end

#seems to be text string
start 45
10 0 Unknown 0x2d
12 0 0
end

start 49
10 0 Stream31
18 0 0
end

start 66
10 0 Unknown 0x42
18 0 0
end

start 70
10 0 PageSheet
18 0 0
end

start 71
10 0 Shape ID Type="Group"
18 0 0
end

start 72
10 0 Shape ID Type="Shape"
26 53 LineStyle
26 61 FillStyle
26 69 TextStyle
18 0 0
end

start 74
10 0 StyleSheet
26 53 LineStyle
26 61 FillStyle
26 69 TextStyle
18 0 0
end

start 77
10 0 Shape ID Type="Guide"
18 0 0
end


start 78
10 0 Shape ID Type="Foreign"
18 0 0
end

start 79
10 0 DocumentSheet
26 53 LineStyle
26 61 FillStyle
26 69 TextStyle
18 0 0
end

start 100
10 0 Unknown 0x64
18 0 0
end

start 101
10 0 ShapeList
18 0 0
end

start 102
10 0 Unknown 0x66
18 0 0
end

start 103
10 0 Unknown 0x67
18 0 0
end

start 104
10 0 PropList
18 0 0
end

start 105
10 0 CharList
18 0 0
end

start 106
10 0 ParaList
18 0 0
end

start 107
10 0 Unknown 0x6b
18 0 0
end

start 108
10 0 GeomList
18 0 0
end

start 109
10 0 Unknown 0x6d
18 0 0
end

start 110
10 0 Unknown 0x6e
18 0 0
end

start 111
10 0 Unknown 0x6f
18 0 0
end

start 112
10 0 Unknown 0x70
18 0 0
end

start 113
10 0 ConnectionList
18 0 0
end

start 114
10 0 Unknown 0x72
18 0 0
end

start 115
10 0 Unknown 0x73
18 0 0
end

start 116
10 0 Unknown 0x74
18 0 0
end

start 117
10 0 Unknown 0x75
18 0 0
end

start 118
10 0 Unknown 0x76
18 0 0
end

start 130
10 0 Unknown 0x82
18 0 0
end

start 131
10 0 ShapeID
18 0 0
end

start 132
10 0 Event
8 20 TheText
11 36 BlockStarts
21 36 BlockStarts
18 0 0
end

start 133
10 0 Line
31 19 LineWeight
8 28 LineColor
8 33 LinePattern
9 35 Rounding
8 43 EndArrowSize
8 44 BeginArrow
8 45 EndArrow
8 47 BeginArrowSize
1 50 Color
2 50 Pattern
3 50 RoundingCap
4 50 LineEndEnd
5 50 LineEndBegin
6 50 EndSize
7 50 SqueareCap
0 51 BeginSize
11 54 BlockStarts
21 54 BlockStarts
18 0 0
end

start 134
10 0 Fill
8 19 FillForegnd
30 25 FillBkgnd
8 29 FillPattern
30 31 ShdwForegnd
8 35 ShdwBkgnd
8 40 ShdwPattern
31 42 ShapeShdwOffsetX
31 51 ShapeShdwOffsetY
9 69 ShapeShdwScaleFactor
11 44 BlockStarts
21 80 BlockStarts
18 0 0
end

start 135
10 0 TextBlock
31 19 LeftMargin
31 28 RightMargin
31 37 TopMargin
31 46 BottomMargin
8 55 VerticalAlign
30 56 TextBkgnd
9 62 DefaultTabStop
8 82 TextDirection
11 90 BlockStarts
21 111 BlockStarts
18 0 0
end

start 136
10 0 Tabs
11 26 BlocksStart
21 26 BlocksStart
18 0 0
end

start 137
10 0 Geometry
0 19 NoFill
1 19 NoLine
2 19 NoShow
3 19 NoSnap
21 22 BlocksStart
18 0 0
end

start 138
10 0 MoveTo
9 20 X
9 29 Y
11 39 BlocksStart
21 39 BlocksStart
end

start 139
10 0 LineTo
9 20 X
9 29 Y
11 39 BlocksStart
21 39 BlocksStart
end

start 140
10 0 ArcTo
9 20 X
9 29 Y
9 38 A
11 48 BlocksStart
18 0 0
end

start 141
10 0 InfiniteLine
9 20 X
9 29 Y
9 37 A
9 45 B
11 57 BlocksStart
18 0 0
end

start 143
10 0 Ellipse
9 20 X
9 29 Y
9 38 A
9 47 B
9 56 C
9 65 D
11 75 BlocksStart
18 0 0
end

start 144
10 0 EllipticalArcTo
31 19 X
31 28 Y
31 37 A
31 46 B
31 55 C
31 64 D
11 75 BlocksStart
18 0 0
end

start 146
10 0 PageProps
9 20 PageWidth
9 29 PageHeight
9 38 ShdwOffsetX
9 47 ShdwOffsetY
9 56 PageScale
9 65 DrawingScale
8 73 DrawingSizeType
8 74 DrawingScaleType
0 93 InhibitSnap
11 150 BlockStarts
18 0 0
end

start 147
10 0 StyleProp
8 19 EnableLineProps
8 20 EnableFillProps
8 21 EnableTextProps
8 22 HideForApply
11 26 BlocksStart
21 26 BlocksStart
18 0 0
end

start 148
10 0 Char
25 23 FontNum
30 26 Color
8 29 Transparency*255/100%
0 30 Bold
1 30 Italic
2 30 Underline
3 30 Smallcaps
0 31 AllCaps
1 31 InitCaps
0 32 Subscript
1 32 Superscipt
25 33 Scale*100 %
8 35 LangCode
31 36 Size
25 46 Spacing pt*200
25 56 AsianFont
25 58 ComplexScriptFont
8 60 LocalizeFont
25 88 LangID
11 54 BlocksStart
21 107 BlocksStart
18 0 0
end

start 149
10 0 Para
31 23 IndFirst
31 32 IndLeft
31 41 IndRight
31 50 SpLine
31 59 SpBefore
31 68 SpAfter
8 77 HorizAlign
8 78 Bullet
11 92 BlockStarts
21 142 BlockStarts
18 0 0
end

start 150
10 0 Tabs
27 0 TabsID
11 48 BlockStarts
18 0 0
end

start 151
10 0 Tabs
27 0 TabsID
11 139 BlockStarts
18 0 0
end

start 181
10 0 Tabs
27 0 TabsID
11 708 BlockStarts
18 0 0
end

start 152
10 0 Foreign
9 20 IndFirst
9 29 IndLeft
9 38 IndRight
9 47 SpLine
28 68 Ext
18 0 0
end

start 153
10 0 Connection
31 19 Width
31 28 Height
31 37 DirX/A
31 46 DirY/B
8 55 Type/C
11 67 BlockStarts
21 67 BlockStarts
18 0 0
end

start 155
10 0 XForm
9 20 PinX
9 29 PinY
9 38 Width
9 47 Height
9 56 LocPinX
9 65 LocPinY
9 74 Angle
8 82 FlipX
8 83 FlipY
8 84 ResizeMode
11 88 BlockStarts
21 88 BlockStarts
18 0 0
end

start 156
10 0 TextXForm
9 20 TxtPinX
9 29 TxtPinY
31 37 TxtWidth
9 47 TxtHeight
9 56 TxtLocPinX
9 65 TxtLocPinY
9 74 TxtAngle
11 88 BlockStarts
21 88 BlockStarts
18 0 0
end

start 157
10 0 XForm1D
9 20 BeginX
9 29 BeginY
9 38 EndX
9 47 EndY
11 57 BlockStarts
21 57 BlockStarts
end

start 158
10 0 Scratch
9 20 X
9 29 Y
9 38 A
9 47 B
9 56 C
9 65 D
11 75 BlockStarts
18 0 0
end

start 159
10 0 Alignment
9 20 AlignLeft
9 29 AlignCenter
9 38 AlignRight
9 47 AlignTop
9 56 AlignMiddle
9 65 AlignBottom
11 75 BlockStarts
21 79 BlockStarts
18 0 0
end

start 160
10 0 Protection
8 19 LockWidth
8 20 LockHeight
8 21 LockMoveX
8 22 LockMoveY
8 23 LockAspect
8 24 LockDelete
8 25 LockBegin
8 26 LockEnd
8 27 LockRotate
8 28 LockCrop
8 29 LockVtxEdit
8 30 LockTextEdit
8 31 LockFormat
8 32 LockGroup
8 33 LockCalcWH
8 34 LockSelect
8 35 LockCustProp
11 43 BlockStarts
21 43 BlockStarts
18 0 0
end

start 161
10 0 TextFields
18 0 0
end

start 162
10 0 Control
9 20 X
9 29 Y
9 38 XDyn
9 47 YDyn
8 55 XCon
8 56 YCon
0 57 CanGlue
11 60 BlockStarts
21 60 BlockStarts
18 0 0
end

start 163
10 0 Help
11 49 BlockStarts
21 49 BlockStarts
18 0 0
end

start 164
10 0 Misc
0 19 NoObjHandles
1 19 NonPrinting
2 19 NoCtlHandles
3 19 NoAlignBox
4 19 UpdateAlignBox
5 19 HideText
8 20 DynFeedback
8 21 GlueType
8 22 WalkPreference
25 25 ObjType
0 35 IsDropSource
1 35 NoLiveDynamics
25 37 LangID
11 42 BlockStarts
21 64 BlockStarts
18 0 0
end

start 165
10 0 SplineStart
9 20 X
9 29 Y
9 37 A
9 45 B
9 53 C
8 61 D
11 65 BlockStarts
18 0 0
end

start 166
10 0 SplineKnot
9 20 X
9 29 Y
9 37 A
11 47 BlockStarts
18 0 0
end

start 167
10 0 LayerMem
11 25 BlockStarts
21 25 BlockStarts
18 0 0
end

# Transparency 255 - 100%
start 168
10 0 Layer
30 27 Color
8 31 Transparency
8 33 Visible
8 34 Print
8 35 Active
8 36 Lock
8 37 Snap
8 38 Glue
11 52 BlockStarts
21 52 BlockStarts
18 0 0
end

start 169
10 0 Act
8 40 Checked
8 41 Disabled
0 42 ReadOnly
1 42 Invisible
2 42 BeginGroup
11 47 BlockStarts
21 76 BlockStarts
18 0 0
end

start 170
10 0 Control
9 20 X
9 29 Y
9 38 XDyn
9 47 YDyn
8 55 XBehavior
8 56 YBehavior
0 57 CanGlue
11 66 BlockStarts
21 66 BlockStarts
18 0 0
end

start 180
10 0 User-defined Cells
9 20 Value
11 34 BlockStarts
21 34 BlockStarts
18 0 0
end

start 182
10 0 CustomProps
9 20 Value
8 44 Type
0 46 Invisible
1 46 Ask
11 55 BlockStarts
18 0 0
end

start 183
10 0 RulerGrid
8 19 XRulerDensity
8 20 XRulerDensity
31 21 Unknown1
31 30 Unknown2
31 39 XRulerOrigin
31 48 YRulerOrigin
8 57 XGridDensity
8 58 YGridDensity
31 59 XGridSpacing
31 68 YGridSpacing
31 77 XGridOrigin
31 86 YGridOrigin
11 98 BlockStarts
21 98 BlockStarts
18 0 0
end

start 185
10 0 Connection
31 19 Width
31 28 Height
31 37 DirX/A
31 46 DirY/B
8 55 Type/C
11 67 BlockStarts
21 67 BlockStarts
18 0 0
end

start 186
10 0 ConnectionPoints
9 20 Width
9 29 Height
11 79 BlockStarts
18 0 0
end

start 188
10 0 DocProps
25 24 DocLangID
18 0 0
end

start 189
10 0 Image
9 19 Gamma
25 27 Contrast*100 (%)
25 29 Brightness*100 (%)
25 31 Sharpen*100 (%)
25 33 Blur*100 (%)
25 35 Denoise*100 (%)
25 37 Transparency*100 (%)
11 64 BlockStarts
21 64 BlockStarts
18 0 0
end

start 190
10 0 Group
8 19 SelectMode
8 20 DisplayMode
0 21 IsDropTarget
1 21 IsSnapTarget
2 21 IsTextEditTarget
3 21 DontMoveChildren
11 44 BlocksStart
21 44 BlocksStart
end

start 191
10 0 Layout
0 19 ShapePermeableX
1 19 ShapePermeableY
2 19 ShapePermeablePlace
8 20 ShapeFixedCode
8 21 ShapePlowCode
8 22 ShapeRouteStyle
8 24 ConFixedCode
8 25 ConLineJumpCode
8 26 ConLineJumpStyle
8 28 ConLineJumpDirX
8 29 ConLineJumpDirY
11 57 BlockStarts
21 57 BlockStarts
18 0 0
end

start 192
10 0 PageLayout
0 19 ResizePage
1 19 EnableGrid
2 19 DynamicOff
3 19 CtrlAsInput
8 20 PlaceStyle
8 21 RouteStyle
8 22 PlaceDepth
8 23 PlowCode
8 24 LineJumpCode
8 25 LineJumpStyle
8 26 PageLineJumpDirX
8 27 PageLineJumpDirY
9 29 LineToNodeX
9 38 LineToNodeY
9 47 BlockSizeX
9 56 BlockSizeY
9 65 AvenueSizeX
9 74 AvenueSizeY
9 83 LineToLineX
9 92 LineToLineY
9 100 LineJumpFactorX
9 108 LineJumpFactorY
8 116 LineAdjustFrom
8 117 LineAdjustTo
11 163 Blocks start
21 163 Blocks start
end

start 193
10 0 PolylineTo
9 20 X
9 29 Y
18 0 0
end


start 195
10 0 NURBSTo
9 20 X
9 29 Y
9 37 A
9 45 B
9 53 C
9 61 D
11 80 BlocksStart
21 80 BlocksStart
18 0 0
end

start 196
10 0 Hyperlink
0 39 NewWindow
2 39 Default
11 65 BlocksStart
18 0 0
end

start 197
10 0 Reviewer
8 28 ColorRed
8 29 ColorGreen
8 30 ColorBlue
26 31 ReviewerID
26 35 CurrentIndex
11 57 BlocksStart
21 57 BlocksStart
18 0 0
end

start 198
10 0 Annotation
18 0 0
end

start 199
10 0 SmartTagDef
18 0 0
end

start 200
10 0 PrintProps
31 19 PageLeftMargin
31 28 PageRightMargin
31 37 PageTopMargin
31 46 PageBottomMargin
9 55 ScaleX
9 63 ScaleY
25 71 PagesX
25 73 PagesY
8 76 PrintPageOrientation
25 77 PaperKind
25 79 PaperSource
11 91 BlocksStart
21 91 BlocksStart
18 0 0
end

start 201
10 0 Unknown 0xc9
18 0 0
end

start 209
10 0 NURBSTo E-cell
9 35 1st fr of NURBSTo
9 43 3 bytes are here, need to map
9 51 2nd fr
9 59 3rd fr
9 67 4th byte
9 75 5th byte
9 83 4th fr
9 91 5th fr
9 99 6th byte
9 107 7th byte
9 115 6th fr
9 123 7th fr
9 131 8th byte
9 139 9th byte
18 0 0
end