1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <office:document xmlns:
office=
"urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:
style=
"urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:
text=
"urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:
table=
"urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:
draw=
"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:
fo=
"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:
xlink=
"http://www.w3.org/1999/xlink" xmlns:
dc=
"http://purl.org/dc/elements/1.1/" xmlns:
meta=
"urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:
number=
"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:
svg=
"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:
chart=
"urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:
dr3d=
"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:
math=
"http://www.w3.org/1998/Math/MathML" xmlns:
form=
"urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:
script=
"urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:
config=
"urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:
ooo=
"http://openoffice.org/2004/office" xmlns:
ooow=
"http://openoffice.org/2004/writer" xmlns:
oooc=
"http://openoffice.org/2004/calc" xmlns:
dom=
"http://www.w3.org/2001/xml-events" xmlns:
xforms=
"http://www.w3.org/2002/xforms" xmlns:
xsd=
"http://www.w3.org/2001/XMLSchema" xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance" xmlns:
rpt=
"http://openoffice.org/2005/report" xmlns:
of=
"urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:
xhtml=
"http://www.w3.org/1999/xhtml" xmlns:
grddl=
"http://www.w3.org/2003/g/data-view#" xmlns:
officeooo=
"http://openoffice.org/2009/office" xmlns:
tableooo=
"http://openoffice.org/2009/table" xmlns:
drawooo=
"http://openoffice.org/2010/draw" xmlns:
calcext=
"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:
loext=
"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:
field=
"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:
formx=
"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:
css3t=
"http://www.w3.org/TR/css3-text/" office:
version=
"1.2" office:
mimetype=
"application/vnd.oasis.opendocument.text">
4 <office:meta><meta:creation-date>2015-
09-
24T00:
23:
17.450000000</meta:creation-date><dc:date>2016-
02-
12T08:
27:
37.426000000</dc:date><meta:editing-duration>PT2H10M43S
</meta:editing-duration><meta:editing-cycles>75</meta:editing-cycles><meta:generator>LibreOfficeDev/
5.2.0.0.alpha0$Windows_x86 LibreOffice_project/f14d271d31e75de09821cf1766c7ab2a9c6e0461
</meta:generator><meta:document-statistic meta:
table-count=
"0" meta:
image-count=
"0" meta:
object-count=
"0" meta:
page-count=
"1" meta:
paragraph-count=
"11" meta:
word-count=
"235" meta:
character-count=
"1250" meta:
non-whitespace-character-count=
"1030"/></office:meta>
6 <config:config-item-set config:
name=
"ooo:view-settings">
7 <config:config-item config:
name=
"ViewAreaTop" config:
type=
"long">0</config:config-item>
8 <config:config-item config:
name=
"ViewAreaLeft" config:
type=
"long">0</config:config-item>
9 <config:config-item config:
name=
"ViewAreaWidth" config:
type=
"long">26407</config:config-item>
10 <config:config-item config:
name=
"ViewAreaHeight" config:
type=
"long">15162</config:config-item>
11 <config:config-item config:
name=
"ShowRedlineChanges" config:
type=
"boolean">true
</config:config-item>
12 <config:config-item config:
name=
"InBrowseMode" config:
type=
"boolean">false
</config:config-item>
13 <config:config-item-map-indexed config:
name=
"Views">
14 <config:config-item-map-entry>
15 <config:config-item config:
name=
"ViewId" config:
type=
"string">view2
</config:config-item>
16 <config:config-item config:
name=
"ViewLeft" config:
type=
"long">11382</config:config-item>
17 <config:config-item config:
name=
"ViewTop" config:
type=
"long">4362</config:config-item>
18 <config:config-item config:
name=
"VisibleLeft" config:
type=
"long">0</config:config-item>
19 <config:config-item config:
name=
"VisibleTop" config:
type=
"long">0</config:config-item>
20 <config:config-item config:
name=
"VisibleRight" config:
type=
"long">26405</config:config-item>
21 <config:config-item config:
name=
"VisibleBottom" config:
type=
"long">15161</config:config-item>
22 <config:config-item config:
name=
"ZoomType" config:
type=
"short">0</config:config-item>
23 <config:config-item config:
name=
"ViewLayoutColumns" config:
type=
"short">1</config:config-item>
24 <config:config-item config:
name=
"ViewLayoutBookMode" config:
type=
"boolean">false
</config:config-item>
25 <config:config-item config:
name=
"ZoomFactor" config:
type=
"short">100</config:config-item>
26 <config:config-item config:
name=
"IsSelectedFrame" config:
type=
"boolean">false
</config:config-item>
27 </config:config-item-map-entry>
28 </config:config-item-map-indexed>
29 </config:config-item-set>
30 <config:config-item-set config:
name=
"ooo:configuration-settings">
31 <config:config-item config:
name=
"ProtectForm" config:
type=
"boolean">false
</config:config-item>
32 <config:config-item config:
name=
"PrinterName" config:
type=
"string"/>
33 <config:config-item config:
name=
"EmbeddedDatabaseName" config:
type=
"string"/>
34 <config:config-item config:
name=
"CurrentDatabaseDataSource" config:
type=
"string">Bröllopsgäster
</config:config-item>
35 <config:config-item config:
name=
"LinkUpdateMode" config:
type=
"short">1</config:config-item>
36 <config:config-item config:
name=
"AddParaTableSpacingAtStart" config:
type=
"boolean">true
</config:config-item>
37 <config:config-item config:
name=
"FloattableNomargins" config:
type=
"boolean">false
</config:config-item>
38 <config:config-item config:
name=
"UnbreakableNumberings" config:
type=
"boolean">false
</config:config-item>
39 <config:config-item config:
name=
"FieldAutoUpdate" config:
type=
"boolean">true
</config:config-item>
40 <config:config-item config:
name=
"BackgroundParaOverDrawings" config:
type=
"boolean">false
</config:config-item>
41 <config:config-item config:
name=
"AddParaTableSpacing" config:
type=
"boolean">true
</config:config-item>
42 <config:config-item config:
name=
"ChartAutoUpdate" config:
type=
"boolean">true
</config:config-item>
43 <config:config-item config:
name=
"CurrentDatabaseCommand" config:
type=
"string"/>
44 <config:config-item config:
name=
"AlignTabStopPosition" config:
type=
"boolean">true
</config:config-item>
45 <config:config-item config:
name=
"PrinterSetup" config:
type=
"base64Binary"/>
46 <config:config-item config:
name=
"IsKernAsianPunctuation" config:
type=
"boolean">false
</config:config-item>
47 <config:config-item config:
name=
"CharacterCompressionType" config:
type=
"short">0</config:config-item>
48 <config:config-item config:
name=
"ApplyUserData" config:
type=
"boolean">true
</config:config-item>
49 <config:config-item config:
name=
"SaveGlobalDocumentLinks" config:
type=
"boolean">false
</config:config-item>
50 <config:config-item config:
name=
"SurroundTextWrapSmall" config:
type=
"boolean">false
</config:config-item>
51 <config:config-item config:
name=
"SmallCapsPercentage66" config:
type=
"boolean">false
</config:config-item>
52 <config:config-item config:
name=
"CurrentDatabaseCommandType" config:
type=
"int">0</config:config-item>
53 <config:config-item config:
name=
"SaveVersionOnClose" config:
type=
"boolean">false
</config:config-item>
54 <config:config-item config:
name=
"UpdateFromTemplate" config:
type=
"boolean">true
</config:config-item>
55 <config:config-item config:
name=
"PrintSingleJobs" config:
type=
"boolean">false
</config:config-item>
56 <config:config-item config:
name=
"PrinterIndependentLayout" config:
type=
"string">high-resolution
</config:config-item>
57 <config:config-item config:
name=
"EmbedSystemFonts" config:
type=
"boolean">false
</config:config-item>
58 <config:config-item config:
name=
"DoNotCaptureDrawObjsOnPage" config:
type=
"boolean">false
</config:config-item>
59 <config:config-item config:
name=
"UseFormerObjectPositioning" config:
type=
"boolean">false
</config:config-item>
60 <config:config-item config:
name=
"IsLabelDocument" config:
type=
"boolean">false
</config:config-item>
61 <config:config-item config:
name=
"AddFrameOffsets" config:
type=
"boolean">false
</config:config-item>
62 <config:config-item config:
name=
"AddExternalLeading" config:
type=
"boolean">true
</config:config-item>
63 <config:config-item config:
name=
"UseOldNumbering" config:
type=
"boolean">false
</config:config-item>
64 <config:config-item config:
name=
"OutlineLevelYieldsNumbering" config:
type=
"boolean">false
</config:config-item>
65 <config:config-item config:
name=
"DoNotResetParaAttrsForNumFont" config:
type=
"boolean">false
</config:config-item>
66 <config:config-item config:
name=
"IgnoreFirstLineIndentInNumbering" config:
type=
"boolean">false
</config:config-item>
67 <config:config-item config:
name=
"AllowPrintJobCancel" config:
type=
"boolean">true
</config:config-item>
68 <config:config-item config:
name=
"UseFormerLineSpacing" config:
type=
"boolean">false
</config:config-item>
69 <config:config-item config:
name=
"AddParaSpacingToTableCells" config:
type=
"boolean">true
</config:config-item>
70 <config:config-item config:
name=
"UseFormerTextWrapping" config:
type=
"boolean">false
</config:config-item>
71 <config:config-item config:
name=
"RedlineProtectionKey" config:
type=
"base64Binary"/>
72 <config:config-item config:
name=
"ConsiderTextWrapOnObjPos" config:
type=
"boolean">false
</config:config-item>
73 <config:config-item config:
name=
"DoNotJustifyLinesWithManualBreak" config:
type=
"boolean">false
</config:config-item>
74 <config:config-item config:
name=
"EmbedFonts" config:
type=
"boolean">false
</config:config-item>
75 <config:config-item config:
name=
"TableRowKeep" config:
type=
"boolean">false
</config:config-item>
76 <config:config-item config:
name=
"TabsRelativeToIndent" config:
type=
"boolean">true
</config:config-item>
77 <config:config-item config:
name=
"IgnoreTabsAndBlanksForLineCalculation" config:
type=
"boolean">false
</config:config-item>
78 <config:config-item config:
name=
"RsidRoot" config:
type=
"int">1854555</config:config-item>
79 <config:config-item config:
name=
"LoadReadonly" config:
type=
"boolean">false
</config:config-item>
80 <config:config-item config:
name=
"ClipAsCharacterAnchoredWriterFlyFrames" config:
type=
"boolean">false
</config:config-item>
81 <config:config-item config:
name=
"UnxForceZeroExtLeading" config:
type=
"boolean">false
</config:config-item>
82 <config:config-item config:
name=
"UseOldPrinterMetrics" config:
type=
"boolean">false
</config:config-item>
83 <config:config-item config:
name=
"TabAtLeftIndentForParagraphsInList" config:
type=
"boolean">false
</config:config-item>
84 <config:config-item config:
name=
"Rsid" config:
type=
"int">3406469</config:config-item>
85 <config:config-item config:
name=
"ApplyParagraphMarkFormatToNumbering" config:
type=
"boolean">false
</config:config-item>
86 <config:config-item config:
name=
"MathBaselineAlignment" config:
type=
"boolean">true
</config:config-item>
87 <config:config-item config:
name=
"InvertBorderSpacing" config:
type=
"boolean">false
</config:config-item>
88 <config:config-item config:
name=
"PropLineSpacingShrinksFirstLine" config:
type=
"boolean">true
</config:config-item>
89 <config:config-item config:
name=
"CollapseEmptyCellPara" config:
type=
"boolean">true
</config:config-item>
90 <config:config-item config:
name=
"TabOverflow" config:
type=
"boolean">true
</config:config-item>
91 <config:config-item config:
name=
"StylesNoDefault" config:
type=
"boolean">false
</config:config-item>
92 <config:config-item config:
name=
"SubtractFlysAnchoredAtFlys" config:
type=
"boolean">false
</config:config-item>
93 <config:config-item config:
name=
"ClippedPictures" config:
type=
"boolean">false
</config:config-item>
94 <config:config-item config:
name=
"TabOverMargin" config:
type=
"boolean">false
</config:config-item>
95 <config:config-item config:
name=
"PrintAnnotationMode" config:
type=
"short">0</config:config-item>
96 <config:config-item config:
name=
"PrintGraphics" config:
type=
"boolean">true
</config:config-item>
97 <config:config-item config:
name=
"PrintBlackFonts" config:
type=
"boolean">false
</config:config-item>
98 <config:config-item config:
name=
"PrintProspect" config:
type=
"boolean">false
</config:config-item>
99 <config:config-item config:
name=
"PrintLeftPages" config:
type=
"boolean">true
</config:config-item>
100 <config:config-item config:
name=
"PrintControls" config:
type=
"boolean">true
</config:config-item>
101 <config:config-item config:
name=
"PrintPageBackground" config:
type=
"boolean">true
</config:config-item>
102 <config:config-item config:
name=
"PrintTextPlaceholder" config:
type=
"boolean">false
</config:config-item>
103 <config:config-item config:
name=
"PrintDrawings" config:
type=
"boolean">true
</config:config-item>
104 <config:config-item config:
name=
"PrintHiddenText" config:
type=
"boolean">false
</config:config-item>
105 <config:config-item config:
name=
"PrintTables" config:
type=
"boolean">true
</config:config-item>
106 <config:config-item config:
name=
"PrintProspectRTL" config:
type=
"boolean">false
</config:config-item>
107 <config:config-item config:
name=
"PrintReversed" config:
type=
"boolean">false
</config:config-item>
108 <config:config-item config:
name=
"PrintRightPages" config:
type=
"boolean">true
</config:config-item>
109 <config:config-item config:
name=
"PrintFaxName" config:
type=
"string"/>
110 <config:config-item config:
name=
"PrintPaperFromSetup" config:
type=
"boolean">false
</config:config-item>
111 <config:config-item config:
name=
"PrintEmptyPages" config:
type=
"boolean">false
</config:config-item>
112 </config:config-item-set>
115 <office:script script:
language=
"ooo:Basic">
116 <ooo:libraries xmlns:
ooo=
"http://openoffice.org/2004/office" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
117 <ooo:library-embedded ooo:
name=
"Standard"/>
118 <ooo:library-embedded ooo:
name=
"AcceleratorKeyCheck">
119 <ooo:module ooo:
name=
"AccNameProvider">
120 <ooo:source-code>REM ***** BASIC *****
121 Dim ROLEMAP As Object
124 ' msgbox getNameOfAccessibleRole(
40)
125 ' msgbox getNameOfAccessibleRole(
57)
128 Function getNameOfAccessibleRole(sID As Integer)
129 If IsNull(ROLEMAP) Then
132 If ROLEMAP.containsKey(sID) Then
133 getNameOfAccessibleRole = ROLEMAP.get(sID)
135 MsgBox
"Could not find the name for the AccessibleRole:
" & sID
139 Sub initializeRoleMap
140 ROLEMAP = com.sun.star.container.EnumerableMap.create(
"short
",
"string
")
141 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.UNKNOWN,
"UNKNOWN
")
142 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.ALERT,
"ALERT
")
143 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.COLUMN_HEADER,
"COLUMN_HEADER
")
144 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.CANVAS,
"CANVAS
")
145 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.CHECK_BOX,
"CHECK_BOX
")
146 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.CHECK_MENU_ITEM,
"CHECK_MENU_ITEM
")
147 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.COLOR_CHOOSER,
"COLOR_CHOOSER
")
148 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.COMBO_BOX,
"COMBO_BOX
")
149 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DATE_EDITOR,
"DATE_EDITOR
")
150 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DESKTOP_ICON,
"DESKTOP_ICON
")
151 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DESKTOP_PANE,
"DESKTOP_PANE
")
152 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DIRECTORY_PANE,
"DIRECTORY_PANE
")
153 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DIALOG,
"DIALOG
")
154 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DOCUMENT,
"DOCUMENT
")
155 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.EMBEDDED_OBJECT,
"EMBEDDED_OBJECT
")
156 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.END_NOTE,
"END_NOTE
")
157 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.FILE_CHOOSER,
"FILE_CHOOSER
")
158 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.FILLER,
"FILLER
")
159 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.FONT_CHOOSER,
"FONT_CHOOSER
")
160 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.FOOTER,
"FOOTER
")
161 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.FOOTNOTE,
"FOOTNOTE
")
162 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.FRAME,
"FRAME
")
163 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.GLASS_PANE,
"GLASS_PANE
")
164 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.GRAPHIC,
"GRAPHIC
")
165 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.GROUP_BOX,
"GROUP_BOX
")
166 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.HEADER,
"HEADER
")
167 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.HEADING,
"HEADING
")
168 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.HYPER_LINK,
"HYPER_LINK
")
169 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.ICON,
"ICON
")
170 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.INTERNAL_FRAME,
"INTERNAL_FRAME
")
171 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.LABEL,
"LABEL
")
172 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.LAYERED_PANE,
"LAYERED_PANE
")
173 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.LIST,
"LIST
")
174 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.LIST_ITEM,
"LIST_ITEM
")
175 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.MENU,
"MENU
")
176 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.MENU_BAR,
"MENU_BAR
")
177 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.MENU_ITEM,
"MENU_ITEM
")
178 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.OPTION_PANE,
"OPTION_PANE
")
179 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PAGE_TAB,
"PAGE_TAB
")
180 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PAGE_TAB_LIST,
"PAGE_TAB_LIST
")
181 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PANEL,
"PANEL
")
182 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PARAGRAPH,
"PARAGRAPH
")
183 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PASSWORD_TEXT,
"PASSWORD_TEXT
")
184 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.POPUP_MENU,
"POPUP_MENU
")
185 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PUSH_BUTTON,
"PUSH_BUTTON
")
186 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PROGRESS_BAR,
"PROGRESS_BAR
")
187 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.RADIO_BUTTON,
"RADIO_BUTTON
")
188 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.RADIO_MENU_ITEM,
"RADIO_MENU_ITEM
")
189 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.ROW_HEADER,
"ROW_HEADER
")
190 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.ROOT_PANE,
"ROOT_PANE
")
191 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SCROLL_BAR,
"SCROLL_BAR
")
192 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SCROLL_PANE,
"SCROLL_PANE
")
193 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SHAPE,
"SHAPE
")
194 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SEPARATOR,
"SEPARATOR
")
195 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SLIDER,
"SLIDER
")
196 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SPIN_BOX,
"SPIN_BOX
")
197 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SPLIT_PANE,
"SPLIT_PANE
")
198 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.STATUS_BAR,
"STATUS_BAR
")
199 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TABLE,
"TABLE
")
200 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TABLE_CELL,
"TABLE_CELL
")
201 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TEXT,
"TEXT
")
202 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TEXT_FRAME,
"TEXT_FRAME
")
203 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TOGGLE_BUTTON,
"TOGGLE_BUTTON
")
204 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TOOL_BAR,
"TOOL_BAR
")
205 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TOOL_TIP,
"TOOL_TIP
")
206 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TREE,
"TREE
")
207 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.VIEW_PORT,
"VIEW_PORT
")
208 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.WINDOW,
"WINDOW
")
209 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.BUTTON_DROPDOWN,
"BUTTON_DROPDOWN
")
210 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.BUTTON_MENU,
"BUTTON_MENU
")
211 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.CAPTION,
"CAPTION
")
212 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.CHART,
"CHART
")
213 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.EDIT_BAR,
"EDIT_BAR
")
214 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.FORM,
"FORM
")
215 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.IMAGE_MAP,
"IMAGE_MAP
")
216 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.NOTE,
"NOTE
")
217 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.PAGE,
"PAGE
")
218 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.RULER,
"RULER
")
219 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.SECTION,
"SECTION
")
220 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TREE_ITEM,
"TREE_ITEM
")
221 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.TREE_TABLE,
"TREE_TABLE
")
222 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.COMMENT,
"COMMENT
")
223 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.COMMENT_END,
"COMMENT_END
")
224 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DOCUMENT_PRESENTATION,
"DOCUMENT_PRESENTATION
")
225 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DOCUMENT_SPREADSHEET,
"DOCUMENT_SPREADSHEET
")
226 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.DOCUMENT_TEXT,
"DOCUMENT_TEXT
")
227 ROLEMAP.put (com.sun.star.accessibility.AccessibleRole.STATIC,
"STATIC
")
232 <ooo:module ooo:
name=
"__testMenu">
233 <ooo:source-code>REM ***** BASIC *****
236 Dim oReportCursor As Object
237 Dim oReportDoc As Object
238 Dim oReportTable As Object
239 Dim oComponentName As String
240 Dim sMenuName As String
241 Dim hasSubMenu As String
242 Dim keybinding1 As Object
243 Dim keybinding2 As Object
244 Dim accKeyBinding As String
247 Dim sAccName As String
248 Dim i As Integer, j As Integer, iMenuBarIndex As Integer
249 Dim oAccChild As Object, oAccContext As Object, accMenu As Object
250 Dim ComponentsToCheck As Variant, oComponent As Object
252 GlobalScope.BasicLibraries.LoadLibrary(
"Tools
")
254 oReportDoc = CreateNewDocument(
"swriter
")
255 oReportCursor = oReportDoc.getText().createTextCursor()
257 ComponentsToCheck() = Array(
"Writer
",
"Calc
",
"Impress
",
"Draw
",
"Math
")
258 For Each oComponentName In ComponentsToCheck
259 oComponent = CreateNewDocument(
"s
" & LCase(oComponentName))
260 AccReportHeading(oComponentName,
1)
262 oAccContext = getAccessibleContextOfDocument(oComponent)
264 For i =
0 To oAccContext.getAccessibleChildCount -
1
265 oAccChild = oAccContext.getAccessibleChild(i).getAccessibleContext()
266 sAccName = getNameOfAccessibleRole(oAccChild.AccessibleRole)
267 If sAccName =
"MENU_BAR
" Then
269 AccReportHeading(
"Top Level Menu
")
270 insertReportTable(Array(
"Name
",
"Accelerator key
",
"Has submenu
"), oComponentName
& "-Top_Level_Menu
")
271 For j =
0 To oAccChild.getAccessibleChildCount -
1
272 hasSubMenu =
""
273 accMenu = oAccChild.getAccessibleChild(j).getAccessibleContext()
274 sMenuName = accMenu.AccessibleName
275 keybinding1 = accMenu.getAccessibleActionKeyBinding(
0).getAccessibleKeyBinding(
0)
276 If accMenu.getAccessibleActionKeyBinding(
0).getAccessibleKeyBindingCount()
> 1 Then
277 keybinding2 = accMenu.getAccessibleActionKeyBinding(
0).getAccessibleKeyBinding(
1)
279 accKeyBinding = makeKeyStrokeReadable(keybinding1(
0), True)
280 If accMenu.AccessibleChildCount
> 0 Then hasSubMenu =
"Yes
"
281 insertReportTableContent(Array(sMenuName, accKeyBinding, hasSubMenu))
285 AddMenuTables oAccContext.getAccessibleChild(iMenuBarIndex).getAccessibleContext
287 DisposeDocument(oComponent)
289 CheckTableAndMarkupDuplicates
292 Sub AddMenuTables(accMenuBar)
293 Dim i As Integer, accMenu As Object
294 For i =
0 To accMenuBar.getAccessibleChildCount-
1
295 accMenu = accMenuBar.getAccessibleChild(i)
296 sMenuName = accMenu.AccessibleName
297 AccReportHeading(accMenu.AccessibleName)
298 insertReportTable(Array(
"Name
",
"Accelerator key
",
"Has submenu
"), oComponentName
& "-
" & sMenuName)
299 FillMenuTable accMenu,
2
300 HandleSubMenues accMenu
304 Sub HandleSubMenues(accMenu, Optional HeadingLevel as Integer)
305 Dim i As Integer, accMenuItem As Object, sSubMenuName As String
306 If isMissing(HeadingLevel) Then HeadingLevel =
3
307 For i =
0 To accMenu.getAccessibleChildCount-
1
308 accMenuItem = accMenu.getAccessibleChild(i)
309 If getNameOfAccessibleRole(accMenuItem.getAccessibleRole) =
"MENU
" Then
310 sSubMenuName = accMenuItem.AccessibleName
311 AccReportHeading(sSubMenuName, HeadingLevel)
312 insertReportTable(Array(
"Name
",
"Accelerator key
",
"Has submenu
"), oComponentName
& "-
" & sMenuName
& "-
" & sSubMenuName)
313 FillMenuTable accMenuItem
314 ' Take care of submenues of submenues
315 ' Example in Writer: Insert - Shape - Line
316 HandleSubMenues accMenuItem, HeadingLevel +
1
321 Sub FillMenuTable(accMenu)
322 Dim i As Integer, accMenuItem As Object
323 'Check if it is a menu, and open it
324 If getNameOfAccessibleRole(accMenu.getAccessibleRole) =
"MENU
" Then
325 accMenu.doAccessibleAction(
0)
327 For i =
0 To accMenu.getAccessibleChildCount-
1
328 accMenuItem = accMenu.getAccessibleChild(i)
329 Select Case getNameOfAccessibleRole(accMenuItem.getAccessibleRole)
330 Case
"MENU_ITEM
",
"CHECK_MENU_ITEM
",
"RADIO_MENU_ITEM
"
331 hasSubMenu =
""
332 sMenuName = accMenuItem.AccessibleName
333 keybinding1 = accMenuItem.getAccessibleActionKeyBinding(
0).getAccessibleKeyBinding(
0)
334 accKeyBinding = makeKeyStrokeReadable(keybinding1(
0))
335 insertReportTableContent(Array(sMenuName, accKeyBinding, hasSubMenu))
336 Case
"MENU
"
337 hasSubMenu =
"Yes
"
338 sMenuName = accMenuItem.AccessibleName
339 keybinding1 = accMenuItem.getAccessibleActionKeyBinding(
0).getAccessibleKeyBinding(
0)
340 accKeyBinding = makeKeyStrokeReadable(keybinding1(
0))
341 insertReportTableContent(Array(sMenuName, accKeyBinding, hasSubMenu))
346 Function getAccessibleContextOfDocument(oDoc)
347 Dim oContainerWindow As Object
348 oContainerWindow = oDoc.getCurrentController().getFrame().getContainerWindow()
349 getAccessibleContextOfDocument = oContainerWindow.getAccessibleContext()
352 Function makeKeyStrokeReadable(oKeyStroke, Optional bIgnoreAltModifier)
353 Dim sModifiers As String, sMod As String
354 If isMissing(bIgnoreAltModifier) Then bIgnoreAltModifier = false
356 sModifiers = cStr(oKeyStroke.Modifiers)
357 Select Case sModifiers
359 sMod =
"Shift +
"
361 sMod =
"Ctrl +
"
363 sMod =
"Ctrl + Shift +
"
365 If bIgnoreAltModifier Then
368 sMod =
"Alt +
"
371 sMod =
"Shift + Alt +
"
373 sMod =
"Ctrl + Alt +
"
375 sMod =
"Ctrl + Shift + Alt +
"
379 sMod =
"Are you using Mac? Not sure if this is supported on Mac? Your modifier is:
" & sModifiers
381 makeKeyStrokeReadable = sMod
& UCase(oKeyStroke.KeyChar)
384 Sub AccReport(sString)
385 oReportCursor.setString(sString)
386 oReportCursor.collapseToEnd()
389 Sub AccReportHeading(sString as string, Optional HeadingLevel as integer)
390 If IsMissing(HeadingLevel) Then HeadingLevel =
2
391 oReportCursor.collapseToEnd()
392 oReportCursor.ParaStyleName =
"Heading
" & HeadingLevel
393 oReportCursor.setString(sString
& chr(
13))
394 oReportCursor.collapseToEnd()
397 Sub insertReportTable(sColumns(), sTableName As String)
398 Dim noColumns As Integer, i As Integer
400 noColumns = UBound(sColumns)
401 oReportTable = oReportDoc.createInstance (
"com.sun.star.text.TextTable
")
402 oReportTable.initialize(
2, noColumns+
1)
403 oReportTable.HeaderRowCount =
1
404 oReportTable.RepeatHeadline = true
405 sTableName = Replace(sTableName,
" ",
"_
")
406 sTableName = Replace(sTableName,
".
",
"")
407 oReportTable.Name = sTableName
408 oReportCursor.getText().insertTextContent(oReportCursor, oReportTable, False)
410 For i =
0 To noColumns
411 oCell = oReportTable.getCellByPosition( i,
0 )
412 oCell.setString(sColumns(i))
416 Sub insertReportTableContent(sColumns())
417 Dim noColumns As Integer, iRows As Integer, i As Integer
419 noColumns = UBound(sColumns)
420 iRows = oReportTable.getRows().Count
422 oCell = oReportTable.getCellByPosition(
0, iRows-
1)
423 If oCell.getString()
<> "" Then
424 oReportTable.getRows().insertByIndex(iRows,
1)
429 oReportTable.getRows().insertByIndex(iRows,
1)
432 For i =
0 To noColumns
433 oCell = oReportTable.getCellByPosition( i, iRows )
434 oCell.setString(sColumns(i))
438 Sub CheckTableAndMarkupDuplicates
439 Dim iTable As Integer, oTable As Object
440 Dim i As Integer, j As Integer
441 Dim sAccKey1 As String, sAccKey2 As String
442 For iTable =
0 To oReportDoc.TextTables.Count-
1
443 oTable = oReportDoc.TextTables(iTable)
444 'First row is a header so we can start at the second row (
1)
445 For i =
1 To oTable.getRows.Count-
1
446 For j = i +
1 To oTable.getRows.Count-
1
447 sAccKey1 = oTable.getCellByPosition(
1, i).getString()
448 sAccKey2 = oTable.getCellByPosition(
1, j).getString()
449 If sAccKey1 = sAccKey2 Then
450 If oTable.getCellByPosition(
2, i).getString() =
"Yes
" Then
451 oTable.getRows().getByIndex(i).BackColor = RGB(
255,
0,
0)
453 oTable.getRows().getByIndex(i).BackColor = RGB(
255,
255,
0)
455 If oTable.getCellByPosition(
2, j).getString() =
"Yes
" Then
456 oTable.getRows().getByIndex(j).BackColor = RGB(
255,
0,
0)
458 oTable.getRows().getByIndex(j).BackColor = RGB(
255,
255,
0)
468 </ooo:library-embedded>
472 <office:font-face-decls>
473 <style:font-face style:
name=
"OpenSymbol" svg:
font-family=
"OpenSymbol" style:
font-charset=
"x-symbol"/>
474 <style:font-face style:
name=
"Lucida Sans1" svg:
font-family=
"'Lucida Sans'" style:
font-family-generic=
"swiss"/>
475 <style:font-face style:
name=
"Liberation Serif" svg:
font-family=
"'Liberation Serif'" style:
font-family-generic=
"roman" style:
font-pitch=
"variable"/>
476 <style:font-face style:
name=
"Liberation Sans" svg:
font-family=
"'Liberation Sans'" style:
font-family-generic=
"swiss" style:
font-pitch=
"variable"/>
477 <style:font-face style:
name=
"Lucida Sans" svg:
font-family=
"'Lucida Sans'" style:
font-family-generic=
"system" style:
font-pitch=
"variable"/>
478 <style:font-face style:
name=
"Microsoft YaHei" svg:
font-family=
"'Microsoft YaHei'" style:
font-family-generic=
"system" style:
font-pitch=
"variable"/>
479 <style:font-face style:
name=
"SimSun" svg:
font-family=
"SimSun" style:
font-family-generic=
"system" style:
font-pitch=
"variable"/>
480 </office:font-face-decls>
482 <style:default-style style:
family=
"graphic">
483 <style:graphic-properties svg:
stroke-color=
"#3465a4" draw:
fill-color=
"#729fcf" fo:
wrap-option=
"no-wrap" draw:
shadow-offset-x=
"0.3cm" draw:
shadow-offset-y=
"0.3cm" draw:
start-line-spacing-horizontal=
"0.283cm" draw:
start-line-spacing-vertical=
"0.283cm" draw:
end-line-spacing-horizontal=
"0.283cm" draw:
end-line-spacing-vertical=
"0.283cm" style:
flow-with-text=
"false"/>
484 <style:paragraph-properties style:
text-autospace=
"ideograph-alpha" style:
line-break=
"strict" style:
writing-mode=
"lr-tb" style:
font-independent-line-spacing=
"false">
486 </style:paragraph-properties>
487 <style:text-properties style:
use-window-font-color=
"true" style:
font-name=
"Liberation Serif" fo:
font-size=
"12pt" fo:
language=
"sv" fo:
country=
"SE" style:
letter-kerning=
"true" style:
font-name-asian=
"SimSun" style:
font-size-asian=
"10.5pt" style:
language-asian=
"zh" style:
country-asian=
"CN" style:
font-name-complex=
"Lucida Sans" style:
font-size-complex=
"12pt" style:
language-complex=
"hi" style:
country-complex=
"IN"/>
488 </style:default-style>
489 <style:default-style style:
family=
"paragraph">
490 <style:paragraph-properties fo:
hyphenation-ladder-count=
"no-limit" style:
text-autospace=
"ideograph-alpha" style:
punctuation-wrap=
"hanging" style:
line-break=
"strict" style:
tab-stop-distance=
"1.251cm" style:
writing-mode=
"page"/>
491 <style:text-properties style:
use-window-font-color=
"true" style:
font-name=
"Liberation Serif" fo:
font-size=
"12pt" fo:
language=
"sv" fo:
country=
"SE" style:
letter-kerning=
"true" style:
font-name-asian=
"SimSun" style:
font-size-asian=
"10.5pt" style:
language-asian=
"zh" style:
country-asian=
"CN" style:
font-name-complex=
"Lucida Sans" style:
font-size-complex=
"12pt" style:
language-complex=
"hi" style:
country-complex=
"IN" fo:
hyphenate=
"false" fo:
hyphenation-remain-char-count=
"2" fo:
hyphenation-push-char-count=
"2"/>
492 </style:default-style>
493 <style:default-style style:
family=
"table">
494 <style:table-properties table:
border-model=
"collapsing"/>
495 </style:default-style>
496 <style:default-style style:
family=
"table-row">
497 <style:table-row-properties fo:
keep-together=
"auto"/>
498 </style:default-style>
499 <style:style style:
name=
"Standard" style:
family=
"paragraph" style:
class=
"text">
500 <style:text-properties fo:
language=
"en" fo:
country=
"US" style:
font-size-asian=
"10.5pt"/>
502 <style:style style:
name=
"Heading" style:
family=
"paragraph" style:
parent-style-name=
"Standard" style:
next-style-name=
"Text_20_body" style:
class=
"text">
503 <style:paragraph-properties fo:
margin-top=
"0.423cm" fo:
margin-bottom=
"0.212cm" loext:
contextual-spacing=
"false" fo:
keep-with-next=
"always"/>
504 <style:text-properties style:
font-name=
"Liberation Sans" fo:
font-family=
"'Liberation Sans'" style:
font-family-generic=
"swiss" style:
font-pitch=
"variable" fo:
font-size=
"14pt" style:
font-name-asian=
"Microsoft YaHei" style:
font-family-asian=
"'Microsoft YaHei'" style:
font-family-generic-asian=
"system" style:
font-pitch-asian=
"variable" style:
font-size-asian=
"14pt" style:
font-name-complex=
"Lucida Sans" style:
font-family-complex=
"'Lucida Sans'" style:
font-family-generic-complex=
"system" style:
font-pitch-complex=
"variable" style:
font-size-complex=
"14pt"/>
506 <style:style style:
name=
"Text_20_body" style:
display-name=
"Text body" style:
family=
"paragraph" style:
parent-style-name=
"Standard" style:
class=
"text">
507 <style:paragraph-properties fo:
margin-top=
"0cm" fo:
margin-bottom=
"0.247cm" loext:
contextual-spacing=
"false" fo:
line-height=
"120%"/>
509 <style:style style:
name=
"List" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body" style:
class=
"list">
510 <style:text-properties style:
font-size-asian=
"12pt" style:
font-name-complex=
"Lucida Sans1" style:
font-family-complex=
"'Lucida Sans'" style:
font-family-generic-complex=
"swiss"/>
512 <style:style style:
name=
"Caption" style:
family=
"paragraph" style:
parent-style-name=
"Standard" style:
class=
"extra">
513 <style:paragraph-properties fo:
margin-top=
"0.212cm" fo:
margin-bottom=
"0.212cm" loext:
contextual-spacing=
"false" text:
number-lines=
"false" text:
line-number=
"0"/>
514 <style:text-properties fo:
font-size=
"12pt" fo:
font-style=
"italic" style:
font-size-asian=
"12pt" style:
font-style-asian=
"italic" style:
font-name-complex=
"Lucida Sans1" style:
font-family-complex=
"'Lucida Sans'" style:
font-family-generic-complex=
"swiss" style:
font-size-complex=
"12pt" style:
font-style-complex=
"italic"/>
516 <style:style style:
name=
"Index" style:
family=
"paragraph" style:
parent-style-name=
"Standard" style:
class=
"index">
517 <style:paragraph-properties text:
number-lines=
"false" text:
line-number=
"0"/>
518 <style:text-properties style:
font-size-asian=
"12pt" style:
font-name-complex=
"Lucida Sans1" style:
font-family-complex=
"'Lucida Sans'" style:
font-family-generic-complex=
"swiss"/>
520 <style:style style:
name=
"Heading_20_1" style:
display-name=
"Heading 1" style:
family=
"paragraph" style:
parent-style-name=
"Heading" style:
next-style-name=
"Text_20_body" style:
default-outline-level=
"1" style:
class=
"text">
521 <style:paragraph-properties fo:
margin-top=
"0.423cm" fo:
margin-bottom=
"0.212cm" loext:
contextual-spacing=
"false"/>
522 <style:text-properties fo:
font-size=
"130%" fo:
font-weight=
"bold" style:
font-size-asian=
"130%" style:
font-weight-asian=
"bold" style:
font-size-complex=
"130%" style:
font-weight-complex=
"bold"/>
524 <style:style style:
name=
"Quotations" style:
family=
"paragraph" style:
parent-style-name=
"Standard" style:
class=
"html">
525 <style:paragraph-properties fo:
margin-left=
"1cm" fo:
margin-right=
"1cm" fo:
margin-top=
"0cm" fo:
margin-bottom=
"0.499cm" loext:
contextual-spacing=
"false" fo:
text-indent=
"0cm" style:
auto-text-indent=
"false"/>
527 <style:style style:
name=
"Title" style:
family=
"paragraph" style:
parent-style-name=
"Heading" style:
next-style-name=
"Text_20_body" style:
class=
"chapter">
528 <style:paragraph-properties fo:
text-align=
"center" style:
justify-single-word=
"false"/>
529 <style:text-properties fo:
font-size=
"28pt" fo:
font-weight=
"bold" style:
font-size-asian=
"28pt" style:
font-weight-asian=
"bold" style:
font-size-complex=
"28pt" style:
font-weight-complex=
"bold"/>
531 <style:style style:
name=
"Subtitle" style:
family=
"paragraph" style:
parent-style-name=
"Heading" style:
next-style-name=
"Text_20_body" style:
class=
"chapter">
532 <style:paragraph-properties fo:
margin-top=
"0.106cm" fo:
margin-bottom=
"0.212cm" loext:
contextual-spacing=
"false" fo:
text-align=
"center" style:
justify-single-word=
"false"/>
533 <style:text-properties fo:
font-size=
"18pt" style:
font-size-asian=
"18pt" style:
font-size-complex=
"18pt"/>
535 <style:style style:
name=
"Heading_20_2" style:
display-name=
"Heading 2" style:
family=
"paragraph" style:
parent-style-name=
"Heading" style:
next-style-name=
"Text_20_body" style:
default-outline-level=
"2" style:
class=
"text">
536 <style:paragraph-properties fo:
margin-top=
"0.353cm" fo:
margin-bottom=
"0.212cm" loext:
contextual-spacing=
"false"/>
537 <style:text-properties fo:
font-size=
"115%" fo:
font-weight=
"bold" style:
font-size-asian=
"115%" style:
font-weight-asian=
"bold" style:
font-size-complex=
"115%" style:
font-weight-complex=
"bold"/>
539 <style:style style:
name=
"Heading_20_3" style:
display-name=
"Heading 3" style:
family=
"paragraph" style:
parent-style-name=
"Heading" style:
next-style-name=
"Text_20_body" style:
default-outline-level=
"3" style:
class=
"text">
540 <style:paragraph-properties fo:
margin-top=
"0.247cm" fo:
margin-bottom=
"0.212cm" loext:
contextual-spacing=
"false"/>
541 <style:text-properties fo:
font-size=
"101%" fo:
font-weight=
"bold" style:
font-size-asian=
"101%" style:
font-weight-asian=
"bold" style:
font-size-complex=
"101%" style:
font-weight-complex=
"bold"/>
543 <style:style style:
name=
"Bullet_20_Symbols" style:
display-name=
"Bullet Symbols" style:
family=
"text">
544 <style:text-properties style:
font-name=
"OpenSymbol" fo:
font-family=
"OpenSymbol" style:
font-charset=
"x-symbol" style:
font-name-asian=
"OpenSymbol" style:
font-family-asian=
"OpenSymbol" style:
font-charset-asian=
"x-symbol" style:
font-name-complex=
"OpenSymbol" style:
font-family-complex=
"OpenSymbol" style:
font-charset-complex=
"x-symbol"/>
546 <text:outline-style style:
name=
"Outline">
547 <text:outline-level-style text:
level=
"1" style:
num-format=
"">
548 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
549 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"0.762cm" fo:
text-indent=
"-0.762cm" fo:
margin-left=
"0.762cm"/>
550 </style:list-level-properties>
551 </text:outline-level-style>
552 <text:outline-level-style text:
level=
"2" style:
num-format=
"">
553 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
554 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"1.016cm" fo:
text-indent=
"-1.016cm" fo:
margin-left=
"1.016cm"/>
555 </style:list-level-properties>
556 </text:outline-level-style>
557 <text:outline-level-style text:
level=
"3" style:
num-format=
"">
558 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
559 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"1.27cm" fo:
text-indent=
"-1.27cm" fo:
margin-left=
"1.27cm"/>
560 </style:list-level-properties>
561 </text:outline-level-style>
562 <text:outline-level-style text:
level=
"4" style:
num-format=
"">
563 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
564 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"1.524cm" fo:
text-indent=
"-1.524cm" fo:
margin-left=
"1.524cm"/>
565 </style:list-level-properties>
566 </text:outline-level-style>
567 <text:outline-level-style text:
level=
"5" style:
num-format=
"">
568 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
569 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"1.778cm" fo:
text-indent=
"-1.778cm" fo:
margin-left=
"1.778cm"/>
570 </style:list-level-properties>
571 </text:outline-level-style>
572 <text:outline-level-style text:
level=
"6" style:
num-format=
"">
573 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
574 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"2.032cm" fo:
text-indent=
"-2.032cm" fo:
margin-left=
"2.032cm"/>
575 </style:list-level-properties>
576 </text:outline-level-style>
577 <text:outline-level-style text:
level=
"7" style:
num-format=
"">
578 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
579 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"2.286cm" fo:
text-indent=
"-2.286cm" fo:
margin-left=
"2.286cm"/>
580 </style:list-level-properties>
581 </text:outline-level-style>
582 <text:outline-level-style text:
level=
"8" style:
num-format=
"">
583 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
584 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"2.54cm" fo:
text-indent=
"-2.54cm" fo:
margin-left=
"2.54cm"/>
585 </style:list-level-properties>
586 </text:outline-level-style>
587 <text:outline-level-style text:
level=
"9" style:
num-format=
"">
588 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
589 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"2.794cm" fo:
text-indent=
"-2.794cm" fo:
margin-left=
"2.794cm"/>
590 </style:list-level-properties>
591 </text:outline-level-style>
592 <text:outline-level-style text:
level=
"10" style:
num-format=
"">
593 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
594 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"3.048cm" fo:
text-indent=
"-3.048cm" fo:
margin-left=
"3.048cm"/>
595 </style:list-level-properties>
596 </text:outline-level-style>
597 </text:outline-style>
598 <text:notes-configuration text:
note-class=
"footnote" style:
num-format=
"1" text:
start-value=
"0" text:
footnotes-position=
"page" text:
start-numbering-at=
"document"/>
599 <text:notes-configuration text:
note-class=
"endnote" style:
num-format=
"i" text:
start-value=
"0"/>
600 <text:linenumbering-configuration text:
number-lines=
"false" text:
offset=
"0.499cm" style:
num-format=
"1" text:
number-position=
"left" text:
increment=
"5"/>
602 <office:automatic-styles>
603 <style:style style:
name=
"P1" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body">
604 <style:text-properties officeooo:
rsid=
"001c4c5b" officeooo:
paragraph-rsid=
"001c4c5b"/>
606 <style:style style:
name=
"P2" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body">
607 <style:text-properties officeooo:
rsid=
"0027107a" officeooo:
paragraph-rsid=
"0027107a"/>
609 <style:style style:
name=
"P3" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body">
610 <style:text-properties fo:
font-weight=
"normal" officeooo:
rsid=
"0027b74d" officeooo:
paragraph-rsid=
"0027b74d" style:
font-weight-asian=
"normal" style:
font-weight-complex=
"normal"/>
612 <style:style style:
name=
"P4" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body">
613 <style:text-properties fo:
font-weight=
"normal" officeooo:
rsid=
"0027107a" officeooo:
paragraph-rsid=
"0027107a" style:
font-weight-asian=
"normal" style:
font-weight-complex=
"normal"/>
615 <style:style style:
name=
"P5" style:
family=
"paragraph" style:
parent-style-name=
"Heading_20_1">
616 <style:text-properties officeooo:
rsid=
"001c4c5b" officeooo:
paragraph-rsid=
"001c4c5b"/>
618 <style:style style:
name=
"P6" style:
family=
"paragraph" style:
parent-style-name=
"Standard">
619 <style:paragraph-properties fo:
text-align=
"center" style:
justify-single-word=
"false"/>
620 <style:text-properties style:
text-line-through-style=
"none" style:
text-line-through-type=
"none" style:
font-name=
"Liberation Sans" fo:
font-size=
"12pt" fo:
font-style=
"normal" style:
text-underline-style=
"none" fo:
font-weight=
"normal"/>
622 <style:style style:
name=
"P7" style:
family=
"paragraph" style:
parent-style-name=
"Heading_20_1">
623 <style:text-properties officeooo:
rsid=
"001c4c5b" officeooo:
paragraph-rsid=
"001c4c5b"/>
625 <style:style style:
name=
"P8" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body" style:
list-style-name=
"L1">
626 <style:text-properties officeooo:
rsid=
"0027107a" officeooo:
paragraph-rsid=
"0027107a"/>
628 <style:style style:
name=
"P9" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body" style:
list-style-name=
"L1">
629 <style:text-properties fo:
font-weight=
"normal" officeooo:
rsid=
"0027107a" officeooo:
paragraph-rsid=
"0027107a" style:
font-weight-asian=
"normal" style:
font-weight-complex=
"normal"/>
631 <style:style style:
name=
"P10" style:
family=
"paragraph" style:
parent-style-name=
"Text_20_body" style:
list-style-name=
"L1">
632 <style:text-properties fo:
font-weight=
"normal" officeooo:
rsid=
"0027b74d" officeooo:
paragraph-rsid=
"0027b74d" style:
font-weight-asian=
"normal" style:
font-weight-complex=
"normal"/>
634 <style:style style:
name=
"P11" style:
family=
"paragraph">
635 <style:paragraph-properties fo:
text-align=
"center"/>
636 <style:text-properties style:
text-line-through-style=
"none" style:
text-line-through-type=
"none" style:
font-name=
"Liberation Sans" fo:
font-size=
"12pt" fo:
font-style=
"normal" style:
text-underline-style=
"none" fo:
font-weight=
"normal"/>
638 <style:style style:
name=
"T1" style:
family=
"text">
639 <style:text-properties officeooo:
rsid=
"0023a8b2"/>
641 <style:style style:
name=
"T2" style:
family=
"text">
642 <style:text-properties fo:
font-weight=
"bold" style:
font-weight-asian=
"bold" style:
font-weight-complex=
"bold"/>
644 <style:style style:
name=
"T3" style:
family=
"text">
645 <style:text-properties fo:
font-weight=
"bold" officeooo:
rsid=
"002ae357" style:
font-weight-asian=
"bold" style:
font-weight-complex=
"bold"/>
647 <style:style style:
name=
"T4" style:
family=
"text">
648 <style:text-properties fo:
font-weight=
"normal" style:
font-weight-asian=
"normal" style:
font-weight-complex=
"normal"/>
650 <style:style style:
name=
"T5" style:
family=
"text">
651 <style:text-properties officeooo:
rsid=
"00290da0"/>
653 <style:style style:
name=
"T6" style:
family=
"text">
654 <style:text-properties officeooo:
rsid=
"002ae357"/>
656 <style:style style:
name=
"T7" style:
family=
"text">
657 <style:text-properties officeooo:
rsid=
"002c2869"/>
659 <text:list-style style:
name=
"L1">
660 <text:list-level-style-bullet text:
level=
"1" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"•">
661 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
662 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"1.27cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"1.27cm"/>
663 </style:list-level-properties>
664 </text:list-level-style-bullet>
665 <text:list-level-style-bullet text:
level=
"2" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"◦">
666 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
667 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"1.905cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"1.905cm"/>
668 </style:list-level-properties>
669 </text:list-level-style-bullet>
670 <text:list-level-style-bullet text:
level=
"3" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"▪">
671 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
672 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"2.54cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"2.54cm"/>
673 </style:list-level-properties>
674 </text:list-level-style-bullet>
675 <text:list-level-style-bullet text:
level=
"4" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"•">
676 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
677 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"3.175cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"3.175cm"/>
678 </style:list-level-properties>
679 </text:list-level-style-bullet>
680 <text:list-level-style-bullet text:
level=
"5" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"◦">
681 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
682 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"3.81cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"3.81cm"/>
683 </style:list-level-properties>
684 </text:list-level-style-bullet>
685 <text:list-level-style-bullet text:
level=
"6" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"▪">
686 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
687 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"4.445cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"4.445cm"/>
688 </style:list-level-properties>
689 </text:list-level-style-bullet>
690 <text:list-level-style-bullet text:
level=
"7" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"•">
691 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
692 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"5.08cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"5.08cm"/>
693 </style:list-level-properties>
694 </text:list-level-style-bullet>
695 <text:list-level-style-bullet text:
level=
"8" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"◦">
696 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
697 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"5.715cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"5.715cm"/>
698 </style:list-level-properties>
699 </text:list-level-style-bullet>
700 <text:list-level-style-bullet text:
level=
"9" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"▪">
701 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
702 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"6.35cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"6.35cm"/>
703 </style:list-level-properties>
704 </text:list-level-style-bullet>
705 <text:list-level-style-bullet text:
level=
"10" text:
style-name=
"Bullet_20_Symbols" text:
bullet-char=
"•">
706 <style:list-level-properties text:
list-level-position-and-space-mode=
"label-alignment">
707 <style:list-level-label-alignment text:
label-followed-by=
"listtab" text:
list-tab-stop-position=
"6.985cm" fo:
text-indent=
"-0.635cm" fo:
margin-left=
"6.985cm"/>
708 </style:list-level-properties>
709 </text:list-level-style-bullet>
711 <style:style style:
name=
"gr1" style:
family=
"graphic">
712 <style:graphic-properties style:
wrap=
"run-through" style:
number-wrapped-paragraphs=
"no-limit" style:
vertical-pos=
"from-top" style:
horizontal-pos=
"from-left" style:
horizontal-rel=
"paragraph" draw:
wrap-influence-on-position=
"once-concurrent" style:
flow-with-text=
"false"/>
714 <style:page-layout style:
name=
"pm1">
715 <style:page-layout-properties fo:
page-width=
"21.001cm" fo:
page-height=
"29.7cm" style:
num-format=
"1" style:
print-orientation=
"portrait" fo:
margin-top=
"2cm" fo:
margin-bottom=
"2cm" fo:
margin-left=
"2cm" fo:
margin-right=
"2cm" style:
writing-mode=
"lr-tb" style:
footnote-max-height=
"0cm">
716 <style:footnote-sep style:
width=
"0.018cm" style:
distance-before-sep=
"0.101cm" style:
distance-after-sep=
"0.101cm" style:
line-style=
"solid" style:
adjustment=
"left" style:
rel-width=
"25%" style:
color=
"#000000"/>
717 </style:page-layout-properties>
718 <style:header-style/>
719 <style:footer-style/>
721 </office:automatic-styles>
722 <office:master-styles>
723 <style:master-page style:
name=
"Standard" style:
page-layout-name=
"pm1"/>
724 </office:master-styles>
727 <office:forms form:
automatic-focus=
"false" form:
apply-design-mode=
"false">
728 <form:form form:
name=
"Form" form:
apply-filter=
"true" form:
command-type=
"table" form:
control-implementation=
"ooo:com.sun.star.form.component.Form" office:
target-frame=
"" xlink:
href=
"" xlink:
type=
"simple">
730 <form:property form:
property-name=
"PropertyChangeNotificationEnabled" office:
value-type=
"boolean" office:
boolean-value=
"true"/>
732 <form:button form:
name=
"Push Button 1" form:
control-implementation=
"ooo:com.sun.star.form.component.CommandButton" xml:
id=
"control1" form:
id=
"control1" form:
label=
"Generate report" office:
target-frame=
"" xlink:
href=
"" form:
image-data=
"" form:
delay-for-repeat=
"PT0.050000000S" form:
image-position=
"center">
734 <form:property form:
property-name=
"DefaultControl" office:
value-type=
"string" office:
string-value=
"com.sun.star.form.control.CommandButton"/>
736 <office:event-listeners>
737 <script:event-listener script:
language=
"ooo:script" script:
event-name=
"form:performaction" xlink:
href=
"vnd.sun.star.script:AcceleratorKeyCheck.__testMenu.testmenus?language=Basic&location=document" xlink:
type=
"simple"/>
738 </office:event-listeners>
742 <text:sequence-decls>
743 <text:sequence-decl text:
display-outline-level=
"0" text:
name=
"Illustration"/>
744 <text:sequence-decl text:
display-outline-level=
"0" text:
name=
"Table"/>
745 <text:sequence-decl text:
display-outline-level=
"0" text:
name=
"Text"/>
746 <text:sequence-decl text:
display-outline-level=
"0" text:
name=
"Drawing"/>
747 </text:sequence-decls>
748 <text:h text:
style-name=
"P5" text:
outline-level=
"1">Accelerator key check
</text:h>
749 <text:p text:
style-name=
"P1">This document contains some code to traverse the menus and generate a reports the contents of the main menu items and it
's accelerator keys. If there is a duplicate and the menu item has a sub menu then that means that the user won't be able to reach the second menu item with the same accelerator key. Therefore it will be marked with a
<text:span text:
style-name=
"T2">red
</text:span> background color. If it has the same key
<text:span text:
style-name=
"T6">but don
't have a sub-menu it is marked with a
</text:span><text:span text:
style-name=
"T3">yellow
</text:span><text:span text:
style-name=
"T6"> background, this is still a problem
</text:span>that should be fixed but the
<text:span text:
style-name=
"T7">problem
</text:span> is just not
<text:span text:
style-name=
"T1">quite
</text:span>as severe.
</text:p>
750 <text:p text:
style-name=
"P1"><draw:control text:
anchor-type=
"as-char" svg:
y=
"0cm" draw:
z-index=
"0" draw:
style-name=
"gr1" draw:
text-style-name=
"P11" svg:
width=
"3.89cm" svg:
height=
"1.324cm" draw:
control=
"control1"/></text:p>
751 <text:p text:
style-name=
"P2">If nothing happens when you press Generate report then the macros have probably been blocked for security reasons. To allow the report tobe generated you need change this setting. To do this:
</text:p>
752 <text:list xml:
id=
"list8718540425442089522" text:
style-name=
"L1">
754 <text:p text:
style-name=
"P8">Go to
<text:span text:
style-name=
"T2">Tools
</text:span> →
<text:span text:
style-name=
"T2">Options
</text:span> (or if your
'e using Mac
<text:span text:
style-name=
"T2">LibreOffice → Preferences...
</text:span><text:span text:
style-name=
"T4">)
</text:span></text:p>
757 <text:p text:
style-name=
"P8"><text:span text:
style-name=
"T4">In the tree list to the left of the dialog navigate to
</text:span><text:span text:
style-name=
"T2">LibreOffice → Security
</text:span></text:p>
760 <text:p text:
style-name=
"P8">Click on the button
<text:span text:
style-name=
"T2">Macro security
</text:span><text:span text:
style-name=
"T4">...
</text:span></text:p>
763 <text:p text:
style-name=
"P8"><text:span text:
style-name=
"T4">Set the Security Level to
</text:span><text:span text:
style-name=
"T2">Medium
</text:span></text:p>
766 <text:p text:
style-name=
"P9">Close and reopen this document
</text:p>
769 <text:p text:
style-name=
"P10">You will get a warning that the document contains macros, click the button
<text:span text:
style-name=
"T2">Enable Macros
</text:span>.
</text:p>
772 <text:p text:
style-name=
"P3">Of course you need to pay attention when this dialog shows up and don
't
<text:span text:
style-name=
"T5">blindly
</text:span>allow macros to run if you don
't know where it comes from and what it does.
</text:p>