diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..64284b9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/Repo-Sync.yml b/.github/workflows/Repo-Sync.yml new file mode 100644 index 0000000..9e1140d --- /dev/null +++ b/.github/workflows/Repo-Sync.yml @@ -0,0 +1,18 @@ +# File: .github/workflows/repo-sync.yml +name: Repo-Sync + +on: + schedule: + - cron: "35 */3 * * *" +jobs: + repo-sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: repo-sync + uses: repo-sync/github-sync@v2 + with: + source_repo: "dgaspary/fpOdf" + source_branch: "master" + destination_branch: "MasterChanges" + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/make.json b/.github/workflows/make.json new file mode 100644 index 0000000..07372d8 --- /dev/null +++ b/.github/workflows/make.json @@ -0,0 +1,7 @@ +{ + "app" : "examples", + "lib" : "package", + "tst" : "test/fpOdfTest.lpi", + "pkg" : [ + ] +} diff --git a/.github/workflows/make.ps1 b/.github/workflows/make.ps1 new file mode 100644 index 0000000..5458c87 --- /dev/null +++ b/.github/workflows/make.ps1 @@ -0,0 +1,187 @@ +#!/usr/bin/env pwsh +############################################################################################################## + +Function Show-Usage { + " +vagrant = 'it-gro/win10-ltsc-eval' +download = 'https://microsoft.com/en-us/evalcenter' +package = 'https://learn.microsoft.com/en-us/mem/configmgr/develop/apps/how-to-create-the-windows-installer-file-msi' +shell = 'https://learn.microsoft.com/en-us/powershell' + +Usage: pwsh -File $($PSCommandPath) [OPTIONS] +Options: + build + lint +" | Out-Host +} + +Function Build-Project { + New-Variable -Option Constant -Name VAR -Value (Get-Content -Path $PSCommandPath.Replace('ps1', 'json') | ConvertFrom-Json) + If (! (Test-Path -Path $Var.app)) { + "$([char]27)[31m.... $($Var.app) did not find!$([char]27)[0m" | Out-Host + Exit 1 + } + If (Test-Path -Path '.gitmodules') { + & git submodule update --init --recursive --force --remote | Out-Host + "$([char]27)[33m.... [[$($LastExitCode)]] git submodule update$([char]27)[0m" | Out-Host + } + @( + @{ + Cmd = 'lazbuild' + Url = 'https://fossies.org/windows/misc/lazarus-3.6-fpc-3.2.2-win64.exe' + Path = "C:\Lazarus" + } + ) | Where-Object { + ! (Test-Path -Path $_.Path) + } | ForEach-Object { + $_.Url | Request-File | Install-Program + $Env:PATH+=";$($_.Path)" + Return (Get-Command $_.Cmd).Source + } | Out-Host + $VAR.Pkg | ForEach-Object { + @{ + Name = $_ + Uri = "https://packages.lazarus-ide.org/$($_).zip" + Path = "$($Env:HOME)\.lazarus\onlinepackagemanager\packages\$($_)" + OutFile = (New-TemporaryFile).FullName + } + } | Where-Object { + ! (Test-Path -Path $_.Path) && + ! (& lazbuild --verbose-pkgsearch $_.Name ) && + ! (& lazbuild --add-package $_.Name) + } | ForEach-Object -Parallel { + Invoke-WebRequest -OutFile $_.OutFile -Uri $_.Uri + New-Item -Type Directory -Path $_.Path | Out-Null + Expand-Archive -Path $_.OutFile -DestinationPath $_.Path + Remove-Item $_.OutFile + (Get-ChildItem -Filter '*.lpk' -Recurse -File –Path $_.Path).FullName | + ForEach-Object { + & lazbuild --add-package-link $_ | Out-Null + Return "$([char]27)[33m.... [$($LastExitCode)] add package link $($_)$([char]27)[0m" + } + } | Out-Host + If (Test-Path -Path $VAR.lib) { + (Get-ChildItem -Filter '*.lpk' -Recurse -File –Path $VAR.lib).FullName | + ForEach-Object { + & lazbuild --add-package-link $_ | Out-Null + Return "$([char]27)[33m.... [$($LastExitCode)] add package link $($_)$([char]27)[0m" + } | Out-Host + } + Exit $(Switch (Test-Path -Path $Var.tst) { + true { + $Output = ( + & lazbuild --build-all --recursive --no-write-project $VAR.tst | + Where-Object { + $_.Contains('Linking') + } | ForEach-Object { + $_.Split(' ')[2].Replace('bin', 'bin\.') + } + ) + $Output = (& $Output --all --format=plain --progress) + $exitCode = Switch ($LastExitCode) { + 0 {0} + Default { + 1 + } + } + $Output | Out-Host + Return $exitCode +K } + Default {0} + }) + ( + (Get-ChildItem -Filter '*.lpi' -Recurse -File –Path $Var.app).FullName | + ForEach-Object { + $Output = (& lazbuild --build-all --recursive --no-write-project $_) + $Result = @("$([char]27)[32m.... [$($LastExitCode)] build project $($_)$([char]27)[0m") + $exitCode = $(Switch ($LastExitCode) { + 0 { + $Result += $Output | Select-String -Pattern 'Linking' + 0 + } + Default { + $Result += $Output | Select-String -Pattern 'Error:', 'Fatal:' + 1 + } + }) + $Result | Out-Host + Return $exitCode + } | Measure-Object -Sum + ).Sum +} + +Function Request-File { + While ($Input.MoveNext()) { + New-Variable -Option Constant -Name VAR -Value @{ + Uri = $Input.Current + OutFile = (Split-Path -Path $Input.Current -Leaf).Split('?')[0] + } + Invoke-WebRequest @VAR + Return $VAR.OutFile + } +} + +Function Install-Program { + While ($Input.MoveNext()) { + Switch ((Split-Path -Path $Input.Current -Leaf).Split('.')[-1]) { + 'msi' { + & msiexec /passive /package $Input.Current | Out-Null + } + Default { + & ".\$($Input.Current)" /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART | Out-Null + } + } + Remove-Item $Input.Current + } +} + +Function Request-URL([Switch] $Post) { + $VAR = Switch ($Post) { + true { + @{ + Method = 'POST' + Headers = @{ + ContentType = 'application/json' + } + Uri = 'https://postman-echo.com/post' + Body = @{ + One = '1' + } | ConvertTo-Json + } + } + false { + @{ + Uri = 'https://postman-echo.com/get' + } + } + } + Return (Invoke-WebRequest @VAR | ConvertFrom-Json).Headers +} + +Function Switch-Action { + $ErrorActionPreference = 'stop' + Set-PSDebug -Strict #-Trace 1 + Invoke-ScriptAnalyzer -EnableExit -Path $PSCommandPath + If ($args.count -gt 0) { + Switch ($args[0]) { + 'lint' { + Invoke-ScriptAnalyzer -EnableExit -Recurse -Path '.' + (Get-ChildItem -Filter '*.ps1' -Recurse -Path '.').FullName | + ForEach-Object { + Invoke-Formatter -ScriptDefinition $(Get-Content -Path $_ | Out-String) | + Set-Content -Path $_ + } + } + 'build' { + Build-Project + } + Default { + Show-Usage + } + } + } Else { + Show-Usage + } +} + +############################################################################################################## +Switch-Action @args diff --git a/.github/workflows/make.sh b/.github/workflows/make.sh new file mode 100644 index 0000000..04643b4 --- /dev/null +++ b/.github/workflows/make.sh @@ -0,0 +1,112 @@ +#!/usr/bin/env bash +############################################################################################################## + +function priv_clippit +( + cat <&2 + if [[ -f '.gitmodules' ]]; then + git submodule update --init --recursive --force --remote & + fi + if ! (command -v lazbuild); then + # shellcheck source=/dev/null + source '/etc/os-release' + case ${ID:?} in + debian | ubuntu) + sudo apt-get update + sudo apt-get install -y lazarus{-ide-qt5,} & + ;; + esac + fi &>/dev/null + wait + while read -r; do + ( + declare -rA TMP=( + [url]="https://packages.lazarus-ide.org/${REPLY}.zip" + [dir]="${HOME}/.lazarus/onlinepackagemanager/packages/${REPLY}" + [out]=$(mktemp) + ) + if ! [[ -d "${TMP[dir]}" ]] && + ! (lazbuild --verbose-pkgsearch "${REPLY}") && + ! (lazbuild --add-package "${REPLY}"); then + wget --quiet --output-document "${TMP[out]}" "${TMP[url]}" + mkdir --parents "${TMP[dir]}" + unzip -o "${TMP[out]}" -d "${TMP[dir]}" + rm --verbose "${TMP[out]}" + find "${TMP[dir]}" -type 'f' -name '*.lpk' -printf '\033[33m\tadd package link\t%p\033[0m\n' -exec \ + lazbuild --add-package-link {} + >&2 + fi + ) & + done < <(jq --raw-output --exit-status '.pkg[]' <<< "${MAPFILE[@]}") + wait + if [[ -d "${VAR[lib]}" ]]; then + find "${VAR[lib]}" -type 'f' -name '*.lpk' -printf '\033[33m\tadd package link\t%p\033[0m\n' -exec \ + lazbuild --add-package-link {} + >&2 + fi + declare -i exitCode=0 + if [[ -f "${VAR[tst]}" ]]; then + declare -A TMP=( + [tst]=$( + lazbuild --build-all --recursive --no-write-project "${VAR[tst]}" | + awk '/Linking/{print $3}' + ) + ) + if ! ("${TMP[tst]}" --all --format=plain --progress >&2); then + ((exitCode+=1)) + fi + fi + while read -r; do + declare -A TMP=( + [out]=$(mktemp) + ) + if (lazbuild --build-all --recursive --no-write-project "${REPLY}" > "${TMP[out]}"); then + printf '\x1b[32m\t[%s]\t%s\x1b[0m\n' "${?}" "${REPLY}" + grep --color='always' 'Linking' "${TMP[out]}" + else + printf '\x1b[31m\t[%s]\t%s\x1b[0m\n' "${?}" "${REPLY}" + grep --color='always' --extended-regexp '(Error|Fatal):' "${TMP[out]}" + ((exitCode+=1)) + fi >&2 + rm "${TMP[out]}" + done < <(find "${VAR[app]}" -type 'f' -name '*.lpi') + exit "${exitCode}" +) + +function priv_main +( + set -euo pipefail + if ((${#})); then + case ${1} in + build) priv_lazbuild ;; + *) priv_clippit ;; + esac + else + priv_clippit + fi +) + +############################################################################################################## +priv_main "${@}" >/dev/null diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml new file mode 100644 index 0000000..006d55c --- /dev/null +++ b/.github/workflows/make.yml @@ -0,0 +1,49 @@ +--- +name: Make + +on: + schedule: + - cron: '0 0 1 * *' + push: + branches: + - "**" + pull_request: + branches: + - master + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ${{ matrix.os }} + timeout-minutes: 120 + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + + - name: Build on Linux + if: runner.os == 'Linux' + shell: bash + run: bash .github/workflows/make.sh build + + - name: Build on Windows + if: runner.os == 'Windows' + shell: powershell + run: pwsh -File .github/workflows/make.ps1 build + + - name: Archive + if: runner.os == 'Windows' + uses: actions/upload-artifact@v4 + with: + retention-days: 1 + path: src\bin\*.exe diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8a9d06 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/.svn +/bin +/output +*.lps +*.bak diff --git a/FPdoc/improveddemo.xml b/FPdoc/improveddemo.xml index 8714c43..71957d6 100644 --- a/FPdoc/improveddemo.xml +++ b/FPdoc/improveddemo.xml @@ -9,6 +9,18 @@ Execute the demo. First write the chapters in separate files, then write all chapters in one file. Cleanup after the execution. + Name of the first output-file (some styles) + Name of the second output files (styles bookmarks and links) + Name of the third output-file (fonts) + Name of the fourth output-file (colors) + Name of the fifth output-file (tabs) + Name of the complete document with all parts + standard paragraph style-name + Name of the output-directory + iteration variable + Generate a chapter of the document with a table created with tabulators. + Generate a random word with a given maximum length + diff --git a/FPdoc/odf_types.xml b/FPdoc/odf_types.xml index 3ccb320..3182c73 100644 --- a/FPdoc/odf_types.xml +++ b/FPdoc/odf_types.xml @@ -9,6 +9,58 @@ BookMark is a point in the text the reader can jump to. (see also Hyperlink) OdfTextDocument is the class to use to open, close & modify OpenDocument-Files fpOdf is a library used to help users to create and to modify OpenDocument Files (ODF) + Find is a general method to find named items when the name of the item is in the attributes + Erase all content and create a new document + Add a heading of a given level + Appends a text to a content-block + Append a new paragraph of a given style + Add a span to the paragraphA Span is a continuous part of the text with equal style. +TSpan + + Appends a (manual) Line-break to the text.a Line-break stops the text at the current position in the line and continues the text at the start of the next line, but all in the same paragraph. + + Adds a bookmark to the paragraph + appends a link (Hyperlink) to a bookmark + Appends a tabulator + + creates a DOM element of the specified type + GetElementType returns the element type based on an index. + the TOdfDocument associated with this element + creates an ODF element of the specified type + Returns the ODF element type for a given DOM element. + Checks if two DOM elements have the same type. + Sets an attribute value for the parent element. + Returns the first child ODF element of the specified type. + Sets or deletes attributes based on the specified array. + Sets multiple attributes with corresponding values. + Deletes multiple attributes specified in the array. + Removes the attribute of the specified type. + Checks if the element has the specified attribute. + Retrieves the attribute value as a string. + Retrieves the attribute of the specified type. + Finds an ODF element with the given style name. + Checks if the ODF element of the specified type exists. + Finds and returns the first ODF element of the specified type. + Defines a Delaration for a Text-sequence + Defines a set of Config-Config-items + the name of the config + A color-record with three base-colors + Font-definition for odf-files + Section is collection of Paragraphes of the same formatting + a text-style as default + The space/blank character + the None-Tag + Name of the content-file + name of the style-file + the date-format in the file + the generator-name and version + odf-namespace-definition + Url: Oasis + url: Office + Url: Odf-Meta + Url: W3 + The 'Owner' attribute + diff --git a/README.md b/README.md index 1b903ac..4fa9258 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ fpOdf ===== -A library to help freepascal developers to generate and perform modifications to ODF(OASIS OpenDocument) files. +A library to help freepascal developers to generate and perform modifications to ODF(OASIS OpenDocument) files.
+ +[Show off (Examples)](examples) +-------- +
+
+[[Demo.pdf]](Resources/AllParts.pdf) and [[German Demo Familybook[pdf]]](Resources/Muster_GEDCOM_UTF-8.pdf) diff --git a/Resources/AllParts.pdf b/Resources/AllParts.pdf new file mode 100644 index 0000000..df95679 Binary files /dev/null and b/Resources/AllParts.pdf differ diff --git a/Resources/BoldText.PNG b/Resources/BoldText.PNG new file mode 100644 index 0000000..5d1f24f Binary files /dev/null and b/Resources/BoldText.PNG differ diff --git a/Resources/BoldText.fodt b/Resources/BoldText.fodt new file mode 100644 index 0000000..00b815f --- /dev/null +++ b/Resources/BoldText.fodt @@ -0,0 +1,27 @@ + +2021-03-23T19:45:47fpOdf 0.1 + + + + + + + + + + + + + + + + + + + + + A bold text + + + + diff --git a/Resources/HelloWorld.odt b/Resources/HelloWorld.odt new file mode 100644 index 0000000..e6636c3 Binary files /dev/null and b/Resources/HelloWorld.odt differ diff --git a/Resources/Image1.png b/Resources/Image1.png new file mode 100644 index 0000000..df2c80d Binary files /dev/null and b/Resources/Image1.png differ diff --git a/Resources/Muster_GEDCOM_UTF-8.pdf b/Resources/Muster_GEDCOM_UTF-8.pdf new file mode 100644 index 0000000..6265d33 Binary files /dev/null and b/Resources/Muster_GEDCOM_UTF-8.pdf differ diff --git a/Resources/ReplaceFieldsExample.PNG b/Resources/ReplaceFieldsExample.PNG new file mode 100644 index 0000000..988422a Binary files /dev/null and b/Resources/ReplaceFieldsExample.PNG differ diff --git a/Resources/ReplaceFieldsExample.fodt b/Resources/ReplaceFieldsExample.fodt new file mode 100644 index 0000000..390bfd2 --- /dev/null +++ b/Resources/ReplaceFieldsExample.fodt @@ -0,0 +1,28 @@ + +2021-03-23T19:45:53fpOdf 0.1 + + + + + + + + + + + + + + + + + + + + + Name:Arthur + Age:35 + + + + diff --git a/Resources/ShowColor.PNG b/Resources/ShowColor.PNG new file mode 100644 index 0000000..040a20f Binary files /dev/null and b/Resources/ShowColor.PNG differ diff --git a/Resources/ShowColors.fodt b/Resources/ShowColors.fodt new file mode 100644 index 0000000..49b117a --- /dev/null +++ b/Resources/ShowColors.fodt @@ -0,0 +1,117 @@ + +2024-06-18T12:25:12fpOdf 0.2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Demonstration of fpOdfTextcolorsBring more color into your life, because it brightens your life, and touches your soul. + + + + diff --git a/Resources/ShowImage.PNG b/Resources/ShowImage.PNG new file mode 100644 index 0000000..826a83e Binary files /dev/null and b/Resources/ShowImage.PNG differ diff --git a/Resources/ShowLinks.PNG b/Resources/ShowLinks.PNG new file mode 100644 index 0000000..5e625ca Binary files /dev/null and b/Resources/ShowLinks.PNG differ diff --git a/Resources/ShowLinks.odt b/Resources/ShowLinks.odt new file mode 100644 index 0000000..2cc00e8 Binary files /dev/null and b/Resources/ShowLinks.odt differ diff --git a/Resources/ShowStyles.PNG b/Resources/ShowStyles.PNG new file mode 100644 index 0000000..27b4067 Binary files /dev/null and b/Resources/ShowStyles.PNG differ diff --git a/Resources/ShowStyles.fodt b/Resources/ShowStyles.fodt new file mode 100644 index 0000000..507d652 --- /dev/null +++ b/Resources/ShowStyles.fodt @@ -0,0 +1,37 @@ + +2024-06-18T12:25:12fpOdf 0.2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Demonstration of fpOdfHeadlinesHeadline 3Headline 4Headline 5Headline 6Headline 7Headline 8Some TextstylesHere (bold)are (italic) + some (underline)Styles (Strikeout) + + + + diff --git a/Resources/ShowTable.PNG b/Resources/ShowTable.PNG new file mode 100644 index 0000000..5056bd1 Binary files /dev/null and b/Resources/ShowTable.PNG differ diff --git a/Resources/ShowTable.fodt b/Resources/ShowTable.fodt new file mode 100644 index 0000000..ea0610f --- /dev/null +++ b/Resources/ShowTable.fodt @@ -0,0 +1,45 @@ + +2024-06-18T17:20:07fpOdf 0.2 + + + + + + + + + + + + + + + + + + + + + + + + + + + p111 + 12 + 13 + + 21 + 22 + 23 + + 31 + 32 + 33 + + + p2 + + + diff --git a/Resources/ShowTabs.odt b/Resources/ShowTabs.odt new file mode 100644 index 0000000..7d3b80c Binary files /dev/null and b/Resources/ShowTabs.odt differ diff --git a/Resources/output.fodt b/Resources/output.fodt new file mode 100644 index 0000000..98074c3 --- /dev/null +++ b/Resources/output.fodt @@ -0,0 +1,30 @@ + +2024-06-18T17:16:01fpOdf 0.2 + + + + + + + + + + + + + + + + + + + + + + p1iVBORw0KGgoAAAANSUhEUgAAAZAAAAJYCAYAAABM7LCIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABZ2SURBVHhe7d0tkBPLGgbgI5FIJBKJRCJXIpFIJGIFjuuORGK2ColEIlcikcizDolE5k6HJNuTTTaZbzOZnu7nqXrrwp7Abqie773zm3/O5EWXl13edPmfiIiMmrdd0sxNedRlNi66fOryo8tCRESKyH9dvnR53eVxl2K86vK5y+8uu35wEREpK1+7pKNCk5VJKo6fXXb9cCIiUn7S//F/1+Vsh7rScbXrLrt+mDt5/vz54uXLl4tXr14tPnz4ICIiI+b169fLmfvixYudM3lP0iGutEcymtRQ6Rjarm++zJMnTxZv375dfP36dQFAGX78+LF4//794tmzZztnd5Z0/vppl5N60mXvifHUeNfX16sfFYBS/fz5c1kmjx492jnPu6TDWunq2ZN43uVXlzvfKO0mpWYDYF5+/fq1PGK0a7Z3+dPlwYe00ony9Bf1/vK0G/Tt27fVjwHAXKU9kouLi96Mz5LuKwlJuzB3yiOdDP/z58/qWwNQg3///bc367Okq7QGSSdR7hy2SsfNAKhTugBqz7mRdJP4UdLVVndOmH/+/Hn1LQCoVTqv/fjx497875JOrD/rctCdS3XteQC0I53j3u6BLulekXtvOEy7Kb0/lM55ANCWjx8/9rpglX+77NU7dJWutnLCHKBNb968ycsjJV1Yle4LvCNdstt7sZsDAdqV7hVJTxjZ6oaPXXrSca3egxEdugJgx6GstBfSO6GenhHfe5E7zAFIpzF27IWkz33a6F15lW5vB4Dky5cveXmkpPsEl9Lhq94d59+/f1/9MQBal/ZCdtwbstQ7ef706dPVHwGAv9JT1/Ou6LKUPo5288V3796tXg4Af+04jLXUe+aVS3cB2Pb79+/t52Qt5V9YvRQA+tJHlGd9sXzq7uYLo53/uLlaXGTfp5dLezwABxUwR7c+N2T5mR+bL6QPYT+p+97wdi6uFjerPwbASkFzdOvRJv0rsE559/nN1d5PuLonF4srLQKwVNoc/fDhQ/69lp80tfnCyW4gvL7Mv8nAKBGAEufo1mNNlp93u/lCapcH297d2rNLdX2ZvWY7DmcBLSt0jm7vgZy8QG7f0DENeL24zL5/ngu7IUCjSp2jIxfI+o1cdr861s3i6uL2Z9jEXgjQpHLn6LgFsjxmFzj2tvMqgyH/eACVKHiOjlogy92u0PXIu9pTgQDtKXmOjlggf3/46P0sdy9XUyBAa8qeo6PugTzEnTfuHAjAIGPP0fkUyJluzQeoxdhzdDYFoj8Ahhl7jhZaINsnf5z/ABhm/DlaaIH0b4RxEyHAUOPP0SILpL/bZe8DYKhzzNECC6S/2+XcB8BQ55mj5RVI/sRJ7QEw3JnmaGEFkremQ1cAw51vjhZVILfH7MZ5dj1A7c45R8spkOzBX666Agg48xwtpECyy82c9wAIOP8cLaJANh+WojwAQqaYo5MXyOZ4nYclAoRMNUenLZD1pWbKAyBmwjk6XYFsrlN2uS5AyMRzdJoC2VwpoDwAQgqYo+cvkM2bdq8HQEghc/S8BfLgN50uU7PXAjSsoDl6vgJ58Jte3Z7vUl+gVYXN0fMUyEPfdPZgMP0BNKnAOTp+gWze9Cni8BXQoELn6LgFctI33cXuB9CagufoeAWS7S6dKvoDaErhc3SkAul/GtZJ4m51oCnlz9Hx9kAAqJoCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgpKACuVnceFYJQND5Z2g5BXJztbiMfUIKABPM0GIK5ObqwgMTAYKmmKGFFMj6qZPRj2kEaNk0M7SMAsmfee9DPwCGmWiGFlAg14vL7Hum6BCAY003QycvkOvL2+93G599DnCMKWfopAWyPOmTfb9enFAHuNfUM3SyArn3ja+jRAB2KmGGTlIgR73xdZQIQE8pM/TsBbL7eN2hOCcCkJQ0Q89YIOvrlKNRIkDLypuhZyqQu5eZxaJEgBaVOUPPUCCneuPrKBGgJeXO0JEL5KG7XHvixDrQhLJn6KgFMuhKgYG58NAsoHKlz9ARC+TUu13bcSgLqFn5M3S8Askf7jVSPDMLqNYMZuhoBTLmrtcmGgSo1BxmqAIBKFDTBTJ49+viYnF1OezPOJEOVGsGM3S8Ahl0Aih9itb14uqqy9GXrPn0QqBm5c/QEQvk+F2wZQtuPhD+yH80h6+AypU+Q0ctkOTQg782u1Bpd23zhg78A7iREGhEyTN09AJZ6prxIvt7l9l6A8um3X5TO44B2vEAmlPoDD1PgRy0vl3feQ2A4aaZoWUUSN6SdjEAhplohhZQIHeP1ekQgGNNN0MnLpB9T5p0KAvgsGln6HQFsuuk0FYeepMLQLUKmKHnL5AdVwUcjifvAiwVNEPHL5AjWnJYHN4CGlLwDD3/HggAVVAgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCR0rbBHBLgcAR1tsEcEuBwBHW2wRwS4HAEfLtAvhLgcAB+TaRAvylQOCAfJtYB1AgcFC+TawDKBC4V749bAdap0Bgj3xb2BVonQKBPfJtYV+gZQoEdsi3g0OBVikQ2JJvA8cEWqVAYEu+DRwbaJECgUy+/ocGWqNAYCVf+9FASxQIdPJ1/9BAKxQIzcvX/KkCLVAgNC1f76cO1E6B0Kx8rY8VqJkCoUn5Oh87UCsFQlPy9X3OQI0UCM3I1/YUgdooEJqQr+spAzVRIFQvX9MlBGqhQKhavp5LCtRAgVCtfC2XGJg7BUKV8nVccmDOFAhVytdx6YG5UiBUJ1/DcwnMkQKhKvn6nVNgjhQIVcnX79wCc6NAqEa+ducYmBsFQjXytTvXwJwoEKqQr9s5B+ZEgVCFfN3OOTAnCoQq5Ot2zoE5USBUIV+3cw7MiQKhCvm6nXNgThQIVcjX7ZwDc6JAqEK+bsfIOb5HCsyJAqEa+do9ddZ///p/xwrMiQKhGvnaPWXWtn996sDcKBCqkq/fUySX/377dacIzI0CoSr5+j1Fcrt+f6rAHCkQqpOv4Wi2Hfr6QwJzpUCoUr6Oh2aXY/5bJDBnCoRq5Wv52Owz9DXHBOZOgVC9fE3vyyHR1+4K1EKBwBHy7QL4S4HAAfk2kQL8pUDggHybWAdQIHCvfHvIAygQuFe+PWwHWqdAYI98W9gXaJkCgR3y7eC+QMsUCGzJt4FjAy1SIJDJ1//QQGsUCKzkaz8aaIkCoXn5mj9VoAUKhCbl63zsQK0UCFXL13NpgblTIFQrX8slBuZOgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJA4EhpmwBuKRA4wnqbAG4pEDjCepsAbikQOEK+XQB/KRA4IN8mUoC/FAgckG8T6wAKBA7Kt4l1AAUC98q3h+1A6xQI7JFvC7sCrVMgsEe+LewLtEyBwA75dnAo0CoFAlvybeCYQKsUCGTy9T8k0CIFApl8/Q8NtEaBwEq+9qOBligQ6OTr/qGBVigQmpev+VMFWqBAaFq+3k8dqJ0CoVn5Wh8rUDMFQnPyNX6OQK0UCE3J1/c5AzVSIDQjX9tTBGqjQGhCvq6nDNREgVC9fE2XEKiFAqFq+XouKVADBUK18rVcYmDuFAhVytdxyYE5UyBUJ1/DcwjMlQKhOvkanktgjhQIVcnX75wCc6RAqEa+ducYmBsFQjXytTvHwNwoEKqRr925BuZEgVCFfN3OOTAnCoQq5Ot2zoE5USBUIV+3cw7MiQKhCvm6nXNgThQIVcjX7ZwDc6JAqEK+buccmBMFQhXydTtG1t9j/b9jBeZEgVCNfO2eOuu/f/2/YwXmRIFQjXztnjJr278+dWBuFAhVydfvKZLb9ftTBuZGgVCVfP0+NNv2fe0UgTlSIFQnX8PRbDv09YcE5kqBUKV8HQ/NLvf9tyT/80MCc6ZAqFq+ng/lPse8Ln/NMYG5UyA0IV/X2znGQ16fB2qiQOCAfJtIAf5SIHBAvk2sAygQOCjfJtYBFAjcK98etgOtUyBwj3x72A60ToHAHvm2sC/QMgUCO+TbwaFAqxQIbMm3gWMDLVIgkMnX/9BAaxQIrORrPxpoiQKhefmaP2WgdgqEJuXr/ByBGikQqpWv5RIDc6dAqFa+lksNzJkCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQoEABCFAgAIQoEgBAFAkCIAgEgRIEAEKJAAAhRIACEKBAAQhQIACEKBIAQBQJAiAIBIESBABCiQAAIUSAAhCgQAEIUCAAhCgSAEAUCQIgCASBEgQAQokAACFEgAIQUVCA3i5ub1S8BGOj8M7ScArm5WlxeaRCAkAlmaDEFcnN1sfjn4qrrUACGmmKGFlIgN4uri/Q9LxZ2QgCGmmaGllEg15e3P8Tl9eqLABxlohlaQIFcLy6z75miQwCONd0MnbxAri9vv99tLrt/EgAOmXKGTlogy5M+2ffrxQl1gHtNPUMnK5B73/g6SgRgpxJm6CQFctQbX0eJAPSUMkPPXiC7j9cdinMiAElJM/SMBbK+TjkaJQK0rLwZeqYCuXuZWSxKBGhRmTP0DAVyqje+jhIBWlLuDB25QB66y7UnTqwDTSh7ho5aIIOuFBiYCw/NAipX+gwdsUBOvdu1HYeygJqVP0PHK5D84V4jxTOzgGrNYIaOViBj7nptokGASs1hhioQgAI1XSCDd78uLhZXl8P+jBPpQLVmMEPHK5BBJ4DSp2hdL66uuhx9yZpPLwRqVv4MHbFAjt8FW7bg5gPhj/xHc/gKqFzpM3TUAkkOPfhrswuVdtc2b+jAP4AbCYFGlDxDRy+Qpa4ZL7K/d5mtN7Bs2u03teMYoB0PoDmFztDzFMhB69v1ndcAGG6aGVpGgeQtaRcDYJiJZmgBBXL3WJ0OATjWdDN04gLZ96RJh7IADpt2hk5XILtOCm3loTe5AFSrgBl6/gLZcVXA4XjyLsBSQTN0/AI5oiWHxeEtoCEFz9Dz74EAUAUFAkCIAgEgRIEAEKJAAAhRIACEKBAAQqYpkPuua/YgLIDDCpij5y2QITfEnOgDTwCqUtAcPVuBHPvRjP246xxgrbQ5ep4CCT27ZR0lAlDiHB2/QLZ3t/bsUt37ub8OZwEtK3SOjl4gt2/omAbc/0HwHu0OtKrUOTpygazfyJBHCe/5gBR7IUCTyp2j4xbI8phd4NjbzqsMfCYI0KCC5+ioBbLc7Qpdj7yrPRUI0J6S5+iIBfL3h4/ez3L3cjUFArSm7Dk66h7IQ9x5486BAAwy9hydT4Gc6dZ8gFqMPUdnUyD6A2CYsedooQWyffLH+Q+AYcafo4UWSP9GGDcRAgw1/hwtskD6u132PgCGOsccLbBA+rtdzn0ADHWeOVpegeRPnNQeAMOdaY4WViB5azp0BTDc+eZoUQVye8xunGfXA9TunHO0nALJHvzlqiuAgDPP0UIKJLvczHkPgIDzz9EiCmTzYSnKAyBkijk6eYFsjtd5WCJAyFRzdNoCWV9qpjwAYiaco9MVyOY6ZZfrAoRMPEenKZDNlQLKAyCkgDl6/gLZvGn3egCEFDJHz1sgD37T6TI1ey1Awwqao+crkAe/6dXt+S71BVpV2Bw9T4E89E1nDwbTH0CTCpyj4xfI5k2fIg5fAQ0qdI6OWyAnfdNd7H4ArSl4jo5XINnu0qmiP4CmFD5HRyqQ/qdhnSTuVgeaUv4cHW8PBICqbRfI++w3i3fv3q1eBgB9Hz9+7BXIm+w3i9evX69eBgB923sgL7PfLF6+fLl6GQD0vX37tlcgz7LfLJ4+fbp6GQD0vXr1qlcgj7LfLB49erR6GQD0vXjxolcgye8umy/+999/q5cCwK3Hjx/fKZDrLpsvprPsAJC7vr7OyyNl6V2XzRedSAdg2/v37/PySFl62qX3H379+rX6IwCwWDx79qzXE102vnfZ/AeHsQBY+/HjR14cKX+6bPTuSH/y5Mniz58/qz8KQMu2Lt9N+dZl40mX1CibF3guFgA7Tp6nvOrS87HL5gXpnhDnQgDa9vz587w4Un50uSPthfzqsnlhum0dgDZ9+fIlL4510iOwdupd0puS/gIA2vLz58/tGwdTvnbZKz3apLcXkg5lff/+ffVXAlC7379/L5+NmHfBKs+73OtFl94J9XRVlkecANQvXYGbbijPO2CVdITqKOkMe+8PpzZK1wIDUKe057GnPNJFVoP07g1JSYezvn79uvpWANQinfPYc9iqd8/HEJ+73PkL0z0ibjQEqEO6WGrHCfOUdMnu4y5hvftD1klN5QotgPlKF0jtOWSVkp7U/qDyWEufnd47sb5Ouskk3akIwDyki6J2PJ4kz6cuJ5VuHul9+FSetEeSbjz89u3b6kcEoBTpIqh0+mHHneXbOfpqq6HS3eqpmXZ9003SsbS0W/T69evlD5zy6dOnza9FRGScfP78efPrN2/eLGfxnpPj20mHrA7e53EKz7qkOxJ3/RAiIjKfpBPlF13OLt10+KXLzvMjIiJSbNIex+suAf/8838OczcZAwyKAAAAAABJRU5ErkJggg== + + + p2 + + + diff --git a/code_generation/ODF_Processor/fpOdfProcessor.lpi b/code_generation/ODF_Processor/fpOdfProcessor.lpi index 1b00715..318b64e 100644 --- a/code_generation/ODF_Processor/fpOdfProcessor.lpi +++ b/code_generation/ODF_Processor/fpOdfProcessor.lpi @@ -1,16 +1,16 @@ - + - + + - <UseAppBundle Value="False"/> <ResourceType Value="res"/> @@ -18,33 +18,29 @@ <i18n> <EnableI18N LFM="False"/> </i18n> - <VersionInfo> - <StringTable ProductVersion=""/> - </VersionInfo> <BuildModes Count="1"> <Item1 Name="Default" Default="True"/> </BuildModes> <PublishOptions> <Version Value="2"/> - <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/> - <ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/> </PublishOptions> <RunParams> <local> - <FormatVersion Value="1"/> - <LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/> + <LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/> </local> + <FormatVersion Value="2"/> + <Modes Count="1"> + <Mode0 Name="default"> + <local> + <LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/> + </local> + </Mode0> + </Modes> </RunParams> - <RequiredPackages Count="1"> - <Item1> - <PackageName Value="fpRelaxNg"/> - </Item1> - </RequiredPackages> <Units Count="1"> <Unit0> <Filename Value="fpOdfProcessor.lpr"/> <IsPartOfProject Value="True"/> - <UnitName Value="fpOdfProcessor"/> </Unit0> </Units> </ProjectOptions> @@ -57,12 +53,6 @@ <IncludeFiles Value="$(ProjOutDir)"/> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> - <Other> - <CompilerMessages> - <MsgFileName Value=""/> - </CompilerMessages> - <CompilerPath Value="$(CompPath)"/> - </Other> </CompilerOptions> <Debugging> <Exceptions Count="3"> diff --git a/code_generation/ODF_Processor/fpOdfProcessor.lps b/code_generation/ODF_Processor/fpOdfProcessor.lps deleted file mode 100644 index 44f2293..0000000 --- a/code_generation/ODF_Processor/fpOdfProcessor.lps +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0"?> -<CONFIG> - <ProjectSession> - <Version Value="9"/> - <BuildModes Active="Default"/> - <Units Count="1"> - <Unit0> - <Filename Value="fpOdfProcessor.lpr"/> - <IsPartOfProject Value="True"/> - <UnitName Value="fpOdfProcessor"/> - <IsVisibleTab Value="True"/> - <EditorIndex Value="0"/> - <WindowIndex Value="0"/> - <TopLine Value="748"/> - <CursorPos X="37" Y="756"/> - <UsageCount Value="25"/> - <Loaded Value="True"/> - </Unit0> - </Units> - <General> - <ActiveWindowIndexAtStart Value="0"/> - </General> - </ProjectSession> - <EditorMacros Count="0"/> -</CONFIG> diff --git a/examples/BoldText/OdtBoldTextExample.lpi b/examples/BoldText/OdtBoldTextExample.lpi index 2643e79..e590d74 100644 --- a/examples/BoldText/OdtBoldTextExample.lpi +++ b/examples/BoldText/OdtBoldTextExample.lpi @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <General> <Flags> <SaveClosedFiles Value="False"/> <MainUnitHasCreateFormStatements Value="False"/> <MainUnitHasTitleStatement Value="False"/> <SaveJumpHistory Value="False"/> + <CompatibilityMode Value="True"/> </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="OdtBoldTextExample"/> <UseAppBundle Value="False"/> <ResourceType Value="res"/> @@ -31,10 +31,13 @@ <Mode0 Name="default"/> </Modes> </RunParams> - <RequiredPackages Count="1"> + <RequiredPackages Count="2"> <Item1> - <PackageName Value="fpOdf"/> + <PackageName Value="LCL"/> </Item1> + <Item2> + <PackageName Value="fpOdf"/> + </Item2> </RequiredPackages> <Units Count="1"> <Unit0> @@ -46,7 +49,7 @@ <CompilerOptions> <Version Value="11"/> <Target> - <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/OdtBoldTextExample"/> + <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> diff --git a/examples/BoldText/OdtBoldTextExample.lps b/examples/BoldText/OdtBoldTextExample.lps deleted file mode 100644 index 8664117..0000000 --- a/examples/BoldText/OdtBoldTextExample.lps +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<CONFIG> - <ProjectSession> - <Version Value="11"/> - <BuildModes Active="Default"/> - <Units Count="3"> - <Unit0> - <Filename Value="OdtBoldTextExample.lpr"/> - <IsPartOfProject Value="True"/> - <IsVisibleTab Value="True"/> - <TopLine Value="5"/> - <CursorPos X="60" Y="39"/> - <UsageCount Value="60"/> - <Loaded Value="True"/> - </Unit0> - <Unit1> - <Filename Value="../../odf_xmlutils.pas"/> - <EditorIndex Value="2"/> - <TopLine Value="44"/> - <CursorPos X="74" Y="52"/> - <UsageCount Value="10"/> - <Loaded Value="True"/> - </Unit1> - <Unit2> - <Filename Value="../../odf_types.pas"/> - <EditorIndex Value="1"/> - <TopLine Value="975"/> - <CursorPos X="31" Y="995"/> - <UsageCount Value="10"/> - <Loaded Value="True"/> - </Unit2> - </Units> - <RunParams> - <FormatVersion Value="2"/> - <Modes Count="0" ActiveMode="default"/> - </RunParams> - </ProjectSession> -</CONFIG> diff --git a/examples/HelloWorld/OdtHelloWorld.lpi b/examples/HelloWorld/OdtHelloWorld.lpi index cb56ecf..bd9012e 100644 --- a/examples/HelloWorld/OdtHelloWorld.lpi +++ b/examples/HelloWorld/OdtHelloWorld.lpi @@ -25,7 +25,7 @@ <CompilerOptions> <Version Value="11"/> <Target> - <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/OdtHelloWorld"/> + <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> diff --git a/examples/ImageInsert/ImageInsert.lpi b/examples/ImageInsert/ImageInsert.lpi index e2490c5..ec3258d 100644 --- a/examples/ImageInsert/ImageInsert.lpi +++ b/examples/ImageInsert/ImageInsert.lpi @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="9"/> + <Version Value="12"/> <General> <Flags> <MainUnitHasCreateFormStatements Value="False"/> <MainUnitHasTitleStatement Value="False"/> + <CompatibilityMode Value="True"/> </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="ImageInsert"/> <UseAppBundle Value="False"/> <ResourceType Value="res"/> @@ -16,9 +16,6 @@ <i18n> <EnableI18N LFM="False"/> </i18n> - <VersionInfo> - <StringTable ProductVersion=""/> - </VersionInfo> <BuildModes Count="1"> <Item1 Name="Default" Default="True"/> </BuildModes> @@ -26,9 +23,10 @@ <Version Value="2"/> </PublishOptions> <RunParams> - <local> - <FormatVersion Value="1"/> - </local> + <FormatVersion Value="2"/> + <Modes Count="1"> + <Mode0 Name="default"/> + </Modes> </RunParams> <RequiredPackages Count="1"> <Item1> @@ -39,7 +37,6 @@ <Unit0> <Filename Value="ImageInsert.lpr"/> <IsPartOfProject Value="True"/> - <UnitName Value="ImageInsert"/> </Unit0> </Units> </ProjectOptions> @@ -52,6 +49,11 @@ <IncludeFiles Value="$(ProjOutDir)"/> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> + <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> + </Linking> </CompilerOptions> <Debugging> <Exceptions Count="3"> diff --git a/examples/ImageInsert/ImageInsert.lpr b/examples/ImageInsert/ImageInsert.lpr index 8ad4a93..087ed2b 100644 --- a/examples/ImageInsert/ImageInsert.lpr +++ b/examples/ImageInsert/ImageInsert.lpr @@ -24,13 +24,37 @@ program ImageInsert; uses - classes, odf_types, base64; + classes, odf_types, base64,SysUtils; const cStyle = 'Standard'; - cInputFile = '/tmp/image1.png'; - cOutputFile = '/tmp/output.fodt'; + cInputFile = 'image1.png'; + cOutputFile = 'ShowImage.fodt'; + cOutPut = 'output'; + +var + FDatapath: string; + +procedure Init; + +var + i: integer; +begin + if (ParamStr(1) <> '') and DirectoryExists(ParamStr(1)) then + FDatapath := ParamStr(1) + else + begin + FDatapath := cOutPut; + for i := 0 to 3 do + if DirectoryExists(FDatapath) then + break + else + FDatapath := '..' + DirectorySeparator + FDatapath; + end; + Randomize; +end; + function EncodeStreamBase64(AInputStream: TStream):String; var @@ -59,6 +83,7 @@ function EncodeStreamBase64(AInputStream: TStream):String; fs: TFileStream; s: string; begin + Init(); doc:=TOdfTextDocument.Create; doc.AddParagraph(cStyle).TextContent:='p1'; @@ -68,14 +93,14 @@ function EncodeStreamBase64(AInputStream: TStream):String; eDrawFrame.SetAttributes( [oatDrawStyleName, oatDrawName, oatTextAnchorType, oatSvgWidth, oatSvgHeight, oatDrawZIndex], - ['fr1', 'Image1', 'paragraph', '5.80in', '3.6in', '0']); + ['fr1', 'Image1', 'paragraph', '3.60in', '5.8in', '0']); eDrawImage:=eDrawFrame.AppendOdfElement(oetDrawImage); eBinaryData:=eDrawImage.AppendOdfElement(oetOfficeBinaryData); try - fs:=TFileStream.Create(cInputFile, fmOpenRead); + fs:=TFileStream.Create(FDatapath + DirectorySeparator + cInputFile, fmOpenRead); s:=EncodeStreamBase64(fs); finally fs.Free; @@ -86,7 +111,7 @@ function EncodeStreamBase64(AInputStream: TStream):String; doc.AddParagraph(cStyle).TextContent:='p2'; try - doc.SaveToSingleXml(cOutputFile); + doc.SaveToSingleXml(FDatapath + DirectorySeparator + cOutputFile); finally doc.Free; diff --git a/examples/ImageInsert/ImageInsert.lps b/examples/ImageInsert/ImageInsert.lps index a976f7e..66cb455 100644 --- a/examples/ImageInsert/ImageInsert.lps +++ b/examples/ImageInsert/ImageInsert.lps @@ -1,15 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectSession> - <Version Value="9"/> + <Version Value="12"/> <BuildModes Active="Default"/> - <Units Count="3"> + <Units Count="4"> <Unit0> <Filename Value="ImageInsert.lpr"/> <IsPartOfProject Value="True"/> <IsVisibleTab Value="True"/> - <TopLine Value="66"/> - <CursorPos X="25" Y="93"/> + <TopLine Value="22"/> + <CursorPos X="41" Y="29"/> <UsageCount Value="20"/> <Loaded Value="True"/> </Unit0> @@ -26,16 +26,139 @@ <TopLine Value="148"/> <UsageCount Value="10"/> </Unit2> + <Unit3> + <Filename Value="../ImprovedDemo/ImprovedDemo.lpr"/> + <WindowIndex Value="1"/> + <CursorPos X="73" Y="266"/> + <UsageCount Value="10"/> + <Loaded Value="True"/> + </Unit3> </Units> - <JumpHistory Count="2" HistoryIndex="1"> + <JumpHistory Count="30" HistoryIndex="29"> <Position1> <Filename Value="ImageInsert.lpr"/> - <Caret Line="8" Column="26"/> + <Caret Line="88" TopLine="59"/> </Position1> <Position2> <Filename Value="ImageInsert.lpr"/> - <Caret Line="63" Column="33" TopLine="43"/> + <Caret Line="89" TopLine="59"/> </Position2> + <Position3> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="91" TopLine="59"/> + </Position3> + <Position4> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="93" TopLine="59"/> + </Position4> + <Position5> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="95" TopLine="59"/> + </Position5> + <Position6> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="93" TopLine="59"/> + </Position6> + <Position7> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="94" TopLine="59"/> + </Position7> + <Position8> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="93" TopLine="59"/> + </Position8> + <Position9> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="97" TopLine="59"/> + </Position9> + <Position10> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="99" TopLine="59"/> + </Position10> + <Position11> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="101" TopLine="59"/> + </Position11> + <Position12> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="102" TopLine="59"/> + </Position12> + <Position13> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="105" TopLine="62"/> + </Position13> + <Position14> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="106" TopLine="63"/> + </Position14> + <Position15> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="102" Column="50" TopLine="15"/> + </Position15> + <Position16> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="86" Column="13" TopLine="43"/> + </Position16> + <Position17> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="103" TopLine="70"/> + </Position17> + <Position18> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="104" TopLine="70"/> + </Position18> + <Position19> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="102" TopLine="70"/> + </Position19> + <Position20> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="106" TopLine="70"/> + </Position20> + <Position21> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="107" TopLine="70"/> + </Position21> + <Position22> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="109" TopLine="70"/> + </Position22> + <Position23> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="111" TopLine="70"/> + </Position23> + <Position24> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="113" TopLine="70"/> + </Position24> + <Position25> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="114" TopLine="70"/> + </Position25> + <Position26> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="113" TopLine="70"/> + </Position26> + <Position27> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="117" TopLine="70"/> + </Position27> + <Position28> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="118" TopLine="70"/> + </Position28> + <Position29> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="85" TopLine="70"/> + </Position29> + <Position30> + <Filename Value="ImageInsert.lpr"/> + <Caret Line="96" Column="53" TopLine="70"/> + </Position30> </JumpHistory> + <RunParams> + <FormatVersion Value="2"/> + <Modes ActiveMode="default"/> + </RunParams> </ProjectSession> </CONFIG> diff --git a/examples/ImprovedDemo/ImprovedDemo.lpi b/examples/ImprovedDemo/ImprovedDemo.lpi index 8e53765..cfcdd38 100644 --- a/examples/ImprovedDemo/ImprovedDemo.lpi +++ b/examples/ImprovedDemo/ImprovedDemo.lpi @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <PathDelim Value="\"/> <General> <Flags> <MainUnitHasCreateFormStatements Value="False"/> <MainUnitHasTitleStatement Value="False"/> <MainUnitHasScaledStatement Value="False"/> + <CompatibilityMode Value="True"/> </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="ImprovedDemo"/> <ResourceType Value="res"/> <UseXPManifest Value="True"/> @@ -42,6 +42,9 @@ <StackChecks Value="True"/> </Checks> <VerifyObjMethodCallValidity Value="True"/> + <Optimizations> + <OptimizationLevel Value="0"/> + </Optimizations> </CodeGeneration> <Linking> <Debugging> @@ -95,7 +98,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="2"> <Item1> @@ -116,13 +118,16 @@ <Version Value="11"/> <PathDelim Value="\"/> <Target> - <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\ImprovedDemo"/> + <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\$NameOnly($Project(Infofile))"/> </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> <UnitOutputDirectory Value="..\..\bin\$(TargetCPU)-$(TargetOS)\units"/> </SearchPaths> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/examples/ImprovedDemo/ImprovedDemo.lpr b/examples/ImprovedDemo/ImprovedDemo.lpr index a2ed133..b84972c 100644 --- a/examples/ImprovedDemo/ImprovedDemo.lpr +++ b/examples/ImprovedDemo/ImprovedDemo.lpr @@ -18,208 +18,260 @@ COutout2 = 'ShowLinks.odt'; COutout3 = 'ShowFonts.odt'; COutout4 = 'ShowColors.fodt'; + COutout5 = 'ShowTabs.odt'; COutoutAll = 'AllParts.odt'; cStyleName = 'Standard'; COutPut = 'output'; -procedure Init; + procedure Init; -var - i: integer; -begin - if ParamStr(1) <> '' - then - FDatapath := ParamStr(1) - else + var + i: integer; begin - FDatapath := COutPut; - for i := 0 to 2 do - if DirectoryExists(FDatapath) then - break - else - FDatapath := '..' + DirectorySeparator + FDatapath; + if (ParamStr(1) <> '') and DirectoryExists(ParamStr(1)) then + FDatapath := ParamStr(1) + else + begin + FDatapath := COutPut; + for i := 0 to 2 do + if DirectoryExists(FDatapath) then + break + else + FDatapath := '..' + DirectorySeparator + FDatapath; + end; + Randomize; + FOdfTextDocument := TOdfTextDocument.Create; end; - FOdfTextDocument := TOdfTextDocument.Create; -end; + procedure HeadingandStyles; + var + i: integer; + lPara: TOdfParagraph; -procedure HeadingandStyles; -var - lFsi: TFontStyle; - lFS: TFontStyles; - i: integer; - lText: string; - lPara: TOdfParagraph; + begin + FOdfTextDocument.AddHeadline(2).AppendText('Headlines'); + for i := 3 to 8 do + FOdfTextDocument.AddHeadline(i).AppendText('Headline ' + IntToStr(i)); + FOdfTextDocument.AddHeadline(2).AppendText('Some Textstyles'); + lPara := FOdfTextDocument.AddParagraph(cStyleName); + lpara.AddSpan('Here (bold)', [fsBold]); + lpara.AddLineBreak; + lpara.AddSpan('are (italic)', [fsItalic]); + lPara := FOdfTextDocument.AddParagraph(cStyleName); + lpara.AddSpan('some (underline)', [fsUnderline]); + lpara.AddLineBreak; + lpara.AddSpan('Styles (Strikeout)', [fsStrikeOut]); + end; -begin - FOdfTextDocument.AddHeadline(2).AppendText('Headlines'); - for i := 3 to 8 do - FOdfTextDocument.AddHeadline(i).AppendText('Headline ' + IntToStr(i)); - FOdfTextDocument.AddHeadline(2).AppendText('Some Textstyles'); - lPara := FOdfTextDocument.AddParagraph(cStyleName); - lpara.AddSpan('Here (bold)', [fsBold]); - lpara.AppendOdfElement(oetTextLineBreak); - lpara.AddSpan('are (italic)', [fsItalic]); - lPara := FOdfTextDocument.AddParagraph(cStyleName); - lpara.AddSpan('some (underline)', [fsUnderline]); - lpara.AppendOdfElement(oetTextLineBreak); - lpara.AddSpan('Styles (Strikeout)', [fsStrikeOut]); -end; - -procedure FontsDisplay; -var - lFirstChar: string; - lSpan: TSpan; - lFont: string; - aFont: TFont; - lPara: TOdfParagraph; + procedure FontsDisplay; + var + lFirstChar: string; + lSpan: TSpan; + lFont: string; + aFont: TFont; + lPara: TOdfParagraph; -begin - FOdfTextDocument.AddHeadline(2).AppendText('All Fonts'); - lFirstChar := '!'; - aFont := TFont.Create; - try - for lFont in Screen.Fonts do - begin - if copy(lfont, 1, 1) <> lFirstChar then + begin + FOdfTextDocument.AddHeadline(2).AppendText('All Fonts'); + lFirstChar := '!'; + aFont := TFont.Create; + try + for lFont in Screen.Fonts do begin - FOdfTextDocument.AddHeadline(4).AppendText(copy(lfont, 1, 1)); - lFirstChar := copy(lfont, 1, 1); + if copy(lfont, 1, 1) <> lFirstChar then + begin + FOdfTextDocument.AddHeadline(4).AppendText(copy(lfont, 1, 1)); + lFirstChar := copy(lfont, 1, 1); + end; + lPara := FOdfTextDocument.AddParagraph(cStyleName); + aFont.Name := lFont; + lpara.AddSpan('This is Font: "' + lFont + '"', []); + lPara.AddLineBreak; + lSpan := lpara.AddSpan('ABCDEF abcdef 12345', aFont, FOdfTextDocument); + lSpan.AddLineBreak; + lSpan.AppendText('The quick, brown fox jumps over the lazy dog.'); + lSpan.AddLineBreak; end; - lPara := FOdfTextDocument.AddParagraph(cStyleName); - aFont.Name := lFont; - lpara.AddSpan('This is Font: "' + lFont + '"', []); - lPara.AppendOdfElement(oetTextLineBreak); - lSpan := lpara.AddSpan('ABCDEF abcdef 12345', aFont, FOdfTextDocument); - lSpan.AppendOdfElement(oetTextLineBreak); - lSpan.AppendText('The quick, brown fox jumps over the lazy dog.'); - lSpan.AppendOdfElement(oetTextLineBreak); + finally + FreeAndNil(aFont) end; - finally - FreeAndNil(aFont) - end; -end; + end; -procedure StylesBookmarkAndLinks; + procedure StylesBookmarkAndLinks; -const - cTextStyles: array[TFontStyle] of string = - ('bold', 'italic', 'underlined', 'striked out'); + const + cTextStyles: array[TFontStyle] of string = + ('bold', 'italic', 'underlined', 'striked out'); -var - i: integer; - lText: string; - lPara: TOdfParagraph; - lFsi: TFontStyle; - lFS: TFontStyles; -begin - FOdfTextDocument.AddHeadline(2).AppendText('All Textstyles'); - for i := 0 to 15 do - begin - lFS := []; - lText := ''; - for lFsi in TFontStyle do - if (i and (1 shl Ord(lFsi))) <> 0 then + var + i: integer; + lText: string; + lPara: TOdfParagraph; + lFsi: TFontStyle; + lFS: TFontStyles; + begin + FOdfTextDocument.AddHeadline(2).AppendText('All Textstyles'); + for i := 0 to 15 do + begin + lFS := []; + lText := ''; + for lFsi in TFontStyle do + if (i and (1 shl Ord(lFsi))) <> 0 then + begin + lfs += [lfsi]; + if ltext = '' then + lText := cTextStyles[lfsi] + else + if ltext.IndexOf(' and ') >= 0 then + ltext := cTextStyles[lfsi] + ', ' + lText + else + ltext := cTextStyles[lfsi] + ' and ' + lText; + end; + if ltext = '' then + lText := 'This text is normal.' + else + lText := 'This text is ' + lText + '.'; + lPara := FOdfTextDocument.AddParagraph(cStyleName); + lPara.AddBookmark(lText, lFS, 'F' + IntToStr(i)); + end; + FOdfTextDocument.AddHeadline(2).AppendText('Hyperlinks ...'); + for i := 0 to 15 do + begin + lPara := FOdfTextDocument.AddParagraph(cStyleName); + lPara.AddLink('Go to ', [], 'F' + IntToStr(i)).AddSpan(IntToStr(i),[fsBold]); + end; + end; + + procedure TextColors; + var + i: integer; + lText: string; + lPara: TOdfParagraph; + aFont: TFont; + w: ValReal; + begin + FOdfTextDocument.AddHeadline(2).AppendText('Textcolors'); + lText := + 'Bring more color into your documents, because it brightens your life, and touches your soul.'; + lPara := FOdfTextDocument.AddParagraph(cStyleName); + aFont := TFont.Create; + aFont.Name := 'default'; + try + i := 1; + while i <= length(lText) do begin - lfs += [lfsi]; - if ltext = '' then - lText := cTextStyles[lfsi] - else - if ltext.IndexOf(' and ') >= 0 then - ltext := cTextStyles[lfsi] + ', ' + lText + w := i / length(lText) * pi * 2; + afont.Color := + RGBToColor(96 + trunc(cos(w) * 96), 96 + + trunc(sin(w - pi / 3) * 96), 96 + trunc(sin(w + 4 * pi / 3) * 96)); + if lText[i] <> 'ü'[1] then + lpara.AddSpan(lText[i], aFont, FOdfTextDocument) else - ltext := cTextStyles[lfsi] + ' and ' + lText; + begin + lpara.AddSpan(copy(lText, i, 2), aFont, FOdfTextDocument); + Inc(i); + end; + Inc(i); end; - if ltext = '' then - lText := 'This text is normal.' - else - lText := 'This text is ' + lText + '.'; - lPara := FOdfTextDocument.AddParagraph(cStyleName); - lPara.AddBookmark(lText, lFS, 'F' + IntToStr(i)); - end; - FOdfTextDocument.AddHeadline(2).AppendText('Hyperlinks ...'); - for i := 0 to 15 do - begin - lPara := FOdfTextDocument.AddParagraph(cStyleName); - lPara.AddLink('Go to ' + IntToStr(i), [], 'F' + IntToStr(i)); - end; -end; + finally; + FreeAndNil(aFont) + end; + end; -procedure TextColors; -var - i: integer; - lText: string; - lPara: TOdfParagraph; - aFont: TFont; - w: ValReal; -begin - FOdfTextDocument.AddHeadline(2).AppendText('Textcolors'); - lText := - 'Bring more color into your life, because it brightens your life, and touches your soul.'; - lPara := FOdfTextDocument.AddParagraph(cStyleName); - aFont := TFont.Create; - aFont.Name := 'default'; - try - i := 1; - while i <= length(lText) do - begin - w := i / length(lText) * pi * 2; - afont.Color := - RGBToColor(96 + trunc(cos(w) * 96), 96 + trunc(sin(w - pi / 3) * 96), - 96 + trunc(sin(w + 4 * pi / 3) * 96)); - if lText[i] <> 'ü'[1] then - lpara.AddSpan(lText[i], aFont, FOdfTextDocument) + procedure TextWithTabulators; + + + function RandomText(aMaxLen: integer): string; + + var + lLen, i: integer; + + begin + Result := ''; + lLen := trunc(sqrt(Random + 1e-30) * aMaxlen); + for i := 1 to lLen do + if Random < 0.5 then + Result += 'aeiouy'[1 + Random(6)] + else + Result += char(Ord('a') + Random(26)); + end; + + var + i, j: integer; + lPara: TOdfParagraph; + + begin + FOdfTextDocument.AddHeadline(2).AppendText('Tabulators'); + // A Table-Headline + lPara := FOdfTextDocument.AddParagraph(cStyleName); + for i := 0 to 5 do + if i = 0 then + lpara.AddSpan('No.', [fsBold]) else begin - lpara.AddSpan(copy(lText, i, 2), aFont, FOdfTextDocument); - Inc(i); + lpara.AddTab([]); + lpara.AddSpan(RandomText(10), [fsBold]); end; - Inc(i); + for j := 1 to 20 do + begin + lPara := FOdfTextDocument.AddParagraph(cStyleName); + for i := 0 to 5 do + if i = 0 then + lpara.AddSpan(IntToStr(j) + '.', [fsItalic]) + else + begin + lpara.AddTab([]); + lpara.AddSpan(RandomText(10), []); + end; end; - finally; - FreeAndNil(aFont) - end; -end; + end; -procedure Execute; -begin - FOdfTextDocument.Clear; - FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); - HeadingandStyles; - FOdfTextDocument.SaveToSingleXml(FDatapath + DirectorySeparator + COutout1); - FOdfTextDocument.Clear; - - FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); - StylesBookmarkAndLinks; - FOdfTextDocument.SaveToZipFile(FDatapath + DirectorySeparator + COutout2); - - FOdfTextDocument.Clear; - FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); - FontsDisplay; - FOdfTextDocument.SaveToZipFile(FDatapath + DirectorySeparator + COutout3); - - FOdfTextDocument.Clear; - FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); - TextColors; - FOdfTextDocument.SaveToSingleXml(FDatapath + DirectorySeparator + COutout4); - FOdfTextDocument.Clear; - - {Do all} - FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); - HeadingandStyles; - StylesBookmarkAndLinks; - TextColors; - FontsDisplay; - FOdfTextDocument.SaveToZipFile(FDatapath + DirectorySeparator + COutoutAll); - -end; - -procedure Done; + procedure Execute; -begin - FreeAndNil(FOdfTextDocument); -end; + begin + FOdfTextDocument.Clear; + FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); + HeadingandStyles; + FOdfTextDocument.SaveToSingleXml(FDatapath + DirectorySeparator + COutout1); + FOdfTextDocument.Clear; + + FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); + StylesBookmarkAndLinks; + FOdfTextDocument.SaveToZipFile(FDatapath + DirectorySeparator + COutout2); + + FOdfTextDocument.Clear; + FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); + FontsDisplay; + FOdfTextDocument.SaveToZipFile(FDatapath + DirectorySeparator + COutout3); + + FOdfTextDocument.Clear; + FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); + TextColors; + FOdfTextDocument.SaveToSingleXml(FDatapath + DirectorySeparator + COutout4); + + FOdfTextDocument.Clear; + FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); + TextWithTabulators; + FOdfTextDocument.SaveToZipFile(FDatapath + DirectorySeparator + COutout5); + + FOdfTextDocument.Clear; + {Do all} + FOdfTextDocument.AddHeadline(1).AppendText('Demonstration of fpOdf'); + HeadingandStyles; + StylesBookmarkAndLinks; + TextColors; + TextWithTabulators; + FontsDisplay; + FOdfTextDocument.SaveToZipFile(FDatapath + DirectorySeparator + COutoutAll); + + end; + + procedure Done; + + begin + FreeAndNil(FOdfTextDocument); + end; begin Init; diff --git a/examples/ImprovedDemo/ImprovedDemo.res b/examples/ImprovedDemo/ImprovedDemo.res index 0ad004b..631a2cc 100644 Binary files a/examples/ImprovedDemo/ImprovedDemo.res and b/examples/ImprovedDemo/ImprovedDemo.res differ diff --git a/examples/SearchAndReplace/OdfSearchAndReplace.lpi b/examples/SearchAndReplace/OdfSearchAndReplace.lpi index bd0a1b1..bcb7f39 100644 --- a/examples/SearchAndReplace/OdfSearchAndReplace.lpi +++ b/examples/SearchAndReplace/OdfSearchAndReplace.lpi @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="10"/> + <Version Value="11"/> <General> <Flags> <MainUnitHasCreateFormStatements Value="False"/> @@ -21,9 +21,10 @@ <Version Value="2"/> </PublishOptions> <RunParams> - <local> - <FormatVersion Value="1"/> - </local> + <FormatVersion Value="2"/> + <Modes Count="1"> + <Mode0 Name="default"/> + </Modes> </RunParams> <RequiredPackages Count="1"> <Item1> @@ -40,11 +41,11 @@ <CompilerOptions> <Version Value="11"/> <Target> - <Filename Value="OdfSearchAndReplace"/> + <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> - <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> + <UnitOutputDirectory Value="../../bin/$(TargetCPU)-$(TargetOS)/units"/> </SearchPaths> </CompilerOptions> <Debugging> diff --git a/examples/SearchAndReplace/OdfSearchAndReplace.lps b/examples/SearchAndReplace/OdfSearchAndReplace.lps index a8da9f5..b46198e 100644 --- a/examples/SearchAndReplace/OdfSearchAndReplace.lps +++ b/examples/SearchAndReplace/OdfSearchAndReplace.lps @@ -1,18 +1,28 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectSession> - <Version Value="10"/> + <PathDelim Value="\"/> + <Version Value="11"/> <BuildModes Active="Default"/> <Units Count="1"> <Unit0> <Filename Value="OdfSearchAndReplace.pas"/> <IsPartOfProject Value="True"/> <IsVisibleTab Value="True"/> - <TopLine Value="62"/> - <CursorPos X="13" Y="69"/> + <TopLine Value="22"/> + <CursorPos Y="44"/> <UsageCount Value="20"/> <Loaded Value="True"/> </Unit0> </Units> + <JumpHistory Count="1"> + <Position1> + <Filename Value="OdfSearchAndReplace.pas"/> + </Position1> + </JumpHistory> + <RunParams> + <FormatVersion Value="2"/> + <Modes Count="0" ActiveMode="default"/> + </RunParams> </ProjectSession> </CONFIG> diff --git a/examples/SearchAndReplace/OdfSearchAndReplace.pas b/examples/SearchAndReplace/OdfSearchAndReplace.pas index 9769414..253af10 100644 --- a/examples/SearchAndReplace/OdfSearchAndReplace.pas +++ b/examples/SearchAndReplace/OdfSearchAndReplace.pas @@ -31,17 +31,17 @@ cName = 'Name'; cAge = 'Age'; - { TODO : Windows Path } + {$ifndef Windows} cOutputDir = '/tmp/'; - + {$else} + cOutputDir = '..\..\output\'; + {$endif} cOutputFile = cOutputDir + 'ReplaceFieldsExample.fodt'; var doc: TOdfTextDocument; p: TOdfParagraph; - e: TOdfElement; - procedure AddField(AFieldName, ADescription: string); var e: TOdfElement; diff --git a/examples/TableInsert/TableInsert.lpi b/examples/TableInsert/TableInsert.lpi index 5b2f72c..60963e8 100644 --- a/examples/TableInsert/TableInsert.lpi +++ b/examples/TableInsert/TableInsert.lpi @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="9"/> + <Version Value="12"/> <General> <Flags> <MainUnitHasCreateFormStatements Value="False"/> <MainUnitHasTitleStatement Value="False"/> + <CompatibilityMode Value="True"/> </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="TableInsert"/> <UseAppBundle Value="False"/> <ResourceType Value="res"/> @@ -16,9 +16,6 @@ <i18n> <EnableI18N LFM="False"/> </i18n> - <VersionInfo> - <StringTable ProductVersion=""/> - </VersionInfo> <BuildModes Count="1"> <Item1 Name="Default" Default="True"/> </BuildModes> @@ -26,9 +23,10 @@ <Version Value="2"/> </PublishOptions> <RunParams> - <local> - <FormatVersion Value="1"/> - </local> + <FormatVersion Value="2"/> + <Modes Count="1"> + <Mode0 Name="default"/> + </Modes> </RunParams> <RequiredPackages Count="1"> <Item1> @@ -39,7 +37,6 @@ <Unit0> <Filename Value="TableInsert.lpr"/> <IsPartOfProject Value="True"/> - <UnitName Value="TableInsert"/> </Unit0> </Units> </ProjectOptions> @@ -52,6 +49,11 @@ <IncludeFiles Value="$(ProjOutDir)"/> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> + <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> + </Linking> </CompilerOptions> <Debugging> <Exceptions Count="3"> diff --git a/examples/TableInsert/TableInsert.lpr b/examples/TableInsert/TableInsert.lpr index 99fad44..bcbd9c2 100644 --- a/examples/TableInsert/TableInsert.lpr +++ b/examples/TableInsert/TableInsert.lpr @@ -24,11 +24,13 @@ program TableInsert; uses - Classes, sysutils, odf_types; + Classes, SysUtils, odf_types; const cStyle = 'Standard'; - cOutputFile = '/tmp/output.fodt'; + cOutputFile = 'ShowTable.fodt'; + cOutPut = 'output'; + cTableStyle = 'Table1'; cTableColumnStyle = 'Table1.A'; cTableCellStyle = 'Table1.A'; @@ -39,6 +41,9 @@ cColCount = 3; +var + FDatapath: string; + var doc: TOdfTextDocument; p: TOdfParagraph; @@ -48,6 +53,25 @@ i, j: integer; +procedure Init; + +var + i: integer; +begin + if (ParamStr(1) <> '') and DirectoryExists(ParamStr(1)) then + FDatapath := ParamStr(1) + else + begin + FDatapath := cOutPut; + for i := 0 to 3 do + if DirectoryExists(FDatapath) then + break + else + FDatapath := '..' + DirectorySeparator + FDatapath; + end; + Randomize; +end; + procedure CreateStyles; begin e:=doc.CreateStyle(cTableStyle, sfvTble); @@ -76,6 +100,7 @@ procedure CreateStyles; end; begin + Init(); doc:=TOdfTextDocument.Create; CreateStyles; @@ -117,7 +142,7 @@ procedure CreateStyles; doc.AddParagraph(cStyle).TextContent:='p2'; try - doc.SaveToSingleXml(cOutputFile); + doc.SaveToSingleXml(FDatapath + DirectorySeparator + cOutputFile); finally doc.Free; diff --git a/examples/TableInsert/TableInsert.lps b/examples/TableInsert/TableInsert.lps index 2669014..ed98253 100644 --- a/examples/TableInsert/TableInsert.lps +++ b/examples/TableInsert/TableInsert.lps @@ -1,20 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectSession> - <Version Value="9"/> + <Version Value="12"/> <BuildModes Active="Default"/> - <Units Count="3"> + <Units Count="5"> <Unit0> <Filename Value="TableInsert.lpr"/> <IsPartOfProject Value="True"/> <IsVisibleTab Value="True"/> - <CursorPos Y="66"/> + <CursorPos X="35" Y="27"/> <UsageCount Value="20"/> <Loaded Value="True"/> </Unit0> <Unit1> <Filename Value="../../odf_types.pas"/> - <UnitName Value="odf_types"/> <EditorIndex Value="-1"/> <TopLine Value="1102"/> <CursorPos X="22" Y="1114"/> @@ -27,6 +26,21 @@ <CursorPos X="33" Y="39"/> <UsageCount Value="10"/> </Unit2> + <Unit3> + <Filename Value="../ImprovedDemo/ImprovedDemo.lpr"/> + <EditorIndex Value="-1"/> + <WindowIndex Value="1"/> + <CursorPos X="38" Y="24"/> + <UsageCount Value="10"/> + </Unit3> + <Unit4> + <Filename Value="../ImageInsert/ImageInsert.lpr"/> + <WindowIndex Value="1"/> + <TopLine Value="71"/> + <CursorPos X="61" Y="114"/> + <UsageCount Value="10"/> + <Loaded Value="True"/> + </Unit4> </Units> <JumpHistory Count="4" HistoryIndex="3"> <Position1> @@ -46,5 +60,9 @@ <Caret Line="70" Column="52" TopLine="56"/> </Position4> </JumpHistory> + <RunParams> + <FormatVersion Value="2"/> + <Modes ActiveMode="default"/> + </RunParams> </ProjectSession> </CONFIG> diff --git a/examples/fpcTestfpOdf/fpcTestfpOdf.lpi b/examples/fpcTestfpOdf/fpcTestfpOdf.lpi index 4858b26..c9d9649 100644 --- a/examples/fpcTestfpOdf/fpcTestfpOdf.lpi +++ b/examples/fpcTestfpOdf/fpcTestfpOdf.lpi @@ -1,11 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <PathDelim Value="\"/> <General> + <Flags> + <CompatibilityMode Value="True"/> + </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="fpcTestfpOdf"/> <ResourceType Value="res"/> <UseXPManifest Value="True"/> @@ -22,7 +24,7 @@ </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> - <OtherUnitFiles Value="."/> + <OtherUnitFiles Value=".;..\..\test"/> <UnitOutputDirectory Value="..\..\bin\$(TargetCPU)-$(TargetOS)\units"/> </SearchPaths> <Parsing> @@ -63,7 +65,7 @@ </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> - <OtherUnitFiles Value="."/> + <OtherUnitFiles Value=".;..\..\test"/> <UnitOutputDirectory Value="..\..\bin\$(TargetCPU)-$(TargetOS)\units"/> </SearchPaths> <Parsing> @@ -97,7 +99,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="4"> <Item1> @@ -113,7 +114,7 @@ <PackageName Value="FCL"/> </Item4> </RequiredPackages> - <Units Count="2"> + <Units Count="6"> <Unit0> <Filename Value="fpcTestfpOdf.lpr"/> <IsPartOfProject Value="True"/> @@ -122,20 +123,39 @@ <Filename Value="tst_fpOdfBasics.pas"/> <IsPartOfProject Value="True"/> </Unit1> + <Unit2> + <Filename Value="..\..\test\CharacterContentTest.pas"/> + <IsPartOfProject Value="True"/> + </Unit2> + <Unit3> + <Filename Value="..\..\test\ElementFunctionsTests.pas"/> + <IsPartOfProject Value="True"/> + </Unit3> + <Unit4> + <Filename Value="..\..\test\SearchTest.pas"/> + <IsPartOfProject Value="True"/> + </Unit4> + <Unit5> + <Filename Value="..\..\test\TestStringPrep.pas"/> + <IsPartOfProject Value="True"/> + </Unit5> </Units> </ProjectOptions> <CompilerOptions> <Version Value="11"/> <PathDelim Value="\"/> <Target> - <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\fpcTestfpOdf"/> + <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\$NameOnly($Project(Infofile))"/> </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> - <OtherUnitFiles Value="."/> + <OtherUnitFiles Value=".;..\..\test"/> <UnitOutputDirectory Value="..\..\bin\$(TargetCPU)-$(TargetOS)\units"/> </SearchPaths> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/examples/fpcTestfpOdf/fpcTestfpOdf.lpr b/examples/fpcTestfpOdf/fpcTestfpOdf.lpr index 950aab3..620e45d 100644 --- a/examples/fpcTestfpOdf/fpcTestfpOdf.lpr +++ b/examples/fpcTestfpOdf/fpcTestfpOdf.lpr @@ -3,7 +3,7 @@ {$mode objfpc}{$H+} uses - Interfaces, Forms, GuiTestRunner, tst_fpOdfBasics; + Interfaces, Forms, GuiTestRunner, tst_fpOdfBasics, CharacterContentTest, ElementFunctionsTests, SearchTest, TestStringPrep; {$R *.res} diff --git a/examples/fpcTestfpOdf/fpcTestfpOdf.res b/examples/fpcTestfpOdf/fpcTestfpOdf.res index f6e8499..5565379 100644 Binary files a/examples/fpcTestfpOdf/fpcTestfpOdf.res and b/examples/fpcTestfpOdf/fpcTestfpOdf.res differ diff --git a/examples/fpcTestfpOdf/tst_fpOdfBasics.pas b/examples/fpcTestfpOdf/tst_fpOdfBasics.pas index fa77fa0..b22d5c6 100644 --- a/examples/fpcTestfpOdf/tst_fpOdfBasics.pas +++ b/examples/fpcTestfpOdf/tst_fpOdfBasics.pas @@ -19,7 +19,7 @@ TTestfpOdf= class(TTestCase) procedure SetUp; override; procedure TearDown; override; published - procedure TestHookUp; + procedure TestSetUp; public constructor Create; override; property OdfTextDocument:TOdfTextDocument read FOdfTextDocument; @@ -29,7 +29,7 @@ implementation const CDataPath = 'output'; -procedure TTestfpOdf.TestHookUp; +procedure TTestfpOdf.TestSetUp; begin CheckNotNull(OdfTextDocument,'OdfDocument is assigned'); CheckNotNull(OdfTextDocument.Text,'OdfDocument.Text is assigned'); diff --git a/examples/readme.md b/examples/readme.md new file mode 100644 index 0000000..100a47f --- /dev/null +++ b/examples/readme.md @@ -0,0 +1,170 @@ +# Examples for fpOdf + +## HelloWorld +Simply writes "Hello world" in a document. +```pascal +with TOdfTextDocument.Create do + begin + AddParagraph(cStyleName).TextContent:='Hello World!'; + SaveToZipFile(cOutput); + Free; + end; +``` +## BoldText +Does some simple highlighting<br /> +<img width="270" alt="some bold text" src="../Resources/BoldText.PNG"><br /> +[[BoldText.fodt]](../Resources/BoldText.fodt) +```pascal +p:=AddParagraph(cParagraphStyle); +p.TextContent:='A '; +p.AddSpan('bold', [fsBold]); +p.AddSpan(' text', []); +``` + +## InsertImage +Example how to insert an image to the document<br /> +<img width="270" alt="some image text" src="../Resources/ShowImage.PNG"><br /> +[[ShowImage.fodt]](../Resources/output.fodt) +```pascal +p:=doc.AddParagraph(cStyle); +eDrawFrame:=p.AppendOdfElement(oetDrawFrame); +eDrawFrame.SetAttributes( + [oatDrawStyleName, oatDrawName, oatTextAnchorType, oatSvgWidth, oatSvgHeight, oatDrawZIndex], + ['fr1', 'Image1', 'paragraph', '3.60in', '5.8in', '0']); +eDrawImage:=eDrawFrame.AppendOdfElement(oetDrawImage); +eBinaryData:=eDrawImage.AppendOdfElement(oetOfficeBinaryData); +fs := TFilestream.Create("SomeImage.png",fmOpenRead); +eBinaryData.TextContent:=EncodeStreamBase64(fs); +``` +## TableInsert +<img width="270" alt="some image text" src="../Resources/ShowTable.PNG"><br /> +[[ShowTable.fodt]](../Resources/ShowTable.fodt) +```pascal +p:=doc.AddParagraph(cStyle); + +//Create Table +vTable:=doc.CreateOdfElement(oetTableTable); +vTable.SetAttributes([oatTableName, oatTableStyleName], ['Table1', cTableStyle]); + +//Create table column description. +e:=vTable.AppendOdfElement(oetTableTableColumn, oatTableStyleName, cTableColumnStyle); +e.SetAttribute(oatTableNumberColumnsRepeated, IntToStr(cColCount)); + +//create rows and cells +for i:=1 to cRowCount do +begin + vRow:=vTable.AppendOdfElement(oetTableTableRow); + + for j:=1 to cColCount do + begin + vCell:=vRow.AppendOdfElement(oetTableTableCell, oatTableStyleName, cTableCellStyle); + vCell.SetAttribute(oatOfficeValueType, 'string'); + + if i=j + then + s:=cTableCellStyle2 + else + s:=cStyle; + + t:=Format('%d%d', [i,j]); + vCell.AppendOdfElement(oetTextP, oatTextStyleName, s).TextContent:=t; + end; +end; + +doc.Text.AppendChild(vTable); +``` +## SearchAndReplace +<img width="270" alt="some image text" src="../Resources/ReplaceFieldsExample.PNG"><br /> +[[ReplaceFieldsExample.fodt]](../Resources/ReplaceFieldsExample.fodt) + +## Improved Demo +Demo to really show of the capability of fpOdf +[[AllParts.pdf]](../Resources/AllParts.pdf) + +### Styles +some styles like "Headings" "normal Text"<br/> +<img width="270" alt="some styles" src="../Resources/ShowStyles.PNG"><br /> +[[ShowStyles.fodt]](../Resources/ShowStyles.fodt) +```pascal +FOdfTextDocument.AddHeadline(2).AppendText('Headlines'); +for i := 3 to 8 do + FOdfTextDocument.AddHeadline(i).AppendText('Headline ' + IntToStr(i)); +FOdfTextDocument.AddHeadline(2).AppendText('Some Textstyles'); +lPara := FOdfTextDocument.AddParagraph(cStyleName); +lpara.AddSpan('Here (bold)', [fsBold]); +lpara.AddLineBreak; +lpara.AddSpan('are (italic)', [fsItalic]); +lPara := FOdfTextDocument.AddParagraph(cStyleName); +lpara.AddSpan('some (underline)', [fsUnderline]); +lpara.AddLineBreak; +lpara.AddSpan('Styles (Strikeout)', [fsStrikeOut]); +``` +### Links +some links and destinations<br/> +<img width="270" alt="some links" src="../Resources/ShowLinks.PNG"><br /> +[[ShowLinks.fodt]](../Resources/ShowLinks.fodt) + +### Color +some links and destinations<br/> +<img width="270" alt="some links" src="../Resources/ShowColor.PNG"><br /> +[[ShowColor.fodt]](../Resources/ShowColor.fodt) +```pascal +lText := 'Bring more color into your documents, because it brightens your life, and touches your soul.'; +lPara := FOdfTextDocument.AddParagraph(cStyleName); +aFont := TFont.Create; +aFont.Name := 'default'; +try + i := 1; + while i <= length(lText) do + begin + w := i / length(lText) * pi * 2; + afont.Color := + RGBToColor(96 + trunc(cos(w) * 96), 96 + + trunc(sin(w - pi / 3) * 96), 96 + trunc(sin(w + 4 * pi / 3) * 96)); + if lText[i] <> 'ü'[1] then // basic utf-8 decoding + lpara.AddSpan(lText[i], aFont, FOdfTextDocument) + else + begin + lpara.AddSpan(copy(lText, i, 2), aFont, FOdfTextDocument); + Inc(i); + end; + Inc(i); + end; +finally; + FreeAndNil(aFont) +end; +``` +### Tabs +insert tabs for formating<br/> +[[ShowTabs.fodt]](../Resources/ShowTabs.fodt) + +### Fonts +Use various fonts<br/> +see [[AllParts.pdf]](../Resources/AllParts.pdf) +```pascal +aFont := TFont.Create; +try + for lFont in Screen.Fonts do + begin + if copy(lfont, 1, 1) <> lFirstChar then + begin + FOdfTextDocument.AddHeadline(4).AppendText(copy(lfont, 1, 1)); + lFirstChar := copy(lfont, 1, 1); + end; + lPara := FOdfTextDocument.AddParagraph(cStyleName); + aFont.Name := lFont; + lpara.AddSpan('This is Font: "' + lFont + '"', []); + lPara.AddLineBreak; + lSpan := lpara.AddSpan('ABCDEF abcdef 12345', aFont, FOdfTextDocument); + lSpan.AddLineBreak; + lSpan.AppendText('The quick, brown fox jumps over the lazy dog.'); + lSpan.AddLineBreak; + end; +finally + FreeAndNil(aFont) +end; +``` +# Another example (in german & without code) +Links, table, columns, footer, headlines, fonts, enumerations, extended charset ... +(automatically generated from a [GEDCOM](http://github.com/search?q=gedcom&type=repositories)-file)<br/> +[[Demo Familybook (Muster)]](../Resources/Muster_GEDCOM_UTF-8.pdf) diff --git a/fpOdf.lpg b/fpOdf.lpg index 6aced3f..a3e03f4 100644 --- a/fpOdf.lpg +++ b/fpOdf.lpg @@ -1,32 +1,59 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> - <ProjectGroup FileVersion="1"> - <Targets Count="6"> - <Target0 FileName="package\fpodf.lpk"/> - <Target1 FileName="examples\fpcTestfpOdf\fpcTestfpOdf.lpi"> - <BuildModes Count="1"/> - <Mode1 Name="Default"/> - </Target1> - <Target2 FileName="examples\HelloWorld\OdtHelloWorld.lpi"> - <BuildModes Count="3"/> - <Mode1 Name="Default"/> - <Mode2 Name="Debug"/> - <Mode3 Name="Release"/> - </Target2> - <Target3 FileName="examples\BoldText\OdtBoldTextExample.lpi"> - <BuildModes Count="1"/> - <Mode1 Name="Default"/> - </Target3> - <Target4 FileName="..\..\..\..\..\lazarus\components\fpvectorial\examples\fpvtextwritetest.lpi"> - <BuildModes Count="1"/> - <Mode1 Name="default"/> - </Target4> - <Target5 FileName="examples\ImprovedDemo\ImprovedDemo.lpi"> - <BuildModes Count="3"/> - <Mode1 Name="Default"/> - <Mode2 Name="Debug"/> - <Mode3 Name="Release"/> - </Target5> + <ProjectGroup FileVersion="2"> + <Targets> + <Target FileName="package\fpodf.lpk"/> + <Target FileName="code_generation\ODF_Processor\fpOdfProcessor.lpi"> + <BuildModes> + <Mode Name="Default"/> + </BuildModes> + </Target> + <Target FileName="examples\HelloWorld\OdtHelloWorld.lpi"> + <BuildModes> + <Mode Name="Default"/> + <Mode Name="Debug"/> + <Mode Name="Release"/> + </BuildModes> + </Target> + <Target FileName="examples\BoldText\OdtBoldTextExample.lpi"> + <BuildModes> + <Mode Name="Default"/> + </BuildModes> + </Target> + <Target FileName="examples\ImprovedDemo\ImprovedDemo.lpi"> + <BuildModes> + <Mode Name="Default"/> + <Mode Name="Debug"/> + <Mode Name="Release"/> + </BuildModes> + </Target> + <Target FileName="examples\SearchAndReplace\OdfSearchAndReplace.lpi"> + <BuildModes> + <Mode Name="Default"/> + </BuildModes> + </Target> + <Target FileName="test\fpOdfTest.lpi"> + <BuildModes> + <Mode Name="Default"/> + </BuildModes> + </Target> + <Target FileName="examples\fpcTestfpOdf\fpcTestfpOdf.lpi"> + <BuildModes> + <Mode Name="Default"/> + <Mode Name="Debug"/> + <Mode Name="Debug_con"/> + </BuildModes> + </Target> + <Target FileName="examples\ImageInsert\ImageInsert.lpi"> + <BuildModes> + <Mode Name="Default"/> + </BuildModes> + </Target> + <Target FileName="examples\TableInsert\TableInsert.lpi"> + <BuildModes> + <Mode Name="Default"/> + </BuildModes> + </Target> </Targets> </ProjectGroup> </CONFIG> diff --git a/fpOdf.patch b/fpOdf.patch new file mode 100644 index 0000000..290a018 --- /dev/null +++ b/fpOdf.patch @@ -0,0 +1,449 @@ +Index: . +=================================================================== +diff --git a/branches/NewFeatures_1 b/branches/NewFeatures_1 +--- a/branches/NewFeatures_1 (revision 112) ++++ b/branches/NewFeatures_1 (working copy) + +Property changes on: branches/NewFeatures_1 +___________________________________________________________________ +Modified: svn:ignore +## -1,2 +1,3 ## + *.bak + bin ++output +Index: examples/BoldText/OdtBoldTextExample.lpi +=================================================================== +diff --git a/branches/NewFeatures_1/examples/BoldText/OdtBoldTextExample.lpi b/branches/NewFeatures_1/examples/BoldText/OdtBoldTextExample.lpi +--- a/branches/NewFeatures_1/examples/BoldText/OdtBoldTextExample.lpi (revision 112) ++++ b/branches/NewFeatures_1/examples/BoldText/OdtBoldTextExample.lpi (working copy) +@@ -46,7 +46,7 @@ + <CompilerOptions> + <Version Value="11"/> + <Target> +- <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/OdtBoldTextExample"/> ++ <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> + </Target> + <SearchPaths> + <IncludeFiles Value="$(ProjOutDir)"/> +Index: examples/fpcTestfpOdf/fpcTestfpOdf.lpi +=================================================================== +diff --git a/branches/NewFeatures_1/examples/fpcTestfpOdf/fpcTestfpOdf.lpi b/branches/NewFeatures_1/examples/fpcTestfpOdf/fpcTestfpOdf.lpi +--- a/branches/NewFeatures_1/examples/fpcTestfpOdf/fpcTestfpOdf.lpi (revision 112) ++++ b/branches/NewFeatures_1/examples/fpcTestfpOdf/fpcTestfpOdf.lpi (working copy) +@@ -144,7 +144,7 @@ + <Version Value="11"/> + <PathDelim Value="\"/> + <Target> +- <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\fpcTestfpOdf"/> ++ <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\$NameOnly($Project(Infofile))"/> + </Target> + <SearchPaths> + <IncludeFiles Value="$(ProjOutDir)"/> +Index: examples/HelloWorld/OdtHelloWorld.lpi +=================================================================== +diff --git a/branches/NewFeatures_1/examples/HelloWorld/OdtHelloWorld.lpi b/branches/NewFeatures_1/examples/HelloWorld/OdtHelloWorld.lpi +--- a/branches/NewFeatures_1/examples/HelloWorld/OdtHelloWorld.lpi (revision 112) ++++ b/branches/NewFeatures_1/examples/HelloWorld/OdtHelloWorld.lpi (working copy) +@@ -25,7 +25,7 @@ + <CompilerOptions> + <Version Value="11"/> + <Target> +- <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/OdtHelloWorld"/> ++ <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> + </Target> + <SearchPaths> + <IncludeFiles Value="$(ProjOutDir)"/> +Index: examples/ImprovedDemo/ImprovedDemo.lpi +=================================================================== +diff --git a/branches/NewFeatures_1/examples/ImprovedDemo/ImprovedDemo.lpi b/branches/NewFeatures_1/examples/ImprovedDemo/ImprovedDemo.lpi +--- a/branches/NewFeatures_1/examples/ImprovedDemo/ImprovedDemo.lpi (revision 112) ++++ b/branches/NewFeatures_1/examples/ImprovedDemo/ImprovedDemo.lpi (working copy) +@@ -119,7 +119,7 @@ + <Version Value="11"/> + <PathDelim Value="\"/> + <Target> +- <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\ImprovedDemo"/> ++ <Filename Value="..\..\bin\$(TargetCPU)-$(TargetOS)\$NameOnly($Project(Infofile))"/> + </Target> + <SearchPaths> + <IncludeFiles Value="$(ProjOutDir)"/> +Index: examples/SearchAndReplace/OdfSearchAndReplace.lpi +=================================================================== +diff --git a/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.lpi b/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.lpi +--- a/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.lpi (revision 112) ++++ b/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.lpi (working copy) +@@ -1,7 +1,7 @@ + <?xml version="1.0" encoding="UTF-8"?> + <CONFIG> + <ProjectOptions> +- <Version Value="10"/> ++ <Version Value="11"/> + <General> + <Flags> + <MainUnitHasCreateFormStatements Value="False"/> +@@ -21,9 +21,10 @@ + <Version Value="2"/> + </PublishOptions> + <RunParams> +- <local> +- <FormatVersion Value="1"/> +- </local> ++ <FormatVersion Value="2"/> ++ <Modes Count="1"> ++ <Mode0 Name="default"/> ++ </Modes> + </RunParams> + <RequiredPackages Count="1"> + <Item1> +@@ -40,11 +41,11 @@ + <CompilerOptions> + <Version Value="11"/> + <Target> +- <Filename Value="OdfSearchAndReplace"/> ++ <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> + </Target> + <SearchPaths> + <IncludeFiles Value="$(ProjOutDir)"/> +- <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> ++ <UnitOutputDirectory Value="../../bin/$(TargetCPU)-$(TargetOS)/units"/> + </SearchPaths> + </CompilerOptions> + <Debugging> +Index: examples/SearchAndReplace/OdfSearchAndReplace.pas +=================================================================== +diff --git a/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.pas b/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.pas +--- a/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.pas (revision 112) ++++ b/branches/NewFeatures_1/examples/SearchAndReplace/OdfSearchAndReplace.pas (working copy) +@@ -42,8 +42,6 @@ + doc: TOdfTextDocument; + p: TOdfParagraph; + +- e: TOdfElement; +- + procedure AddField(AFieldName, ADescription: string); + var + e: TOdfElement; +Index: fpOdf.lpg +=================================================================== +diff --git a/branches/NewFeatures_1/fpOdf.lpg b/branches/NewFeatures_1/fpOdf.lpg +--- a/branches/NewFeatures_1/fpOdf.lpg (revision 112) ++++ b/branches/NewFeatures_1/fpOdf.lpg (working copy) +@@ -3,15 +3,15 @@ + <ProjectGroup FileVersion="1"> + <Targets Count="9"> + <Target0 FileName="package\fpodf.lpk"/> +- <Target1 FileName="examples\fpcTestfpOdf\fpcTestfpOdf.lpi"> ++ <Target1 FileName="code_generation\ODF_Processor\fpOdfProcessor.lpi"> ++ <BuildModes Count="1"/> ++ <Mode1 Name="Default"/> ++ </Target1> ++ <Target2 FileName="examples\fpcTestfpOdf\fpcTestfpOdf.lpi"> + <BuildModes Count="3"/> + <Mode1 Name="Default"/> + <Mode2 Name="Debug"/> + <Mode3 Name="Debug_con"/> +- </Target1> +- <Target2 FileName="code_generation\ODF_Processor\fpOdfProcessor.lpi"> +- <BuildModes Count="1"/> +- <Mode1 Name="Default"/> + </Target2> + <Target3 FileName="test\fpOdfTest.lpi"> + <BuildModes Count="1"/> +@@ -27,7 +27,7 @@ + <BuildModes Count="1"/> + <Mode1 Name="Default"/> + </Target5> +- <Target6 FileName="..\..\..\..\..\lazarus\components\fpvectorial\examples\fpvtextwritetest.lpi"> ++ <Target6 FileName="..\..\..\lazarus\components\fpvectorial\examples\fpvtextwritetest.lpi"> + <BuildModes Count="1"/> + <Mode1 Name="default"/> + </Target6> +Index: incs/ElementEnum.inc +=================================================================== +diff --git a/branches/NewFeatures_1/incs/ElementEnum.inc b/branches/NewFeatures_1/incs/ElementEnum.inc +--- a/branches/NewFeatures_1/incs/ElementEnum.inc (revision 112) ++++ b/branches/NewFeatures_1/incs/ElementEnum.inc (working copy) +@@ -35,261 +35,611 @@ + Any modification will be overridden.} type - TElementType = (oetNone,oetManifestManifest,oetManifestFileEntry, - oetManifestEncryptionData,oetManifestAlgorithm, - oetManifestStartKeyGeneration,oetManifestKeyDerivation, - oetOfficeDocument,oetOfficeMeta,oetMetaGenerator, - oetDcTitle,oetDcDescription,oetDcSubject,oetMetaKeyword, - oetMetaInitialCreator,oetDcCreator,oetMetaPrintedBy, - oetMetaCreationDate,oetDcDate,oetMetaPrintDate, - oetMetaTemplate,oetMetaAutoReload, - oetMetaHyperlinkBehaviour,oetDcLanguage, - oetMetaEditingCycles,oetMetaEditingDuration, - oetMetaDocumentStatistic,oetMetaUserDefined, - oetOfficeSettings,oetConfigConfigItemSet, - oetConfigConfigItem,oetConfigConfigItemMapNamed, - oetConfigConfigItemMapEntry, - oetConfigConfigItemMapIndexed,oetOfficeScripts, - oetOfficeScript,oetOfficeEventListeners, - oetScriptEventListener,oetPresentationEventListener, - oetPresentationSound,oetOfficeFontFaceDecls, - oetStyleFontFace,oetSvgFontFaceSrc,oetSvgFontFaceUri, - oetSvgFontFaceFormat,oetSvgFontFaceName, - oetSvgDefinitionSrc,oetOfficeStyles,oetStyleStyle, - oetStyleTextProperties,oetStyleParagraphProperties, - oetStyleTabStops,oetStyleTabStop,oetStyleDropCap, - oetStyleBackgroundImage,oetOfficeBinaryData, - oetStyleSectionProperties,oetStyleColumns, - oetStyleColumnSep,oetStyleColumn, - oetTextNotesConfiguration, - oetTextNoteContinuationNoticeForward, - oetTextNoteContinuationNoticeBackward, - oetStyleRubyProperties,oetStyleTableProperties, - oetStyleTableColumnProperties, - oetStyleTableRowProperties,oetStyleTableCellProperties, - oetStyleGraphicProperties,oetTextListStyle, - oetTextListLevelStyleNumber,oetStyleListLevelProperties, - oetStyleListLevelLabelAlignment, - oetTextListLevelStyleBullet,oetTextListLevelStyleImage, - oetStyleDrawingPageProperties,oetStyleChartProperties, - oetChartSymbolImage,oetChartLabelSeparator,oetTextP, - oetTextS,oetTextTab,oetTextLineBreak, - oetTextSoftPageBreak,oetTextSpan,oetTextMeta, - oetTextBookmark,oetTextBookmarkStart,oetTextBookmarkEnd, - oetTextReferenceMark,oetTextReferenceMarkStart, - oetTextReferenceMarkEnd,oetTextNote,oetTextNoteCitation, - oetTextNoteBody,oetTextH,oetTextNumber,oetTextList, - oetTextListHeader,oetTextListItem, - oetTextNumberedParagraph,oetTableTable,oetTableTitle, - oetTableDesc,oetTableTableSource,oetOfficeDdeSource, - oetTableScenario,oetOfficeForms,oetFormForm, - oetFormProperties,oetFormProperty,oetFormListProperty, - oetFormListValue,oetFormText,oetFormTextarea, - oetFormFormattedText,oetFormNumber,oetFormDate, - oetFormTime,oetFormCombobox,oetFormItem,oetFormListbox, - oetFormOption,oetFormCheckbox,oetFormPassword, - oetFormFile,oetFormFixedText,oetFormButton,oetFormImage, - oetFormRadio,oetFormFrame,oetFormImageFrame, - oetFormHidden,oetFormGrid,oetFormColumn, - oetFormValueRange,oetFormGenericControl, - oetFormConnectionResource,oetXformsModel,oetTableShapes, - oetDrawRect,oetSvgTitle,oetSvgDesc,oetDrawGluePoint, - oetDrawLine,oetDrawPolyline,oetDrawPolygon, - oetDrawRegularPolygon,oetDrawPath,oetDrawCircle, - oetDrawEllipse,oetDrawG,oetDrawPageThumbnail, - oetDrawFrame,oetDrawTextBox,oetDrawImage,oetDrawObject, - oetMathMath,oetDrawObjectOle,oetDrawApplet,oetDrawParam, - oetDrawFloatingFrame,oetDrawPlugin,oetDrawImageMap, - oetDrawAreaRectangle,oetDrawAreaCircle, - oetDrawAreaPolygon,oetDrawContourPolygon, - oetDrawContourPath,oetDrawMeasure,oetDrawCaption, - oetDrawConnector,oetDrawControl,oetDr3dScene, - oetDr3dLight,oetDr3dExtrude,oetDr3dSphere,oetDr3dRotate, - oetDr3dCube,oetDrawCustomShape,oetDrawEnhancedGeometry, - oetDrawEquation,oetDrawHandle,oetDrawA, - oetTableTableColumnGroup,oetTableTableColumns, - oetTableTableColumn,oetTableTableHeaderColumns, - oetTableTableRowGroup,oetTableTableRows, - oetTableTableRow,oetTableTableCell, - oetTableCellRangeSource,oetOfficeAnnotation, - oetMetaDateString,oetTableDetective, - oetTableHighlightedRange,oetTableOperation, - oetTableCoveredTableCell,oetTableTableHeaderRows, - oetTableNamedExpressions,oetTableNamedRange, - oetTableNamedExpression,oetTextSection, - oetTextSectionSource,oetTextTableOfContent, - oetTextTableOfContentSource,oetTextIndexTitleTemplate, - oetTextTableOfContentEntryTemplate, - oetTextIndexEntryChapter,oetTextIndexEntryPageNumber, - oetTextIndexEntryText,oetTextIndexEntrySpan, - oetTextIndexEntryTabStop,oetTextIndexEntryLinkStart, - oetTextIndexEntryLinkEnd,oetTextIndexSourceStyles, - oetTextIndexSourceStyle,oetTextIndexBody, - oetTextIndexTitle,oetTextIllustrationIndex, - oetTextIllustrationIndexSource, - oetTextIllustrationIndexEntryTemplate,oetTextTableIndex, - oetTextTableIndexSource,oetTextTableIndexEntryTemplate, - oetTextObjectIndex,oetTextObjectIndexSource, - oetTextObjectIndexEntryTemplate,oetTextUserIndex, - oetTextUserIndexSource,oetTextUserIndexEntryTemplate, - oetTextAlphabeticalIndex,oetTextAlphabeticalIndexSource, - oetTextAlphabeticalIndexEntryTemplate, - oetTextBibliography,oetTextBibliographySource, - oetTextBibliographyEntryTemplate, - oetTextIndexEntryBibliography,oetTextChange, - oetTextChangeStart,oetTextChangeEnd,oetTextRuby, - oetTextRubyBase,oetTextRubyText,oetOfficeAnnotationEnd, - oetTextDate,oetTextTime,oetTextPageNumber, - oetTextPageContinuation,oetTextSenderFirstname, - oetTextSenderLastname,oetTextSenderInitials, - oetTextSenderTitle,oetTextSenderPosition, - oetTextSenderEmail,oetTextSenderPhonePrivate, - oetTextSenderFax,oetTextSenderCompany, - oetTextSenderPhoneWork,oetTextSenderStreet, - oetTextSenderCity,oetTextSenderPostalCode, - oetTextSenderCountry,oetTextSenderStateOrProvince, - oetTextAuthorName,oetTextAuthorInitials,oetTextChapter, - oetTextFileName,oetTextTemplateName,oetTextSheetName, - oetTextVariableSet,oetTextVariableGet, - oetTextVariableInput,oetTextUserFieldGet, - oetTextUserFieldInput,oetTextSequence,oetTextExpression, - oetTextTextInput,oetTextInitialCreator, - oetTextCreationDate,oetTextCreationTime, - oetTextDescription,oetTextUserDefined,oetTextPrintTime, - oetTextPrintDate,oetTextPrintedBy,oetTextTitle, - oetTextSubject,oetTextKeywords,oetTextEditingCycles, - oetTextEditingDuration,oetTextModificationTime, - oetTextModificationDate,oetTextCreator, - oetTextDatabaseDisplay,oetTextDatabaseNext, - oetTextDatabaseRowSelect,oetTextDatabaseRowNumber, - oetTextDatabaseName,oetTextPageVariableSet, - oetTextPageVariableGet,oetTextPlaceholder, - oetTextConditionalText,oetTextHiddenText,oetTextNoteRef, - oetTextSequenceRef,oetTextScript,oetTextExecuteMacro, - oetTextHiddenParagraph,oetTextDdeConnection, - oetTextMeasure,oetTextTableFormula,oetTextMetaField, - oetTextTocMarkStart,oetTextTocMarkEnd,oetTextTocMark, - oetTextUserIndexMarkStart,oetTextUserIndexMarkEnd, - oetTextUserIndexMark,oetTextAlphabeticalIndexMarkStart, - oetTextAlphabeticalIndexMarkEnd, - oetTextAlphabeticalIndexMark,oetTextBibliographyMark, - oetPresentationHeader,oetPresentationFooter, - oetPresentationDateTime,oetTextA,oetStyleMap, - oetNumberNumberStyle,oetNumberText,oetNumberNumber, - oetNumberEmbeddedText,oetNumberScientificNumber, - oetNumberFraction,oetNumberCurrencyStyle, - oetNumberCurrencySymbol,oetNumberPercentageStyle, - oetNumberDateStyle,oetNumberDay,oetNumberMonth, - oetNumberYear,oetNumberEra,oetNumberDayOfWeek, - oetNumberWeekOfYear,oetNumberQuarter,oetNumberHours, - oetNumberAmPm,oetNumberMinutes,oetNumberSeconds, - oetNumberTimeStyle,oetNumberBooleanStyle, - oetNumberBoolean,oetNumberTextStyle, - oetNumberTextContent,oetStyleDefaultStyle, - oetStyleDefaultPageLayout,oetStylePageLayoutProperties, - oetStyleFootnoteSep,oetStyleHeaderStyle, - oetStyleHeaderFooterProperties,oetStyleFooterStyle, - oetTextOutlineStyle,oetTextOutlineLevelStyle, - oetTextBibliographyConfiguration,oetTextSortKey, - oetTextLinenumberingConfiguration, - oetTextLinenumberingSeparator,oetDrawGradient, - oetSvgLineargradient,oetSvgStop,oetSvgRadialgradient, - oetDrawHatch,oetDrawFillImage,oetDrawMarker, - oetDrawStrokeDash,oetDrawOpacity, - oetStylePresentationPageLayout, - oetPresentationPlaceholder,oetTableTableTemplate, - oetTableFirstRow,oetTableLastRow,oetTableFirstColumn, - oetTableLastColumn,oetTableBody,oetTableEvenRows, - oetTableOddRows,oetTableEvenColumns,oetTableOddColumns, - oetTableBackground,oetOfficeAutomaticStyles, - oetStylePageLayout,oetOfficeMasterStyles, - oetStyleMasterPage,oetStyleHeader,oetTextTrackedChanges, - oetTextChangedRegion,oetTextInsertion, - oetOfficeChangeInfo,oetTextDeletion,oetTextFormatChange, - oetTextVariableDecls,oetTextVariableDecl, - oetTextSequenceDecls,oetTextSequenceDecl, - oetTextUserFieldDecls,oetTextUserFieldDecl, - oetTextDdeConnectionDecls,oetTextDdeConnectionDecl, - oetTextAlphabeticalIndexAutoMarkFile,oetStyleRegionLeft, - oetStyleRegionCenter,oetStyleRegionRight, - oetStyleHeaderLeft,oetStyleFooter,oetStyleFooterLeft, - oetDrawLayerSet,oetDrawLayer,oetAnimAnimate,oetAnimSet, - oetAnimAnimatemotion,oetAnimAnimatecolor, - oetAnimAnimatetransform,oetAnimTransitionfilter, - oetAnimPar,oetAnimSeq,oetAnimIterate,oetAnimAudio, - oetAnimCommand,oetAnimParam,oetPresentationNotes, - oetStyleHandoutMaster,oetOfficeBody,oetOfficeText, - oetTableCalculationSettings,oetTableNullDate, - oetTableIteration,oetTableContentValidations, - oetTableContentValidation,oetTableHelpMessage, - oetTableErrorMessage,oetTableErrorMacro, - oetTableLabelRanges,oetTableLabelRange, - oetTextPageSequence,oetTextPage,oetTableDatabaseRanges, - oetTableDatabaseRange,oetTableDatabaseSourceSql, - oetTableDatabaseSourceQuery,oetTableDatabaseSourceTable, - oetTableFilter,oetTableFilterCondition, - oetTableFilterSetItem,oetTableFilterAnd, - oetTableFilterOr,oetTableSort,oetTableSortBy, - oetTableSubtotalRules,oetTableSortGroups, - oetTableSubtotalRule,oetTableSubtotalField, - oetTableDataPilotTables,oetTableDataPilotTable, - oetTableSourceService,oetTableSourceCellRange, - oetTableDataPilotField,oetTableDataPilotLevel, - oetTableDataPilotSubtotals,oetTableDataPilotSubtotal, - oetTableDataPilotMembers,oetTableDataPilotMember, - oetTableDataPilotDisplayInfo,oetTableDataPilotSortInfo, - oetTableDataPilotLayoutInfo, - oetTableDataPilotFieldReference,oetTableDataPilotGroups, - oetTableDataPilotGroup,oetTableDataPilotGroupMember, - oetTableConsolidation,oetTableDdeLinks,oetTableDdeLink, - oetOfficeDrawing,oetDrawPage,oetPresentationAnimations, - oetPresentationShowShape,oetPresentationShowText, - oetPresentationHideShape,oetPresentationHideText, - oetPresentationDim,oetPresentationPlay, - oetPresentationAnimationGroup,oetOfficePresentation, - oetPresentationHeaderDecl,oetPresentationFooterDecl, - oetPresentationDateTimeDecl,oetPresentationSettings, - oetPresentationShow,oetOfficeSpreadsheet, - oetTableTrackedChanges,oetTableCellContentChange, - oetTableCellAddress,oetTableDependencies, - oetTableDependency,oetTableDeletions, - oetTableCellContentDeletion, - oetTableChangeTrackTableCell,oetTableChangeDeletion, - oetTablePrevious,oetTableInsertion,oetTableDeletion, - oetTableCutOffs,oetTableMovementCutOff, - oetTableInsertionCutOff,oetTableMovement, - oetTableSourceRangeAddress,oetTableTargetRangeAddress, - oetOfficeChart,oetChartChart,oetChartTitle, - oetChartSubtitle,oetChartFooter,oetChartLegend, - oetChartPlotArea,oetChartAxis,oetChartCategories, - oetChartGrid,oetChartSeries,oetChartDomain, - oetChartMeanValue,oetChartRegressionCurve, - oetChartEquation,oetChartErrorIndicator, - oetChartDataPoint,oetChartDataLabel, - oetChartStockGainMarker,oetChartStockLossMarker, - oetChartStockRangeLine,oetChartWall,oetChartFloor, - oetOfficeImage,oetOfficeDatabase,oetDbDataSource, - oetDbConnectionData,oetDbDatabaseDescription, - oetDbFileBasedDatabase,oetDbServerDatabase, - oetDbConnectionResource,oetDbLogin,oetDbDriverSettings, - oetDbAutoIncrement,oetDbDelimiter,oetDbCharacterSet, - oetDbTableSettings,oetDbTableSetting, - oetDbApplicationConnectionSettings,oetDbTableFilter, - oetDbTableIncludeFilter,oetDbTableFilterPattern, - oetDbTableExcludeFilter,oetDbTableTypeFilter, - oetDbTableType,oetDbDataSourceSettings, - oetDbDataSourceSetting,oetDbDataSourceSettingValue, - oetDbForms,oetDbComponent,oetDbComponentCollection, - oetDbReports,oetDbQueries,oetDbQuery, - oetDbOrderStatement,oetDbFilterStatement,oetDbColumns, - oetDbColumn,oetDbUpdateTable,oetDbQueryCollection, - oetDbTableRepresentations,oetDbTableRepresentation, - oetDbSchemaDefinition,oetDbTableDefinitions, - oetDbTableDefinition,oetDbColumnDefinitions, - oetDbColumnDefinition,oetDbKeys,oetDbKey, - oetDbKeyColumns,oetDbKeyColumn,oetDbIndices,oetDbIndex, - oetDbIndexColumns,oetDbIndexColumn, - oetOfficeDocumentContent,oetOfficeDocumentStyles, - oetOfficeDocumentMeta,oetOfficeDocumentSettings - ); + TElementType = (oetNone, +oetAnimAnimate, +oetAnimAnimatecolor, +oetAnimAnimatemotion, +oetAnimAnimatetransform, +oetAnimAudio, +oetAnimCommand, +oetAnimIterate, +oetAnimPar, +oetAnimParam, +oetAnimSeq, +oetAnimSet, +oetAnimTransitionfilter, +//Chart +oetChartAxis, +oetChartCategories, +oetChartChart, +oetChartDataLabel, +oetChartDataPoint, +oetChartDomain, +oetChartEquation, +oetChartErrorIndicator, +oetChartFloor, +oetChartFooter, +oetChartGrid, +oetChartLabelSeparator, +oetChartLegend, +oetChartMeanValue, +oetChartPlotArea, +oetChartRegressionCurve, +oetChartSeries, +oetChartStockGainMarker, +oetChartStockLossMarker, +oetChartStockRangeLine, +oetChartSubtitle, +oetChartSymbolImage, +oetChartTitle, +oetChartWall, +//Config +oetConfigConfigItem, +oetConfigConfigItemMapEntry, +oetConfigConfigItemMapIndexed, +oetConfigConfigItemMapNamed, +oetConfigConfigItemSet, +//Db +oetDbApplicationConnectionSettings, +oetDbAutoIncrement, +oetDbCharacterSet, +oetDbColumn, +oetDbColumnDefinition, +oetDbColumnDefinitions, +oetDbColumns, +oetDbComponent, +oetDbComponentCollection, +oetDbConnectionData, +oetDbConnectionResource, +oetDbDatabaseDescription, +oetDbDataSource, +oetDbDataSourceSetting, +oetDbDataSourceSettings, +oetDbDataSourceSettingValue, +oetDbDelimiter, +oetDbDriverSettings, +oetDbFileBasedDatabase, +oetDbFilterStatement, +oetDbForms, +oetDbIndex, +oetDbIndexColumn, +oetDbIndexColumns, +oetDbIndices, +oetDbKey, +oetDbKeyColumn, +oetDbKeyColumns, +oetDbKeys, +oetDbLogin, +oetDbOrderStatement, +oetDbQueries, +oetDbQuery, +oetDbQueryCollection, +oetDbReports, +oetDbSchemaDefinition, +oetDbServerDatabase, +oetDbTableDefinition, +oetDbTableDefinitions, +oetDbTableExcludeFilter, +oetDbTableFilter, +oetDbTableFilterPattern, +oetDbTableIncludeFilter, +oetDbTableRepresentation, +oetDbTableRepresentations, +oetDbTableSetting, +oetDbTableSettings, +oetDbTableType, +oetDbTableTypeFilter, +oetDbUpdateTable, +oetDcCreator, +oetDcDate, +oetDcDescription, +oetDcLanguage, +oetDcSubject, +oetDcTitle, +oetDr3dCube, +oetDr3dExtrude, +oetDr3dLight, +oetDr3dRotate, +oetDr3dScene, +oetDr3dSphere, +oetDrawA, +oetDrawApplet, +oetDrawAreaCircle, +oetDrawAreaPolygon, +oetDrawAreaRectangle, +oetDrawCaption, +oetDrawCircle, +oetDrawConnector, +oetDrawContourPath, +oetDrawContourPolygon, +oetDrawControl, +oetDrawCustomShape, +oetDrawEllipse, +oetDrawEnhancedGeometry, +oetDrawEquation, +oetDrawFillImage, +oetDrawFloatingFrame, +oetDrawFrame, +oetDrawG, +oetDrawGluePoint, +oetDrawGradient, +oetDrawHandle, +oetDrawHatch, +oetDrawImage, +oetDrawImageMap, +oetDrawLayer, +oetDrawLayerSet, +oetDrawLine, +oetDrawMarker, +oetDrawMeasure, +oetDrawObject, +oetDrawObjectOle, +oetDrawOpacity, +oetDrawPage, +oetDrawPageThumbnail, +oetDrawParam, +oetDrawPath, +oetDrawPlugin, +oetDrawPolygon, +oetDrawPolyline, +oetDrawRect, +oetDrawRegularPolygon, +oetDrawStrokeDash, +oetDrawTextBox, +oetFormButton, +oetFormCheckbox, +oetFormColumn, +oetFormCombobox, +oetFormConnectionResource, +oetFormDate, +oetFormFile, +oetFormFixedText, +oetFormForm, +oetFormFormattedText, +oetFormFrame, +oetFormGenericControl, +oetFormGrid, +oetFormHidden, +oetFormImage, +oetFormImageFrame, +oetFormItem, +oetFormListbox, +oetFormListProperty, +oetFormListValue, +oetFormNumber, +oetFormOption, +oetFormPassword, +oetFormProperties, +oetFormProperty, +oetFormRadio, +oetFormText, +oetFormTextarea, +oetFormTime, +oetFormValueRange, +oetLoExtFooterFirst, +oetLoExtHeaderFirst, +oetManifestAlgorithm, +oetManifestEncryptionData, +oetManifestFileEntry, +oetManifestKeyDerivation, +oetManifestManifest, +oetManifestStartKeyGeneration, +oetMathMath, +oetMetaAutoReload, +oetMetaCreationDate, +oetMetaDateString, +oetMetaDocumentStatistic, +oetMetaEditingCycles, +oetMetaEditingDuration, +oetMetaGenerator, +oetMetaHyperlinkBehaviour, +oetMetaInitialCreator, +oetMetaKeyword, +oetMetaPrintDate, +oetMetaPrintedBy, +oetMetaTemplate, +oetMetaUserDefined, +oetNumberAmPm, +oetNumberBoolean, +oetNumberBooleanStyle, +oetNumberCurrencyStyle, +oetNumberCurrencySymbol, +oetNumberDateStyle, +oetNumberDay, +oetNumberDayOfWeek, +oetNumberEmbeddedText, +oetNumberEra, +oetNumberFraction, +oetNumberHours, +oetNumberMinutes, +oetNumberMonth, +oetNumberNumber, +oetNumberNumberStyle, +oetNumberPercentageStyle, +oetNumberQuarter, +oetNumberScientificNumber, +oetNumberSeconds, +oetNumberText, +oetNumberTextContent, +oetNumberTextStyle, +oetNumberTimeStyle, +oetNumberWeekOfYear, +oetNumberYear, +oetOfficeAnnotation, +oetOfficeAnnotationEnd, +oetOfficeAutomaticStyles, +oetOfficeBinaryData, +oetOfficeBody, +oetOfficeChangeInfo, +oetOfficeChart, +oetOfficeDatabase, +oetOfficeDdeSource, +oetOfficeDocument, +oetOfficeDocumentContent, +oetOfficeDocumentMeta, +oetOfficeDocumentSettings, +oetOfficeDocumentStyles, +oetOfficeDrawing, +oetOfficeEventListeners, +oetOfficeFontFaceDecls, +oetOfficeForms, +oetOfficeImage, +oetOfficeMasterStyles, +oetOfficeMeta, +oetOfficePresentation, +oetOfficeScript, +oetOfficeScripts, +oetOfficeSettings, +oetOfficeSpreadsheet, +oetOfficeStyles, +oetOfficeText, +oetPresentationAnimationGroup, +oetPresentationAnimations, +oetPresentationDateTime, +oetPresentationDateTimeDecl, +oetPresentationDim, +oetPresentationEventListener, +oetPresentationFooter, +oetPresentationFooterDecl, +oetPresentationHeader, +oetPresentationHeaderDecl, +oetPresentationHideShape, +oetPresentationHideText, +oetPresentationNotes, +oetPresentationPlaceholder, +oetPresentationPlay, +oetPresentationSettings, +oetPresentationShow, +oetPresentationShowShape, +oetPresentationShowText, +oetPresentationSound, +oetScriptEventListener, +// Style +oetStyleBackgroundImage, +oetStyleChartProperties, +oetStyleColumn, +oetStyleColumns, +oetStyleColumnSep, +oetStyleDefaultPageLayout, +oetStyleDefaultStyle, +oetStyleDrawingPageProperties, +oetStyleDropCap, +oetStyleFontFace, +oetStyleFooter, +oetStyleFooterFirst, +oetStyleFooterLeft, +oetStyleFooterStyle, +oetStyleFootnoteSep, +oetStyleGraphicProperties, +oetStyleHandoutMaster, +oetStyleHeader, +oetStyleHeaderFirst, +oetStyleHeaderFooterProperties, +oetStyleHeaderLeft, +oetStyleHeaderStyle, +oetStyleListLevelLabelAlignment, +oetStyleListLevelProperties, +oetStyleMap, +oetStyleMasterPage, +oetStylePageLayout, +oetStylePageLayoutProperties, +oetStyleParagraphProperties, +oetStylePresentationPageLayout, +oetStyleRegionCenter, +oetStyleRegionLeft, +oetStyleRegionRight, +oetStyleRubyProperties, +oetStyleSectionProperties, +oetStyleStyle, +oetStyleTableCellProperties, +oetStyleTableColumnProperties, +oetStyleTableProperties, +oetStyleTableRowProperties, +oetStyleTabStop, +oetStyleTabStops, +oetStyleTextProperties, +// Svg +oetSvgDefinitionSrc, +oetSvgDesc, +oetSvgFontFaceFormat, +oetSvgFontFaceName, +oetSvgFontFaceSrc, +oetSvgFontFaceUri, +oetSvgLineargradient, +oetSvgRadialgradient, +oetSvgStop, +oetSvgTitle, +// Table +oetTableBackground, +oetTableBody, +oetTableCalculationSettings, +oetTableCellAddress, +oetTableCellContentChange, +oetTableCellContentDeletion, +oetTableCellRangeSource, +oetTableChangeDeletion, +oetTableChangeTrackTableCell, +oetTableConsolidation, +oetTableContentValidation, +oetTableContentValidations, +oetTableCoveredTableCell, +oetTableCutOffs, +oetTableDatabaseRange, +oetTableDatabaseRanges, +oetTableDatabaseSourceQuery, +oetTableDatabaseSourceSql, +oetTableDatabaseSourceTable, +oetTableDataPilotDisplayInfo, +oetTableDataPilotField, +oetTableDataPilotFieldReference, +oetTableDataPilotGroup, +oetTableDataPilotGroupMember, +oetTableDataPilotGroups, +oetTableDataPilotLayoutInfo, +oetTableDataPilotLevel, +oetTableDataPilotMember, +oetTableDataPilotMembers, +oetTableDataPilotSortInfo, +oetTableDataPilotSubtotal, +oetTableDataPilotSubtotals, +oetTableDataPilotTable, +oetTableDataPilotTables, +oetTableDdeLink, +oetTableDdeLinks, +oetTableDeletion, +oetTableDeletions, +oetTableDependencies, +oetTableDependency, +oetTableDesc, +oetTableDetective, +oetTableErrorMacro, +oetTableErrorMessage, +oetTableEvenColumns, +oetTableEvenRows, +oetTableFilter, +oetTableFilterAnd, +oetTableFilterCondition, +oetTableFilterOr, +oetTableFilterSetItem, +oetTableFirstColumn, +oetTableFirstRow, +oetTableHelpMessage, +oetTableHighlightedRange, +oetTableInsertion, +oetTableInsertionCutOff, +oetTableIteration, +oetTableLabelRange, +oetTableLabelRanges, +oetTableLastColumn, +oetTableLastRow, +oetTableMovement, +oetTableMovementCutOff, +oetTableNamedExpression, +oetTableNamedExpressions, +oetTableNamedRange, +oetTableNullDate, +oetTableOddColumns, +oetTableOddRows, +oetTableOperation, +oetTablePrevious, +oetTableScenario, +oetTableShapes, +oetTableSort, +oetTableSortBy, +oetTableSortGroups, +oetTableSourceCellRange, +oetTableSourceRangeAddress, +oetTableSourceService, +oetTableSubtotalField, +oetTableSubtotalRule, +oetTableSubtotalRules, +oetTableTable, +oetTableTableCell, +oetTableTableColumn, +oetTableTableColumnGroup, +oetTableTableColumns, +oetTableTableHeaderColumns, +oetTableTableHeaderRows, +oetTableTableRow, +oetTableTableRowGroup, +oetTableTableRows, +oetTableTableSource, +oetTableTableTemplate, +oetTableTargetRangeAddress, +oetTableTitle, +oetTableTrackedChanges, +// Text +oetTextA, +oetTextAlphabeticalIndex, +oetTextAlphabeticalIndexAutoMarkFile, +oetTextAlphabeticalIndexEntryTemplate, +oetTextAlphabeticalIndexMark, +oetTextAlphabeticalIndexMarkEnd, +oetTextAlphabeticalIndexMarkStart, +oetTextAlphabeticalIndexSource, +oetTextAuthorInitials, +oetTextAuthorName, +oetTextBibliography, +oetTextBibliographyConfiguration, +oetTextBibliographyEntryTemplate, +oetTextBibliographyMark, +oetTextBibliographySource, +oetTextBookmark, +oetTextBookmarkEnd, +oetTextBookmarkStart, +oetTextChange, +oetTextChangedRegion, +oetTextChangeEnd, +oetTextChangeStart, +oetTextChapter, +oetTextConditionalText, +oetTextCreationDate, +oetTextCreationTime, +oetTextCreator, +oetTextDatabaseDisplay, +oetTextDatabaseName, +oetTextDatabaseNext, +oetTextDatabaseRowNumber, +oetTextDatabaseRowSelect, +oetTextDate, +oetTextDdeConnection, +oetTextDdeConnectionDecl, +oetTextDdeConnectionDecls, +oetTextDeletion, +oetTextDescription, +oetTextEditingCycles, +oetTextEditingDuration, +oetTextExecuteMacro, +oetTextExpression, +oetTextFileName, +oetTextFormatChange, +oetTextH, +oetTextHiddenParagraph, +oetTextHiddenText, +oetTextIllustrationIndex, +oetTextIllustrationIndexEntryTemplate, +oetTextIllustrationIndexSource, +oetTextIndexBody, +oetTextIndexEntryBibliography, +oetTextIndexEntryChapter, +oetTextIndexEntryLinkEnd, +oetTextIndexEntryLinkStart, +oetTextIndexEntryPageNumber, +oetTextIndexEntrySpan, +oetTextIndexEntryTabStop, +oetTextIndexEntryText, +oetTextIndexSourceStyle, +oetTextIndexSourceStyles, +oetTextIndexTitle, +oetTextIndexTitleTemplate, +oetTextInitialCreator, +oetTextInsertion, +oetTextKeywords, +oetTextLineBreak, +oetTextLinenumberingConfiguration, +oetTextLinenumberingSeparator, +oetTextList, +oetTextListHeader, +oetTextListItem, +oetTextListLevelStyleBullet, +oetTextListLevelStyleImage, +oetTextListLevelStyleNumber, +oetTextListStyle, +oetTextMeasure, +oetTextMeta, +oetTextMetaField, +oetTextModificationDate, +oetTextModificationTime, +oetTextNote, +oetTextNoteBody, +oetTextNoteCitation, +oetTextNoteContinuationNoticeBackward, +oetTextNoteContinuationNoticeForward, +oetTextNoteRef, +oetTextNotesConfiguration, +oetTextNumber, +oetTextNumberedParagraph, +oetTextObjectIndex, +oetTextObjectIndexEntryTemplate, +oetTextObjectIndexSource, +oetTextOutlineLevelStyle, +oetTextOutlineStyle, +oetTextP, +oetTextPage, +oetTextPageContinuation, +oetTextPageNumber, +oetTextPageSequence, +oetTextPageVariableGet, +oetTextPageVariableSet, +oetTextPlaceholder, +oetTextPrintDate, +oetTextPrintedBy, +oetTextPrintTime, +oetTextReferenceMark, +oetTextReferenceMarkEnd, +oetTextReferenceMarkStart, +oetTextRuby, +oetTextRubyBase, +oetTextRubyText, +oetTextS, +oetTextScript, +oetTextSection, +oetTextSectionSource, +oetTextSenderCity, +oetTextSenderCompany, +oetTextSenderCountry, +oetTextSenderEmail, +oetTextSenderFax, +oetTextSenderFirstname, +oetTextSenderInitials, +oetTextSenderLastname, +oetTextSenderPhonePrivate, +oetTextSenderPhoneWork, +oetTextSenderPosition, +oetTextSenderPostalCode, +oetTextSenderStateOrProvince, +oetTextSenderStreet, +oetTextSenderTitle, +oetTextSequence, +oetTextSequenceDecl, +oetTextSequenceDecls, +oetTextSequenceRef, +oetTextSheetName, +oetTextSoftPageBreak, +oetTextSortKey, +oetTextSpan, +oetTextSubject, +oetTextTab, +oetTextTableFormula, +oetTextTableIndex, +oetTextTableIndexEntryTemplate, +oetTextTableIndexSource, +oetTextTableOfContent, +oetTextTableOfContentEntryTemplate, +oetTextTableOfContentSource, +oetTextTemplateName, +oetTextTextInput, +oetTextTime, +oetTextTitle, +oetTextTocMark, +oetTextTocMarkEnd, +oetTextTocMarkStart, +oetTextTrackedChanges, +oetTextUserDefined, +oetTextUserFieldDecl, +oetTextUserFieldDecls, +oetTextUserFieldGet, +oetTextUserFieldInput, +oetTextUserIndex, +oetTextUserIndexEntryTemplate, +oetTextUserIndexMark, +oetTextUserIndexMarkEnd, +oetTextUserIndexMarkStart, +oetTextUserIndexSource, +oetTextVariableDecl, +oetTextVariableDecls, +oetTextVariableGet, +oetTextVariableInput, +oetTextVariableSet, +oetXformsModel); Index: incs/proc.inc +=================================================================== +diff --git a/branches/NewFeatures_1/incs/proc.inc b/branches/NewFeatures_1/incs/proc.inc +--- a/branches/NewFeatures_1/incs/proc.inc (revision 112) ++++ b/branches/NewFeatures_1/incs/proc.inc (working copy) +@@ -5353,25 +5353,27 @@ + oetStyleMasterPage : begin Namespace:=onsStyle; LocalName:='master-page'; - SetLength(ChildrenArray, 18); + SetLength(ChildrenArray, 20); ChildrenArray[0]:=oetStyleHeader; ChildrenArray[1]:=oetStyleHeaderLeft; - ChildrenArray[2]:=oetStyleFooter; - ChildrenArray[3]:=oetStyleFooterLeft; - ChildrenArray[4]:=oetDrawLayerSet; - ChildrenArray[5]:=oetOfficeForms; - ChildrenArray[6]:=oetAnimAnimate; - ChildrenArray[7]:=oetAnimSet; - ChildrenArray[8]:=oetAnimAnimatemotion; - ChildrenArray[9]:=oetAnimAnimatecolor; - ChildrenArray[10]:=oetAnimAnimatetransform; - ChildrenArray[11]:=oetAnimTransitionfilter; - ChildrenArray[12]:=oetAnimPar; - ChildrenArray[13]:=oetAnimSeq; - ChildrenArray[14]:=oetAnimIterate; - ChildrenArray[15]:=oetAnimAudio; - ChildrenArray[16]:=oetAnimCommand; - ChildrenArray[17]:=oetPresentationNotes; + ChildrenArray[2]:=oetStyleHeaderFirst; + ChildrenArray[3]:=oetStyleFooter; + ChildrenArray[4]:=oetStyleFooterLeft; + ChildrenArray[5]:=oetStyleFooterFirst; + ChildrenArray[6]:=oetDrawLayerSet; + ChildrenArray[7]:=oetOfficeForms; + ChildrenArray[8]:=oetAnimAnimate; + ChildrenArray[9]:=oetAnimSet; + ChildrenArray[10]:=oetAnimAnimatemotion; + ChildrenArray[11]:=oetAnimAnimatecolor; + ChildrenArray[12]:=oetAnimAnimatetransform; + ChildrenArray[13]:=oetAnimTransitionfilter; + ChildrenArray[14]:=oetAnimPar; + ChildrenArray[15]:=oetAnimSeq; + ChildrenArray[16]:=oetAnimIterate; + ChildrenArray[17]:=oetAnimAudio; + ChildrenArray[18]:=oetAnimCommand; + ChildrenArray[19]:=oetPresentationNotes; SetLength(AttsArray, 5); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; @@ -5411,6 +5413,38 @@ + SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; + oetStyleHeaderFirst : begin + Namespace:=onsStyle; + LocalName:='header-first'; + SetLength(ChildrenArray, 25); + ChildrenArray[0]:=oetTextTrackedChanges; + ChildrenArray[1]:=oetTextAlphabeticalIndexAutoMarkFile; + ChildrenArray[2]:=oetTextVariableDecls; + ChildrenArray[3]:=oetTextSequenceDecls; + ChildrenArray[4]:=oetTextUserFieldDecls; + ChildrenArray[5]:=oetTextDdeConnectionDecls; + ChildrenArray[6]:=oetTextH; + ChildrenArray[7]:=oetTextP; + ChildrenArray[8]:=oetTextList; + ChildrenArray[9]:=oetTableTable; + ChildrenArray[10]:=oetTextSection; + ChildrenArray[11]:=oetTextTableOfContent; + ChildrenArray[12]:=oetTextIllustrationIndex; + ChildrenArray[13]:=oetTextTableIndex; + ChildrenArray[14]:=oetTextObjectIndex; + ChildrenArray[15]:=oetTextUserIndex; + ChildrenArray[16]:=oetTextAlphabeticalIndex; + ChildrenArray[17]:=oetTextBibliography; + ChildrenArray[18]:=oetTextIndexTitle; + ChildrenArray[19]:=oetTextChange; + ChildrenArray[20]:=oetTextChangeStart; + ChildrenArray[21]:=oetTextChangeEnd; + ChildrenArray[22]:=oetStyleRegionLeft; + ChildrenArray[23]:=oetStyleRegionCenter; + ChildrenArray[24]:=oetStyleRegionRight; + SetLength(AttsArray, 1); + AttsArray[0]:=oatStyleDisplay; + end; oetTextTrackedChanges : begin Namespace:=onsText; LocalName:='tracked-changes'; @@ -5580,6 +5614,13 @@ + SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; + oetStyleFooterFirst : begin + Namespace:=onsStyle; + LocalName:='footer-first'; + SetLength(ChildrenArray, 0); + SetLength(AttsArray, 1); + AttsArray[0]:=oatStyleDisplay; + end; oetStyleFooterLeft : begin Namespace:=onsStyle; LocalName:='footer-left'; @@ -5587,6 +5628,20 @@ + SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; + oetLoExtFooterFirst : begin + Namespace:=onsLoExt; + LocalName:='footer-first'; + SetLength(ChildrenArray, 0); + SetLength(AttsArray, 1); + AttsArray[0]:=oatStyleDisplay; + end; + oetLoExtHeaderFirst : begin + Namespace:=onsLoExt; + LocalName:='header-first'; + SetLength(ChildrenArray, 0); + SetLength(AttsArray, 1); + AttsArray[0]:=oatStyleDisplay; + end; oetDrawLayerSet : begin Namespace:=onsDraw; LocalName:='layer-set'; Index: odf_types.pas +=================================================================== +diff --git a/branches/NewFeatures_1/odf_types.pas b/branches/NewFeatures_1/odf_types.pas +--- a/branches/NewFeatures_1/odf_types.pas (revision 112) ++++ b/branches/NewFeatures_1/odf_types.pas (working copy) +@@ -63,12 +63,15 @@ + cNone = '<NONE>'; + cFileContent = 'content.xml'; + cFileStyles = 'styles.xml'; ++ cFileMeta = 'meta.xml'; ++ cFileSettings = 'settings.xml'; + cFileMimetype = 'mimetype'; + cIsoDateFormat = 'yyyy-mm-dd"T"hh:nn:ss'; //Is defined somewhere at fcl? +- cMetaGenerator = 'fpOdf 0.1'; { TODO : Need to change to a proper format, ++ cMetaGenerator = 'fpOdf 0.2'; { TODO : Need to change to a proper format, + as specified at p1-4.3.2.1 } + + cUrnOpenDocument = 'urn:oasis:names:tc:opendocument:xmlns:'; ++ cUrnDocumentFoundationExperimental = 'urn:org:documentfoundation:names:experimental:office:xmlns:'; + + cUrlOasis = 'http://docs.oasis-open.org/'; + cUriOffice12Meta = cUrlOasis + 'ns/office/1.2/meta/'; +@@ -85,7 +88,7 @@ + onsPresentation, onsSvg, onsText, onsChart, onsTable, + onsForm, onsXforms, onsDraw, onsMath, onsDr3d, onsNumber, + onsAnim, onsDb, onsXlink, onsXml, onsFo, onsSmil, +- onsXhtml, onsPkg, onsOf); ++ onsXhtml, onsPkg, onsOf,onsLoExt); + + TOdfNamespaces = set of TOdfNamespace; + +@@ -119,7 +122,8 @@ + 'smil', + 'xhtml', + 'pkg', +- 'of'); ++ 'of', ++ 'LoExt'); + + OdfNamespaceURIs: array[TOdfNamespace] of String = (cNone, + cUrnOpenDocument + 'office:1.0', +@@ -150,7 +154,8 @@ + cUrnOpenDocument + 'smil-compatible:1.0', + cUrlW3 + '1999/xhtml', + cUriOffice12Meta + 'pkg#', +- cUrnOpenDocument + 'of:1.2'); ++ cUrnOpenDocument + 'of:1.2', ++ cUrnDocumentFoundationExperimental+'loext:1.0'); + + function GetURI(ns: TOdfNamespace): string; + function OdfGetNsUri(APrefix: string): string; +@@ -618,6 +623,7 @@ + Procedure Clear; override; + { TODO : Replace AddParagraph, param ATextSytleName, with A Style Object or interface} + function AddSection(aSectionName,ATextStyleName: String): TOdfSection; ++ function AddMasterStyle: TOdfStyleStyle; + function AddParagraph(ATextStyleName: String): TOdfParagraph; + function AddHeadline(aLevel: integer): TOdfContent; + function AddAutomaticStyle:TOdfStyleStyle;overload; +@@ -1350,8 +1356,12 @@ + begin + if Assigned(FText) + then +- FreeAndNil(FText); ++ try ++ // Prüfen warum Ftext sich ändert ++ FreeAndNil(FText); ++ except + ++ end; + FText:=OdfGetElement(oetOfficeText, FBody); + end; + +@@ -1412,6 +1422,21 @@ + FText.AppendChild(result); + end; + ++function TOdfTextDocument.AddMasterStyle: TOdfStyleStyle; ++begin ++ Result := TOdfStyleStyle(TOdfElement(FMasterStyles).Find('Standard')); ++ if not assigned(result) then ++ begin ++ result:=TOdfStyleStyle(CreateOdfElement(oetStyleMasterPage)); ++ with result do ++ begin ++ OdfStyleName:='Standard'; ++ OdfStyleFamily:=''; ++ end; ++ FMasterStyles.AppendChild(result); ++ end; ++end; ++ + function TOdfTextDocument.AddParagraph(ATextStyleName: String): TOdfParagraph; + begin + TOdfSection(FText).AddParagraph(ATextStyleName); +@@ -1517,6 +1542,7 @@ + Doc: TXMLDocument): TOdfElement; + var + vQname, vUri: string; ++ ll: TDomElement; + begin + vQname:=OdfGetElementQName(AType, vUri); + +@@ -1524,7 +1550,13 @@ + result:=(doc.CreateElementNS(vUri, vQname, AClass) as aclass); + {$IFDEF fpodf_debug}WriteLn(result.ClassName);{$ENDIF} + {$else} +- result:=TOdfElement(doc.CreateElementNS(vUri, vQname)); ++ result := AClass.Create(doc); ++ ll := doc.CreateElementNS(vUri, vQname); ++ result.FNSI := ll.NSI; ++ result.NamespaceURI; ++ FreeAndNil(ll); ++ Include(Result.FFlags, nfLevel2); ++ Result.AttachDefaultAttrs; + {$endif} + end; + +@@ -2678,7 +2710,7 @@ + + TempDir:=IncludeTrailingPathDelimiter(TempDir); + +- mt:=OdfGetMimeTypeFromFile(TempDir + 'mimetype'); ++ mt:=OdfGetMimeTypeFromFile(TempDir + cFileMimetype); + + case mt of + omtText: result:=TOdfTextDocument.Create; +@@ -2715,7 +2747,7 @@ + ReorderElements(AOdf); + OdfXmlSetDefaultAtts(AOdf.XmlDocument); + OdfElementSetNamespaceAtt(AOdf.XmlDocument.DocumentElement, +- [onsStyle, onsFo, onsSvg]); ++ [onsStyle, onsFo, onsSvg, onsText]); + OdfWriteXmlToFile(AOdf.XmlDocument, AFilename); + end; + +@@ -3323,11 +3355,11 @@ + RootElement:=oetOfficeDocumentStyles; + end; + ofMeta: begin +- Filename:='meta.xml'; ++ Filename:=cFileMeta; + RootElement:=oetOfficeDocumentMeta; + end; + ofSettings: begin +- Filename:='settings.xml'; ++ Filename:=cFileSettings; + RootElement:=oetOfficeDocumentSettings; + end; + +Index: odf_xmlutils.pas +=================================================================== +diff --git a/branches/NewFeatures_1/odf_xmlutils.pas b/branches/NewFeatures_1/odf_xmlutils.pas +--- a/branches/NewFeatures_1/odf_xmlutils.pas (revision 112) ++++ b/branches/NewFeatures_1/odf_xmlutils.pas (working copy) +@@ -51,15 +51,20 @@ + + ; + ++type TXmlWriterProc=Procedure(ADoc: TXMLDocument; AFilename: string); + + procedure OdfWriteXmlToFile(ADoc: TXMLDocument; AFilename: string); + + function OdfAttributesAsStrings(e: TDOMElement; OnlyNames: boolean = true): TStrings; + ++var XmlWriterProc : TXmlWriterProc; + implementation + + procedure OdfWriteXmlToFile(ADoc: TXMLDocument; AFilename: string); + begin ++ if assigned(XmlWriterProc) then ++ XmlWriterProc(ADoc,AFilename) ++ else + {$IfDef UseStaxWriter} + XmlStreamWrite(ADoc, AFilename, 'utf-8', '1.0'); + {$Else} +Index: test/fpOdfTest.lpi +=================================================================== +diff --git a/branches/NewFeatures_1/test/fpOdfTest.lpi b/branches/NewFeatures_1/test/fpOdfTest.lpi +--- a/branches/NewFeatures_1/test/fpOdfTest.lpi (revision 112) ++++ b/branches/NewFeatures_1/test/fpOdfTest.lpi (working copy) +@@ -1,7 +1,7 @@ + <?xml version="1.0" encoding="UTF-8"?> + <CONFIG> + <ProjectOptions> +- <Version Value="9"/> ++ <Version Value="11"/> + <General> + <Flags> + <SaveJumpHistory Value="False"/> +@@ -15,22 +15,24 @@ + <i18n> + <EnableI18N LFM="False"/> + </i18n> +- <VersionInfo> +- <StringTable ProductVersion=""/> +- </VersionInfo> + <BuildModes Count="1"> + <Item1 Name="Default" Default="True"/> + </BuildModes> + <PublishOptions> + <Version Value="2"/> +- <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/> +- <ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/> + </PublishOptions> + <RunParams> + <local> +- <FormatVersion Value="1"/> + <CommandLineParams Value="-a --format=plain"/> + </local> ++ <FormatVersion Value="2"/> ++ <Modes Count="1"> ++ <Mode0 Name="default"> ++ <local> ++ <CommandLineParams Value="-a --format=plain"/> ++ </local> ++ </Mode0> ++ </Modes> + </RunParams> + <RequiredPackages Count="3"> + <Item1> +@@ -47,35 +49,33 @@ + <Unit0> + <Filename Value="fpOdfTest.lpr"/> + <IsPartOfProject Value="True"/> +- <UnitName Value="fpOdfTest"/> + </Unit0> + <Unit1> + <Filename Value="TestStringPrep.pas"/> + <IsPartOfProject Value="True"/> +- <UnitName Value="TestStringPrep"/> + </Unit1> + <Unit2> + <Filename Value="ElementFunctionsTests.pas"/> + <IsPartOfProject Value="True"/> +- <UnitName Value="ElementFunctionsTests"/> + </Unit2> + <Unit3> + <Filename Value="CharacterContentTest.pas"/> + <IsPartOfProject Value="True"/> +- <UnitName Value="CharacterContentTest"/> + </Unit3> + <Unit4> + <Filename Value="SearchTest.pas"/> + <IsPartOfProject Value="True"/> +- <UnitName Value="SearchTest"/> + </Unit4> + </Units> + </ProjectOptions> + <CompilerOptions> + <Version Value="11"/> ++ <Target> ++ <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> ++ </Target> + <SearchPaths> + <IncludeFiles Value="$(ProjOutDir)"/> +- <UnitOutputDirectory Value="output"/> ++ <UnitOutputDirectory Value="../../bin/$(TargetCPU)-$(TargetOS)/units"/> + </SearchPaths> + <Linking> + <Debugging> +@@ -82,12 +82,6 @@ + <UseExternalDbgSyms Value="True"/> + </Debugging> + </Linking> +- <Other> +- <CompilerMessages> +- <MsgFileName Value=""/> +- </CompilerMessages> +- <CompilerPath Value="$(CompPath)"/> +- </Other> + </CompilerOptions> + <Debugging> + <Exceptions Count="3"> diff --git a/incs/ElementEnum.inc b/incs/ElementEnum.inc index 1fc396e..ea14478 100644 --- a/incs/ElementEnum.inc +++ b/incs/ElementEnum.inc @@ -1 +1 @@ -{ ElementEnum.inc is part of the fpOdf. fpOdf is a library used to help users to create and to modify OpenDocument Files(ODF) Copyright (C) 2013 Daniel F. Gaspary https://github.com/dgaspary This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version with the following modification: As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules,and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. } {This file was generated automatically. Any modification will be overridden.} type TElementType = (oetNone,oetManifestManifest,oetManifestFileEntry, oetManifestEncryptionData,oetManifestAlgorithm, oetManifestStartKeyGeneration,oetManifestKeyDerivation, oetOfficeDocument,oetOfficeMeta,oetMetaGenerator, oetDcTitle,oetDcDescription,oetDcSubject,oetMetaKeyword, oetMetaInitialCreator,oetDcCreator,oetMetaPrintedBy, oetMetaCreationDate,oetDcDate,oetMetaPrintDate, oetMetaTemplate,oetMetaAutoReload, oetMetaHyperlinkBehaviour,oetDcLanguage, oetMetaEditingCycles,oetMetaEditingDuration, oetMetaDocumentStatistic,oetMetaUserDefined, oetOfficeSettings,oetConfigConfigItemSet, oetConfigConfigItem,oetConfigConfigItemMapNamed, oetConfigConfigItemMapEntry, oetConfigConfigItemMapIndexed,oetOfficeScripts, oetOfficeScript,oetOfficeEventListeners, oetScriptEventListener,oetPresentationEventListener, oetPresentationSound,oetOfficeFontFaceDecls, oetStyleFontFace,oetSvgFontFaceSrc,oetSvgFontFaceUri, oetSvgFontFaceFormat,oetSvgFontFaceName, oetSvgDefinitionSrc,oetOfficeStyles,oetStyleStyle, oetStyleTextProperties,oetStyleParagraphProperties, oetStyleTabStops,oetStyleTabStop,oetStyleDropCap, oetStyleBackgroundImage,oetOfficeBinaryData, oetStyleSectionProperties,oetStyleColumns, oetStyleColumnSep,oetStyleColumn, oetTextNotesConfiguration, oetTextNoteContinuationNoticeForward, oetTextNoteContinuationNoticeBackward, oetStyleRubyProperties,oetStyleTableProperties, oetStyleTableColumnProperties, oetStyleTableRowProperties,oetStyleTableCellProperties, oetStyleGraphicProperties,oetTextListStyle, oetTextListLevelStyleNumber,oetStyleListLevelProperties, oetStyleListLevelLabelAlignment, oetTextListLevelStyleBullet,oetTextListLevelStyleImage, oetStyleDrawingPageProperties,oetStyleChartProperties, oetChartSymbolImage,oetChartLabelSeparator,oetTextP, oetTextS,oetTextTab,oetTextLineBreak, oetTextSoftPageBreak,oetTextSpan,oetTextMeta, oetTextBookmark,oetTextBookmarkStart,oetTextBookmarkEnd, oetTextReferenceMark,oetTextReferenceMarkStart, oetTextReferenceMarkEnd,oetTextNote,oetTextNoteCitation, oetTextNoteBody,oetTextH,oetTextNumber,oetTextList, oetTextListHeader,oetTextListItem, oetTextNumberedParagraph,oetTableTable,oetTableTitle, oetTableDesc,oetTableTableSource,oetOfficeDdeSource, oetTableScenario,oetOfficeForms,oetFormForm, oetFormProperties,oetFormProperty,oetFormListProperty, oetFormListValue,oetFormText,oetFormTextarea, oetFormFormattedText,oetFormNumber,oetFormDate, oetFormTime,oetFormCombobox,oetFormItem,oetFormListbox, oetFormOption,oetFormCheckbox,oetFormPassword, oetFormFile,oetFormFixedText,oetFormButton,oetFormImage, oetFormRadio,oetFormFrame,oetFormImageFrame, oetFormHidden,oetFormGrid,oetFormColumn, oetFormValueRange,oetFormGenericControl, oetFormConnectionResource,oetXformsModel,oetTableShapes, oetDrawRect,oetSvgTitle,oetSvgDesc,oetDrawGluePoint, oetDrawLine,oetDrawPolyline,oetDrawPolygon, oetDrawRegularPolygon,oetDrawPath,oetDrawCircle, oetDrawEllipse,oetDrawG,oetDrawPageThumbnail, oetDrawFrame,oetDrawTextBox,oetDrawImage,oetDrawObject, oetMathMath,oetDrawObjectOle,oetDrawApplet,oetDrawParam, oetDrawFloatingFrame,oetDrawPlugin,oetDrawImageMap, oetDrawAreaRectangle,oetDrawAreaCircle, oetDrawAreaPolygon,oetDrawContourPolygon, oetDrawContourPath,oetDrawMeasure,oetDrawCaption, oetDrawConnector,oetDrawControl,oetDr3dScene, oetDr3dLight,oetDr3dExtrude,oetDr3dSphere,oetDr3dRotate, oetDr3dCube,oetDrawCustomShape,oetDrawEnhancedGeometry, oetDrawEquation,oetDrawHandle,oetDrawA, oetTableTableColumnGroup,oetTableTableColumns, oetTableTableColumn,oetTableTableHeaderColumns, oetTableTableRowGroup,oetTableTableRows, oetTableTableRow,oetTableTableCell, oetTableCellRangeSource,oetOfficeAnnotation, oetMetaDateString,oetTableDetective, oetTableHighlightedRange,oetTableOperation, oetTableCoveredTableCell,oetTableTableHeaderRows, oetTableNamedExpressions,oetTableNamedRange, oetTableNamedExpression,oetTextSection, oetTextSectionSource,oetTextTableOfContent, oetTextTableOfContentSource,oetTextIndexTitleTemplate, oetTextTableOfContentEntryTemplate, oetTextIndexEntryChapter,oetTextIndexEntryPageNumber, oetTextIndexEntryText,oetTextIndexEntrySpan, oetTextIndexEntryTabStop,oetTextIndexEntryLinkStart, oetTextIndexEntryLinkEnd,oetTextIndexSourceStyles, oetTextIndexSourceStyle,oetTextIndexBody, oetTextIndexTitle,oetTextIllustrationIndex, oetTextIllustrationIndexSource, oetTextIllustrationIndexEntryTemplate,oetTextTableIndex, oetTextTableIndexSource,oetTextTableIndexEntryTemplate, oetTextObjectIndex,oetTextObjectIndexSource, oetTextObjectIndexEntryTemplate,oetTextUserIndex, oetTextUserIndexSource,oetTextUserIndexEntryTemplate, oetTextAlphabeticalIndex,oetTextAlphabeticalIndexSource, oetTextAlphabeticalIndexEntryTemplate, oetTextBibliography,oetTextBibliographySource, oetTextBibliographyEntryTemplate, oetTextIndexEntryBibliography,oetTextChange, oetTextChangeStart,oetTextChangeEnd,oetTextRuby, oetTextRubyBase,oetTextRubyText,oetOfficeAnnotationEnd, oetTextDate,oetTextTime,oetTextPageNumber, oetTextPageContinuation,oetTextSenderFirstname, oetTextSenderLastname,oetTextSenderInitials, oetTextSenderTitle,oetTextSenderPosition, oetTextSenderEmail,oetTextSenderPhonePrivate, oetTextSenderFax,oetTextSenderCompany, oetTextSenderPhoneWork,oetTextSenderStreet, oetTextSenderCity,oetTextSenderPostalCode, oetTextSenderCountry,oetTextSenderStateOrProvince, oetTextAuthorName,oetTextAuthorInitials,oetTextChapter, oetTextFileName,oetTextTemplateName,oetTextSheetName, oetTextVariableSet,oetTextVariableGet, oetTextVariableInput,oetTextUserFieldGet, oetTextUserFieldInput,oetTextSequence,oetTextExpression, oetTextTextInput,oetTextInitialCreator, oetTextCreationDate,oetTextCreationTime, oetTextDescription,oetTextUserDefined,oetTextPrintTime, oetTextPrintDate,oetTextPrintedBy,oetTextTitle, oetTextSubject,oetTextKeywords,oetTextEditingCycles, oetTextEditingDuration,oetTextModificationTime, oetTextModificationDate,oetTextCreator, oetTextDatabaseDisplay,oetTextDatabaseNext, oetTextDatabaseRowSelect,oetTextDatabaseRowNumber, oetTextDatabaseName,oetTextPageVariableSet, oetTextPageVariableGet,oetTextPlaceholder, oetTextConditionalText,oetTextHiddenText,oetTextNoteRef, oetTextSequenceRef,oetTextScript,oetTextExecuteMacro, oetTextHiddenParagraph,oetTextDdeConnection, oetTextMeasure,oetTextTableFormula,oetTextMetaField, oetTextTocMarkStart,oetTextTocMarkEnd,oetTextTocMark, oetTextUserIndexMarkStart,oetTextUserIndexMarkEnd, oetTextUserIndexMark,oetTextAlphabeticalIndexMarkStart, oetTextAlphabeticalIndexMarkEnd, oetTextAlphabeticalIndexMark,oetTextBibliographyMark, oetPresentationHeader,oetPresentationFooter, oetPresentationDateTime,oetTextA,oetStyleMap, oetNumberNumberStyle,oetNumberText,oetNumberNumber, oetNumberEmbeddedText,oetNumberScientificNumber, oetNumberFraction,oetNumberCurrencyStyle, oetNumberCurrencySymbol,oetNumberPercentageStyle, oetNumberDateStyle,oetNumberDay,oetNumberMonth, oetNumberYear,oetNumberEra,oetNumberDayOfWeek, oetNumberWeekOfYear,oetNumberQuarter,oetNumberHours, oetNumberAmPm,oetNumberMinutes,oetNumberSeconds, oetNumberTimeStyle,oetNumberBooleanStyle, oetNumberBoolean,oetNumberTextStyle, oetNumberTextContent,oetStyleDefaultStyle, oetStyleDefaultPageLayout,oetStylePageLayoutProperties, oetStyleFootnoteSep,oetStyleHeaderStyle, oetStyleHeaderFooterProperties,oetStyleFooterStyle, oetTextOutlineStyle,oetTextOutlineLevelStyle, oetTextBibliographyConfiguration,oetTextSortKey, oetTextLinenumberingConfiguration, oetTextLinenumberingSeparator,oetDrawGradient, oetSvgLineargradient,oetSvgStop,oetSvgRadialgradient, oetDrawHatch,oetDrawFillImage,oetDrawMarker, oetDrawStrokeDash,oetDrawOpacity, oetStylePresentationPageLayout, oetPresentationPlaceholder,oetTableTableTemplate, oetTableFirstRow,oetTableLastRow,oetTableFirstColumn, oetTableLastColumn,oetTableBody,oetTableEvenRows, oetTableOddRows,oetTableEvenColumns,oetTableOddColumns, oetTableBackground,oetOfficeAutomaticStyles, oetStylePageLayout,oetOfficeMasterStyles, oetStyleMasterPage,oetStyleHeader,oetTextTrackedChanges, oetTextChangedRegion,oetTextInsertion, oetOfficeChangeInfo,oetTextDeletion,oetTextFormatChange, oetTextVariableDecls,oetTextVariableDecl, oetTextSequenceDecls,oetTextSequenceDecl, oetTextUserFieldDecls,oetTextUserFieldDecl, oetTextDdeConnectionDecls,oetTextDdeConnectionDecl, oetTextAlphabeticalIndexAutoMarkFile,oetStyleRegionLeft, oetStyleRegionCenter,oetStyleRegionRight, oetStyleHeaderLeft,oetStyleFooter,oetStyleFooterLeft, oetDrawLayerSet,oetDrawLayer,oetAnimAnimate,oetAnimSet, oetAnimAnimatemotion,oetAnimAnimatecolor, oetAnimAnimatetransform,oetAnimTransitionfilter, oetAnimPar,oetAnimSeq,oetAnimIterate,oetAnimAudio, oetAnimCommand,oetAnimParam,oetPresentationNotes, oetStyleHandoutMaster,oetOfficeBody,oetOfficeText, oetTableCalculationSettings,oetTableNullDate, oetTableIteration,oetTableContentValidations, oetTableContentValidation,oetTableHelpMessage, oetTableErrorMessage,oetTableErrorMacro, oetTableLabelRanges,oetTableLabelRange, oetTextPageSequence,oetTextPage,oetTableDatabaseRanges, oetTableDatabaseRange,oetTableDatabaseSourceSql, oetTableDatabaseSourceQuery,oetTableDatabaseSourceTable, oetTableFilter,oetTableFilterCondition, oetTableFilterSetItem,oetTableFilterAnd, oetTableFilterOr,oetTableSort,oetTableSortBy, oetTableSubtotalRules,oetTableSortGroups, oetTableSubtotalRule,oetTableSubtotalField, oetTableDataPilotTables,oetTableDataPilotTable, oetTableSourceService,oetTableSourceCellRange, oetTableDataPilotField,oetTableDataPilotLevel, oetTableDataPilotSubtotals,oetTableDataPilotSubtotal, oetTableDataPilotMembers,oetTableDataPilotMember, oetTableDataPilotDisplayInfo,oetTableDataPilotSortInfo, oetTableDataPilotLayoutInfo, oetTableDataPilotFieldReference,oetTableDataPilotGroups, oetTableDataPilotGroup,oetTableDataPilotGroupMember, oetTableConsolidation,oetTableDdeLinks,oetTableDdeLink, oetOfficeDrawing,oetDrawPage,oetPresentationAnimations, oetPresentationShowShape,oetPresentationShowText, oetPresentationHideShape,oetPresentationHideText, oetPresentationDim,oetPresentationPlay, oetPresentationAnimationGroup,oetOfficePresentation, oetPresentationHeaderDecl,oetPresentationFooterDecl, oetPresentationDateTimeDecl,oetPresentationSettings, oetPresentationShow,oetOfficeSpreadsheet, oetTableTrackedChanges,oetTableCellContentChange, oetTableCellAddress,oetTableDependencies, oetTableDependency,oetTableDeletions, oetTableCellContentDeletion, oetTableChangeTrackTableCell,oetTableChangeDeletion, oetTablePrevious,oetTableInsertion,oetTableDeletion, oetTableCutOffs,oetTableMovementCutOff, oetTableInsertionCutOff,oetTableMovement, oetTableSourceRangeAddress,oetTableTargetRangeAddress, oetOfficeChart,oetChartChart,oetChartTitle, oetChartSubtitle,oetChartFooter,oetChartLegend, oetChartPlotArea,oetChartAxis,oetChartCategories, oetChartGrid,oetChartSeries,oetChartDomain, oetChartMeanValue,oetChartRegressionCurve, oetChartEquation,oetChartErrorIndicator, oetChartDataPoint,oetChartDataLabel, oetChartStockGainMarker,oetChartStockLossMarker, oetChartStockRangeLine,oetChartWall,oetChartFloor, oetOfficeImage,oetOfficeDatabase,oetDbDataSource, oetDbConnectionData,oetDbDatabaseDescription, oetDbFileBasedDatabase,oetDbServerDatabase, oetDbConnectionResource,oetDbLogin,oetDbDriverSettings, oetDbAutoIncrement,oetDbDelimiter,oetDbCharacterSet, oetDbTableSettings,oetDbTableSetting, oetDbApplicationConnectionSettings,oetDbTableFilter, oetDbTableIncludeFilter,oetDbTableFilterPattern, oetDbTableExcludeFilter,oetDbTableTypeFilter, oetDbTableType,oetDbDataSourceSettings, oetDbDataSourceSetting,oetDbDataSourceSettingValue, oetDbForms,oetDbComponent,oetDbComponentCollection, oetDbReports,oetDbQueries,oetDbQuery, oetDbOrderStatement,oetDbFilterStatement,oetDbColumns, oetDbColumn,oetDbUpdateTable,oetDbQueryCollection, oetDbTableRepresentations,oetDbTableRepresentation, oetDbSchemaDefinition,oetDbTableDefinitions, oetDbTableDefinition,oetDbColumnDefinitions, oetDbColumnDefinition,oetDbKeys,oetDbKey, oetDbKeyColumns,oetDbKeyColumn,oetDbIndices,oetDbIndex, oetDbIndexColumns,oetDbIndexColumn, oetOfficeDocumentContent,oetOfficeDocumentStyles, oetOfficeDocumentMeta,oetOfficeDocumentSettings ); \ No newline at end of file +{ ElementEnum.inc is part of the fpOdf. fpOdf is a library used to help users to create and to modify OpenDocument Files(ODF) Copyright (C) 2013 Daniel F. Gaspary https://github.com/dgaspary This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version with the following modification: As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules,and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Additons: (C) 2024 Joe Care https://github.com/joecare99 } {This file was generated automatically. Any modification will be overridden.} type TElementType = (oetNone, oetAnimAnimate, oetAnimAnimatecolor, oetAnimAnimatemotion, oetAnimAnimatetransform, oetAnimAudio, oetAnimCommand, oetAnimIterate, oetAnimPar, oetAnimParam, oetAnimSeq, oetAnimSet, oetAnimTransitionfilter, //Chart oetChartAxis, oetChartCategories, oetChartChart, oetChartDataLabel, oetChartDataPoint, oetChartDomain, oetChartEquation, oetChartErrorIndicator, oetChartFloor, oetChartFooter, oetChartGrid, oetChartLabelSeparator, oetChartLegend, oetChartMeanValue, oetChartPlotArea, oetChartRegressionCurve, oetChartSeries, oetChartStockGainMarker, oetChartStockLossMarker, oetChartStockRangeLine, oetChartSubtitle, oetChartSymbolImage, oetChartTitle, oetChartWall, //Config oetConfigConfigItem, oetConfigConfigItemMapEntry, oetConfigConfigItemMapIndexed, oetConfigConfigItemMapNamed, oetConfigConfigItemSet, //Db oetDbApplicationConnectionSettings, oetDbAutoIncrement, oetDbCharacterSet, oetDbColumn, oetDbColumnDefinition, oetDbColumnDefinitions, oetDbColumns, oetDbComponent, oetDbComponentCollection, oetDbConnectionData, oetDbConnectionResource, oetDbDataSource, oetDbDataSourceSetting, oetDbDataSourceSettingValue, oetDbDataSourceSettings, oetDbDatabaseDescription, oetDbDelimiter, oetDbDriverSettings, oetDbFileBasedDatabase, oetDbFilterStatement, oetDbForms, oetDbIndex, oetDbIndexColumn, oetDbIndexColumns, oetDbIndices, oetDbKey, oetDbKeyColumn, oetDbKeyColumns, oetDbKeys, oetDbLogin, oetDbOrderStatement, oetDbQueries, oetDbQuery, oetDbQueryCollection, oetDbReports, oetDbSchemaDefinition, oetDbServerDatabase, oetDbTableDefinition, oetDbTableDefinitions, oetDbTableExcludeFilter, oetDbTableFilter, oetDbTableFilterPattern, oetDbTableIncludeFilter, oetDbTableRepresentation, oetDbTableRepresentations, oetDbTableSetting, oetDbTableSettings, oetDbTableType, oetDbTableTypeFilter, oetDbUpdateTable, oetDcCreator, oetDcDate, oetDcDescription, oetDcLanguage, oetDcSubject, oetDcTitle, oetDr3dCube, oetDr3dExtrude, oetDr3dLight, oetDr3dRotate, oetDr3dScene, oetDr3dSphere, oetDrawA, oetDrawApplet, oetDrawAreaCircle, oetDrawAreaPolygon, oetDrawAreaRectangle, oetDrawCaption, oetDrawCircle, oetDrawConnector, oetDrawContourPath, oetDrawContourPolygon, oetDrawControl, oetDrawCustomShape, oetDrawEllipse, oetDrawEnhancedGeometry, oetDrawEquation, oetDrawFillImage, oetDrawFloatingFrame, oetDrawFrame, oetDrawG, oetDrawGluePoint, oetDrawGradient, oetDrawHandle, oetDrawHatch, oetDrawImage, oetDrawImageMap, oetDrawLayer, oetDrawLayerSet, oetDrawLine, oetDrawMarker, oetDrawMeasure, oetDrawObject, oetDrawObjectOle, oetDrawOpacity, oetDrawPage, oetDrawPageThumbnail, oetDrawParam, oetDrawPath, oetDrawPlugin, oetDrawPolygon, oetDrawPolyline, oetDrawRect, oetDrawRegularPolygon, oetDrawStrokeDash, oetDrawTextBox, oetFormButton, oetFormCheckbox, oetFormColumn, oetFormCombobox, oetFormConnectionResource, oetFormDate, oetFormFile, oetFormFixedText, oetFormForm, oetFormFormattedText, oetFormFrame, oetFormGenericControl, oetFormGrid, oetFormHidden, oetFormImage, oetFormImageFrame, oetFormItem, oetFormListProperty, oetFormListValue, oetFormListbox, oetFormNumber, oetFormOption, oetFormPassword, oetFormProperties, oetFormProperty, oetFormRadio, oetFormText, oetFormTextarea, oetFormTime, oetFormValueRange, oetLoExtFooterFirst, oetLoExtHeaderFirst, oetManifestAlgorithm, oetManifestEncryptionData, oetManifestFileEntry, oetManifestKeyDerivation, oetManifestManifest, oetManifestStartKeyGeneration, oetMathMath, oetMetaAutoReload, oetMetaCreationDate, oetMetaDateString, oetMetaDocumentStatistic, oetMetaEditingCycles, oetMetaEditingDuration, oetMetaGenerator, oetMetaHyperlinkBehaviour, oetMetaInitialCreator, oetMetaKeyword, oetMetaPrintDate, oetMetaPrintedBy, oetMetaTemplate, oetMetaUserDefined, oetNumberAmPm, oetNumberBoolean, oetNumberBooleanStyle, oetNumberCurrencyStyle, oetNumberCurrencySymbol, oetNumberDateStyle, oetNumberDay, oetNumberDayOfWeek, oetNumberEmbeddedText, oetNumberEra, oetNumberFraction, oetNumberHours, oetNumberMinutes, oetNumberMonth, oetNumberNumber, oetNumberNumberStyle, oetNumberPercentageStyle, oetNumberQuarter, oetNumberScientificNumber, oetNumberSeconds, oetNumberText, oetNumberTextContent, oetNumberTextStyle, oetNumberTimeStyle, oetNumberWeekOfYear, oetNumberYear, oetOfficeAnnotation, oetOfficeAnnotationEnd, oetOfficeAutomaticStyles, oetOfficeBinaryData, oetOfficeBody, oetOfficeChangeInfo, oetOfficeChart, oetOfficeDatabase, oetOfficeDdeSource, oetOfficeDocument, oetOfficeDocumentContent, oetOfficeDocumentMeta, oetOfficeDocumentSettings, oetOfficeDocumentStyles, oetOfficeDrawing, oetOfficeEventListeners, oetOfficeFontFaceDecls, oetOfficeForms, oetOfficeImage, oetOfficeMasterStyles, oetOfficeMeta, oetOfficePresentation, oetOfficeScript, oetOfficeScripts, oetOfficeSettings, oetOfficeSpreadsheet, oetOfficeStyles, oetOfficeText, oetPresentationAnimationGroup, oetPresentationAnimations, oetPresentationDateTime, oetPresentationDateTimeDecl, oetPresentationDim, oetPresentationEventListener, oetPresentationFooter, oetPresentationFooterDecl, oetPresentationHeader, oetPresentationHeaderDecl, oetPresentationHideShape, oetPresentationHideText, oetPresentationNotes, oetPresentationPlaceholder, oetPresentationPlay, oetPresentationSettings, oetPresentationShow, oetPresentationShowShape, oetPresentationShowText, oetPresentationSound, oetScriptEventListener, // Style oetStyleBackgroundImage, oetStyleChartProperties, oetStyleColumn, oetStyleColumnSep, oetStyleColumns, oetStyleDefaultPageLayout, oetStyleDefaultStyle, oetStyleDrawingPageProperties, oetStyleDropCap, oetStyleFontFace, oetStyleFooter, oetStyleFooterFirst, oetStyleFooterLeft, oetStyleFooterStyle, oetStyleFootnoteSep, oetStyleGraphicProperties, oetStyleHandoutMaster, oetStyleHeader, oetStyleHeaderFirst, oetStyleHeaderFooterProperties, oetStyleHeaderLeft, oetStyleHeaderStyle, oetStyleListLevelLabelAlignment, oetStyleListLevelProperties, oetStyleMap, oetStyleMasterPage, oetStylePageLayout, oetStylePageLayoutProperties, oetStyleParagraphProperties, oetStylePresentationPageLayout, oetStyleRegionCenter, oetStyleRegionLeft, oetStyleRegionRight, oetStyleRubyProperties, oetStyleSectionProperties, oetStyleStyle, oetStyleTabStop, oetStyleTabStops, oetStyleTableCellProperties, oetStyleTableColumnProperties, oetStyleTableProperties, oetStyleTableRowProperties, oetStyleTextProperties, // Svg oetSvgDefinitionSrc, oetSvgDesc, oetSvgFontFaceFormat, oetSvgFontFaceName, oetSvgFontFaceSrc, oetSvgFontFaceUri, oetSvgLineargradient, oetSvgRadialgradient, oetSvgStop, oetSvgTitle, // Table oetTableBackground, oetTableBody, oetTableCalculationSettings, oetTableCellAddress, oetTableCellContentChange, oetTableCellContentDeletion, oetTableCellRangeSource, oetTableChangeDeletion, oetTableChangeTrackTableCell, oetTableConsolidation, oetTableContentValidation, oetTableContentValidations, oetTableCoveredTableCell, oetTableCutOffs, oetTableDataPilotDisplayInfo, oetTableDataPilotField, oetTableDataPilotFieldReference, oetTableDataPilotGroup, oetTableDataPilotGroupMember, oetTableDataPilotGroups, oetTableDataPilotLayoutInfo, oetTableDataPilotLevel, oetTableDataPilotMember, oetTableDataPilotMembers, oetTableDataPilotSortInfo, oetTableDataPilotSubtotal, oetTableDataPilotSubtotals, oetTableDataPilotTable, oetTableDataPilotTables, oetTableDatabaseRange, oetTableDatabaseRanges, oetTableDatabaseSourceQuery, oetTableDatabaseSourceSql, oetTableDatabaseSourceTable, oetTableDdeLink, oetTableDdeLinks, oetTableDeletion, oetTableDeletions, oetTableDependencies, oetTableDependency, oetTableDesc, oetTableDetective, oetTableErrorMacro, oetTableErrorMessage, oetTableEvenColumns, oetTableEvenRows, oetTableFilter, oetTableFilterAnd, oetTableFilterCondition, oetTableFilterOr, oetTableFilterSetItem, oetTableFirstColumn, oetTableFirstRow, oetTableHelpMessage, oetTableHighlightedRange, oetTableInsertion, oetTableInsertionCutOff, oetTableIteration, oetTableLabelRange, oetTableLabelRanges, oetTableLastColumn, oetTableLastRow, oetTableMovement, oetTableMovementCutOff, oetTableNamedExpression, oetTableNamedExpressions, oetTableNamedRange, oetTableNullDate, oetTableOddColumns, oetTableOddRows, oetTableOperation, oetTablePrevious, oetTableScenario, oetTableShapes, oetTableSort, oetTableSortBy, oetTableSortGroups, oetTableSourceCellRange, oetTableSourceRangeAddress, oetTableSourceService, oetTableSubtotalField, oetTableSubtotalRule, oetTableSubtotalRules, oetTableTable, oetTableTableCell, oetTableTableColumn, oetTableTableColumnGroup, oetTableTableColumns, oetTableTableHeaderColumns, oetTableTableHeaderRows, oetTableTableRow, oetTableTableRowGroup, oetTableTableRows, oetTableTableSource, oetTableTableTemplate, oetTableTargetRangeAddress, oetTableTitle, oetTableTrackedChanges, // Text oetTextA, oetTextAlphabeticalIndex, oetTextAlphabeticalIndexAutoMarkFile, oetTextAlphabeticalIndexEntryTemplate, oetTextAlphabeticalIndexMark, oetTextAlphabeticalIndexMarkEnd, oetTextAlphabeticalIndexMarkStart, oetTextAlphabeticalIndexSource, oetTextAuthorInitials, oetTextAuthorName, oetTextBibliography, oetTextBibliographyConfiguration, oetTextBibliographyEntryTemplate, oetTextBibliographyMark, oetTextBibliographySource, oetTextBookmark, oetTextBookmarkEnd, oetTextBookmarkStart, oetTextChange, oetTextChangeEnd, oetTextChangeStart, oetTextChangedRegion, oetTextChapter, oetTextConditionalText, oetTextCreationDate, oetTextCreationTime, oetTextCreator, oetTextDatabaseDisplay, oetTextDatabaseName, oetTextDatabaseNext, oetTextDatabaseRowNumber, oetTextDatabaseRowSelect, oetTextDate, oetTextDdeConnection, oetTextDdeConnectionDecl, oetTextDdeConnectionDecls, oetTextDeletion, oetTextDescription, oetTextEditingCycles, oetTextEditingDuration, oetTextExecuteMacro, oetTextExpression, oetTextFileName, oetTextFormatChange, oetTextH, oetTextHiddenParagraph, oetTextHiddenText, oetTextIllustrationIndex, oetTextIllustrationIndexEntryTemplate, oetTextIllustrationIndexSource, oetTextIndexBody, oetTextIndexEntryBibliography, oetTextIndexEntryChapter, oetTextIndexEntryLinkEnd, oetTextIndexEntryLinkStart, oetTextIndexEntryPageNumber, oetTextIndexEntrySpan, oetTextIndexEntryTabStop, oetTextIndexEntryText, oetTextIndexSourceStyle, oetTextIndexSourceStyles, oetTextIndexTitle, oetTextIndexTitleTemplate, oetTextInitialCreator, oetTextInsertion, oetTextKeywords, oetTextLineBreak, oetTextLinenumberingConfiguration, oetTextLinenumberingSeparator, oetTextList, oetTextListHeader, oetTextListItem, oetTextListLevelStyleBullet, oetTextListLevelStyleImage, oetTextListLevelStyleNumber, oetTextListStyle, oetTextMeasure, oetTextMeta, oetTextMetaField, oetTextModificationDate, oetTextModificationTime, oetTextNote, oetTextNoteBody, oetTextNoteCitation, oetTextNoteContinuationNoticeBackward, oetTextNoteContinuationNoticeForward, oetTextNoteRef, oetTextNotesConfiguration, oetTextNumber, oetTextNumberedParagraph, oetTextObjectIndex, oetTextObjectIndexEntryTemplate, oetTextObjectIndexSource, oetTextOutlineLevelStyle, oetTextOutlineStyle, oetTextP, oetTextPage, oetTextPageContinuation, oetTextPageNumber, oetTextPageSequence, oetTextPageVariableGet, oetTextPageVariableSet, oetTextPlaceholder, oetTextPrintDate, oetTextPrintTime, oetTextPrintedBy, oetTextReferenceMark, oetTextReferenceMarkEnd, oetTextReferenceMarkStart, oetTextRuby, oetTextRubyBase, oetTextRubyText, oetTextS, oetTextScript, oetTextSection, oetTextSectionSource, oetTextSenderCity, oetTextSenderCompany, oetTextSenderCountry, oetTextSenderEmail, oetTextSenderFax, oetTextSenderFirstname, oetTextSenderInitials, oetTextSenderLastname, oetTextSenderPhonePrivate, oetTextSenderPhoneWork, oetTextSenderPosition, oetTextSenderPostalCode, oetTextSenderStateOrProvince, oetTextSenderStreet, oetTextSenderTitle, oetTextSequence, oetTextSequenceDecl, oetTextSequenceDecls, oetTextSequenceRef, oetTextSheetName, oetTextSoftPageBreak, oetTextSortKey, oetTextSpan, oetTextSubject, oetTextTab, oetTextTableFormula, oetTextTableIndex, oetTextTableIndexEntryTemplate, oetTextTableIndexSource, oetTextTableOfContent, oetTextTableOfContentEntryTemplate, oetTextTableOfContentSource, oetTextTemplateName, oetTextTextInput, oetTextTime, oetTextTitle, oetTextTocMark, oetTextTocMarkEnd, oetTextTocMarkStart, oetTextTrackedChanges, oetTextUserDefined, oetTextUserFieldDecl, oetTextUserFieldDecls, oetTextUserFieldGet, oetTextUserFieldInput, oetTextUserIndex, oetTextUserIndexEntryTemplate, oetTextUserIndexMark, oetTextUserIndexMarkEnd, oetTextUserIndexMarkStart, oetTextUserIndexSource, oetTextVariableDecl, oetTextVariableDecls, oetTextVariableGet, oetTextVariableInput, oetTextVariableSet, oetXformsModel ); \ No newline at end of file diff --git a/incs/proc.inc b/incs/proc.inc index d445178..7b130fa 100644 --- a/incs/proc.inc +++ b/incs/proc.inc @@ -1 +1 @@ -{ proc.inc is part of the fpOdf. fpOdf is a library used to help users to create and to modify OpenDocument Files(ODF) Copyright (C) 2013 Daniel F. Gaspary https://github.com/dgaspary This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version with the following modification: As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules,and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. } {This file was generated automatically. Any modification will be overridden.} procedure OdfElementGetDetails(et: TElementType; out Namespace: TOdfNamespace; out Localname: String; out ChildrenArray: TElementTypeArray; out AttsArray: TAttributeTypeArray); begin case et of oetNone : begin Namespace:=onsNone; LocalName:='none'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetManifestManifest : begin Namespace:=onsManifest; LocalName:='manifest'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetManifestFileEntry; SetLength(AttsArray, 1); AttsArray[0]:=oatManifestVersion; end; oetManifestFileEntry : begin Namespace:=onsManifest; LocalName:='file-entry'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetManifestEncryptionData; SetLength(AttsArray, 5); AttsArray[0]:=oatManifestFullPath; AttsArray[1]:=oatManifestSize; AttsArray[2]:=oatManifestMediaType; AttsArray[3]:=oatManifestPreferredViewMode; AttsArray[4]:=oatManifestVersion; end; oetManifestEncryptionData : begin Namespace:=onsManifest; LocalName:='encryption-data'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetManifestAlgorithm; ChildrenArray[1]:=oetManifestStartKeyGeneration; ChildrenArray[2]:=oetManifestKeyDerivation; SetLength(AttsArray, 2); AttsArray[0]:=oatManifestChecksumType; AttsArray[1]:=oatManifestChecksum; end; oetManifestAlgorithm : begin Namespace:=onsManifest; LocalName:='algorithm'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatManifestAlgorithmName; AttsArray[1]:=oatManifestInitialisationVector; end; oetManifestStartKeyGeneration : begin Namespace:=onsManifest; LocalName:='start-key-generation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatManifestStartKeyGenerationName; AttsArray[1]:=oatManifestKeySize; end; oetManifestKeyDerivation : begin Namespace:=onsManifest; LocalName:='key-derivation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatManifestKeyDerivationName; AttsArray[1]:=oatManifestSalt; AttsArray[2]:=oatManifestIterationCount; AttsArray[3]:=oatManifestKeySize; end; oetOfficeDocument : begin Namespace:=onsOffice; LocalName:='document'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetOfficeMeta; ChildrenArray[1]:=oetOfficeSettings; ChildrenArray[2]:=oetOfficeScripts; ChildrenArray[3]:=oetOfficeFontFaceDecls; ChildrenArray[4]:=oetOfficeStyles; ChildrenArray[5]:=oetOfficeAutomaticStyles; ChildrenArray[6]:=oetOfficeMasterStyles; ChildrenArray[7]:=oetOfficeBody; SetLength(AttsArray, 3); AttsArray[0]:=oatOfficeMimetype; AttsArray[1]:=oatOfficeVersion; AttsArray[2]:=oatGrddlTransformation; end; oetOfficeMeta : begin Namespace:=onsOffice; LocalName:='meta'; SetLength(ChildrenArray, 19); ChildrenArray[0]:=oetDcCreator; ChildrenArray[1]:=oetDcDate; ChildrenArray[2]:=oetMetaGenerator; ChildrenArray[3]:=oetDcTitle; ChildrenArray[4]:=oetDcDescription; ChildrenArray[5]:=oetDcSubject; ChildrenArray[6]:=oetMetaKeyword; ChildrenArray[7]:=oetMetaInitialCreator; ChildrenArray[8]:=oetMetaPrintedBy; ChildrenArray[9]:=oetMetaCreationDate; ChildrenArray[10]:=oetMetaPrintDate; ChildrenArray[11]:=oetMetaTemplate; ChildrenArray[12]:=oetMetaAutoReload; ChildrenArray[13]:=oetMetaHyperlinkBehaviour; ChildrenArray[14]:=oetDcLanguage; ChildrenArray[15]:=oetMetaEditingCycles; ChildrenArray[16]:=oetMetaEditingDuration; ChildrenArray[17]:=oetMetaDocumentStatistic; ChildrenArray[18]:=oetMetaUserDefined; SetLength(AttsArray, 0); end; oetMetaGenerator : begin Namespace:=onsMeta; LocalName:='generator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcTitle : begin Namespace:=onsDc; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcDescription : begin Namespace:=onsDc; LocalName:='description'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcSubject : begin Namespace:=onsDc; LocalName:='subject'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaKeyword : begin Namespace:=onsMeta; LocalName:='keyword'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaInitialCreator : begin Namespace:=onsMeta; LocalName:='initial-creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcCreator : begin Namespace:=onsDc; LocalName:='creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaPrintedBy : begin Namespace:=onsMeta; LocalName:='printed-by'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaCreationDate : begin Namespace:=onsMeta; LocalName:='creation-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcDate : begin Namespace:=onsDc; LocalName:='date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaPrintDate : begin Namespace:=onsMeta; LocalName:='print-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaTemplate : begin Namespace:=onsMeta; LocalName:='template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkActuate; AttsArray[3]:=oatXlinkTitle; AttsArray[4]:=oatMetaDate; end; oetMetaAutoReload : begin Namespace:=onsMeta; LocalName:='auto-reload'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatXlinkActuate; AttsArray[4]:=oatMetaDelay; end; oetMetaHyperlinkBehaviour : begin Namespace:=onsMeta; LocalName:='hyperlink-behaviour'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeTargetFrameName; AttsArray[1]:=oatXlinkShow; end; oetDcLanguage : begin Namespace:=onsDc; LocalName:='language'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaEditingCycles : begin Namespace:=onsMeta; LocalName:='editing-cycles'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaEditingDuration : begin Namespace:=onsMeta; LocalName:='editing-duration'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaDocumentStatistic : begin Namespace:=onsMeta; LocalName:='document-statistic'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 15); AttsArray[0]:=oatMetaPageCount; AttsArray[1]:=oatMetaTableCount; AttsArray[2]:=oatMetaDrawCount; AttsArray[3]:=oatMetaImageCount; AttsArray[4]:=oatMetaOleObjectCount; AttsArray[5]:=oatMetaObjectCount; AttsArray[6]:=oatMetaParagraphCount; AttsArray[7]:=oatMetaWordCount; AttsArray[8]:=oatMetaCharacterCount; AttsArray[9]:=oatMetaFrameCount; AttsArray[10]:=oatMetaSentenceCount; AttsArray[11]:=oatMetaSyllableCount; AttsArray[12]:=oatMetaNonWhitespaceCharacterCount; AttsArray[13]:=oatMetaRowCount; AttsArray[14]:=oatMetaCellCount; end; oetMetaUserDefined : begin Namespace:=onsMeta; LocalName:='user-defined'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatMetaName; AttsArray[1]:=oatMetaValueType; end; oetOfficeSettings : begin Namespace:=onsOffice; LocalName:='settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetConfigConfigItemSet; SetLength(AttsArray, 0); end; oetConfigConfigItemSet : begin Namespace:=onsConfig; LocalName:='config-item-set'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetConfigConfigItem; ChildrenArray[1]:=oetConfigConfigItemMapNamed; ChildrenArray[2]:=oetConfigConfigItemMapIndexed; SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetConfigConfigItem : begin Namespace:=onsConfig; LocalName:='config-item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatConfigName; AttsArray[1]:=oatConfigType; end; oetConfigConfigItemMapNamed : begin Namespace:=onsConfig; LocalName:='config-item-map-named'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetConfigConfigItemMapEntry; SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetConfigConfigItemMapEntry : begin Namespace:=onsConfig; LocalName:='config-item-map-entry'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetConfigConfigItemMapIndexed : begin Namespace:=onsConfig; LocalName:='config-item-map-indexed'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetConfigConfigItemMapEntry; SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetOfficeScripts : begin Namespace:=onsOffice; LocalName:='scripts'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetOfficeScript; ChildrenArray[1]:=oetOfficeEventListeners; SetLength(AttsArray, 0); end; oetOfficeScript : begin Namespace:=onsOffice; LocalName:='script'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatScriptLanguage; end; oetOfficeEventListeners : begin Namespace:=onsOffice; LocalName:='event-listeners'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetScriptEventListener; ChildrenArray[1]:=oetPresentationEventListener; SetLength(AttsArray, 0); end; oetScriptEventListener : begin Namespace:=onsScript; LocalName:='event-listener'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatScriptEventName; AttsArray[1]:=oatScriptLanguage; AttsArray[2]:=oatScriptMacroName; AttsArray[3]:=oatXlinkType; AttsArray[4]:=oatXlinkHref; AttsArray[5]:=oatXlinkActuate; end; oetPresentationEventListener : begin Namespace:=onsPresentation; LocalName:='event-listener'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 11); AttsArray[0]:=oatScriptEventName; AttsArray[1]:=oatPresentationAction; AttsArray[2]:=oatPresentationEffect; AttsArray[3]:=oatPresentationDirection; AttsArray[4]:=oatPresentationSpeed; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatXlinkType; AttsArray[7]:=oatXlinkHref; AttsArray[8]:=oatXlinkShow; AttsArray[9]:=oatXlinkActuate; AttsArray[10]:=oatPresentationVerb; end; oetPresentationSound : begin Namespace:=onsPresentation; LocalName:='sound'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatPresentationPlayFull; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatXlinkShow; end; oetOfficeFontFaceDecls : begin Namespace:=onsOffice; LocalName:='font-face-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleFontFace; SetLength(AttsArray, 0); end; oetStyleFontFace : begin Namespace:=onsStyle; LocalName:='font-face'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgFontFaceSrc; ChildrenArray[1]:=oetSvgDefinitionSrc; SetLength(AttsArray, 38); AttsArray[0]:=oatSvgFontFamily; AttsArray[1]:=oatSvgFontStyle; AttsArray[2]:=oatSvgFontVariant; AttsArray[3]:=oatSvgFontWeight; AttsArray[4]:=oatSvgFontStretch; AttsArray[5]:=oatSvgFontSize; AttsArray[6]:=oatSvgUnicodeRange; AttsArray[7]:=oatSvgUnitsPerEm; AttsArray[8]:=oatSvgPanose1; AttsArray[9]:=oatSvgStemv; AttsArray[10]:=oatSvgStemh; AttsArray[11]:=oatSvgSlope; AttsArray[12]:=oatSvgCapHeight; AttsArray[13]:=oatSvgXHeight; AttsArray[14]:=oatSvgAccentHeight; AttsArray[15]:=oatSvgAscent; AttsArray[16]:=oatSvgDescent; AttsArray[17]:=oatSvgWidths; AttsArray[18]:=oatSvgBbox; AttsArray[19]:=oatSvgIdeographic; AttsArray[20]:=oatSvgAlphabetic; AttsArray[21]:=oatSvgMathematical; AttsArray[22]:=oatSvgHanging; AttsArray[23]:=oatSvgVIdeographic; AttsArray[24]:=oatSvgVAlphabetic; AttsArray[25]:=oatSvgVMathematical; AttsArray[26]:=oatSvgVHanging; AttsArray[27]:=oatSvgUnderlinePosition; AttsArray[28]:=oatSvgUnderlineThickness; AttsArray[29]:=oatSvgStrikethroughPosition; AttsArray[30]:=oatSvgStrikethroughThickness; AttsArray[31]:=oatSvgOverlinePosition; AttsArray[32]:=oatSvgOverlineThickness; AttsArray[33]:=oatStyleName; AttsArray[34]:=oatStyleFontAdornments; AttsArray[35]:=oatStyleFontFamilyGeneric; AttsArray[36]:=oatStyleFontPitch; AttsArray[37]:=oatStyleFontCharset; end; oetSvgFontFaceSrc : begin Namespace:=onsSvg; LocalName:='font-face-src'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgFontFaceUri; ChildrenArray[1]:=oetSvgFontFaceName; SetLength(AttsArray, 0); end; oetSvgFontFaceUri : begin Namespace:=onsSvg; LocalName:='font-face-uri'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetSvgFontFaceFormat; SetLength(AttsArray, 3); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkActuate; end; oetSvgFontFaceFormat : begin Namespace:=onsSvg; LocalName:='font-face-format'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatSvgString; end; oetSvgFontFaceName : begin Namespace:=onsSvg; LocalName:='font-face-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatSvgName; end; oetSvgDefinitionSrc : begin Namespace:=onsSvg; LocalName:='definition-src'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkActuate; end; oetOfficeStyles : begin Namespace:=onsOffice; LocalName:='styles'; SetLength(ChildrenArray, 25); ChildrenArray[0]:=oetStyleStyle; ChildrenArray[1]:=oetTextListStyle; ChildrenArray[2]:=oetNumberNumberStyle; ChildrenArray[3]:=oetNumberCurrencyStyle; ChildrenArray[4]:=oetNumberPercentageStyle; ChildrenArray[5]:=oetNumberDateStyle; ChildrenArray[6]:=oetNumberTimeStyle; ChildrenArray[7]:=oetNumberBooleanStyle; ChildrenArray[8]:=oetNumberTextStyle; ChildrenArray[9]:=oetStyleDefaultStyle; ChildrenArray[10]:=oetStyleDefaultPageLayout; ChildrenArray[11]:=oetTextOutlineStyle; ChildrenArray[12]:=oetTextNotesConfiguration; ChildrenArray[13]:=oetTextBibliographyConfiguration; ChildrenArray[14]:=oetTextLinenumberingConfiguration; ChildrenArray[15]:=oetDrawGradient; ChildrenArray[16]:=oetSvgLineargradient; ChildrenArray[17]:=oetSvgRadialgradient; ChildrenArray[18]:=oetDrawHatch; ChildrenArray[19]:=oetDrawFillImage; ChildrenArray[20]:=oetDrawMarker; ChildrenArray[21]:=oetDrawStrokeDash; ChildrenArray[22]:=oetDrawOpacity; ChildrenArray[23]:=oetStylePresentationPageLayout; ChildrenArray[24]:=oetTableTableTemplate; SetLength(AttsArray, 0); end; oetStyleStyle : begin Namespace:=onsStyle; LocalName:='style'; SetLength(ChildrenArray, 20); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetStyleParagraphProperties; ChildrenArray[2]:=oetStyleTextProperties; ChildrenArray[3]:=oetStyleSectionProperties; ChildrenArray[4]:=oetStyleRubyProperties; ChildrenArray[5]:=oetStyleTableProperties; ChildrenArray[6]:=oetStyleTableColumnProperties; ChildrenArray[7]:=oetStyleTableRowProperties; ChildrenArray[8]:=oetStyleTableCellProperties; ChildrenArray[9]:=oetStyleParagraphProperties; ChildrenArray[10]:=oetStyleTextProperties; ChildrenArray[11]:=oetStyleGraphicProperties; ChildrenArray[12]:=oetStyleParagraphProperties; ChildrenArray[13]:=oetStyleTextProperties; ChildrenArray[14]:=oetStyleDrawingPageProperties; ChildrenArray[15]:=oetStyleChartProperties; ChildrenArray[16]:=oetStyleGraphicProperties; ChildrenArray[17]:=oetStyleParagraphProperties; ChildrenArray[18]:=oetStyleTextProperties; ChildrenArray[19]:=oetStyleMap; SetLength(AttsArray, 13); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatStyleParentStyleName; AttsArray[3]:=oatStyleNextStyleName; AttsArray[4]:=oatStyleListLevel; AttsArray[5]:=oatStyleListStyleName; AttsArray[6]:=oatStyleMasterPageName; AttsArray[7]:=oatStyleAutoUpdate; AttsArray[8]:=oatStyleDataStyleName; AttsArray[9]:=oatStylePercentageDataStyleName; AttsArray[10]:=oatStyleClass; AttsArray[11]:=oatStyleDefaultOutlineLevel; AttsArray[12]:=oatStyleFamily; end; oetStyleTextProperties : begin Namespace:=onsStyle; LocalName:='text-properties'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 86); AttsArray[0]:=oatFoBackgroundColor; AttsArray[1]:=oatFoFontVariant; AttsArray[2]:=oatFoTextTransform; AttsArray[3]:=oatFoColor; AttsArray[4]:=oatStyleUseWindowFontColor; AttsArray[5]:=oatStyleTextOutline; AttsArray[6]:=oatStyleTextLineThroughType; AttsArray[7]:=oatStyleTextLineThroughStyle; AttsArray[8]:=oatStyleTextLineThroughWidth; AttsArray[9]:=oatStyleTextLineThroughColor; AttsArray[10]:=oatStyleTextLineThroughText; AttsArray[11]:=oatStyleTextLineThroughTextStyle; AttsArray[12]:=oatStyleTextPosition; AttsArray[13]:=oatStyleFontName; AttsArray[14]:=oatStyleFontNameAsian; AttsArray[15]:=oatStyleFontNameComplex; AttsArray[16]:=oatFoFontFamily; AttsArray[17]:=oatStyleFontFamilyAsian; AttsArray[18]:=oatStyleFontFamilyComplex; AttsArray[19]:=oatStyleFontFamilyGeneric; AttsArray[20]:=oatStyleFontFamilyGenericAsian; AttsArray[21]:=oatStyleFontFamilyGenericComplex; AttsArray[22]:=oatStyleFontStyleName; AttsArray[23]:=oatStyleFontStyleNameAsian; AttsArray[24]:=oatStyleFontStyleNameComplex; AttsArray[25]:=oatStyleFontPitch; AttsArray[26]:=oatStyleFontPitchAsian; AttsArray[27]:=oatStyleFontPitchComplex; AttsArray[28]:=oatStyleFontCharset; AttsArray[29]:=oatStyleFontCharsetAsian; AttsArray[30]:=oatStyleFontCharsetComplex; AttsArray[31]:=oatFoFontSize; AttsArray[32]:=oatStyleFontSizeAsian; AttsArray[33]:=oatStyleFontSizeComplex; AttsArray[34]:=oatStyleFontSizeRel; AttsArray[35]:=oatStyleFontSizeRelAsian; AttsArray[36]:=oatStyleFontSizeRelComplex; AttsArray[37]:=oatStyleScriptType; AttsArray[38]:=oatFoLetterSpacing; AttsArray[39]:=oatFoLanguage; AttsArray[40]:=oatStyleLanguageAsian; AttsArray[41]:=oatStyleLanguageComplex; AttsArray[42]:=oatFoCountry; AttsArray[43]:=oatStyleCountryAsian; AttsArray[44]:=oatStyleCountryComplex; AttsArray[45]:=oatFoScript; AttsArray[46]:=oatStyleScriptAsian; AttsArray[47]:=oatStyleScriptComplex; AttsArray[48]:=oatStyleRfcLanguageTag; AttsArray[49]:=oatStyleRfcLanguageTagAsian; AttsArray[50]:=oatStyleRfcLanguageTagComplex; AttsArray[51]:=oatFoFontStyle; AttsArray[52]:=oatStyleFontStyleAsian; AttsArray[53]:=oatStyleFontStyleComplex; AttsArray[54]:=oatStyleFontRelief; AttsArray[55]:=oatFoTextShadow; AttsArray[56]:=oatStyleTextUnderlineType; AttsArray[57]:=oatStyleTextUnderlineStyle; AttsArray[58]:=oatStyleTextUnderlineWidth; AttsArray[59]:=oatStyleTextUnderlineColor; AttsArray[60]:=oatStyleTextOverlineType; AttsArray[61]:=oatStyleTextOverlineStyle; AttsArray[62]:=oatStyleTextOverlineWidth; AttsArray[63]:=oatStyleTextOverlineColor; AttsArray[64]:=oatStyleTextOverlineMode; AttsArray[65]:=oatFoFontWeight; AttsArray[66]:=oatStyleFontWeightAsian; AttsArray[67]:=oatStyleFontWeightComplex; AttsArray[68]:=oatStyleTextUnderlineMode; AttsArray[69]:=oatStyleTextLineThroughMode; AttsArray[70]:=oatStyleLetterKerning; AttsArray[71]:=oatStyleTextBlinking; AttsArray[72]:=oatStyleTextCombine; AttsArray[73]:=oatStyleTextCombineStartChar; AttsArray[74]:=oatStyleTextCombineEndChar; AttsArray[75]:=oatStyleTextEmphasize; AttsArray[76]:=oatStyleTextScale; AttsArray[77]:=oatStyleTextRotationAngle; AttsArray[78]:=oatStyleTextRotationScale; AttsArray[79]:=oatFoHyphenate; AttsArray[80]:=oatFoHyphenationRemainCharCount; AttsArray[81]:=oatFoHyphenationPushCharCount; AttsArray[82]:=oatTextDisplay; AttsArray[83]:=oatTextDisplay; AttsArray[84]:=oatTextDisplay; AttsArray[85]:=oatTextCondition; end; oetStyleParagraphProperties : begin Namespace:=onsStyle; LocalName:='paragraph-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleTabStops; ChildrenArray[1]:=oetStyleDropCap; ChildrenArray[2]:=oetStyleBackgroundImage; SetLength(AttsArray, 53); AttsArray[0]:=oatFoTextAlign; AttsArray[1]:=oatFoMarginLeft; AttsArray[2]:=oatFoMarginRight; AttsArray[3]:=oatFoMarginTop; AttsArray[4]:=oatFoMarginBottom; AttsArray[5]:=oatFoMargin; AttsArray[6]:=oatFoBreakBefore; AttsArray[7]:=oatFoBreakAfter; AttsArray[8]:=oatFoBackgroundColor; AttsArray[9]:=oatFoBorder; AttsArray[10]:=oatFoBorderTop; AttsArray[11]:=oatFoBorderBottom; AttsArray[12]:=oatFoBorderLeft; AttsArray[13]:=oatFoBorderRight; AttsArray[14]:=oatStyleBorderLineWidth; AttsArray[15]:=oatStyleBorderLineWidthTop; AttsArray[16]:=oatStyleBorderLineWidthBottom; AttsArray[17]:=oatStyleBorderLineWidthLeft; AttsArray[18]:=oatStyleBorderLineWidthRight; AttsArray[19]:=oatFoPadding; AttsArray[20]:=oatFoPaddingTop; AttsArray[21]:=oatFoPaddingBottom; AttsArray[22]:=oatFoPaddingLeft; AttsArray[23]:=oatFoPaddingRight; AttsArray[24]:=oatStyleShadow; AttsArray[25]:=oatFoKeepWithNext; AttsArray[26]:=oatStyleWritingMode; AttsArray[27]:=oatStylePageNumber; AttsArray[28]:=oatStyleBackgroundTransparency; AttsArray[29]:=oatFoLineHeight; AttsArray[30]:=oatStyleLineHeightAtLeast; AttsArray[31]:=oatStyleLineSpacing; AttsArray[32]:=oatStyleFontIndependentLineSpacing; AttsArray[33]:=oatFoTextAlignLast; AttsArray[34]:=oatStyleJustifySingleWord; AttsArray[35]:=oatFoKeepTogether; AttsArray[36]:=oatFoWidows; AttsArray[37]:=oatFoOrphans; AttsArray[38]:=oatStyleTabStopDistance; AttsArray[39]:=oatFoHyphenationKeep; AttsArray[40]:=oatFoHyphenationLadderCount; AttsArray[41]:=oatStyleRegisterTrue; AttsArray[42]:=oatFoTextIndent; AttsArray[43]:=oatStyleAutoTextIndent; AttsArray[44]:=oatStyleJoinBorder; AttsArray[45]:=oatTextNumberLines; AttsArray[46]:=oatTextLineNumber; AttsArray[47]:=oatStyleTextAutospace; AttsArray[48]:=oatStylePunctuationWrap; AttsArray[49]:=oatStyleLineBreak; AttsArray[50]:=oatStyleVerticalAlign; AttsArray[51]:=oatStyleWritingModeAutomatic; AttsArray[52]:=oatStyleSnapToLayoutGrid; end; oetStyleTabStops : begin Namespace:=onsStyle; LocalName:='tab-stops'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleTabStop; SetLength(AttsArray, 0); end; oetStyleTabStop : begin Namespace:=onsStyle; LocalName:='tab-stop'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatStyleChar; AttsArray[1]:=oatStylePosition; AttsArray[2]:=oatStyleType; AttsArray[3]:=oatStyleType; AttsArray[4]:=oatStyleLeaderType; AttsArray[5]:=oatStyleLeaderStyle; AttsArray[6]:=oatStyleLeaderWidth; AttsArray[7]:=oatStyleLeaderColor; AttsArray[8]:=oatStyleLeaderText; AttsArray[9]:=oatStyleLeaderTextStyle; end; oetStyleDropCap : begin Namespace:=onsStyle; LocalName:='drop-cap'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatStyleLength; AttsArray[1]:=oatStyleLines; AttsArray[2]:=oatStyleDistance; AttsArray[3]:=oatStyleStyleName; end; oetStyleBackgroundImage : begin Namespace:=onsStyle; LocalName:='background-image'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeBinaryData; SetLength(AttsArray, 8); AttsArray[0]:=oatStyleRepeat; AttsArray[1]:=oatStylePosition; AttsArray[2]:=oatStyleFilterName; AttsArray[3]:=oatDrawOpacity; AttsArray[4]:=oatXlinkType; AttsArray[5]:=oatXlinkHref; AttsArray[6]:=oatXlinkShow; AttsArray[7]:=oatXlinkActuate; end; oetOfficeBinaryData : begin Namespace:=onsOffice; LocalName:='binary-data'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleSectionProperties : begin Namespace:=onsStyle; LocalName:='section-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleBackgroundImage; ChildrenArray[1]:=oetStyleColumns; ChildrenArray[2]:=oetTextNotesConfiguration; SetLength(AttsArray, 7); AttsArray[0]:=oatFoBackgroundColor; AttsArray[1]:=oatFoMarginLeft; AttsArray[2]:=oatFoMarginRight; AttsArray[3]:=oatStyleEditable; AttsArray[4]:=oatStyleWritingMode; AttsArray[5]:=oatStyleProtect; AttsArray[6]:=oatTextDontBalanceTextColumns; end; oetStyleColumns : begin Namespace:=onsStyle; LocalName:='columns'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleColumnSep; ChildrenArray[1]:=oetStyleColumn; SetLength(AttsArray, 2); AttsArray[0]:=oatFoColumnCount; AttsArray[1]:=oatFoColumnGap; end; oetStyleColumnSep : begin Namespace:=onsStyle; LocalName:='column-sep'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatStyleStyle; AttsArray[1]:=oatStyleWidth; AttsArray[2]:=oatStyleHeight; AttsArray[3]:=oatStyleVerticalAlign; AttsArray[4]:=oatStyleColor; end; oetStyleColumn : begin Namespace:=onsStyle; LocalName:='column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatStyleRelWidth; AttsArray[1]:=oatFoStartIndent; AttsArray[2]:=oatFoEndIndent; AttsArray[3]:=oatFoSpaceBefore; AttsArray[4]:=oatFoSpaceAfter; end; oetTextNotesConfiguration : begin Namespace:=onsText; LocalName:='notes-configuration'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextNoteContinuationNoticeForward; ChildrenArray[1]:=oetTextNoteContinuationNoticeBackward; SetLength(AttsArray, 13); AttsArray[0]:=oatTextNoteClass; AttsArray[1]:=oatStyleNumPrefix; AttsArray[2]:=oatStyleNumSuffix; AttsArray[3]:=oatStyleNumLetterSync; AttsArray[4]:=oatStyleNumFormat; AttsArray[5]:=oatStyleNumFormat; AttsArray[6]:=oatTextCitationStyleName; AttsArray[7]:=oatTextCitationBodyStyleName; AttsArray[8]:=oatTextDefaultStyleName; AttsArray[9]:=oatTextMasterPageName; AttsArray[10]:=oatTextStartValue; AttsArray[11]:=oatTextStartNumberingAt; AttsArray[12]:=oatTextFootnotesPosition; end; oetTextNoteContinuationNoticeForward : begin Namespace:=onsText; LocalName:='note-continuation-notice-forward'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextNoteContinuationNoticeBackward : begin Namespace:=onsText; LocalName:='note-continuation-notice-backward'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleRubyProperties : begin Namespace:=onsStyle; LocalName:='ruby-properties'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatStyleRubyPosition; AttsArray[1]:=oatStyleRubyAlign; end; oetStyleTableProperties : begin Namespace:=onsStyle; LocalName:='table-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 18); AttsArray[0]:=oatFoMarginLeft; AttsArray[1]:=oatFoMarginRight; AttsArray[2]:=oatFoMarginTop; AttsArray[3]:=oatFoMarginBottom; AttsArray[4]:=oatFoMargin; AttsArray[5]:=oatStylePageNumber; AttsArray[6]:=oatFoBreakBefore; AttsArray[7]:=oatFoBreakAfter; AttsArray[8]:=oatFoBackgroundColor; AttsArray[9]:=oatStyleShadow; AttsArray[10]:=oatFoKeepWithNext; AttsArray[11]:=oatStyleWritingMode; AttsArray[12]:=oatStyleWidth; AttsArray[13]:=oatStyleRelWidth; AttsArray[14]:=oatTableAlign; AttsArray[15]:=oatStyleMayBreakBetweenRows; AttsArray[16]:=oatTableBorderModel; AttsArray[17]:=oatTableDisplay; end; oetStyleTableColumnProperties : begin Namespace:=onsStyle; LocalName:='table-column-properties'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatFoBreakBefore; AttsArray[1]:=oatFoBreakAfter; AttsArray[2]:=oatStyleColumnWidth; AttsArray[3]:=oatStyleRelColumnWidth; AttsArray[4]:=oatStyleUseOptimalColumnWidth; end; oetStyleTableRowProperties : begin Namespace:=onsStyle; LocalName:='table-row-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 7); AttsArray[0]:=oatFoBackgroundColor; AttsArray[1]:=oatFoBreakBefore; AttsArray[2]:=oatFoBreakAfter; AttsArray[3]:=oatStyleRowHeight; AttsArray[4]:=oatStyleMinRowHeight; AttsArray[5]:=oatStyleUseOptimalRowHeight; AttsArray[6]:=oatFoKeepTogether; end; oetStyleTableCellProperties : begin Namespace:=onsStyle; LocalName:='table-cell-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 34); AttsArray[0]:=oatStyleDirection; AttsArray[1]:=oatStyleWritingMode; AttsArray[2]:=oatStyleShadow; AttsArray[3]:=oatFoBackgroundColor; AttsArray[4]:=oatFoBorder; AttsArray[5]:=oatFoBorderTop; AttsArray[6]:=oatFoBorderBottom; AttsArray[7]:=oatFoBorderLeft; AttsArray[8]:=oatFoBorderRight; AttsArray[9]:=oatStyleBorderLineWidth; AttsArray[10]:=oatStyleBorderLineWidthTop; AttsArray[11]:=oatStyleBorderLineWidthBottom; AttsArray[12]:=oatStyleBorderLineWidthLeft; AttsArray[13]:=oatStyleBorderLineWidthRight; AttsArray[14]:=oatFoPadding; AttsArray[15]:=oatFoPaddingTop; AttsArray[16]:=oatFoPaddingBottom; AttsArray[17]:=oatFoPaddingLeft; AttsArray[18]:=oatFoPaddingRight; AttsArray[19]:=oatStyleRotationAngle; AttsArray[20]:=oatStyleVerticalAlign; AttsArray[21]:=oatStyleTextAlignSource; AttsArray[22]:=oatStyleGlyphOrientationVertical; AttsArray[23]:=oatStyleDiagonalTlBr; AttsArray[24]:=oatStyleDiagonalTlBrWidths; AttsArray[25]:=oatStyleDiagonalBlTr; AttsArray[26]:=oatStyleDiagonalBlTrWidths; AttsArray[27]:=oatFoWrapOption; AttsArray[28]:=oatStyleRotationAlign; AttsArray[29]:=oatStyleCellProtect; AttsArray[30]:=oatStylePrintContent; AttsArray[31]:=oatStyleDecimalPlaces; AttsArray[32]:=oatStyleRepeatContent; AttsArray[33]:=oatStyleShrinkToFit; end; oetStyleGraphicProperties : begin Namespace:=onsStyle; LocalName:='graphic-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextListStyle; ChildrenArray[1]:=oetStyleBackgroundImage; ChildrenArray[2]:=oetStyleColumns; SetLength(AttsArray, 174); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatSvgHeight; AttsArray[2]:=oatStyleRelWidth; AttsArray[3]:=oatStyleRelHeight; AttsArray[4]:=oatFoMarginLeft; AttsArray[5]:=oatFoMarginRight; AttsArray[6]:=oatFoMarginTop; AttsArray[7]:=oatFoMarginBottom; AttsArray[8]:=oatFoMargin; AttsArray[9]:=oatStyleVerticalPos; AttsArray[10]:=oatSvgY; AttsArray[11]:=oatStyleVerticalRel; AttsArray[12]:=oatTextAnchorType; AttsArray[13]:=oatTextAnchorPageNumber; AttsArray[14]:=oatFoBorder; AttsArray[15]:=oatFoBorderTop; AttsArray[16]:=oatFoBorderBottom; AttsArray[17]:=oatFoBorderLeft; AttsArray[18]:=oatFoBorderRight; AttsArray[19]:=oatStyleBorderLineWidth; AttsArray[20]:=oatStyleBorderLineWidthTop; AttsArray[21]:=oatStyleBorderLineWidthBottom; AttsArray[22]:=oatStyleBorderLineWidthLeft; AttsArray[23]:=oatStyleBorderLineWidthRight; AttsArray[24]:=oatFoPadding; AttsArray[25]:=oatFoPaddingTop; AttsArray[26]:=oatFoPaddingBottom; AttsArray[27]:=oatFoPaddingLeft; AttsArray[28]:=oatFoPaddingRight; AttsArray[29]:=oatStyleShadow; AttsArray[30]:=oatFoBackgroundColor; AttsArray[31]:=oatStyleBackgroundTransparency; AttsArray[32]:=oatStyleEditable; AttsArray[33]:=oatStyleWritingMode; AttsArray[34]:=oatDrawStroke; AttsArray[35]:=oatDrawStrokeDash; AttsArray[36]:=oatDrawStrokeDashNames; AttsArray[37]:=oatSvgStrokeWidth; AttsArray[38]:=oatSvgStrokeColor; AttsArray[39]:=oatDrawMarkerStart; AttsArray[40]:=oatDrawMarkerEnd; AttsArray[41]:=oatDrawMarkerStartWidth; AttsArray[42]:=oatDrawMarkerEndWidth; AttsArray[43]:=oatDrawMarkerStartCenter; AttsArray[44]:=oatDrawMarkerEndCenter; AttsArray[45]:=oatSvgStrokeOpacity; AttsArray[46]:=oatDrawStrokeLinejoin; AttsArray[47]:=oatSvgStrokeLinecap; AttsArray[48]:=oatDrawSymbolColor; AttsArray[49]:=oatTextAnimation; AttsArray[50]:=oatTextAnimationDirection; AttsArray[51]:=oatTextAnimationStartInside; AttsArray[52]:=oatTextAnimationStopInside; AttsArray[53]:=oatTextAnimationRepeat; AttsArray[54]:=oatTextAnimationDelay; AttsArray[55]:=oatTextAnimationSteps; AttsArray[56]:=oatDrawAutoGrowWidth; AttsArray[57]:=oatDrawAutoGrowHeight; AttsArray[58]:=oatDrawFitToSize; AttsArray[59]:=oatDrawFitToContour; AttsArray[60]:=oatDrawTextareaVerticalAlign; AttsArray[61]:=oatDrawTextareaHorizontalAlign; AttsArray[62]:=oatFoWrapOption; AttsArray[63]:=oatStyleShrinkToFit; AttsArray[64]:=oatDrawColorMode; AttsArray[65]:=oatDrawColorInversion; AttsArray[66]:=oatDrawLuminance; AttsArray[67]:=oatDrawContrast; AttsArray[68]:=oatDrawGamma; AttsArray[69]:=oatDrawRed; AttsArray[70]:=oatDrawGreen; AttsArray[71]:=oatDrawBlue; AttsArray[72]:=oatDrawImageOpacity; AttsArray[73]:=oatDrawShadow; AttsArray[74]:=oatDrawShadowOffsetX; AttsArray[75]:=oatDrawShadowOffsetY; AttsArray[76]:=oatDrawShadowColor; AttsArray[77]:=oatDrawShadowOpacity; AttsArray[78]:=oatDrawStartLineSpacingHorizontal; AttsArray[79]:=oatDrawStartLineSpacingVertical; AttsArray[80]:=oatDrawEndLineSpacingHorizontal; AttsArray[81]:=oatDrawEndLineSpacingVertical; AttsArray[82]:=oatDrawLineDistance; AttsArray[83]:=oatDrawGuideOverhang; AttsArray[84]:=oatDrawGuideDistance; AttsArray[85]:=oatDrawStartGuide; AttsArray[86]:=oatDrawEndGuide; AttsArray[87]:=oatDrawPlacing; AttsArray[88]:=oatDrawParallel; AttsArray[89]:=oatDrawMeasureAlign; AttsArray[90]:=oatDrawMeasureVerticalAlign; AttsArray[91]:=oatDrawUnit; AttsArray[92]:=oatDrawShowUnit; AttsArray[93]:=oatDrawDecimalPlaces; AttsArray[94]:=oatDrawCaptionType; AttsArray[95]:=oatDrawCaptionAngleType; AttsArray[96]:=oatDrawCaptionAngle; AttsArray[97]:=oatDrawCaptionGap; AttsArray[98]:=oatDrawCaptionEscapeDirection; AttsArray[99]:=oatDrawCaptionEscape; AttsArray[100]:=oatDrawCaptionLineLength; AttsArray[101]:=oatDrawCaptionFitLineLength; AttsArray[102]:=oatDr3dHorizontalSegments; AttsArray[103]:=oatDr3dVerticalSegments; AttsArray[104]:=oatDr3dEdgeRounding; AttsArray[105]:=oatDr3dEdgeRoundingMode; AttsArray[106]:=oatDr3dBackScale; AttsArray[107]:=oatDr3dDepth; AttsArray[108]:=oatDr3dBackfaceCulling; AttsArray[109]:=oatDr3dEndAngle; AttsArray[110]:=oatDr3dCloseFront; AttsArray[111]:=oatDr3dCloseBack; AttsArray[112]:=oatDr3dLightingMode; AttsArray[113]:=oatDr3dNormalsKind; AttsArray[114]:=oatDr3dNormalsDirection; AttsArray[115]:=oatDr3dTextureGenerationModeX; AttsArray[116]:=oatDr3dTextureGenerationModeY; AttsArray[117]:=oatDr3dTextureKind; AttsArray[118]:=oatDr3dTextureFilter; AttsArray[119]:=oatDr3dTextureMode; AttsArray[120]:=oatDr3dAmbientColor; AttsArray[121]:=oatDr3dEmissiveColor; AttsArray[122]:=oatDr3dSpecularColor; AttsArray[123]:=oatDr3dDiffuseColor; AttsArray[124]:=oatDr3dShininess; AttsArray[125]:=oatDr3dShadow; AttsArray[126]:=oatFoMinWidth; AttsArray[127]:=oatFoMinHeight; AttsArray[128]:=oatFoMaxHeight; AttsArray[129]:=oatFoMaxWidth; AttsArray[130]:=oatStylePrintContent; AttsArray[131]:=oatStyleProtect; AttsArray[132]:=oatStyleHorizontalPos; AttsArray[133]:=oatSvgX; AttsArray[134]:=oatStyleHorizontalRel; AttsArray[135]:=oatStyleWrap; AttsArray[136]:=oatStyleWrapDynamicThreshold; AttsArray[137]:=oatStyleNumberWrappedParagraphs; AttsArray[138]:=oatStyleWrapContour; AttsArray[139]:=oatStyleWrapContourMode; AttsArray[140]:=oatStyleRunThrough; AttsArray[141]:=oatStyleFlowWithText; AttsArray[142]:=oatStyleOverflowBehavior; AttsArray[143]:=oatStyleMirror; AttsArray[144]:=oatFoClip; AttsArray[145]:=oatDrawWrapInfluenceOnPosition; AttsArray[146]:=oatDrawFrameDisplayScrollbar; AttsArray[147]:=oatDrawFrameDisplayBorder; AttsArray[148]:=oatDrawFrameMarginHorizontal; AttsArray[149]:=oatDrawFrameMarginVertical; AttsArray[150]:=oatDrawVisibleAreaLeft; AttsArray[151]:=oatDrawVisibleAreaTop; AttsArray[152]:=oatDrawVisibleAreaWidth; AttsArray[153]:=oatDrawVisibleAreaHeight; AttsArray[154]:=oatDrawDrawAspect; AttsArray[155]:=oatDrawOleDrawAspect; AttsArray[156]:=oatDrawFill; AttsArray[157]:=oatDrawFillColor; AttsArray[158]:=oatDrawSecondaryFillColor; AttsArray[159]:=oatDrawFillGradientName; AttsArray[160]:=oatDrawGradientStepCount; AttsArray[161]:=oatDrawFillHatchName; AttsArray[162]:=oatDrawFillHatchSolid; AttsArray[163]:=oatDrawFillImageName; AttsArray[164]:=oatStyleRepeat; AttsArray[165]:=oatDrawFillImageWidth; AttsArray[166]:=oatDrawFillImageHeight; AttsArray[167]:=oatDrawFillImageRefPointX; AttsArray[168]:=oatDrawFillImageRefPointY; AttsArray[169]:=oatDrawFillImageRefPoint; AttsArray[170]:=oatDrawTileRepeatOffset; AttsArray[171]:=oatDrawOpacity; AttsArray[172]:=oatDrawOpacityName; AttsArray[173]:=oatSvgFillRule; end; oetTextListStyle : begin Namespace:=onsText; LocalName:='list-style'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextListLevelStyleNumber; ChildrenArray[1]:=oetTextListLevelStyleBullet; ChildrenArray[2]:=oetTextListLevelStyleImage; SetLength(AttsArray, 3); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatTextConsecutiveNumbering; end; oetTextListLevelStyleNumber : begin Namespace:=onsText; LocalName:='list-level-style-number'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleListLevelProperties; ChildrenArray[1]:=oetStyleTextProperties; SetLength(AttsArray, 8); AttsArray[0]:=oatTextLevel; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatStyleNumFormat; AttsArray[3]:=oatStyleNumPrefix; AttsArray[4]:=oatStyleNumSuffix; AttsArray[5]:=oatTextStyleName; AttsArray[6]:=oatTextDisplayLevels; AttsArray[7]:=oatTextStartValue; end; oetStyleListLevelProperties : begin Namespace:=onsStyle; LocalName:='list-level-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleListLevelLabelAlignment; SetLength(AttsArray, 11); AttsArray[0]:=oatFoTextAlign; AttsArray[1]:=oatStyleVerticalRel; AttsArray[2]:=oatStyleVerticalPos; AttsArray[3]:=oatSvgY; AttsArray[4]:=oatTextSpaceBefore; AttsArray[5]:=oatTextMinLabelWidth; AttsArray[6]:=oatTextMinLabelDistance; AttsArray[7]:=oatStyleFontName; AttsArray[8]:=oatFoWidth; AttsArray[9]:=oatFoHeight; AttsArray[10]:=oatTextListLevelPositionAndSpaceMode; end; oetStyleListLevelLabelAlignment : begin Namespace:=onsStyle; LocalName:='list-level-label-alignment'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextLabelFollowedBy; AttsArray[1]:=oatTextListTabStopPosition; AttsArray[2]:=oatFoTextIndent; AttsArray[3]:=oatFoMarginLeft; end; oetTextListLevelStyleBullet : begin Namespace:=onsText; LocalName:='list-level-style-bullet'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleListLevelProperties; ChildrenArray[1]:=oetStyleTextProperties; SetLength(AttsArray, 6); AttsArray[0]:=oatTextLevel; AttsArray[1]:=oatStyleNumPrefix; AttsArray[2]:=oatStyleNumSuffix; AttsArray[3]:=oatTextStyleName; AttsArray[4]:=oatTextBulletChar; AttsArray[5]:=oatTextBulletRelativeSize; end; oetTextListLevelStyleImage : begin Namespace:=onsText; LocalName:='list-level-style-image'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetOfficeBinaryData; ChildrenArray[1]:=oetStyleListLevelProperties; SetLength(AttsArray, 5); AttsArray[0]:=oatTextLevel; AttsArray[1]:=oatXlinkType; AttsArray[2]:=oatXlinkHref; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatXlinkActuate; end; oetStyleDrawingPageProperties : begin Namespace:=onsStyle; LocalName:='drawing-page-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 34); AttsArray[0]:=oatDrawFill; AttsArray[1]:=oatDrawFillColor; AttsArray[2]:=oatDrawSecondaryFillColor; AttsArray[3]:=oatDrawFillGradientName; AttsArray[4]:=oatDrawGradientStepCount; AttsArray[5]:=oatDrawFillHatchName; AttsArray[6]:=oatDrawFillHatchSolid; AttsArray[7]:=oatDrawFillImageName; AttsArray[8]:=oatStyleRepeat; AttsArray[9]:=oatDrawFillImageWidth; AttsArray[10]:=oatDrawFillImageHeight; AttsArray[11]:=oatDrawFillImageRefPointX; AttsArray[12]:=oatDrawFillImageRefPointY; AttsArray[13]:=oatDrawFillImageRefPoint; AttsArray[14]:=oatDrawTileRepeatOffset; AttsArray[15]:=oatDrawOpacity; AttsArray[16]:=oatDrawOpacityName; AttsArray[17]:=oatSvgFillRule; AttsArray[18]:=oatPresentationTransitionType; AttsArray[19]:=oatPresentationTransitionStyle; AttsArray[20]:=oatPresentationTransitionSpeed; AttsArray[21]:=oatSmilType; AttsArray[22]:=oatSmilSubtype; AttsArray[23]:=oatSmilDirection; AttsArray[24]:=oatSmilFadecolor; AttsArray[25]:=oatPresentationDuration; AttsArray[26]:=oatPresentationVisibility; AttsArray[27]:=oatDrawBackgroundSize; AttsArray[28]:=oatPresentationBackgroundObjectsVisible; AttsArray[29]:=oatPresentationBackgroundVisible; AttsArray[30]:=oatPresentationDisplayHeader; AttsArray[31]:=oatPresentationDisplayFooter; AttsArray[32]:=oatPresentationDisplayPageNumber; AttsArray[33]:=oatPresentationDisplayDateTime; end; oetStyleChartProperties : begin Namespace:=onsStyle; LocalName:='chart-properties'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetChartSymbolImage; ChildrenArray[1]:=oetChartLabelSeparator; SetLength(AttsArray, 71); AttsArray[0]:=oatStyleDirection; AttsArray[1]:=oatStyleRotationAngle; AttsArray[2]:=oatChartScaleText; AttsArray[3]:=oatChartThreeDimensional; AttsArray[4]:=oatChartDeep; AttsArray[5]:=oatChartRightAngledAxes; AttsArray[6]:=oatChartSymbolType; AttsArray[7]:=oatChartSymbolType; AttsArray[8]:=oatChartSymbolType; AttsArray[9]:=oatChartSymbolName; AttsArray[10]:=oatChartSymbolType; AttsArray[11]:=oatChartSymbolWidth; AttsArray[12]:=oatChartSymbolHeight; AttsArray[13]:=oatChartSortByXValues; AttsArray[14]:=oatChartVertical; AttsArray[15]:=oatChartConnectBars; AttsArray[16]:=oatChartGapWidth; AttsArray[17]:=oatChartOverlap; AttsArray[18]:=oatChartGroupBarsPerAxis; AttsArray[19]:=oatChartJapaneseCandleStick; AttsArray[20]:=oatChartInterpolation; AttsArray[21]:=oatChartSplineOrder; AttsArray[22]:=oatChartSplineResolution; AttsArray[23]:=oatChartPieOffset; AttsArray[24]:=oatChartAngleOffset; AttsArray[25]:=oatChartHoleSize; AttsArray[26]:=oatChartLines; AttsArray[27]:=oatChartSolidType; AttsArray[28]:=oatChartStacked; AttsArray[29]:=oatChartPercentage; AttsArray[30]:=oatChartTreatEmptyCells; AttsArray[31]:=oatChartLinkDataStyleToSource; AttsArray[32]:=oatChartLogarithmic; AttsArray[33]:=oatChartMaximum; AttsArray[34]:=oatChartMinimum; AttsArray[35]:=oatChartOrigin; AttsArray[36]:=oatChartIntervalMajor; AttsArray[37]:=oatChartIntervalMinorDivisor; AttsArray[38]:=oatChartTickMarksMajorInner; AttsArray[39]:=oatChartTickMarksMajorOuter; AttsArray[40]:=oatChartTickMarksMinorInner; AttsArray[41]:=oatChartTickMarksMinorOuter; AttsArray[42]:=oatChartReverseDirection; AttsArray[43]:=oatChartDisplayLabel; AttsArray[44]:=oatChartTextOverlap; AttsArray[45]:=oatTextLineBreak; AttsArray[46]:=oatChartLabelArrangement; AttsArray[47]:=oatChartDataLabelNumber; AttsArray[48]:=oatChartDataLabelText; AttsArray[49]:=oatChartDataLabelSymbol; AttsArray[50]:=oatChartLabelPosition; AttsArray[51]:=oatChartLabelPositionNegative; AttsArray[52]:=oatChartVisible; AttsArray[53]:=oatChartAutoPosition; AttsArray[54]:=oatChartAutoSize; AttsArray[55]:=oatChartMeanValue; AttsArray[56]:=oatChartErrorCategory; AttsArray[57]:=oatChartErrorPercentage; AttsArray[58]:=oatChartErrorMargin; AttsArray[59]:=oatChartErrorLowerLimit; AttsArray[60]:=oatChartErrorUpperLimit; AttsArray[61]:=oatChartErrorUpperIndicator; AttsArray[62]:=oatChartErrorLowerIndicator; AttsArray[63]:=oatChartErrorLowerRange; AttsArray[64]:=oatChartErrorUpperRange; AttsArray[65]:=oatChartSeriesSource; AttsArray[66]:=oatChartRegressionType; AttsArray[67]:=oatChartAxisPosition; AttsArray[68]:=oatChartAxisLabelPosition; AttsArray[69]:=oatChartTickMarkPosition; AttsArray[70]:=oatChartIncludeHiddenCells; end; oetChartSymbolImage : begin Namespace:=onsChart; LocalName:='symbol-image'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatXlinkHref; end; oetChartLabelSeparator : begin Namespace:=onsChart; LocalName:='label-separator'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 0); end; oetTextP : begin Namespace:=onsText; LocalName:='p'; SetLength(ChildrenArray, 101); ChildrenArray[0]:=oetTextSoftPageBreak; ChildrenArray[1]:=oetTextBookmark; ChildrenArray[2]:=oetTextBookmarkStart; ChildrenArray[3]:=oetTextBookmarkEnd; ChildrenArray[4]:=oetOfficeAnnotation; ChildrenArray[5]:=oetOfficeAnnotationEnd; ChildrenArray[6]:=oetTextChange; ChildrenArray[7]:=oetTextChangeStart; ChildrenArray[8]:=oetTextChangeEnd; ChildrenArray[9]:=oetTextS; ChildrenArray[10]:=oetTextTab; ChildrenArray[11]:=oetTextLineBreak; ChildrenArray[12]:=oetTextSpan; ChildrenArray[13]:=oetTextMeta; ChildrenArray[14]:=oetTextReferenceMark; ChildrenArray[15]:=oetTextReferenceMarkStart; ChildrenArray[16]:=oetTextReferenceMarkEnd; ChildrenArray[17]:=oetTextNote; ChildrenArray[18]:=oetTextRuby; ChildrenArray[19]:=oetTextDate; ChildrenArray[20]:=oetTextTime; ChildrenArray[21]:=oetTextPageNumber; ChildrenArray[22]:=oetTextPageContinuation; ChildrenArray[23]:=oetTextSenderFirstname; ChildrenArray[24]:=oetTextSenderLastname; ChildrenArray[25]:=oetTextSenderInitials; ChildrenArray[26]:=oetTextSenderTitle; ChildrenArray[27]:=oetTextSenderPosition; ChildrenArray[28]:=oetTextSenderEmail; ChildrenArray[29]:=oetTextSenderPhonePrivate; ChildrenArray[30]:=oetTextSenderFax; ChildrenArray[31]:=oetTextSenderCompany; ChildrenArray[32]:=oetTextSenderPhoneWork; ChildrenArray[33]:=oetTextSenderStreet; ChildrenArray[34]:=oetTextSenderCity; ChildrenArray[35]:=oetTextSenderPostalCode; ChildrenArray[36]:=oetTextSenderCountry; ChildrenArray[37]:=oetTextSenderStateOrProvince; ChildrenArray[38]:=oetTextAuthorName; ChildrenArray[39]:=oetTextAuthorInitials; ChildrenArray[40]:=oetTextChapter; ChildrenArray[41]:=oetTextFileName; ChildrenArray[42]:=oetTextTemplateName; ChildrenArray[43]:=oetTextSheetName; ChildrenArray[44]:=oetTextVariableSet; ChildrenArray[45]:=oetTextVariableGet; ChildrenArray[46]:=oetTextVariableInput; ChildrenArray[47]:=oetTextUserFieldGet; ChildrenArray[48]:=oetTextUserFieldInput; ChildrenArray[49]:=oetTextSequence; ChildrenArray[50]:=oetTextExpression; ChildrenArray[51]:=oetTextTextInput; ChildrenArray[52]:=oetTextInitialCreator; ChildrenArray[53]:=oetTextCreationDate; ChildrenArray[54]:=oetTextCreationTime; ChildrenArray[55]:=oetTextDescription; ChildrenArray[56]:=oetTextUserDefined; ChildrenArray[57]:=oetTextPrintTime; ChildrenArray[58]:=oetTextPrintDate; ChildrenArray[59]:=oetTextPrintedBy; ChildrenArray[60]:=oetTextTitle; ChildrenArray[61]:=oetTextSubject; ChildrenArray[62]:=oetTextKeywords; ChildrenArray[63]:=oetTextEditingCycles; ChildrenArray[64]:=oetTextEditingDuration; ChildrenArray[65]:=oetTextModificationTime; ChildrenArray[66]:=oetTextModificationDate; ChildrenArray[67]:=oetTextCreator; ChildrenArray[68]:=oetTextDatabaseDisplay; ChildrenArray[69]:=oetTextDatabaseNext; ChildrenArray[70]:=oetTextDatabaseRowSelect; ChildrenArray[71]:=oetTextDatabaseRowNumber; ChildrenArray[72]:=oetTextDatabaseName; ChildrenArray[73]:=oetTextPageVariableSet; ChildrenArray[74]:=oetTextPageVariableGet; ChildrenArray[75]:=oetTextPlaceholder; ChildrenArray[76]:=oetTextConditionalText; ChildrenArray[77]:=oetTextHiddenText; ChildrenArray[78]:=oetTextNoteRef; ChildrenArray[79]:=oetTextSequenceRef; ChildrenArray[80]:=oetTextScript; ChildrenArray[81]:=oetTextExecuteMacro; ChildrenArray[82]:=oetTextHiddenParagraph; ChildrenArray[83]:=oetTextDdeConnection; ChildrenArray[84]:=oetTextMeasure; ChildrenArray[85]:=oetTextTableFormula; ChildrenArray[86]:=oetTextMetaField; ChildrenArray[87]:=oetTextTocMarkStart; ChildrenArray[88]:=oetTextTocMarkEnd; ChildrenArray[89]:=oetTextTocMark; ChildrenArray[90]:=oetTextUserIndexMarkStart; ChildrenArray[91]:=oetTextUserIndexMarkEnd; ChildrenArray[92]:=oetTextUserIndexMark; ChildrenArray[93]:=oetTextAlphabeticalIndexMarkStart; ChildrenArray[94]:=oetTextAlphabeticalIndexMarkEnd; ChildrenArray[95]:=oetTextAlphabeticalIndexMark; ChildrenArray[96]:=oetTextBibliographyMark; ChildrenArray[97]:=oetPresentationHeader; ChildrenArray[98]:=oetPresentationFooter; ChildrenArray[99]:=oetPresentationDateTime; ChildrenArray[100]:=oetTextA; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatXhtmlDatatype; AttsArray[2]:=oatXhtmlContent; AttsArray[3]:=oatXhtmlAbout; AttsArray[4]:=oatXhtmlProperty; AttsArray[5]:=oatTextStyleName; AttsArray[6]:=oatTextClassNames; AttsArray[7]:=oatTextCondStyleName; AttsArray[8]:=oatTextId; end; oetTextS : begin Namespace:=onsText; LocalName:='s'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextC; end; oetTextTab : begin Namespace:=onsText; LocalName:='tab'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextTabRef; end; oetTextLineBreak : begin Namespace:=onsText; LocalName:='line-break'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextSoftPageBreak : begin Namespace:=onsText; LocalName:='soft-page-break'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextSpan : begin Namespace:=onsText; LocalName:='span'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextClassNames; end; oetTextMeta : begin Namespace:=onsText; LocalName:='meta'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXhtmlAbout; AttsArray[1]:=oatXhtmlProperty; AttsArray[2]:=oatXmlId; end; oetTextBookmark : begin Namespace:=onsText; LocalName:='bookmark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextName; end; oetTextBookmarkStart : begin Namespace:=onsText; LocalName:='bookmark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatXhtmlAbout; AttsArray[2]:=oatXhtmlProperty; AttsArray[3]:=oatTextName; end; oetTextBookmarkEnd : begin Namespace:=onsText; LocalName:='bookmark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextReferenceMark : begin Namespace:=onsText; LocalName:='reference-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextReferenceMarkStart : begin Namespace:=onsText; LocalName:='reference-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextReferenceMarkEnd : begin Namespace:=onsText; LocalName:='reference-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextNote : begin Namespace:=onsText; LocalName:='note'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextNoteCitation; ChildrenArray[1]:=oetTextNoteBody; SetLength(AttsArray, 2); AttsArray[0]:=oatTextNoteClass; AttsArray[1]:=oatTextId; end; oetTextNoteCitation : begin Namespace:=onsText; LocalName:='note-citation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextLabel; end; oetTextNoteBody : begin Namespace:=onsText; LocalName:='note-body'; SetLength(ChildrenArray, 16); ChildrenArray[0]:=oetTextH; ChildrenArray[1]:=oetTextList; ChildrenArray[2]:=oetTextNumberedParagraph; ChildrenArray[3]:=oetTableTable; ChildrenArray[4]:=oetTextSection; ChildrenArray[5]:=oetTextSoftPageBreak; ChildrenArray[6]:=oetTextTableOfContent; ChildrenArray[7]:=oetTextIllustrationIndex; ChildrenArray[8]:=oetTextTableIndex; ChildrenArray[9]:=oetTextObjectIndex; ChildrenArray[10]:=oetTextUserIndex; ChildrenArray[11]:=oetTextAlphabeticalIndex; ChildrenArray[12]:=oetTextBibliography; ChildrenArray[13]:=oetTextChange; ChildrenArray[14]:=oetTextChangeStart; ChildrenArray[15]:=oetTextChangeEnd; SetLength(AttsArray, 0); end; oetTextH : begin Namespace:=onsText; LocalName:='h'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextNumber; SetLength(AttsArray, 8); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextRestartNumbering; AttsArray[2]:=oatTextStartValue; AttsArray[3]:=oatTextIsListHeader; AttsArray[4]:=oatTextStyleName; AttsArray[5]:=oatTextClassNames; AttsArray[6]:=oatTextCondStyleName; AttsArray[7]:=oatTextId; end; oetTextNumber : begin Namespace:=onsText; LocalName:='number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextList : begin Namespace:=onsText; LocalName:='list'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextListHeader; ChildrenArray[1]:=oetTextListItem; SetLength(AttsArray, 4); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextStyleName; AttsArray[2]:=oatTextContinueNumbering; AttsArray[3]:=oatTextContinueList; end; oetTextListHeader : begin Namespace:=onsText; LocalName:='list-header'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextNumber; ChildrenArray[1]:=oetTextH; ChildrenArray[2]:=oetTextSoftPageBreak; SetLength(AttsArray, 1); AttsArray[0]:=oatXmlId; end; oetTextListItem : begin Namespace:=onsText; LocalName:='list-item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextStartValue; AttsArray[2]:=oatTextStyleOverride; end; oetTextNumberedParagraph : begin Namespace:=onsText; LocalName:='numbered-paragraph'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextNumber; ChildrenArray[1]:=oetTextH; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextListId; AttsArray[2]:=oatTextLevel; AttsArray[3]:=oatTextStyleName; AttsArray[4]:=oatTextContinueNumbering; AttsArray[5]:=oatTextStartValue; end; oetTableTable : begin Namespace:=onsTable; LocalName:='table'; SetLength(ChildrenArray, 19); ChildrenArray[0]:=oetTableTitle; ChildrenArray[1]:=oetTableDesc; ChildrenArray[2]:=oetTableTableSource; ChildrenArray[3]:=oetOfficeDdeSource; ChildrenArray[4]:=oetTableScenario; ChildrenArray[5]:=oetOfficeForms; ChildrenArray[6]:=oetTableShapes; ChildrenArray[7]:=oetTableTableColumnGroup; ChildrenArray[8]:=oetTableTableColumns; ChildrenArray[9]:=oetTableTableColumn; ChildrenArray[10]:=oetTableTableHeaderColumns; ChildrenArray[11]:=oetTableTableHeaderColumns; ChildrenArray[12]:=oetTableTableRowGroup; ChildrenArray[13]:=oetTableTableRows; ChildrenArray[14]:=oetTextSoftPageBreak; ChildrenArray[15]:=oetTableTableRow; ChildrenArray[16]:=oetTableTableHeaderRows; ChildrenArray[17]:=oetTableTableHeaderRows; ChildrenArray[18]:=oetTableNamedExpressions; SetLength(AttsArray, 16); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTableName; AttsArray[2]:=oatTableStyleName; AttsArray[3]:=oatTableTemplateName; AttsArray[4]:=oatTableUseFirstRowStyles; AttsArray[5]:=oatTableUseLastRowStyles; AttsArray[6]:=oatTableUseFirstColumnStyles; AttsArray[7]:=oatTableUseLastColumnStyles; AttsArray[8]:=oatTableUseBandingRowsStyles; AttsArray[9]:=oatTableUseBandingColumnsStyles; AttsArray[10]:=oatTableProtected; AttsArray[11]:=oatTableProtectionKey; AttsArray[12]:=oatTableProtectionKeyDigestAlgorithm; AttsArray[13]:=oatTablePrint; AttsArray[14]:=oatTablePrintRanges; AttsArray[15]:=oatTableIsSubTable; end; oetTableTitle : begin Namespace:=onsTable; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableDesc : begin Namespace:=onsTable; LocalName:='desc'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableTableSource : begin Namespace:=onsTable; LocalName:='table-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatTableMode; AttsArray[1]:=oatTableTableName; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatTableFilterName; AttsArray[6]:=oatTableFilterOptions; AttsArray[7]:=oatTableRefreshDelay; end; oetOfficeDdeSource : begin Namespace:=onsOffice; LocalName:='dde-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeConversionMode; AttsArray[2]:=oatOfficeDdeApplication; AttsArray[3]:=oatOfficeDdeTopic; AttsArray[4]:=oatOfficeDdeItem; AttsArray[5]:=oatOfficeAutomaticUpdate; end; oetTableScenario : begin Namespace:=onsTable; LocalName:='scenario'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatTableScenarioRanges; AttsArray[1]:=oatTableIsActive; AttsArray[2]:=oatTableDisplayBorder; AttsArray[3]:=oatTableBorderColor; AttsArray[4]:=oatTableCopyBack; AttsArray[5]:=oatTableCopyStyles; AttsArray[6]:=oatTableCopyFormulas; AttsArray[7]:=oatTableComment; AttsArray[8]:=oatTableProtected; end; oetOfficeForms : begin Namespace:=onsOffice; LocalName:='forms'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetFormForm; ChildrenArray[1]:=oetXformsModel; SetLength(AttsArray, 2); AttsArray[0]:=oatFormAutomaticFocus; AttsArray[1]:=oatFormApplyDesignMode; end; oetFormForm : begin Namespace:=onsForm; LocalName:='form'; SetLength(ChildrenArray, 24); ChildrenArray[0]:=oetFormProperties; ChildrenArray[1]:=oetOfficeEventListeners; ChildrenArray[2]:=oetFormText; ChildrenArray[3]:=oetFormTextarea; ChildrenArray[4]:=oetFormFormattedText; ChildrenArray[5]:=oetFormNumber; ChildrenArray[6]:=oetFormDate; ChildrenArray[7]:=oetFormTime; ChildrenArray[8]:=oetFormCombobox; ChildrenArray[9]:=oetFormListbox; ChildrenArray[10]:=oetFormCheckbox; ChildrenArray[11]:=oetFormPassword; ChildrenArray[12]:=oetFormFile; ChildrenArray[13]:=oetFormFixedText; ChildrenArray[14]:=oetFormButton; ChildrenArray[15]:=oetFormImage; ChildrenArray[16]:=oetFormRadio; ChildrenArray[17]:=oetFormFrame; ChildrenArray[18]:=oetFormImageFrame; ChildrenArray[19]:=oetFormHidden; ChildrenArray[20]:=oetFormGrid; ChildrenArray[21]:=oetFormValueRange; ChildrenArray[22]:=oetFormGenericControl; ChildrenArray[23]:=oetFormConnectionResource; SetLength(AttsArray, 23); AttsArray[0]:=oatFormName; AttsArray[1]:=oatFormControlImplementation; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatOfficeTargetFrame; AttsArray[6]:=oatFormMethod; AttsArray[7]:=oatFormEnctype; AttsArray[8]:=oatFormAllowDeletes; AttsArray[9]:=oatFormAllowInserts; AttsArray[10]:=oatFormAllowUpdates; AttsArray[11]:=oatFormApplyFilter; AttsArray[12]:=oatFormCommandType; AttsArray[13]:=oatFormCommand; AttsArray[14]:=oatFormDatasource; AttsArray[15]:=oatFormMasterFields; AttsArray[16]:=oatFormDetailFields; AttsArray[17]:=oatFormEscapeProcessing; AttsArray[18]:=oatFormFilter; AttsArray[19]:=oatFormIgnoreResult; AttsArray[20]:=oatFormNavigationMode; AttsArray[21]:=oatFormOrder; AttsArray[22]:=oatFormTabCycle; end; oetFormProperties : begin Namespace:=onsForm; LocalName:='properties'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetFormProperty; ChildrenArray[1]:=oetFormListProperty; SetLength(AttsArray, 0); end; oetFormProperty : begin Namespace:=onsForm; LocalName:='property'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 17); AttsArray[0]:=oatFormPropertyName; AttsArray[1]:=oatOfficeValueType; AttsArray[2]:=oatOfficeValue; AttsArray[3]:=oatOfficeValueType; AttsArray[4]:=oatOfficeValue; AttsArray[5]:=oatOfficeValueType; AttsArray[6]:=oatOfficeValue; AttsArray[7]:=oatOfficeCurrency; AttsArray[8]:=oatOfficeValueType; AttsArray[9]:=oatOfficeDateValue; AttsArray[10]:=oatOfficeValueType; AttsArray[11]:=oatOfficeTimeValue; AttsArray[12]:=oatOfficeValueType; AttsArray[13]:=oatOfficeBooleanValue; AttsArray[14]:=oatOfficeValueType; AttsArray[15]:=oatOfficeStringValue; AttsArray[16]:=oatOfficeValueType; end; oetFormListProperty : begin Namespace:=onsForm; LocalName:='list-property'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetFormListValue; ChildrenArray[1]:=oetFormListValue; ChildrenArray[2]:=oetFormListValue; ChildrenArray[3]:=oetFormListValue; ChildrenArray[4]:=oetFormListValue; ChildrenArray[5]:=oetFormListValue; ChildrenArray[6]:=oetFormListValue; SetLength(AttsArray, 9); AttsArray[0]:=oatFormPropertyName; AttsArray[1]:=oatOfficeValueType; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValueType; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValueType; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValueType; AttsArray[8]:=oatOfficeValueType; end; oetFormListValue : begin Namespace:=onsForm; LocalName:='list-value'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatOfficeValue; AttsArray[1]:=oatOfficeCurrency; AttsArray[2]:=oatOfficeDateValue; AttsArray[3]:=oatOfficeTimeValue; AttsArray[4]:=oatOfficeBooleanValue; AttsArray[5]:=oatOfficeStringValue; end; oetFormText : begin Namespace:=onsForm; LocalName:='text'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetFormProperties; ChildrenArray[1]:=oetOfficeEventListeners; SetLength(AttsArray, 17); AttsArray[0]:=oatFormName; AttsArray[1]:=oatFormControlImplementation; AttsArray[2]:=oatXmlId; AttsArray[3]:=oatFormId; AttsArray[4]:=oatXformsBind; AttsArray[5]:=oatFormCurrentValue; AttsArray[6]:=oatFormDisabled; AttsArray[7]:=oatFormMaxLength; AttsArray[8]:=oatFormPrintable; AttsArray[9]:=oatFormReadonly; AttsArray[10]:=oatFormTabIndex; AttsArray[11]:=oatFormTabStop; AttsArray[12]:=oatFormTitle; AttsArray[13]:=oatFormValue; AttsArray[14]:=oatFormConvertEmptyToNull; AttsArray[15]:=oatFormDataField; AttsArray[16]:=oatFormLinkedCell; end; oetFormTextarea : begin Namespace:=onsForm; LocalName:='textarea'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 12); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormMaxLength; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormReadonly; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormConvertEmptyToNull; AttsArray[10]:=oatFormDataField; AttsArray[11]:=oatFormLinkedCell; end; oetFormFormattedText : begin Namespace:=onsForm; LocalName:='formatted-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 18); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormMaxLength; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormReadonly; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormConvertEmptyToNull; AttsArray[10]:=oatFormDataField; AttsArray[11]:=oatFormLinkedCell; AttsArray[12]:=oatFormSpinButton; AttsArray[13]:=oatFormRepeat; AttsArray[14]:=oatFormDelayForRepeat; AttsArray[15]:=oatFormMaxValue; AttsArray[16]:=oatFormMinValue; AttsArray[17]:=oatFormValidation; end; oetFormNumber : begin Namespace:=onsForm; LocalName:='number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 17); AttsArray[0]:=oatFormValue; AttsArray[1]:=oatFormCurrentValue; AttsArray[2]:=oatFormMinValue; AttsArray[3]:=oatFormMaxValue; AttsArray[4]:=oatFormDisabled; AttsArray[5]:=oatFormMaxLength; AttsArray[6]:=oatFormPrintable; AttsArray[7]:=oatFormReadonly; AttsArray[8]:=oatFormTabIndex; AttsArray[9]:=oatFormTabStop; AttsArray[10]:=oatFormTitle; AttsArray[11]:=oatFormConvertEmptyToNull; AttsArray[12]:=oatFormDataField; AttsArray[13]:=oatFormLinkedCell; AttsArray[14]:=oatFormSpinButton; AttsArray[15]:=oatFormRepeat; AttsArray[16]:=oatFormDelayForRepeat; end; oetFormDate : begin Namespace:=onsForm; LocalName:='date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatFormValue; AttsArray[1]:=oatFormCurrentValue; AttsArray[2]:=oatFormMinValue; AttsArray[3]:=oatFormMaxValue; AttsArray[4]:=oatFormLinkedCell; AttsArray[5]:=oatFormSpinButton; AttsArray[6]:=oatFormRepeat; AttsArray[7]:=oatFormDelayForRepeat; end; oetFormTime : begin Namespace:=onsForm; LocalName:='time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatFormValue; AttsArray[1]:=oatFormCurrentValue; AttsArray[2]:=oatFormMinValue; AttsArray[3]:=oatFormMaxValue; AttsArray[4]:=oatFormLinkedCell; AttsArray[5]:=oatFormSpinButton; AttsArray[6]:=oatFormRepeat; AttsArray[7]:=oatFormDelayForRepeat; end; oetFormCombobox : begin Namespace:=onsForm; LocalName:='combobox'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormItem; SetLength(AttsArray, 18); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormDropdown; AttsArray[3]:=oatFormMaxLength; AttsArray[4]:=oatFormPrintable; AttsArray[5]:=oatFormReadonly; AttsArray[6]:=oatFormSize; AttsArray[7]:=oatFormTabIndex; AttsArray[8]:=oatFormTabStop; AttsArray[9]:=oatFormTitle; AttsArray[10]:=oatFormValue; AttsArray[11]:=oatFormConvertEmptyToNull; AttsArray[12]:=oatFormDataField; AttsArray[13]:=oatFormListSource; AttsArray[14]:=oatFormListSourceType; AttsArray[15]:=oatFormLinkedCell; AttsArray[16]:=oatFormSourceCellRange; AttsArray[17]:=oatFormAutoComplete; end; oetFormItem : begin Namespace:=onsForm; LocalName:='item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatFormLabel; end; oetFormListbox : begin Namespace:=onsForm; LocalName:='listbox'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormOption; SetLength(AttsArray, 16); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormDropdown; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormSize; AttsArray[4]:=oatFormTabIndex; AttsArray[5]:=oatFormTabStop; AttsArray[6]:=oatFormTitle; AttsArray[7]:=oatFormBoundColumn; AttsArray[8]:=oatFormDataField; AttsArray[9]:=oatFormListSource; AttsArray[10]:=oatFormListSourceType; AttsArray[11]:=oatFormLinkedCell; AttsArray[12]:=oatFormListLinkageType; AttsArray[13]:=oatFormSourceCellRange; AttsArray[14]:=oatFormMultiple; AttsArray[15]:=oatFormXformsListSource; end; oetFormOption : begin Namespace:=onsForm; LocalName:='option'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatFormCurrentSelected; AttsArray[1]:=oatFormSelected; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormValue; end; oetFormCheckbox : begin Namespace:=onsForm; LocalName:='checkbox'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 16); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormLabel; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormTabIndex; AttsArray[4]:=oatFormTabStop; AttsArray[5]:=oatFormTitle; AttsArray[6]:=oatFormValue; AttsArray[7]:=oatFormDataField; AttsArray[8]:=oatFormVisualEffect; AttsArray[9]:=oatFormImagePosition; AttsArray[10]:=oatFormImagePosition; AttsArray[11]:=oatFormImageAlign; AttsArray[12]:=oatFormLinkedCell; AttsArray[13]:=oatFormCurrentState; AttsArray[14]:=oatFormIsTristate; AttsArray[15]:=oatFormState; end; oetFormPassword : begin Namespace:=onsForm; LocalName:='password'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormMaxLength; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormTabIndex; AttsArray[4]:=oatFormTabStop; AttsArray[5]:=oatFormTitle; AttsArray[6]:=oatFormValue; AttsArray[7]:=oatFormConvertEmptyToNull; AttsArray[8]:=oatFormLinkedCell; AttsArray[9]:=oatFormEchoChar; end; oetFormFile : begin Namespace:=onsForm; LocalName:='file'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormMaxLength; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormReadonly; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormLinkedCell; end; oetFormFixedText : begin Namespace:=onsForm; LocalName:='fixed-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatFormFor; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormTitle; AttsArray[5]:=oatFormMultiLine; end; oetFormButton : begin Namespace:=onsForm; LocalName:='button'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 20); AttsArray[0]:=oatFormButtonType; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormImageData; AttsArray[4]:=oatFormPrintable; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatOfficeTargetFrame; AttsArray[8]:=oatXlinkHref; AttsArray[9]:=oatFormTitle; AttsArray[10]:=oatFormValue; AttsArray[11]:=oatFormImagePosition; AttsArray[12]:=oatFormImagePosition; AttsArray[13]:=oatFormImageAlign; AttsArray[14]:=oatFormRepeat; AttsArray[15]:=oatFormDelayForRepeat; AttsArray[16]:=oatFormDefaultButton; AttsArray[17]:=oatFormToggle; AttsArray[18]:=oatFormFocusOnClick; AttsArray[19]:=oatFormXformsSubmission; end; oetFormImage : begin Namespace:=onsForm; LocalName:='image'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatFormButtonType; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormImageData; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormTabIndex; AttsArray[5]:=oatFormTabStop; AttsArray[6]:=oatOfficeTargetFrame; AttsArray[7]:=oatXlinkHref; AttsArray[8]:=oatFormTitle; AttsArray[9]:=oatFormValue; end; oetFormRadio : begin Namespace:=onsForm; LocalName:='radio'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 15); AttsArray[0]:=oatFormCurrentSelected; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormSelected; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormDataField; AttsArray[10]:=oatFormVisualEffect; AttsArray[11]:=oatFormImagePosition; AttsArray[12]:=oatFormImagePosition; AttsArray[13]:=oatFormImageAlign; AttsArray[14]:=oatFormLinkedCell; end; oetFormFrame : begin Namespace:=onsForm; LocalName:='frame'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormFor; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormTitle; end; oetFormImageFrame : begin Namespace:=onsForm; LocalName:='image-frame'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormImageData; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormReadonly; AttsArray[4]:=oatFormTitle; AttsArray[5]:=oatFormDataField; end; oetFormHidden : begin Namespace:=onsForm; LocalName:='hidden'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatFormValue; end; oetFormGrid : begin Namespace:=onsForm; LocalName:='grid'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormColumn; SetLength(AttsArray, 5); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormPrintable; AttsArray[2]:=oatFormTabIndex; AttsArray[3]:=oatFormTabStop; AttsArray[4]:=oatFormTitle; end; oetFormColumn : begin Namespace:=onsForm; LocalName:='column'; SetLength(ChildrenArray, 9); ChildrenArray[0]:=oetFormText; ChildrenArray[1]:=oetFormTextarea; ChildrenArray[2]:=oetFormFormattedText; ChildrenArray[3]:=oetFormNumber; ChildrenArray[4]:=oetFormDate; ChildrenArray[5]:=oetFormTime; ChildrenArray[6]:=oetFormCombobox; ChildrenArray[7]:=oetFormListbox; ChildrenArray[8]:=oetFormCheckbox; SetLength(AttsArray, 4); AttsArray[0]:=oatFormName; AttsArray[1]:=oatFormControlImplementation; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormTextStyleName; end; oetFormValueRange : begin Namespace:=onsForm; LocalName:='value-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormPrintable; AttsArray[2]:=oatFormTabIndex; AttsArray[3]:=oatFormTabStop; AttsArray[4]:=oatFormTitle; AttsArray[5]:=oatFormValue; AttsArray[6]:=oatFormLinkedCell; AttsArray[7]:=oatFormRepeat; AttsArray[8]:=oatFormDelayForRepeat; AttsArray[9]:=oatFormMaxValue; AttsArray[10]:=oatFormMinValue; AttsArray[11]:=oatFormStepSize; AttsArray[12]:=oatFormPageStepSize; AttsArray[13]:=oatFormOrientation; end; oetFormGenericControl : begin Namespace:=onsForm; LocalName:='generic-control'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetFormConnectionResource : begin Namespace:=onsForm; LocalName:='connection-resource'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatXlinkHref; end; oetXformsModel : begin Namespace:=onsXforms; LocalName:='model'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableShapes : begin Namespace:=onsTable; LocalName:='shapes'; SetLength(ChildrenArray, 18); ChildrenArray[0]:=oetDrawRect; ChildrenArray[1]:=oetDrawLine; ChildrenArray[2]:=oetDrawPolyline; ChildrenArray[3]:=oetDrawPolygon; ChildrenArray[4]:=oetDrawRegularPolygon; ChildrenArray[5]:=oetDrawPath; ChildrenArray[6]:=oetDrawCircle; ChildrenArray[7]:=oetDrawEllipse; ChildrenArray[8]:=oetDrawG; ChildrenArray[9]:=oetDrawPageThumbnail; ChildrenArray[10]:=oetDrawFrame; ChildrenArray[11]:=oetDrawMeasure; ChildrenArray[12]:=oetDrawCaption; ChildrenArray[13]:=oetDrawConnector; ChildrenArray[14]:=oetDrawControl; ChildrenArray[15]:=oetDr3dScene; ChildrenArray[16]:=oetDrawCustomShape; ChildrenArray[17]:=oetDrawA; SetLength(AttsArray, 0); end; oetDrawRect : begin Namespace:=onsDraw; LocalName:='rect'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; ChildrenArray[4]:=oetTextList; SetLength(AttsArray, 25); AttsArray[0]:=oatDrawCornerRadius; AttsArray[1]:=oatSvgRx; AttsArray[2]:=oatSvgRy; AttsArray[3]:=oatSvgX; AttsArray[4]:=oatSvgY; AttsArray[5]:=oatSvgWidth; AttsArray[6]:=oatSvgHeight; AttsArray[7]:=oatDrawZIndex; AttsArray[8]:=oatXmlId; AttsArray[9]:=oatDrawId; AttsArray[10]:=oatDrawLayer; AttsArray[11]:=oatDrawStyleName; AttsArray[12]:=oatDrawClassNames; AttsArray[13]:=oatPresentationStyleName; AttsArray[14]:=oatPresentationClassNames; AttsArray[15]:=oatDrawTransform; AttsArray[16]:=oatDrawName; AttsArray[17]:=oatTextAnchorType; AttsArray[18]:=oatTextAnchorPageNumber; AttsArray[19]:=oatTableEndCellAddress; AttsArray[20]:=oatTableEndX; AttsArray[21]:=oatTableEndY; AttsArray[22]:=oatTableTableBackground; AttsArray[23]:=oatDrawTextStyleName; AttsArray[24]:=oatDrawCaptionId; end; oetSvgTitle : begin Namespace:=onsSvg; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetSvgDesc : begin Namespace:=onsSvg; LocalName:='desc'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDrawGluePoint : begin Namespace:=onsDraw; LocalName:='glue-point'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDrawId; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatDrawAlign; AttsArray[4]:=oatDrawEscapeDirection; end; oetDrawLine : begin Namespace:=onsDraw; LocalName:='line'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 5); AttsArray[0]:=oatSvgX1; AttsArray[1]:=oatSvgY1; AttsArray[2]:=oatSvgX2; AttsArray[3]:=oatSvgY2; AttsArray[4]:=oatDrawCaptionId; end; oetDrawPolyline : begin Namespace:=onsDraw; LocalName:='polyline'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawPoints; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatSvgViewbox; AttsArray[6]:=oatDrawCaptionId; end; oetDrawPolygon : begin Namespace:=onsDraw; LocalName:='polygon'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawPoints; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatSvgViewbox; AttsArray[6]:=oatDrawCaptionId; end; oetDrawRegularPolygon : begin Namespace:=onsDraw; LocalName:='regular-polygon'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 9); AttsArray[0]:=oatDrawSharpness; AttsArray[1]:=oatDrawConcave; AttsArray[2]:=oatDrawConcave; AttsArray[3]:=oatDrawCorners; AttsArray[4]:=oatSvgX; AttsArray[5]:=oatSvgY; AttsArray[6]:=oatSvgWidth; AttsArray[7]:=oatSvgHeight; AttsArray[8]:=oatDrawCaptionId; end; oetDrawPath : begin Namespace:=onsDraw; LocalName:='path'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 7); AttsArray[0]:=oatSvgD; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatSvgViewbox; AttsArray[6]:=oatDrawCaptionId; end; oetDrawCircle : begin Namespace:=onsDraw; LocalName:='circle'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 11); AttsArray[0]:=oatSvgR; AttsArray[1]:=oatSvgCx; AttsArray[2]:=oatSvgCy; AttsArray[3]:=oatSvgX; AttsArray[4]:=oatSvgY; AttsArray[5]:=oatSvgWidth; AttsArray[6]:=oatSvgHeight; AttsArray[7]:=oatDrawKind; AttsArray[8]:=oatDrawStartAngle; AttsArray[9]:=oatDrawEndAngle; AttsArray[10]:=oatDrawCaptionId; end; oetDrawEllipse : begin Namespace:=onsDraw; LocalName:='ellipse'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 12); AttsArray[0]:=oatSvgRx; AttsArray[1]:=oatSvgRy; AttsArray[2]:=oatSvgCx; AttsArray[3]:=oatSvgCy; AttsArray[4]:=oatSvgX; AttsArray[5]:=oatSvgY; AttsArray[6]:=oatSvgWidth; AttsArray[7]:=oatSvgHeight; AttsArray[8]:=oatDrawKind; AttsArray[9]:=oatDrawStartAngle; AttsArray[10]:=oatDrawEndAngle; AttsArray[11]:=oatDrawCaptionId; end; oetDrawG : begin Namespace:=onsDraw; LocalName:='g'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 13); AttsArray[0]:=oatSvgY; AttsArray[1]:=oatDrawZIndex; AttsArray[2]:=oatDrawName; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawStyleName; AttsArray[5]:=oatDrawClassNames; AttsArray[6]:=oatPresentationStyleName; AttsArray[7]:=oatPresentationClassNames; AttsArray[8]:=oatTableEndCellAddress; AttsArray[9]:=oatTableEndX; AttsArray[10]:=oatTableEndY; AttsArray[11]:=oatTableTableBackground; AttsArray[12]:=oatDrawCaptionId; end; oetDrawPageThumbnail : begin Namespace:=onsDraw; LocalName:='page-thumbnail'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; SetLength(AttsArray, 9); AttsArray[0]:=oatDrawPageNumber; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatPresentationClass; AttsArray[6]:=oatPresentationPlaceholder; AttsArray[7]:=oatPresentationUserTransformed; AttsArray[8]:=oatDrawCaptionId; end; oetDrawFrame : begin Namespace:=onsDraw; LocalName:='frame'; SetLength(ChildrenArray, 14); ChildrenArray[0]:=oetDrawTextBox; ChildrenArray[1]:=oetDrawImage; ChildrenArray[2]:=oetDrawObject; ChildrenArray[3]:=oetDrawObjectOle; ChildrenArray[4]:=oetDrawApplet; ChildrenArray[5]:=oetDrawFloatingFrame; ChildrenArray[6]:=oetDrawPlugin; ChildrenArray[7]:=oetOfficeEventListeners; ChildrenArray[8]:=oetDrawGluePoint; ChildrenArray[9]:=oetDrawImageMap; ChildrenArray[10]:=oetSvgTitle; ChildrenArray[11]:=oetSvgDesc; ChildrenArray[12]:=oetDrawContourPolygon; ChildrenArray[13]:=oetDrawContourPath; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatStyleRelWidth; AttsArray[3]:=oatStyleRelHeight; AttsArray[4]:=oatDrawCaptionId; AttsArray[5]:=oatPresentationClass; AttsArray[6]:=oatPresentationPlaceholder; AttsArray[7]:=oatPresentationUserTransformed; AttsArray[8]:=oatDrawCopyOf; end; oetDrawTextBox : begin Namespace:=onsDraw; LocalName:='text-box'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawChainNextName; AttsArray[2]:=oatDrawCornerRadius; AttsArray[3]:=oatFoMinHeight; AttsArray[4]:=oatFoMinWidth; AttsArray[5]:=oatFoMaxHeight; AttsArray[6]:=oatFoMaxWidth; AttsArray[7]:=oatTextId; end; oetDrawImage : begin Namespace:=onsDraw; LocalName:='image'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeBinaryData; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawFilterName; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawObject : begin Namespace:=onsDraw; LocalName:='object'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetMathMath; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawNotifyOnUpdateOfRanges; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetMathMath : begin Namespace:=onsMath; LocalName:='math'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDrawObjectOle : begin Namespace:=onsDraw; LocalName:='object-ole'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeBinaryData; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawClassId; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawApplet : begin Namespace:=onsDraw; LocalName:='applet'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawParam; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawCode; AttsArray[2]:=oatDrawObject; AttsArray[3]:=oatDrawArchive; AttsArray[4]:=oatDrawMayScript; AttsArray[5]:=oatXlinkType; AttsArray[6]:=oatXlinkHref; AttsArray[7]:=oatXlinkShow; AttsArray[8]:=oatXlinkActuate; end; oetDrawParam : begin Namespace:=onsDraw; LocalName:='param'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawValue; end; oetDrawFloatingFrame : begin Namespace:=onsDraw; LocalName:='floating-frame'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawFrameName; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawPlugin : begin Namespace:=onsDraw; LocalName:='plugin'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawParam; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawMimeType; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawImageMap : begin Namespace:=onsDraw; LocalName:='image-map'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDrawAreaRectangle; ChildrenArray[1]:=oetDrawAreaCircle; ChildrenArray[2]:=oetDrawAreaPolygon; SetLength(AttsArray, 0); end; oetDrawAreaRectangle : begin Namespace:=onsDraw; LocalName:='area-rectangle'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; SetLength(AttsArray, 10); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatOfficeTargetFrameName; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatOfficeName; AttsArray[5]:=oatDrawNohref; AttsArray[6]:=oatSvgX; AttsArray[7]:=oatSvgY; AttsArray[8]:=oatSvgWidth; AttsArray[9]:=oatSvgHeight; end; oetDrawAreaCircle : begin Namespace:=onsDraw; LocalName:='area-circle'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; SetLength(AttsArray, 9); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatOfficeTargetFrameName; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatOfficeName; AttsArray[5]:=oatDrawNohref; AttsArray[6]:=oatSvgCx; AttsArray[7]:=oatSvgCy; AttsArray[8]:=oatSvgR; end; oetDrawAreaPolygon : begin Namespace:=onsDraw; LocalName:='area-polygon'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; SetLength(AttsArray, 12); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatOfficeTargetFrameName; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatOfficeName; AttsArray[5]:=oatDrawNohref; AttsArray[6]:=oatSvgX; AttsArray[7]:=oatSvgY; AttsArray[8]:=oatSvgWidth; AttsArray[9]:=oatSvgHeight; AttsArray[10]:=oatSvgViewbox; AttsArray[11]:=oatDrawPoints; end; oetDrawContourPolygon : begin Namespace:=onsDraw; LocalName:='contour-polygon'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDrawRecreateOnEdit; AttsArray[1]:=oatSvgWidth; AttsArray[2]:=oatSvgHeight; AttsArray[3]:=oatSvgViewbox; AttsArray[4]:=oatDrawPoints; end; oetDrawContourPath : begin Namespace:=onsDraw; LocalName:='contour-path'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDrawRecreateOnEdit; AttsArray[1]:=oatSvgWidth; AttsArray[2]:=oatSvgHeight; AttsArray[3]:=oatSvgViewbox; AttsArray[4]:=oatSvgD; end; oetDrawMeasure : begin Namespace:=onsDraw; LocalName:='measure'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 5); AttsArray[0]:=oatSvgX1; AttsArray[1]:=oatSvgY1; AttsArray[2]:=oatSvgX2; AttsArray[3]:=oatSvgY2; AttsArray[4]:=oatDrawCaptionId; end; oetDrawCaption : begin Namespace:=onsDraw; LocalName:='caption'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 8); AttsArray[0]:=oatDrawCaptionPointX; AttsArray[1]:=oatDrawCaptionPointY; AttsArray[2]:=oatDrawCornerRadius; AttsArray[3]:=oatSvgX; AttsArray[4]:=oatSvgY; AttsArray[5]:=oatSvgWidth; AttsArray[6]:=oatSvgHeight; AttsArray[7]:=oatDrawCaptionId; end; oetDrawConnector : begin Namespace:=onsDraw; LocalName:='connector'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 13); AttsArray[0]:=oatDrawType; AttsArray[1]:=oatSvgX1; AttsArray[2]:=oatSvgY1; AttsArray[3]:=oatDrawStartShape; AttsArray[4]:=oatDrawStartGluePoint; AttsArray[5]:=oatSvgX2; AttsArray[6]:=oatSvgY2; AttsArray[7]:=oatDrawEndShape; AttsArray[8]:=oatDrawEndGluePoint; AttsArray[9]:=oatDrawLineSkew; AttsArray[10]:=oatSvgD; AttsArray[11]:=oatDrawCaptionId; AttsArray[12]:=oatSvgViewbox; end; oetDrawControl : begin Namespace:=onsDraw; LocalName:='control'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetDrawGluePoint; SetLength(AttsArray, 6); AttsArray[0]:=oatDrawControl; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatDrawCaptionId; end; oetDr3dScene : begin Namespace:=onsDr3d; LocalName:='scene'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetDr3dLight; ChildrenArray[3]:=oetDr3dExtrude; ChildrenArray[4]:=oetDr3dSphere; ChildrenArray[5]:=oetDr3dRotate; ChildrenArray[6]:=oetDr3dCube; ChildrenArray[7]:=oetDrawGluePoint; SetLength(AttsArray, 27); AttsArray[0]:=oatDr3dVrp; AttsArray[1]:=oatDr3dVpn; AttsArray[2]:=oatDr3dVup; AttsArray[3]:=oatDr3dProjection; AttsArray[4]:=oatDr3dDistance; AttsArray[5]:=oatDr3dFocalLength; AttsArray[6]:=oatDr3dShadowSlant; AttsArray[7]:=oatDr3dShadeMode; AttsArray[8]:=oatDr3dAmbientColor; AttsArray[9]:=oatDr3dLightingMode; AttsArray[10]:=oatSvgX; AttsArray[11]:=oatSvgY; AttsArray[12]:=oatSvgWidth; AttsArray[13]:=oatSvgHeight; AttsArray[14]:=oatDrawStyleName; AttsArray[15]:=oatDrawClassNames; AttsArray[16]:=oatPresentationStyleName; AttsArray[17]:=oatPresentationClassNames; AttsArray[18]:=oatDrawZIndex; AttsArray[19]:=oatDrawId; AttsArray[20]:=oatDrawLayer; AttsArray[21]:=oatTableEndCellAddress; AttsArray[22]:=oatTableEndX; AttsArray[23]:=oatTableEndY; AttsArray[24]:=oatTableTableBackground; AttsArray[25]:=oatDr3dTransform; AttsArray[26]:=oatDrawCaptionId; end; oetDr3dLight : begin Namespace:=onsDr3d; LocalName:='light'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDr3dDiffuseColor; AttsArray[1]:=oatDr3dDirection; AttsArray[2]:=oatDr3dEnabled; AttsArray[3]:=oatDr3dSpecular; end; oetDr3dExtrude : begin Namespace:=onsDr3d; LocalName:='extrude'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatSvgD; AttsArray[1]:=oatSvgViewbox; AttsArray[2]:=oatDrawId; AttsArray[3]:=oatDrawZIndex; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDr3dSphere : begin Namespace:=onsDr3d; LocalName:='sphere'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatDr3dCenter; AttsArray[1]:=oatDr3dSize; AttsArray[2]:=oatDrawZIndex; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDr3dRotate : begin Namespace:=onsDr3d; LocalName:='rotate'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatSvgViewbox; AttsArray[1]:=oatSvgD; AttsArray[2]:=oatDrawZIndex; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDr3dCube : begin Namespace:=onsDr3d; LocalName:='cube'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatDr3dMinEdge; AttsArray[1]:=oatDr3dMaxEdge; AttsArray[2]:=oatDrawZIndex; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDrawCustomShape : begin Namespace:=onsDraw; LocalName:='custom-shape'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; ChildrenArray[4]:=oetDrawEnhancedGeometry; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawEngine; AttsArray[1]:=oatDrawData; AttsArray[2]:=oatSvgX; AttsArray[3]:=oatSvgY; AttsArray[4]:=oatSvgWidth; AttsArray[5]:=oatSvgHeight; AttsArray[6]:=oatDrawCaptionId; end; oetDrawEnhancedGeometry : begin Namespace:=onsDraw; LocalName:='enhanced-geometry'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDrawEquation; ChildrenArray[1]:=oetDrawHandle; SetLength(AttsArray, 43); AttsArray[0]:=oatDrawType; AttsArray[1]:=oatSvgViewbox; AttsArray[2]:=oatDrawMirrorVertical; AttsArray[3]:=oatDrawMirrorHorizontal; AttsArray[4]:=oatDrawTextRotateAngle; AttsArray[5]:=oatDrawExtrusionAllowed; AttsArray[6]:=oatDrawTextPathAllowed; AttsArray[7]:=oatDrawConcentricGradientFillAllowed; AttsArray[8]:=oatDrawExtrusion; AttsArray[9]:=oatDrawExtrusionBrightness; AttsArray[10]:=oatDrawExtrusionDepth; AttsArray[11]:=oatDrawExtrusionDiffusion; AttsArray[12]:=oatDrawExtrusionNumberOfLineSegments; AttsArray[13]:=oatDrawExtrusionLightFace; AttsArray[14]:=oatDrawExtrusionFirstLightHarsh; AttsArray[15]:=oatDrawExtrusionSecondLightHarsh; AttsArray[16]:=oatDrawExtrusionFirstLightLevel; AttsArray[17]:=oatDrawExtrusionSecondLightLevel; AttsArray[18]:=oatDrawExtrusionFirstLightDirection; AttsArray[19]:=oatDrawExtrusionSecondLightDirection; AttsArray[20]:=oatDrawExtrusionMetal; AttsArray[21]:=oatDr3dShadeMode; AttsArray[22]:=oatDrawExtrusionRotationAngle; AttsArray[23]:=oatDrawExtrusionRotationCenter; AttsArray[24]:=oatDrawExtrusionShininess; AttsArray[25]:=oatDrawExtrusionSkew; AttsArray[26]:=oatDrawExtrusionSpecularity; AttsArray[27]:=oatDr3dProjection; AttsArray[28]:=oatDrawExtrusionViewpoint; AttsArray[29]:=oatDrawExtrusionOrigin; AttsArray[30]:=oatDrawExtrusionColor; AttsArray[31]:=oatDrawEnhancedPath; AttsArray[32]:=oatDrawPathStretchpointX; AttsArray[33]:=oatDrawPathStretchpointY; AttsArray[34]:=oatDrawTextAreas; AttsArray[35]:=oatDrawGluePoints; AttsArray[36]:=oatDrawGluePointType; AttsArray[37]:=oatDrawGluePointLeavingDirections; AttsArray[38]:=oatDrawTextPath; AttsArray[39]:=oatDrawTextPathMode; AttsArray[40]:=oatDrawTextPathScale; AttsArray[41]:=oatDrawTextPathSameLetterHeights; AttsArray[42]:=oatDrawModifiers; end; oetDrawEquation : begin Namespace:=onsDraw; LocalName:='equation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawFormula; end; oetDrawHandle : begin Namespace:=onsDraw; LocalName:='handle'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 11); AttsArray[0]:=oatDrawHandleMirrorVertical; AttsArray[1]:=oatDrawHandleMirrorHorizontal; AttsArray[2]:=oatDrawHandleSwitched; AttsArray[3]:=oatDrawHandlePosition; AttsArray[4]:=oatDrawHandleRangeXMinimum; AttsArray[5]:=oatDrawHandleRangeXMaximum; AttsArray[6]:=oatDrawHandleRangeYMinimum; AttsArray[7]:=oatDrawHandleRangeYMaximum; AttsArray[8]:=oatDrawHandlePolar; AttsArray[9]:=oatDrawHandleRadiusRangeMinimum; AttsArray[10]:=oatDrawHandleRadiusRangeMaximum; end; oetDrawA : begin Namespace:=onsDraw; LocalName:='a'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatXlinkType; AttsArray[2]:=oatXlinkHref; AttsArray[3]:=oatXlinkActuate; AttsArray[4]:=oatOfficeTargetFrameName; AttsArray[5]:=oatXlinkShow; AttsArray[6]:=oatOfficeName; AttsArray[7]:=oatOfficeTitle; AttsArray[8]:=oatOfficeServerMap; end; oetTableTableColumnGroup : begin Namespace:=onsTable; LocalName:='table-column-group'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableDisplay; end; oetTableTableColumns : begin Namespace:=onsTable; LocalName:='table-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableTableColumn; SetLength(AttsArray, 0); end; oetTableTableColumn : begin Namespace:=onsTable; LocalName:='table-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTableNumberColumnsRepeated; AttsArray[2]:=oatTableStyleName; AttsArray[3]:=oatTableVisibility; AttsArray[4]:=oatTableDefaultCellStyleName; end; oetTableTableHeaderColumns : begin Namespace:=onsTable; LocalName:='table-header-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableTableColumn; SetLength(AttsArray, 0); end; oetTableTableRowGroup : begin Namespace:=onsTable; LocalName:='table-row-group'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableDisplay; end; oetTableTableRows : begin Namespace:=onsTable; LocalName:='table-rows'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextSoftPageBreak; ChildrenArray[1]:=oetTableTableRow; SetLength(AttsArray, 0); end; oetTableTableRow : begin Namespace:=onsTable; LocalName:='table-row'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableTableCell; ChildrenArray[1]:=oetTableCoveredTableCell; SetLength(AttsArray, 5); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTableNumberRowsRepeated; AttsArray[2]:=oatTableStyleName; AttsArray[3]:=oatTableDefaultCellStyleName; AttsArray[4]:=oatTableVisibility; end; oetTableTableCell : begin Namespace:=onsTable; LocalName:='table-cell'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableCellRangeSource; ChildrenArray[1]:=oetOfficeAnnotation; ChildrenArray[2]:=oetTableDetective; SetLength(AttsArray, 28); AttsArray[0]:=oatOfficeValueType; AttsArray[1]:=oatOfficeValue; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeCurrency; AttsArray[7]:=oatOfficeValueType; AttsArray[8]:=oatOfficeDateValue; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeTimeValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeBooleanValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeStringValue; AttsArray[15]:=oatXmlId; AttsArray[16]:=oatXhtmlAbout; AttsArray[17]:=oatXhtmlProperty; AttsArray[18]:=oatTableNumberColumnsRepeated; AttsArray[19]:=oatTableStyleName; AttsArray[20]:=oatTableContentValidationName; AttsArray[21]:=oatTableFormula; AttsArray[22]:=oatTableProtect; AttsArray[23]:=oatTableProtected; AttsArray[24]:=oatTableNumberColumnsSpanned; AttsArray[25]:=oatTableNumberRowsSpanned; AttsArray[26]:=oatTableNumberMatrixColumnsSpanned; AttsArray[27]:=oatTableNumberMatrixRowsSpanned; end; oetTableCellRangeSource : begin Namespace:=onsTable; LocalName:='cell-range-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableLastColumnSpanned; AttsArray[2]:=oatTableLastRowSpanned; AttsArray[3]:=oatXlinkType; AttsArray[4]:=oatXlinkHref; AttsArray[5]:=oatXlinkActuate; AttsArray[6]:=oatTableFilterName; AttsArray[7]:=oatTableFilterOptions; AttsArray[8]:=oatTableRefreshDelay; end; oetOfficeAnnotation : begin Namespace:=onsOffice; LocalName:='annotation'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetDcCreator; ChildrenArray[1]:=oetDcDate; ChildrenArray[2]:=oetMetaDateString; ChildrenArray[3]:=oetTextList; SetLength(AttsArray, 9); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeDisplay; AttsArray[2]:=oatDrawCaptionPointX; AttsArray[3]:=oatDrawCaptionPointY; AttsArray[4]:=oatDrawCornerRadius; AttsArray[5]:=oatSvgX; AttsArray[6]:=oatSvgY; AttsArray[7]:=oatSvgWidth; AttsArray[8]:=oatSvgHeight; end; oetMetaDateString : begin Namespace:=onsMeta; LocalName:='date-string'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableDetective : begin Namespace:=onsTable; LocalName:='detective'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableHighlightedRange; ChildrenArray[1]:=oetTableOperation; SetLength(AttsArray, 0); end; oetTableHighlightedRange : begin Namespace:=onsTable; LocalName:='highlighted-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableCellRangeAddress; AttsArray[1]:=oatTableDirection; AttsArray[2]:=oatTableContainsError; AttsArray[3]:=oatTableMarkedInvalid; end; oetTableOperation : begin Namespace:=onsTable; LocalName:='operation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableIndex; end; oetTableCoveredTableCell : begin Namespace:=onsTable; LocalName:='covered-table-cell'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatTableNumberColumnsRepeated; AttsArray[1]:=oatTableStyleName; AttsArray[2]:=oatTableContentValidationName; AttsArray[3]:=oatTableFormula; AttsArray[4]:=oatTableProtect; AttsArray[5]:=oatTableProtected; end; oetTableTableHeaderRows : begin Namespace:=onsTable; LocalName:='table-header-rows'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextSoftPageBreak; ChildrenArray[1]:=oetTableTableRow; SetLength(AttsArray, 0); end; oetTableNamedExpressions : begin Namespace:=onsTable; LocalName:='named-expressions'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableNamedRange; ChildrenArray[1]:=oetTableNamedExpression; SetLength(AttsArray, 0); end; oetTableNamedRange : begin Namespace:=onsTable; LocalName:='named-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableCellRangeAddress; AttsArray[2]:=oatTableBaseCellAddress; AttsArray[3]:=oatTableRangeUsableAs; end; oetTableNamedExpression : begin Namespace:=onsTable; LocalName:='named-expression'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableExpression; AttsArray[2]:=oatTableBaseCellAddress; end; oetTextSection : begin Namespace:=onsText; LocalName:='section'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextSectionSource; ChildrenArray[1]:=oetOfficeDdeSource; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextStyleName; AttsArray[2]:=oatTextName; AttsArray[3]:=oatTextProtected; AttsArray[4]:=oatTextProtectionKey; AttsArray[5]:=oatTextProtectionKeyDigestAlgorithm; AttsArray[6]:=oatTextDisplay; AttsArray[7]:=oatTextDisplay; AttsArray[8]:=oatTextCondition; end; oetTextSectionSource : begin Namespace:=onsText; LocalName:='section-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatTextSectionName; AttsArray[4]:=oatTextFilterName; end; oetTextTableOfContent : begin Namespace:=onsText; LocalName:='table-of-content'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextTableOfContentSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextTableOfContentSource : begin Namespace:=onsText; LocalName:='table-of-content-source'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextTableOfContentEntryTemplate; ChildrenArray[2]:=oetTextIndexSourceStyles; SetLength(AttsArray, 6); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextUseOutlineLevel; AttsArray[2]:=oatTextUseIndexMarks; AttsArray[3]:=oatTextUseIndexSourceStyles; AttsArray[4]:=oatTextIndexScope; AttsArray[5]:=oatTextRelativeTabStopPosition; end; oetTextIndexTitleTemplate : begin Namespace:=onsText; LocalName:='index-title-template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextTableOfContentEntryTemplate : begin Namespace:=onsText; LocalName:='table-of-content-entry-template'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; ChildrenArray[5]:=oetTextIndexEntryLinkStart; ChildrenArray[6]:=oetTextIndexEntryLinkEnd; SetLength(AttsArray, 2); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextStyleName; end; oetTextIndexEntryChapter : begin Namespace:=onsText; LocalName:='index-entry-chapter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatTextOutlineLevel; end; oetTextIndexEntryPageNumber : begin Namespace:=onsText; LocalName:='index-entry-page-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntryText : begin Namespace:=onsText; LocalName:='index-entry-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntrySpan : begin Namespace:=onsText; LocalName:='index-entry-span'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntryTabStop : begin Namespace:=onsText; LocalName:='index-entry-tab-stop'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatStyleLeaderChar; AttsArray[2]:=oatStyleType; AttsArray[3]:=oatStyleType; AttsArray[4]:=oatStylePosition; end; oetTextIndexEntryLinkStart : begin Namespace:=onsText; LocalName:='index-entry-link-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntryLinkEnd : begin Namespace:=onsText; LocalName:='index-entry-link-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexSourceStyles : begin Namespace:=onsText; LocalName:='index-source-styles'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextIndexSourceStyle; SetLength(AttsArray, 1); AttsArray[0]:=oatTextOutlineLevel; end; oetTextIndexSourceStyle : begin Namespace:=onsText; LocalName:='index-source-style'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexBody : begin Namespace:=onsText; LocalName:='index-body'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextIndexTitle; SetLength(AttsArray, 0); end; oetTextIndexTitle : begin Namespace:=onsText; LocalName:='index-title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextIllustrationIndex : begin Namespace:=onsText; LocalName:='illustration-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIllustrationIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextIllustrationIndexSource : begin Namespace:=onsText; LocalName:='illustration-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextIllustrationIndexEntryTemplate; SetLength(AttsArray, 5); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextUseCaption; AttsArray[3]:=oatTextCaptionSequenceName; AttsArray[4]:=oatTextCaptionSequenceFormat; end; oetTextIllustrationIndexEntryTemplate : begin Namespace:=onsText; LocalName:='illustration-index-entry-template'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextTableIndex : begin Namespace:=onsText; LocalName:='table-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextTableIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextTableIndexSource : begin Namespace:=onsText; LocalName:='table-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextTableIndexEntryTemplate; SetLength(AttsArray, 3); AttsArray[0]:=oatTextUseCaption; AttsArray[1]:=oatTextCaptionSequenceName; AttsArray[2]:=oatTextCaptionSequenceFormat; end; oetTextTableIndexEntryTemplate : begin Namespace:=onsText; LocalName:='table-index-entry-template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextObjectIndex : begin Namespace:=onsText; LocalName:='object-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextObjectIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextObjectIndexSource : begin Namespace:=onsText; LocalName:='object-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextObjectIndexEntryTemplate; SetLength(AttsArray, 7); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextUseSpreadsheetObjects; AttsArray[3]:=oatTextUseMathObjects; AttsArray[4]:=oatTextUseDrawObjects; AttsArray[5]:=oatTextUseChartObjects; AttsArray[6]:=oatTextUseOtherObjects; end; oetTextObjectIndexEntryTemplate : begin Namespace:=onsText; LocalName:='object-index-entry-template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextUserIndex : begin Namespace:=onsText; LocalName:='user-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextUserIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextUserIndexSource : begin Namespace:=onsText; LocalName:='user-index-source'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextUserIndexEntryTemplate; ChildrenArray[2]:=oetTextIndexSourceStyles; SetLength(AttsArray, 10); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextUseIndexMarks; AttsArray[3]:=oatTextUseIndexSourceStyles; AttsArray[4]:=oatTextUseGraphics; AttsArray[5]:=oatTextUseTables; AttsArray[6]:=oatTextUseFloatingFrames; AttsArray[7]:=oatTextUseObjects; AttsArray[8]:=oatTextCopyOutlineLevels; AttsArray[9]:=oatTextIndexName; end; oetTextUserIndexEntryTemplate : begin Namespace:=onsText; LocalName:='user-index-entry-template'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; SetLength(AttsArray, 2); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextStyleName; end; oetTextAlphabeticalIndex : begin Namespace:=onsText; LocalName:='alphabetical-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextAlphabeticalIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextAlphabeticalIndexSource : begin Namespace:=onsText; LocalName:='alphabetical-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextAlphabeticalIndexEntryTemplate; SetLength(AttsArray, 16); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextIgnoreCase; AttsArray[3]:=oatTextMainEntryStyleName; AttsArray[4]:=oatTextAlphabeticalSeparators; AttsArray[5]:=oatTextCombineEntries; AttsArray[6]:=oatTextCombineEntriesWithDash; AttsArray[7]:=oatTextCombineEntriesWithPp; AttsArray[8]:=oatTextUseKeysAsEntries; AttsArray[9]:=oatTextCapitalizeEntries; AttsArray[10]:=oatTextCommaSeparated; AttsArray[11]:=oatFoLanguage; AttsArray[12]:=oatFoCountry; AttsArray[13]:=oatFoScript; AttsArray[14]:=oatStyleRfcLanguageTag; AttsArray[15]:=oatTextSortAlgorithm; end; oetTextAlphabeticalIndexEntryTemplate : begin Namespace:=onsText; LocalName:='alphabetical-index-entry-template'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; SetLength(AttsArray, 2); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextStyleName; end; oetTextBibliography : begin Namespace:=onsText; LocalName:='bibliography'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextBibliographySource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextBibliographySource : begin Namespace:=onsText; LocalName:='bibliography-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextBibliographyEntryTemplate; SetLength(AttsArray, 0); end; oetTextBibliographyEntryTemplate : begin Namespace:=onsText; LocalName:='bibliography-entry-template'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextIndexEntrySpan; ChildrenArray[1]:=oetTextIndexEntryTabStop; ChildrenArray[2]:=oetTextIndexEntryBibliography; SetLength(AttsArray, 2); AttsArray[0]:=oatTextBibliographyType; AttsArray[1]:=oatTextStyleName; end; oetTextIndexEntryBibliography : begin Namespace:=onsText; LocalName:='index-entry-bibliography'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextBibliographyDataField; end; oetTextChange : begin Namespace:=onsText; LocalName:='change'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextChangeId; end; oetTextChangeStart : begin Namespace:=onsText; LocalName:='change-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextChangeId; end; oetTextChangeEnd : begin Namespace:=onsText; LocalName:='change-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextChangeId; end; oetTextRuby : begin Namespace:=onsText; LocalName:='ruby'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextRubyBase; ChildrenArray[1]:=oetTextRubyText; SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextRubyBase : begin Namespace:=onsText; LocalName:='ruby-base'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextRubyText : begin Namespace:=onsText; LocalName:='ruby-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetOfficeAnnotationEnd : begin Namespace:=onsOffice; LocalName:='annotation-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatOfficeName; end; oetTextDate : begin Namespace:=onsText; LocalName:='date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; AttsArray[3]:=oatTextDateAdjust; end; oetTextTime : begin Namespace:=onsText; LocalName:='time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; AttsArray[3]:=oatTextTimeAdjust; end; oetTextPageNumber : begin Namespace:=onsText; LocalName:='page-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatTextFixed; AttsArray[3]:=oatTextPageAdjust; AttsArray[4]:=oatTextSelectPage; end; oetTextPageContinuation : begin Namespace:=onsText; LocalName:='page-continuation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextSelectPage; AttsArray[1]:=oatTextStringValue; end; oetTextSenderFirstname : begin Namespace:=onsText; LocalName:='sender-firstname'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderLastname : begin Namespace:=onsText; LocalName:='sender-lastname'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderInitials : begin Namespace:=onsText; LocalName:='sender-initials'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderTitle : begin Namespace:=onsText; LocalName:='sender-title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPosition : begin Namespace:=onsText; LocalName:='sender-position'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderEmail : begin Namespace:=onsText; LocalName:='sender-email'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPhonePrivate : begin Namespace:=onsText; LocalName:='sender-phone-private'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderFax : begin Namespace:=onsText; LocalName:='sender-fax'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderCompany : begin Namespace:=onsText; LocalName:='sender-company'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPhoneWork : begin Namespace:=onsText; LocalName:='sender-phone-work'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderStreet : begin Namespace:=onsText; LocalName:='sender-street'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderCity : begin Namespace:=onsText; LocalName:='sender-city'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPostalCode : begin Namespace:=onsText; LocalName:='sender-postal-code'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderCountry : begin Namespace:=onsText; LocalName:='sender-country'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderStateOrProvince : begin Namespace:=onsText; LocalName:='sender-state-or-province'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextAuthorName : begin Namespace:=onsText; LocalName:='author-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextAuthorInitials : begin Namespace:=onsText; LocalName:='author-initials'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextChapter : begin Namespace:=onsText; LocalName:='chapter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextDisplay; AttsArray[1]:=oatTextOutlineLevel; end; oetTextFileName : begin Namespace:=onsText; LocalName:='file-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatTextDisplay; end; oetTextTemplateName : begin Namespace:=onsText; LocalName:='template-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextDisplay; end; oetTextSheetName : begin Namespace:=onsText; LocalName:='sheet-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextVariableSet : begin Namespace:=onsText; LocalName:='variable-set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 19); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextFormula; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValue; AttsArray[8]:=oatOfficeCurrency; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeDateValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeTimeValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeBooleanValue; AttsArray[15]:=oatOfficeValueType; AttsArray[16]:=oatOfficeStringValue; AttsArray[17]:=oatTextDisplay; AttsArray[18]:=oatStyleDataStyleName; end; oetTextVariableGet : begin Namespace:=onsText; LocalName:='variable-get'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatStyleDataStyleName; end; oetTextVariableInput : begin Namespace:=onsText; LocalName:='variable-input'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDescription; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatTextDisplay; AttsArray[4]:=oatStyleDataStyleName; end; oetTextUserFieldGet : begin Namespace:=onsText; LocalName:='user-field-get'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatStyleDataStyleName; end; oetTextUserFieldInput : begin Namespace:=onsText; LocalName:='user-field-input'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDescription; AttsArray[2]:=oatStyleDataStyleName; end; oetTextSequence : begin Namespace:=onsText; LocalName:='sequence'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextFormula; AttsArray[2]:=oatTextRefName; end; oetTextExpression : begin Namespace:=onsText; LocalName:='expression'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 18); AttsArray[0]:=oatTextFormula; AttsArray[1]:=oatOfficeValueType; AttsArray[2]:=oatOfficeValue; AttsArray[3]:=oatOfficeValueType; AttsArray[4]:=oatOfficeValue; AttsArray[5]:=oatOfficeValueType; AttsArray[6]:=oatOfficeValue; AttsArray[7]:=oatOfficeCurrency; AttsArray[8]:=oatOfficeValueType; AttsArray[9]:=oatOfficeDateValue; AttsArray[10]:=oatOfficeValueType; AttsArray[11]:=oatOfficeTimeValue; AttsArray[12]:=oatOfficeValueType; AttsArray[13]:=oatOfficeBooleanValue; AttsArray[14]:=oatOfficeValueType; AttsArray[15]:=oatOfficeStringValue; AttsArray[16]:=oatTextDisplay; AttsArray[17]:=oatStyleDataStyleName; end; oetTextTextInput : begin Namespace:=onsText; LocalName:='text-input'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextDescription; end; oetTextInitialCreator : begin Namespace:=onsText; LocalName:='initial-creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextCreationDate : begin Namespace:=onsText; LocalName:='creation-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; end; oetTextCreationTime : begin Namespace:=onsText; LocalName:='creation-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; end; oetTextDescription : begin Namespace:=onsText; LocalName:='description'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextUserDefined : begin Namespace:=onsText; LocalName:='user-defined'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatTextName; AttsArray[2]:=oatStyleDataStyleName; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeDateValue; AttsArray[5]:=oatOfficeTimeValue; AttsArray[6]:=oatOfficeBooleanValue; AttsArray[7]:=oatOfficeStringValue; end; oetTextPrintTime : begin Namespace:=onsText; LocalName:='print-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; end; oetTextPrintDate : begin Namespace:=onsText; LocalName:='print-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; end; oetTextPrintedBy : begin Namespace:=onsText; LocalName:='printed-by'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextTitle : begin Namespace:=onsText; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSubject : begin Namespace:=onsText; LocalName:='subject'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextKeywords : begin Namespace:=onsText; LocalName:='keywords'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextEditingCycles : begin Namespace:=onsText; LocalName:='editing-cycles'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextEditingDuration : begin Namespace:=onsText; LocalName:='editing-duration'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDuration; end; oetTextModificationTime : begin Namespace:=onsText; LocalName:='modification-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; end; oetTextModificationDate : begin Namespace:=onsText; LocalName:='modification-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; end; oetTextCreator : begin Namespace:=onsText; LocalName:='creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextDatabaseDisplay : begin Namespace:=onsText; LocalName:='database-display'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormConnectionResource; SetLength(AttsArray, 5); AttsArray[0]:=oatTextTableName; AttsArray[1]:=oatTextTableType; AttsArray[2]:=oatTextDatabaseName; AttsArray[3]:=oatStyleDataStyleName; AttsArray[4]:=oatTextColumnName; end; oetTextDatabaseNext : begin Namespace:=onsText; LocalName:='database-next'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextCondition; end; oetTextDatabaseRowSelect : begin Namespace:=onsText; LocalName:='database-row-select'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextRowNumber; end; oetTextDatabaseRowNumber : begin Namespace:=onsText; LocalName:='database-row-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextValue; end; oetTextDatabaseName : begin Namespace:=onsText; LocalName:='database-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextPageVariableSet : begin Namespace:=onsText; LocalName:='page-variable-set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextActive; AttsArray[1]:=oatTextPageAdjust; end; oetTextPageVariableGet : begin Namespace:=onsText; LocalName:='page-variable-get'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextPlaceholder : begin Namespace:=onsText; LocalName:='placeholder'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextDescription; AttsArray[1]:=oatTextPlaceholderType; end; oetTextConditionalText : begin Namespace:=onsText; LocalName:='conditional-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextStringValueIfTrue; AttsArray[2]:=oatTextStringValueIfFalse; AttsArray[3]:=oatTextCurrentValue; end; oetTextHiddenText : begin Namespace:=onsText; LocalName:='hidden-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextStringValue; AttsArray[2]:=oatTextIsHidden; end; oetTextNoteRef : begin Namespace:=onsText; LocalName:='note-ref'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextRefName; AttsArray[1]:=oatTextNoteClass; AttsArray[2]:=oatTextReferenceFormat; end; oetTextSequenceRef : begin Namespace:=onsText; LocalName:='sequence-ref'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextRefName; AttsArray[1]:=oatTextReferenceFormat; end; oetTextScript : begin Namespace:=onsText; LocalName:='script'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatScriptLanguage; end; oetTextExecuteMacro : begin Namespace:=onsText; LocalName:='execute-macro'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeEventListeners; SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextHiddenParagraph : begin Namespace:=onsText; LocalName:='hidden-paragraph'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextIsHidden; end; oetTextDdeConnection : begin Namespace:=onsText; LocalName:='dde-connection'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextConnectionName; end; oetTextMeasure : begin Namespace:=onsText; LocalName:='measure'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextKind; end; oetTextTableFormula : begin Namespace:=onsText; LocalName:='table-formula'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFormula; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatStyleDataStyleName; end; oetTextMetaField : begin Namespace:=onsText; LocalName:='meta-field'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatStyleDataStyleName; end; oetTextTocMarkStart : begin Namespace:=onsText; LocalName:='toc-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextId; AttsArray[1]:=oatTextOutlineLevel; end; oetTextTocMarkEnd : begin Namespace:=onsText; LocalName:='toc-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextId; end; oetTextTocMark : begin Namespace:=onsText; LocalName:='toc-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextStringValue; AttsArray[1]:=oatTextOutlineLevel; end; oetTextUserIndexMarkStart : begin Namespace:=onsText; LocalName:='user-index-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextId; AttsArray[1]:=oatTextOutlineLevel; AttsArray[2]:=oatTextIndexName; end; oetTextUserIndexMarkEnd : begin Namespace:=onsText; LocalName:='user-index-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextId; end; oetTextUserIndexMark : begin Namespace:=onsText; LocalName:='user-index-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextStringValue; AttsArray[1]:=oatTextOutlineLevel; AttsArray[2]:=oatTextIndexName; end; oetTextAlphabeticalIndexMarkStart : begin Namespace:=onsText; LocalName:='alphabetical-index-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 7); AttsArray[0]:=oatTextId; AttsArray[1]:=oatTextKey1; AttsArray[2]:=oatTextKey2; AttsArray[3]:=oatTextStringValuePhonetic; AttsArray[4]:=oatTextKey1Phonetic; AttsArray[5]:=oatTextKey2Phonetic; AttsArray[6]:=oatTextMainEntry; end; oetTextAlphabeticalIndexMarkEnd : begin Namespace:=onsText; LocalName:='alphabetical-index-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextId; end; oetTextAlphabeticalIndexMark : begin Namespace:=onsText; LocalName:='alphabetical-index-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 7); AttsArray[0]:=oatTextStringValue; AttsArray[1]:=oatTextKey1; AttsArray[2]:=oatTextKey2; AttsArray[3]:=oatTextStringValuePhonetic; AttsArray[4]:=oatTextKey1Phonetic; AttsArray[5]:=oatTextKey2Phonetic; AttsArray[6]:=oatTextMainEntry; end; oetTextBibliographyMark : begin Namespace:=onsText; LocalName:='bibliography-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextBibliographyType; end; oetPresentationHeader : begin Namespace:=onsPresentation; LocalName:='header'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetPresentationFooter : begin Namespace:=onsPresentation; LocalName:='footer'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetPresentationDateTime : begin Namespace:=onsPresentation; LocalName:='date-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextA : begin Namespace:=onsText; LocalName:='a'; SetLength(ChildrenArray, 92); ChildrenArray[0]:=oetOfficeEventListeners; ChildrenArray[1]:=oetTextS; ChildrenArray[2]:=oetTextTab; ChildrenArray[3]:=oetTextLineBreak; ChildrenArray[4]:=oetTextSpan; ChildrenArray[5]:=oetTextMeta; ChildrenArray[6]:=oetTextReferenceMark; ChildrenArray[7]:=oetTextReferenceMarkStart; ChildrenArray[8]:=oetTextReferenceMarkEnd; ChildrenArray[9]:=oetTextNote; ChildrenArray[10]:=oetTextRuby; ChildrenArray[11]:=oetTextDate; ChildrenArray[12]:=oetTextTime; ChildrenArray[13]:=oetTextPageNumber; ChildrenArray[14]:=oetTextPageContinuation; ChildrenArray[15]:=oetTextSenderFirstname; ChildrenArray[16]:=oetTextSenderLastname; ChildrenArray[17]:=oetTextSenderInitials; ChildrenArray[18]:=oetTextSenderTitle; ChildrenArray[19]:=oetTextSenderPosition; ChildrenArray[20]:=oetTextSenderEmail; ChildrenArray[21]:=oetTextSenderPhonePrivate; ChildrenArray[22]:=oetTextSenderFax; ChildrenArray[23]:=oetTextSenderCompany; ChildrenArray[24]:=oetTextSenderPhoneWork; ChildrenArray[25]:=oetTextSenderStreet; ChildrenArray[26]:=oetTextSenderCity; ChildrenArray[27]:=oetTextSenderPostalCode; ChildrenArray[28]:=oetTextSenderCountry; ChildrenArray[29]:=oetTextSenderStateOrProvince; ChildrenArray[30]:=oetTextAuthorName; ChildrenArray[31]:=oetTextAuthorInitials; ChildrenArray[32]:=oetTextChapter; ChildrenArray[33]:=oetTextFileName; ChildrenArray[34]:=oetTextTemplateName; ChildrenArray[35]:=oetTextSheetName; ChildrenArray[36]:=oetTextVariableSet; ChildrenArray[37]:=oetTextVariableGet; ChildrenArray[38]:=oetTextVariableInput; ChildrenArray[39]:=oetTextUserFieldGet; ChildrenArray[40]:=oetTextUserFieldInput; ChildrenArray[41]:=oetTextSequence; ChildrenArray[42]:=oetTextExpression; ChildrenArray[43]:=oetTextTextInput; ChildrenArray[44]:=oetTextInitialCreator; ChildrenArray[45]:=oetTextCreationDate; ChildrenArray[46]:=oetTextCreationTime; ChildrenArray[47]:=oetTextDescription; ChildrenArray[48]:=oetTextUserDefined; ChildrenArray[49]:=oetTextPrintTime; ChildrenArray[50]:=oetTextPrintDate; ChildrenArray[51]:=oetTextPrintedBy; ChildrenArray[52]:=oetTextTitle; ChildrenArray[53]:=oetTextSubject; ChildrenArray[54]:=oetTextKeywords; ChildrenArray[55]:=oetTextEditingCycles; ChildrenArray[56]:=oetTextEditingDuration; ChildrenArray[57]:=oetTextModificationTime; ChildrenArray[58]:=oetTextModificationDate; ChildrenArray[59]:=oetTextCreator; ChildrenArray[60]:=oetTextDatabaseDisplay; ChildrenArray[61]:=oetTextDatabaseNext; ChildrenArray[62]:=oetTextDatabaseRowSelect; ChildrenArray[63]:=oetTextDatabaseRowNumber; ChildrenArray[64]:=oetTextDatabaseName; ChildrenArray[65]:=oetTextPageVariableSet; ChildrenArray[66]:=oetTextPageVariableGet; ChildrenArray[67]:=oetTextPlaceholder; ChildrenArray[68]:=oetTextConditionalText; ChildrenArray[69]:=oetTextHiddenText; ChildrenArray[70]:=oetTextNoteRef; ChildrenArray[71]:=oetTextSequenceRef; ChildrenArray[72]:=oetTextScript; ChildrenArray[73]:=oetTextExecuteMacro; ChildrenArray[74]:=oetTextHiddenParagraph; ChildrenArray[75]:=oetTextDdeConnection; ChildrenArray[76]:=oetTextMeasure; ChildrenArray[77]:=oetTextTableFormula; ChildrenArray[78]:=oetTextMetaField; ChildrenArray[79]:=oetTextTocMarkStart; ChildrenArray[80]:=oetTextTocMarkEnd; ChildrenArray[81]:=oetTextTocMark; ChildrenArray[82]:=oetTextUserIndexMarkStart; ChildrenArray[83]:=oetTextUserIndexMarkEnd; ChildrenArray[84]:=oetTextUserIndexMark; ChildrenArray[85]:=oetTextAlphabeticalIndexMarkStart; ChildrenArray[86]:=oetTextAlphabeticalIndexMarkEnd; ChildrenArray[87]:=oetTextAlphabeticalIndexMark; ChildrenArray[88]:=oetTextBibliographyMark; ChildrenArray[89]:=oetPresentationHeader; ChildrenArray[90]:=oetPresentationFooter; ChildrenArray[91]:=oetPresentationDateTime; SetLength(AttsArray, 9); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeTitle; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatOfficeTargetFrameName; AttsArray[6]:=oatXlinkShow; AttsArray[7]:=oatTextStyleName; AttsArray[8]:=oatTextVisitedStyleName; end; oetStyleMap : begin Namespace:=onsStyle; LocalName:='map'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatStyleCondition; AttsArray[1]:=oatStyleApplyStyleName; AttsArray[2]:=oatStyleBaseCellAddress; end; oetNumberNumberStyle : begin Namespace:=onsNumber; LocalName:='number-style'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberNumber; ChildrenArray[3]:=oetNumberScientificNumber; ChildrenArray[4]:=oetNumberFraction; ChildrenArray[5]:=oetNumberText; ChildrenArray[6]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberText : begin Namespace:=onsNumber; LocalName:='text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetNumberNumber : begin Namespace:=onsNumber; LocalName:='number'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetNumberEmbeddedText; SetLength(AttsArray, 5); AttsArray[0]:=oatNumberDecimalReplacement; AttsArray[1]:=oatNumberDisplayFactor; AttsArray[2]:=oatNumberDecimalPlaces; AttsArray[3]:=oatNumberMinIntegerDigits; AttsArray[4]:=oatNumberGrouping; end; oetNumberEmbeddedText : begin Namespace:=onsNumber; LocalName:='embedded-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberPosition; end; oetNumberScientificNumber : begin Namespace:=onsNumber; LocalName:='scientific-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatNumberMinExponentDigits; AttsArray[1]:=oatNumberDecimalPlaces; AttsArray[2]:=oatNumberMinIntegerDigits; AttsArray[3]:=oatNumberGrouping; end; oetNumberFraction : begin Namespace:=onsNumber; LocalName:='fraction'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatNumberMinNumeratorDigits; AttsArray[1]:=oatNumberMinDenominatorDigits; AttsArray[2]:=oatNumberDenominatorValue; AttsArray[3]:=oatNumberMinIntegerDigits; AttsArray[4]:=oatNumberGrouping; end; oetNumberCurrencyStyle : begin Namespace:=onsNumber; LocalName:='currency-style'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberNumber; ChildrenArray[3]:=oetNumberText; ChildrenArray[4]:=oetNumberCurrencySymbol; ChildrenArray[5]:=oetNumberText; ChildrenArray[6]:=oetStyleMap; SetLength(AttsArray, 13); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; AttsArray[12]:=oatNumberAutomaticOrder; end; oetNumberCurrencySymbol : begin Namespace:=onsNumber; LocalName:='currency-symbol'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatNumberLanguage; AttsArray[1]:=oatNumberCountry; AttsArray[2]:=oatNumberScript; AttsArray[3]:=oatNumberRfcLanguageTag; end; oetNumberPercentageStyle : begin Namespace:=onsNumber; LocalName:='percentage-style'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberDateStyle : begin Namespace:=onsNumber; LocalName:='date-style'; SetLength(ChildrenArray, 15); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberDay; ChildrenArray[3]:=oetNumberMonth; ChildrenArray[4]:=oetNumberYear; ChildrenArray[5]:=oetNumberEra; ChildrenArray[6]:=oetNumberDayOfWeek; ChildrenArray[7]:=oetNumberWeekOfYear; ChildrenArray[8]:=oetNumberQuarter; ChildrenArray[9]:=oetNumberHours; ChildrenArray[10]:=oetNumberAmPm; ChildrenArray[11]:=oetNumberMinutes; ChildrenArray[12]:=oetNumberSeconds; ChildrenArray[13]:=oetNumberText; ChildrenArray[14]:=oetStyleMap; SetLength(AttsArray, 14); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; AttsArray[12]:=oatNumberAutomaticOrder; AttsArray[13]:=oatNumberFormatSource; end; oetNumberDay : begin Namespace:=onsNumber; LocalName:='day'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberMonth : begin Namespace:=onsNumber; LocalName:='month'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatNumberTextual; AttsArray[1]:=oatNumberPossessiveForm; AttsArray[2]:=oatNumberStyle; AttsArray[3]:=oatNumberCalendar; end; oetNumberYear : begin Namespace:=onsNumber; LocalName:='year'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberEra : begin Namespace:=onsNumber; LocalName:='era'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberDayOfWeek : begin Namespace:=onsNumber; LocalName:='day-of-week'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberWeekOfYear : begin Namespace:=onsNumber; LocalName:='week-of-year'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberCalendar; end; oetNumberQuarter : begin Namespace:=onsNumber; LocalName:='quarter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberHours : begin Namespace:=onsNumber; LocalName:='hours'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberStyle; end; oetNumberAmPm : begin Namespace:=onsNumber; LocalName:='am-pm'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetNumberMinutes : begin Namespace:=onsNumber; LocalName:='minutes'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberStyle; end; oetNumberSeconds : begin Namespace:=onsNumber; LocalName:='seconds'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberDecimalPlaces; end; oetNumberTimeStyle : begin Namespace:=onsNumber; LocalName:='time-style'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberHours; ChildrenArray[3]:=oetNumberAmPm; ChildrenArray[4]:=oetNumberMinutes; ChildrenArray[5]:=oetNumberSeconds; ChildrenArray[6]:=oetNumberText; ChildrenArray[7]:=oetStyleMap; SetLength(AttsArray, 14); AttsArray[0]:=oatNumberTruncateOnOverflow; AttsArray[1]:=oatStyleName; AttsArray[2]:=oatStyleDisplayName; AttsArray[3]:=oatNumberLanguage; AttsArray[4]:=oatNumberCountry; AttsArray[5]:=oatNumberScript; AttsArray[6]:=oatNumberRfcLanguageTag; AttsArray[7]:=oatNumberTitle; AttsArray[8]:=oatStyleVolatile; AttsArray[9]:=oatNumberTransliterationFormat; AttsArray[10]:=oatNumberTransliterationLanguage; AttsArray[11]:=oatNumberTransliterationCountry; AttsArray[12]:=oatNumberTransliterationStyle; AttsArray[13]:=oatNumberFormatSource; end; oetNumberBooleanStyle : begin Namespace:=onsNumber; LocalName:='boolean-style'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberBoolean; ChildrenArray[3]:=oetNumberText; ChildrenArray[4]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberBoolean : begin Namespace:=onsNumber; LocalName:='boolean'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetNumberTextStyle : begin Namespace:=onsNumber; LocalName:='text-style'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberTextContent; ChildrenArray[3]:=oetNumberText; ChildrenArray[4]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberTextContent : begin Namespace:=onsNumber; LocalName:='text-content'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleDefaultStyle : begin Namespace:=onsStyle; LocalName:='default-style'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 11); AttsArray[0]:=oatStyleFamily; AttsArray[1]:=oatStyleFamily; AttsArray[2]:=oatStyleFamily; AttsArray[3]:=oatStyleFamily; AttsArray[4]:=oatStyleFamily; AttsArray[5]:=oatStyleFamily; AttsArray[6]:=oatStyleFamily; AttsArray[7]:=oatStyleFamily; AttsArray[8]:=oatStyleFamily; AttsArray[9]:=oatStyleFamily; AttsArray[10]:=oatStyleFamily; end; oetStyleDefaultPageLayout : begin Namespace:=onsStyle; LocalName:='default-page-layout'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStylePageLayoutProperties; ChildrenArray[1]:=oetStyleHeaderStyle; ChildrenArray[2]:=oetStyleFooterStyle; SetLength(AttsArray, 0); end; oetStylePageLayoutProperties : begin Namespace:=onsStyle; LocalName:='page-layout-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleBackgroundImage; ChildrenArray[1]:=oetStyleColumns; ChildrenArray[2]:=oetStyleFootnoteSep; SetLength(AttsArray, 50); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatStyleNumPrefix; AttsArray[3]:=oatStyleNumSuffix; AttsArray[4]:=oatFoMarginLeft; AttsArray[5]:=oatFoMarginRight; AttsArray[6]:=oatFoMarginTop; AttsArray[7]:=oatFoMarginBottom; AttsArray[8]:=oatFoMargin; AttsArray[9]:=oatFoBorder; AttsArray[10]:=oatFoBorderTop; AttsArray[11]:=oatFoBorderBottom; AttsArray[12]:=oatFoBorderLeft; AttsArray[13]:=oatFoBorderRight; AttsArray[14]:=oatStyleBorderLineWidth; AttsArray[15]:=oatStyleBorderLineWidthTop; AttsArray[16]:=oatStyleBorderLineWidthBottom; AttsArray[17]:=oatStyleBorderLineWidthLeft; AttsArray[18]:=oatStyleBorderLineWidthRight; AttsArray[19]:=oatFoPadding; AttsArray[20]:=oatFoPaddingTop; AttsArray[21]:=oatFoPaddingBottom; AttsArray[22]:=oatFoPaddingLeft; AttsArray[23]:=oatFoPaddingRight; AttsArray[24]:=oatStyleShadow; AttsArray[25]:=oatFoBackgroundColor; AttsArray[26]:=oatStyleWritingMode; AttsArray[27]:=oatFoPageWidth; AttsArray[28]:=oatFoPageHeight; AttsArray[29]:=oatStylePaperTrayName; AttsArray[30]:=oatStylePrintOrientation; AttsArray[31]:=oatStyleRegisterTruthRefStyleName; AttsArray[32]:=oatStylePrint; AttsArray[33]:=oatStylePrintPageOrder; AttsArray[34]:=oatStyleFirstPageNumber; AttsArray[35]:=oatStyleScaleTo; AttsArray[36]:=oatStyleScaleToPages; AttsArray[37]:=oatStyleTableCentering; AttsArray[38]:=oatStyleFootnoteMaxHeight; AttsArray[39]:=oatStyleLayoutGridMode; AttsArray[40]:=oatStyleLayoutGridStandardMode; AttsArray[41]:=oatStyleLayoutGridBaseHeight; AttsArray[42]:=oatStyleLayoutGridRubyHeight; AttsArray[43]:=oatStyleLayoutGridLines; AttsArray[44]:=oatStyleLayoutGridBaseWidth; AttsArray[45]:=oatStyleLayoutGridColor; AttsArray[46]:=oatStyleLayoutGridRubyBelow; AttsArray[47]:=oatStyleLayoutGridPrint; AttsArray[48]:=oatStyleLayoutGridDisplay; AttsArray[49]:=oatStyleLayoutGridSnapTo; end; oetStyleFootnoteSep : begin Namespace:=onsStyle; LocalName:='footnote-sep'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 7); AttsArray[0]:=oatStyleWidth; AttsArray[1]:=oatStyleRelWidth; AttsArray[2]:=oatStyleColor; AttsArray[3]:=oatStyleLineStyle; AttsArray[4]:=oatStyleAdjustment; AttsArray[5]:=oatStyleDistanceBeforeSep; AttsArray[6]:=oatStyleDistanceAfterSep; end; oetStyleHeaderStyle : begin Namespace:=onsStyle; LocalName:='header-style'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleHeaderFooterProperties; SetLength(AttsArray, 0); end; oetStyleHeaderFooterProperties : begin Namespace:=onsStyle; LocalName:='header-footer-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 25); AttsArray[0]:=oatFoMarginLeft; AttsArray[1]:=oatFoMarginRight; AttsArray[2]:=oatFoMarginTop; AttsArray[3]:=oatFoMarginBottom; AttsArray[4]:=oatFoMargin; AttsArray[5]:=oatFoBorder; AttsArray[6]:=oatFoBorderTop; AttsArray[7]:=oatFoBorderBottom; AttsArray[8]:=oatFoBorderLeft; AttsArray[9]:=oatFoBorderRight; AttsArray[10]:=oatStyleBorderLineWidth; AttsArray[11]:=oatStyleBorderLineWidthTop; AttsArray[12]:=oatStyleBorderLineWidthBottom; AttsArray[13]:=oatStyleBorderLineWidthLeft; AttsArray[14]:=oatStyleBorderLineWidthRight; AttsArray[15]:=oatFoPadding; AttsArray[16]:=oatFoPaddingTop; AttsArray[17]:=oatFoPaddingBottom; AttsArray[18]:=oatFoPaddingLeft; AttsArray[19]:=oatFoPaddingRight; AttsArray[20]:=oatFoBackgroundColor; AttsArray[21]:=oatStyleShadow; AttsArray[22]:=oatSvgHeight; AttsArray[23]:=oatFoMinHeight; AttsArray[24]:=oatStyleDynamicSpacing; end; oetStyleFooterStyle : begin Namespace:=onsStyle; LocalName:='footer-style'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleHeaderFooterProperties; SetLength(AttsArray, 0); end; oetTextOutlineStyle : begin Namespace:=onsText; LocalName:='outline-style'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextOutlineLevelStyle; SetLength(AttsArray, 1); AttsArray[0]:=oatStyleName; end; oetTextOutlineLevelStyle : begin Namespace:=onsText; LocalName:='outline-level-style'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleListLevelProperties; ChildrenArray[1]:=oetStyleTextProperties; SetLength(AttsArray, 8); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatStyleNumPrefix; AttsArray[3]:=oatStyleNumSuffix; AttsArray[4]:=oatTextLevel; AttsArray[5]:=oatTextStyleName; AttsArray[6]:=oatTextDisplayLevels; AttsArray[7]:=oatTextStartValue; end; oetTextBibliographyConfiguration : begin Namespace:=onsText; LocalName:='bibliography-configuration'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextSortKey; SetLength(AttsArray, 9); AttsArray[0]:=oatTextPrefix; AttsArray[1]:=oatTextSuffix; AttsArray[2]:=oatTextNumberedEntries; AttsArray[3]:=oatTextSortByPosition; AttsArray[4]:=oatFoLanguage; AttsArray[5]:=oatFoCountry; AttsArray[6]:=oatFoScript; AttsArray[7]:=oatStyleRfcLanguageTag; AttsArray[8]:=oatTextSortAlgorithm; end; oetTextSortKey : begin Namespace:=onsText; LocalName:='sort-key'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextKey; AttsArray[1]:=oatTextSortAscending; end; oetTextLinenumberingConfiguration : begin Namespace:=onsText; LocalName:='linenumbering-configuration'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextLinenumberingSeparator; SetLength(AttsArray, 10); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatTextNumberLines; AttsArray[3]:=oatTextStyleName; AttsArray[4]:=oatTextIncrement; AttsArray[5]:=oatTextNumberPosition; AttsArray[6]:=oatTextOffset; AttsArray[7]:=oatTextCountEmptyLines; AttsArray[8]:=oatTextCountInTextBoxes; AttsArray[9]:=oatTextRestartOnPage; end; oetTextLinenumberingSeparator : begin Namespace:=onsText; LocalName:='linenumbering-separator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextIncrement; end; oetDrawGradient : begin Namespace:=onsDraw; LocalName:='gradient'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 11); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawCx; AttsArray[4]:=oatDrawCy; AttsArray[5]:=oatDrawAngle; AttsArray[6]:=oatDrawBorder; AttsArray[7]:=oatDrawStartColor; AttsArray[8]:=oatDrawEndColor; AttsArray[9]:=oatDrawStartIntensity; AttsArray[10]:=oatDrawEndIntensity; end; oetSvgLineargradient : begin Namespace:=onsSvg; LocalName:='linearGradient'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetSvgStop; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgGradientunits; AttsArray[1]:=oatSvgGradienttransform; AttsArray[2]:=oatSvgSpreadmethod; AttsArray[3]:=oatDrawName; AttsArray[4]:=oatDrawDisplayName; AttsArray[5]:=oatSvgX1; AttsArray[6]:=oatSvgY1; AttsArray[7]:=oatSvgX2; AttsArray[8]:=oatSvgY2; end; oetSvgStop : begin Namespace:=onsSvg; LocalName:='stop'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatSvgOffset; AttsArray[1]:=oatSvgStopColor; AttsArray[2]:=oatSvgStopOpacity; end; oetSvgRadialgradient : begin Namespace:=onsSvg; LocalName:='radialGradient'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetSvgStop; SetLength(AttsArray, 10); AttsArray[0]:=oatSvgGradientunits; AttsArray[1]:=oatSvgGradienttransform; AttsArray[2]:=oatSvgSpreadmethod; AttsArray[3]:=oatDrawName; AttsArray[4]:=oatDrawDisplayName; AttsArray[5]:=oatSvgCx; AttsArray[6]:=oatSvgCy; AttsArray[7]:=oatSvgR; AttsArray[8]:=oatSvgFx; AttsArray[9]:=oatSvgFy; end; oetDrawHatch : begin Namespace:=onsDraw; LocalName:='hatch'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawColor; AttsArray[4]:=oatDrawDistance; AttsArray[5]:=oatDrawRotation; end; oetDrawFillImage : begin Namespace:=onsDraw; LocalName:='fill-image'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatSvgWidth; AttsArray[3]:=oatSvgHeight; AttsArray[4]:=oatXlinkType; AttsArray[5]:=oatXlinkHref; AttsArray[6]:=oatXlinkShow; AttsArray[7]:=oatXlinkActuate; end; oetDrawMarker : begin Namespace:=onsDraw; LocalName:='marker'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatSvgViewbox; AttsArray[3]:=oatSvgD; end; oetDrawStrokeDash : begin Namespace:=onsDraw; LocalName:='stroke-dash'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawDots1; AttsArray[4]:=oatDrawDots1Length; AttsArray[5]:=oatDrawDots2; AttsArray[6]:=oatDrawDots2Length; AttsArray[7]:=oatDrawDistance; end; oetDrawOpacity : begin Namespace:=onsDraw; LocalName:='opacity'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawCx; AttsArray[4]:=oatDrawCy; AttsArray[5]:=oatDrawAngle; AttsArray[6]:=oatDrawBorder; AttsArray[7]:=oatDrawStart; AttsArray[8]:=oatDrawEnd; end; oetStylePresentationPageLayout : begin Namespace:=onsStyle; LocalName:='presentation-page-layout'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationPlaceholder; SetLength(AttsArray, 2); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; end; oetPresentationPlaceholder : begin Namespace:=onsPresentation; LocalName:='placeholder'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatPresentationObject; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; end; oetTableTableTemplate : begin Namespace:=onsTable; LocalName:='table-template'; SetLength(ChildrenArray, 10); ChildrenArray[0]:=oetTableFirstRow; ChildrenArray[1]:=oetTableLastRow; ChildrenArray[2]:=oetTableFirstColumn; ChildrenArray[3]:=oetTableLastColumn; ChildrenArray[4]:=oetTableBody; ChildrenArray[5]:=oetTableEvenRows; ChildrenArray[6]:=oetTableOddRows; ChildrenArray[7]:=oetTableEvenColumns; ChildrenArray[8]:=oetTableOddColumns; ChildrenArray[9]:=oetTableBackground; SetLength(AttsArray, 5); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableFirstRowStartColumn; AttsArray[2]:=oatTableFirstRowEndColumn; AttsArray[3]:=oatTableLastRowStartColumn; AttsArray[4]:=oatTableLastRowEndColumn; end; oetTableFirstRow : begin Namespace:=onsTable; LocalName:='first-row'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableLastRow : begin Namespace:=onsTable; LocalName:='last-row'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableFirstColumn : begin Namespace:=onsTable; LocalName:='first-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableLastColumn : begin Namespace:=onsTable; LocalName:='last-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableBody : begin Namespace:=onsTable; LocalName:='body'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableEvenRows : begin Namespace:=onsTable; LocalName:='even-rows'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableOddRows : begin Namespace:=onsTable; LocalName:='odd-rows'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableEvenColumns : begin Namespace:=onsTable; LocalName:='even-columns'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableOddColumns : begin Namespace:=onsTable; LocalName:='odd-columns'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableBackground : begin Namespace:=onsTable; LocalName:='background'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableStyleName; end; oetOfficeAutomaticStyles : begin Namespace:=onsOffice; LocalName:='automatic-styles'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStylePageLayout; SetLength(AttsArray, 0); end; oetStylePageLayout : begin Namespace:=onsStyle; LocalName:='page-layout'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStylePageUsage; end; oetOfficeMasterStyles : begin Namespace:=onsOffice; LocalName:='master-styles'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleMasterPage; ChildrenArray[1]:=oetStyleHandoutMaster; ChildrenArray[2]:=oetDrawLayerSet; SetLength(AttsArray, 0); end; oetStyleMasterPage : begin Namespace:=onsStyle; LocalName:='master-page'; SetLength(ChildrenArray, 18); ChildrenArray[0]:=oetStyleHeader; ChildrenArray[1]:=oetStyleHeaderLeft; ChildrenArray[2]:=oetStyleFooter; ChildrenArray[3]:=oetStyleFooterLeft; ChildrenArray[4]:=oetDrawLayerSet; ChildrenArray[5]:=oetOfficeForms; ChildrenArray[6]:=oetAnimAnimate; ChildrenArray[7]:=oetAnimSet; ChildrenArray[8]:=oetAnimAnimatemotion; ChildrenArray[9]:=oetAnimAnimatecolor; ChildrenArray[10]:=oetAnimAnimatetransform; ChildrenArray[11]:=oetAnimTransitionfilter; ChildrenArray[12]:=oetAnimPar; ChildrenArray[13]:=oetAnimSeq; ChildrenArray[14]:=oetAnimIterate; ChildrenArray[15]:=oetAnimAudio; ChildrenArray[16]:=oetAnimCommand; ChildrenArray[17]:=oetPresentationNotes; SetLength(AttsArray, 5); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatStylePageLayoutName; AttsArray[3]:=oatDrawStyleName; AttsArray[4]:=oatStyleNextStyleName; end; oetStyleHeader : begin Namespace:=onsStyle; LocalName:='header'; SetLength(ChildrenArray, 25); ChildrenArray[0]:=oetTextTrackedChanges; ChildrenArray[1]:=oetTextAlphabeticalIndexAutoMarkFile; ChildrenArray[2]:=oetTextVariableDecls; ChildrenArray[3]:=oetTextSequenceDecls; ChildrenArray[4]:=oetTextUserFieldDecls; ChildrenArray[5]:=oetTextDdeConnectionDecls; ChildrenArray[6]:=oetTextH; ChildrenArray[7]:=oetTextP; ChildrenArray[8]:=oetTextList; ChildrenArray[9]:=oetTableTable; ChildrenArray[10]:=oetTextSection; ChildrenArray[11]:=oetTextTableOfContent; ChildrenArray[12]:=oetTextIllustrationIndex; ChildrenArray[13]:=oetTextTableIndex; ChildrenArray[14]:=oetTextObjectIndex; ChildrenArray[15]:=oetTextUserIndex; ChildrenArray[16]:=oetTextAlphabeticalIndex; ChildrenArray[17]:=oetTextBibliography; ChildrenArray[18]:=oetTextIndexTitle; ChildrenArray[19]:=oetTextChange; ChildrenArray[20]:=oetTextChangeStart; ChildrenArray[21]:=oetTextChangeEnd; ChildrenArray[22]:=oetStyleRegionLeft; ChildrenArray[23]:=oetStyleRegionCenter; ChildrenArray[24]:=oetStyleRegionRight; SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetTextTrackedChanges : begin Namespace:=onsText; LocalName:='tracked-changes'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextChangedRegion; SetLength(AttsArray, 1); AttsArray[0]:=oatTextTrackChanges; end; oetTextChangedRegion : begin Namespace:=onsText; LocalName:='changed-region'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextInsertion; ChildrenArray[1]:=oetTextDeletion; ChildrenArray[2]:=oetTextFormatChange; SetLength(AttsArray, 2); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextId; end; oetTextInsertion : begin Namespace:=onsText; LocalName:='insertion'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeChangeInfo; SetLength(AttsArray, 0); end; oetOfficeChangeInfo : begin Namespace:=onsOffice; LocalName:='change-info'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDcCreator; ChildrenArray[1]:=oetDcDate; ChildrenArray[2]:=oetTextP; SetLength(AttsArray, 0); end; oetTextDeletion : begin Namespace:=onsText; LocalName:='deletion'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeChangeInfo; SetLength(AttsArray, 0); end; oetTextFormatChange : begin Namespace:=onsText; LocalName:='format-change'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeChangeInfo; SetLength(AttsArray, 0); end; oetTextVariableDecls : begin Namespace:=onsText; LocalName:='variable-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextVariableDecl; SetLength(AttsArray, 0); end; oetTextVariableDecl : begin Namespace:=onsText; LocalName:='variable-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextName; AttsArray[1]:=oatOfficeValueType; end; oetTextSequenceDecls : begin Namespace:=onsText; LocalName:='sequence-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextSequenceDecl; SetLength(AttsArray, 0); end; oetTextSequenceDecl : begin Namespace:=onsText; LocalName:='sequence-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDisplayOutlineLevel; AttsArray[2]:=oatTextSeparationCharacter; end; oetTextUserFieldDecls : begin Namespace:=onsText; LocalName:='user-field-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextUserFieldDecl; SetLength(AttsArray, 0); end; oetTextUserFieldDecl : begin Namespace:=onsText; LocalName:='user-field-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 17); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextFormula; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValue; AttsArray[8]:=oatOfficeCurrency; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeDateValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeTimeValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeBooleanValue; AttsArray[15]:=oatOfficeValueType; AttsArray[16]:=oatOfficeStringValue; end; oetTextDdeConnectionDecls : begin Namespace:=onsText; LocalName:='dde-connection-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextDdeConnectionDecl; SetLength(AttsArray, 0); end; oetTextDdeConnectionDecl : begin Namespace:=onsText; LocalName:='dde-connection-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeDdeApplication; AttsArray[2]:=oatOfficeDdeTopic; AttsArray[3]:=oatOfficeDdeItem; AttsArray[4]:=oatOfficeAutomaticUpdate; end; oetTextAlphabeticalIndexAutoMarkFile : begin Namespace:=onsText; LocalName:='alphabetical-index-auto-mark-file'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; end; oetStyleRegionLeft : begin Namespace:=onsStyle; LocalName:='region-left'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 0); end; oetStyleRegionCenter : begin Namespace:=onsStyle; LocalName:='region-center'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleRegionRight : begin Namespace:=onsStyle; LocalName:='region-right'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleHeaderLeft : begin Namespace:=onsStyle; LocalName:='header-left'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetStyleFooter : begin Namespace:=onsStyle; LocalName:='footer'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetStyleFooterLeft : begin Namespace:=onsStyle; LocalName:='footer-left'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetDrawLayerSet : begin Namespace:=onsDraw; LocalName:='layer-set'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawLayer; SetLength(AttsArray, 0); end; oetDrawLayer : begin Namespace:=onsDraw; LocalName:='layer'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; SetLength(AttsArray, 3); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawProtected; AttsArray[2]:=oatDrawDisplay; end; oetAnimAnimate : begin Namespace:=onsAnim; LocalName:='animate'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 25); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilTo; AttsArray[4]:=oatSmilValues; AttsArray[5]:=oatAnimFormula; AttsArray[6]:=oatSmilFrom; AttsArray[7]:=oatSmilBy; AttsArray[8]:=oatSmilCalcmode; AttsArray[9]:=oatSmilKeytimes; AttsArray[10]:=oatSmilKeysplines; AttsArray[11]:=oatSmilBegin; AttsArray[12]:=oatSmilEnd; AttsArray[13]:=oatSmilDur; AttsArray[14]:=oatSmilRepeatdur; AttsArray[15]:=oatSmilRepeatcount; AttsArray[16]:=oatSmilRestart; AttsArray[17]:=oatSmilRestartdefault; AttsArray[18]:=oatSmilFill; AttsArray[19]:=oatSmilFilldefault; AttsArray[20]:=oatSmilAccelerate; AttsArray[21]:=oatSmilDecelerate; AttsArray[22]:=oatSmilAutoreverse; AttsArray[23]:=oatSmilAccumulate; AttsArray[24]:=oatSmilAdditive; end; oetAnimSet : begin Namespace:=onsAnim; LocalName:='set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilTo; AttsArray[4]:=oatSmilAccumulate; AttsArray[5]:=oatSmilAdditive; end; oetAnimAnimatemotion : begin Namespace:=onsAnim; LocalName:='animateMotion'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatSvgPath; AttsArray[1]:=oatSvgOrigin; AttsArray[2]:=oatSmilCalcmode; AttsArray[3]:=oatSmilTargetelement; AttsArray[4]:=oatAnimSubItem; AttsArray[5]:=oatSmilAttributename; AttsArray[6]:=oatSmilAccumulate; AttsArray[7]:=oatSmilAdditive; AttsArray[8]:=oatSmilValues; AttsArray[9]:=oatAnimFormula; AttsArray[10]:=oatSmilFrom; AttsArray[11]:=oatSmilBy; AttsArray[12]:=oatSmilKeytimes; AttsArray[13]:=oatSmilKeysplines; end; oetAnimAnimatecolor : begin Namespace:=onsAnim; LocalName:='animateColor'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilAccumulate; AttsArray[4]:=oatSmilAdditive; AttsArray[5]:=oatSmilValues; AttsArray[6]:=oatAnimFormula; AttsArray[7]:=oatSmilFrom; AttsArray[8]:=oatSmilBy; AttsArray[9]:=oatSmilCalcmode; AttsArray[10]:=oatSmilKeytimes; AttsArray[11]:=oatSmilKeysplines; AttsArray[12]:=oatAnimColorInterpolation; AttsArray[13]:=oatAnimColorInterpolationDirection; end; oetAnimAnimatetransform : begin Namespace:=onsAnim; LocalName:='animateTransform'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilAccumulate; AttsArray[4]:=oatSmilAdditive; AttsArray[5]:=oatSmilValues; AttsArray[6]:=oatAnimFormula; AttsArray[7]:=oatSmilFrom; AttsArray[8]:=oatSmilBy; AttsArray[9]:=oatSvgType; end; oetAnimTransitionfilter : begin Namespace:=onsAnim; LocalName:='transitionFilter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAccumulate; AttsArray[3]:=oatSmilAdditive; AttsArray[4]:=oatSmilValues; AttsArray[5]:=oatAnimFormula; AttsArray[6]:=oatSmilFrom; AttsArray[7]:=oatSmilBy; AttsArray[8]:=oatSmilCalcmode; AttsArray[9]:=oatSmilType; AttsArray[10]:=oatSmilSubtype; AttsArray[11]:=oatSmilDirection; AttsArray[12]:=oatSmilFadecolor; AttsArray[13]:=oatSmilMode; end; oetAnimPar : begin Namespace:=onsAnim; LocalName:='par'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetAnimAnimate; ChildrenArray[1]:=oetAnimSet; ChildrenArray[2]:=oetAnimAnimatemotion; ChildrenArray[3]:=oetAnimAnimatecolor; ChildrenArray[4]:=oetAnimAnimatetransform; ChildrenArray[5]:=oetAnimTransitionfilter; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatPresentationNodeType; AttsArray[2]:=oatPresentationPresetId; AttsArray[3]:=oatPresentationPresetSubType; AttsArray[4]:=oatPresentationPresetClass; AttsArray[5]:=oatPresentationMasterElement; AttsArray[6]:=oatPresentationGroupId; AttsArray[7]:=oatAnimId; AttsArray[8]:=oatSmilEndsync; end; oetAnimSeq : begin Namespace:=onsAnim; LocalName:='seq'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetAnimAnimate; ChildrenArray[1]:=oetAnimSet; ChildrenArray[2]:=oetAnimAnimatemotion; ChildrenArray[3]:=oetAnimAnimatecolor; ChildrenArray[4]:=oetAnimAnimatetransform; ChildrenArray[5]:=oetAnimTransitionfilter; ChildrenArray[6]:=oetAnimPar; SetLength(AttsArray, 8); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatSmilEndsync; end; oetAnimIterate : begin Namespace:=onsAnim; LocalName:='iterate'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetAnimAnimate; ChildrenArray[1]:=oetAnimSet; ChildrenArray[2]:=oetAnimAnimatemotion; ChildrenArray[3]:=oetAnimAnimatecolor; ChildrenArray[4]:=oetAnimAnimatetransform; ChildrenArray[5]:=oetAnimTransitionfilter; ChildrenArray[6]:=oetAnimPar; ChildrenArray[7]:=oetAnimSeq; SetLength(AttsArray, 12); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatSmilTargetelement; AttsArray[8]:=oatAnimSubItem; AttsArray[9]:=oatAnimIterateType; AttsArray[10]:=oatAnimIterateInterval; AttsArray[11]:=oatSmilEndsync; end; oetAnimAudio : begin Namespace:=onsAnim; LocalName:='audio'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatXlinkHref; AttsArray[8]:=oatAnimAudioLevel; end; oetAnimCommand : begin Namespace:=onsAnim; LocalName:='command'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetAnimParam; SetLength(AttsArray, 12); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatAnimCommand; AttsArray[8]:=oatSmilBegin; AttsArray[9]:=oatSmilEnd; AttsArray[10]:=oatSmilTargetelement; AttsArray[11]:=oatAnimSubItem; end; oetAnimParam : begin Namespace:=onsAnim; LocalName:='param'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatAnimName; AttsArray[1]:=oatAnimValue; end; oetPresentationNotes : begin Namespace:=onsPresentation; LocalName:='notes'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeForms; SetLength(AttsArray, 5); AttsArray[0]:=oatPresentationUseHeaderName; AttsArray[1]:=oatPresentationUseFooterName; AttsArray[2]:=oatPresentationUseDateTimeName; AttsArray[3]:=oatStylePageLayoutName; AttsArray[4]:=oatDrawStyleName; end; oetStyleHandoutMaster : begin Namespace:=onsStyle; LocalName:='handout-master'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatPresentationUseHeaderName; AttsArray[1]:=oatPresentationUseFooterName; AttsArray[2]:=oatPresentationUseDateTimeName; AttsArray[3]:=oatPresentationPresentationPageLayoutName; AttsArray[4]:=oatStylePageLayoutName; AttsArray[5]:=oatDrawStyleName; end; oetOfficeBody : begin Namespace:=onsOffice; LocalName:='body'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetOfficeDatabase; ChildrenArray[1]:=oetOfficeText; ChildrenArray[2]:=oetOfficeDrawing; ChildrenArray[3]:=oetOfficePresentation; ChildrenArray[4]:=oetOfficeSpreadsheet; ChildrenArray[5]:=oetOfficeChart; ChildrenArray[6]:=oetOfficeImage; SetLength(AttsArray, 0); end; oetOfficeText : begin Namespace:=onsOffice; LocalName:='text'; SetLength(ChildrenArray, 15); ChildrenArray[0]:=oetOfficeForms; ChildrenArray[1]:=oetTextTrackedChanges; ChildrenArray[2]:=oetTextVariableDecls; ChildrenArray[3]:=oetTextSequenceDecls; ChildrenArray[4]:=oetTextUserFieldDecls; ChildrenArray[5]:=oetTextDdeConnectionDecls; ChildrenArray[6]:=oetTableCalculationSettings; ChildrenArray[7]:=oetTableContentValidations; ChildrenArray[8]:=oetTableLabelRanges; ChildrenArray[9]:=oetTextPageSequence; ChildrenArray[10]:=oetTableNamedExpressions; ChildrenArray[11]:=oetTableDatabaseRanges; ChildrenArray[12]:=oetTableDataPilotTables; ChildrenArray[13]:=oetTableConsolidation; ChildrenArray[14]:=oetTableDdeLinks; SetLength(AttsArray, 2); AttsArray[0]:=oatTextGlobal; AttsArray[1]:=oatTextUseSoftPageBreaks; end; oetTableCalculationSettings : begin Namespace:=onsTable; LocalName:='calculation-settings'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableNullDate; ChildrenArray[1]:=oetTableIteration; SetLength(AttsArray, 7); AttsArray[0]:=oatTableCaseSensitive; AttsArray[1]:=oatTablePrecisionAsShown; AttsArray[2]:=oatTableSearchCriteriaMustApplyToWholeCell; AttsArray[3]:=oatTableAutomaticFindLabels; AttsArray[4]:=oatTableUseRegularExpressions; AttsArray[5]:=oatTableUseWildcards; AttsArray[6]:=oatTableNullYear; end; oetTableNullDate : begin Namespace:=onsTable; LocalName:='null-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableValueType; AttsArray[1]:=oatTableDateValue; end; oetTableIteration : begin Namespace:=onsTable; LocalName:='iteration'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableStatus; AttsArray[1]:=oatTableSteps; AttsArray[2]:=oatTableMaximumDifference; end; oetTableContentValidations : begin Namespace:=onsTable; LocalName:='content-validations'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableContentValidation; SetLength(AttsArray, 0); end; oetTableContentValidation : begin Namespace:=onsTable; LocalName:='content-validation'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetTableHelpMessage; ChildrenArray[1]:=oetTableErrorMessage; ChildrenArray[2]:=oetTableErrorMacro; ChildrenArray[3]:=oetOfficeEventListeners; SetLength(AttsArray, 5); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableCondition; AttsArray[2]:=oatTableBaseCellAddress; AttsArray[3]:=oatTableAllowEmptyCell; AttsArray[4]:=oatTableDisplayList; end; oetTableHelpMessage : begin Namespace:=onsTable; LocalName:='help-message'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 2); AttsArray[0]:=oatTableTitle; AttsArray[1]:=oatTableDisplay; end; oetTableErrorMessage : begin Namespace:=onsTable; LocalName:='error-message'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 3); AttsArray[0]:=oatTableTitle; AttsArray[1]:=oatTableDisplay; AttsArray[2]:=oatTableMessageType; end; oetTableErrorMacro : begin Namespace:=onsTable; LocalName:='error-macro'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableExecute; end; oetTableLabelRanges : begin Namespace:=onsTable; LocalName:='label-ranges'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableLabelRange; SetLength(AttsArray, 0); end; oetTableLabelRange : begin Namespace:=onsTable; LocalName:='label-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableLabelCellRangeAddress; AttsArray[1]:=oatTableDataCellRangeAddress; AttsArray[2]:=oatTableOrientation; end; oetTextPageSequence : begin Namespace:=onsText; LocalName:='page-sequence'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextPage; SetLength(AttsArray, 0); end; oetTextPage : begin Namespace:=onsText; LocalName:='page'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextMasterPageName; end; oetTableDatabaseRanges : begin Namespace:=onsTable; LocalName:='database-ranges'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDatabaseRange; SetLength(AttsArray, 0); end; oetTableDatabaseRange : begin Namespace:=onsTable; LocalName:='database-range'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetTableDatabaseSourceSql; ChildrenArray[1]:=oetTableDatabaseSourceQuery; ChildrenArray[2]:=oetTableDatabaseSourceTable; ChildrenArray[3]:=oetTableFilter; ChildrenArray[4]:=oetTableSort; ChildrenArray[5]:=oetTableSubtotalRules; SetLength(AttsArray, 10); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableIsSelection; AttsArray[2]:=oatTableOnUpdateKeepStyles; AttsArray[3]:=oatTableOnUpdateKeepSize; AttsArray[4]:=oatTableHasPersistentData; AttsArray[5]:=oatTableOrientation; AttsArray[6]:=oatTableContainsHeader; AttsArray[7]:=oatTableDisplayFilterButtons; AttsArray[8]:=oatTableTargetRangeAddress; AttsArray[9]:=oatTableRefreshDelay; end; oetTableDatabaseSourceSql : begin Namespace:=onsTable; LocalName:='database-source-sql'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableDatabaseName; AttsArray[1]:=oatTableSqlStatement; AttsArray[2]:=oatTableParseSqlStatement; end; oetTableDatabaseSourceQuery : begin Namespace:=onsTable; LocalName:='database-source-query'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableDatabaseName; AttsArray[1]:=oatTableQueryName; end; oetTableDatabaseSourceTable : begin Namespace:=onsTable; LocalName:='database-source-table'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableDatabaseName; AttsArray[1]:=oatTableDatabaseTableName; end; oetTableFilter : begin Namespace:=onsTable; LocalName:='filter'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableFilterCondition; ChildrenArray[1]:=oetTableFilterAnd; ChildrenArray[2]:=oetTableFilterOr; SetLength(AttsArray, 4); AttsArray[0]:=oatTableTargetRangeAddress; AttsArray[1]:=oatTableConditionSource; AttsArray[2]:=oatTableConditionSourceRangeAddress; AttsArray[3]:=oatTableDisplayDuplicates; end; oetTableFilterCondition : begin Namespace:=onsTable; LocalName:='filter-condition'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableFilterSetItem; SetLength(AttsArray, 5); AttsArray[0]:=oatTableFieldNumber; AttsArray[1]:=oatTableValue; AttsArray[2]:=oatTableOperator; AttsArray[3]:=oatTableCaseSensitive; AttsArray[4]:=oatTableDataType; end; oetTableFilterSetItem : begin Namespace:=onsTable; LocalName:='filter-set-item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableValue; end; oetTableFilterAnd : begin Namespace:=onsTable; LocalName:='filter-and'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableFilterOr; ChildrenArray[1]:=oetTableFilterCondition; SetLength(AttsArray, 0); end; oetTableFilterOr : begin Namespace:=onsTable; LocalName:='filter-or'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableFilterCondition; SetLength(AttsArray, 0); end; oetTableSort : begin Namespace:=onsTable; LocalName:='sort'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableSortBy; SetLength(AttsArray, 9); AttsArray[0]:=oatTableBindStylesToContent; AttsArray[1]:=oatTableTargetRangeAddress; AttsArray[2]:=oatTableCaseSensitive; AttsArray[3]:=oatTableLanguage; AttsArray[4]:=oatTableCountry; AttsArray[5]:=oatTableScript; AttsArray[6]:=oatTableRfcLanguageTag; AttsArray[7]:=oatTableAlgorithm; AttsArray[8]:=oatTableEmbeddedNumberBehavior; end; oetTableSortBy : begin Namespace:=onsTable; LocalName:='sort-by'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableFieldNumber; AttsArray[1]:=oatTableDataType; AttsArray[2]:=oatTableOrder; end; oetTableSubtotalRules : begin Namespace:=onsTable; LocalName:='subtotal-rules'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableSortGroups; ChildrenArray[1]:=oetTableSubtotalRule; SetLength(AttsArray, 3); AttsArray[0]:=oatTableBindStylesToContent; AttsArray[1]:=oatTableCaseSensitive; AttsArray[2]:=oatTablePageBreaksOnGroupChange; end; oetTableSortGroups : begin Namespace:=onsTable; LocalName:='sort-groups'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableDataType; AttsArray[1]:=oatTableOrder; end; oetTableSubtotalRule : begin Namespace:=onsTable; LocalName:='subtotal-rule'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableSubtotalField; SetLength(AttsArray, 1); AttsArray[0]:=oatTableGroupByFieldNumber; end; oetTableSubtotalField : begin Namespace:=onsTable; LocalName:='subtotal-field'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableFieldNumber; AttsArray[1]:=oatTableFunction; end; oetTableDataPilotTables : begin Namespace:=onsTable; LocalName:='data-pilot-tables'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotTable; SetLength(AttsArray, 0); end; oetTableDataPilotTable : begin Namespace:=onsTable; LocalName:='data-pilot-table'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetTableDatabaseSourceSql; ChildrenArray[1]:=oetTableDatabaseSourceQuery; ChildrenArray[2]:=oetTableDatabaseSourceTable; ChildrenArray[3]:=oetTableSourceService; ChildrenArray[4]:=oetTableSourceCellRange; ChildrenArray[5]:=oetTableDataPilotField; SetLength(AttsArray, 9); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableApplicationData; AttsArray[2]:=oatTableGrandTotal; AttsArray[3]:=oatTableIgnoreEmptyRows; AttsArray[4]:=oatTableIdentifyCategories; AttsArray[5]:=oatTableTargetRangeAddress; AttsArray[6]:=oatTableButtons; AttsArray[7]:=oatTableShowFilterButton; AttsArray[8]:=oatTableDrillDownOnDoubleClick; end; oetTableSourceService : begin Namespace:=onsTable; LocalName:='source-service'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableSourceName; AttsArray[2]:=oatTableObjectName; AttsArray[3]:=oatTableUserName; AttsArray[4]:=oatTablePassword; end; oetTableSourceCellRange : begin Namespace:=onsTable; LocalName:='source-cell-range'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableFilter; SetLength(AttsArray, 1); AttsArray[0]:=oatTableCellRangeAddress; end; oetTableDataPilotField : begin Namespace:=onsTable; LocalName:='data-pilot-field'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableDataPilotLevel; ChildrenArray[1]:=oetTableDataPilotFieldReference; ChildrenArray[2]:=oetTableDataPilotGroups; SetLength(AttsArray, 7); AttsArray[0]:=oatTableSourceFieldName; AttsArray[1]:=oatTableOrientation; AttsArray[2]:=oatTableOrientation; AttsArray[3]:=oatTableSelectedPage; AttsArray[4]:=oatTableIsDataLayoutField; AttsArray[5]:=oatTableFunction; AttsArray[6]:=oatTableUsedHierarchy; end; oetTableDataPilotLevel : begin Namespace:=onsTable; LocalName:='data-pilot-level'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTableDataPilotSubtotals; ChildrenArray[1]:=oetTableDataPilotMembers; ChildrenArray[2]:=oetTableDataPilotDisplayInfo; ChildrenArray[3]:=oetTableDataPilotSortInfo; ChildrenArray[4]:=oetTableDataPilotLayoutInfo; SetLength(AttsArray, 1); AttsArray[0]:=oatTableShowEmpty; end; oetTableDataPilotSubtotals : begin Namespace:=onsTable; LocalName:='data-pilot-subtotals'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotSubtotal; SetLength(AttsArray, 0); end; oetTableDataPilotSubtotal : begin Namespace:=onsTable; LocalName:='data-pilot-subtotal'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableFunction; end; oetTableDataPilotMembers : begin Namespace:=onsTable; LocalName:='data-pilot-members'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotMember; SetLength(AttsArray, 0); end; oetTableDataPilotMember : begin Namespace:=onsTable; LocalName:='data-pilot-member'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableDisplay; AttsArray[2]:=oatTableShowDetails; end; oetTableDataPilotDisplayInfo : begin Namespace:=onsTable; LocalName:='data-pilot-display-info'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableEnabled; AttsArray[1]:=oatTableDataField; AttsArray[2]:=oatTableMemberCount; AttsArray[3]:=oatTableDisplayMemberMode; end; oetTableDataPilotSortInfo : begin Namespace:=onsTable; LocalName:='data-pilot-sort-info'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableSortMode; AttsArray[1]:=oatTableDataField; AttsArray[2]:=oatTableSortMode; AttsArray[3]:=oatTableOrder; end; oetTableDataPilotLayoutInfo : begin Namespace:=onsTable; LocalName:='data-pilot-layout-info'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableLayoutMode; AttsArray[1]:=oatTableAddEmptyLines; end; oetTableDataPilotFieldReference : begin Namespace:=onsTable; LocalName:='data-pilot-field-reference'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTableFieldName; AttsArray[1]:=oatTableMemberType; AttsArray[2]:=oatTableMemberName; AttsArray[3]:=oatTableMemberType; AttsArray[4]:=oatTableType; end; oetTableDataPilotGroups : begin Namespace:=onsTable; LocalName:='data-pilot-groups'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotGroup; SetLength(AttsArray, 7); AttsArray[0]:=oatTableSourceFieldName; AttsArray[1]:=oatTableDateStart; AttsArray[2]:=oatTableStart; AttsArray[3]:=oatTableDateEnd; AttsArray[4]:=oatTableEnd; AttsArray[5]:=oatTableStep; AttsArray[6]:=oatTableGroupedBy; end; oetTableDataPilotGroup : begin Namespace:=onsTable; LocalName:='data-pilot-group'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotGroupMember; SetLength(AttsArray, 1); AttsArray[0]:=oatTableName; end; oetTableDataPilotGroupMember : begin Namespace:=onsTable; LocalName:='data-pilot-group-member'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableName; end; oetTableConsolidation : begin Namespace:=onsTable; LocalName:='consolidation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTableFunction; AttsArray[1]:=oatTableSourceCellRangeAddresses; AttsArray[2]:=oatTableTargetCellAddress; AttsArray[3]:=oatTableUseLabels; AttsArray[4]:=oatTableLinkToSourceData; end; oetTableDdeLinks : begin Namespace:=onsTable; LocalName:='dde-links'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDdeLink; SetLength(AttsArray, 0); end; oetTableDdeLink : begin Namespace:=onsTable; LocalName:='dde-link'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetOfficeDdeSource; ChildrenArray[1]:=oetTableTable; SetLength(AttsArray, 0); end; oetOfficeDrawing : begin Namespace:=onsOffice; LocalName:='drawing'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextVariableDecls; ChildrenArray[1]:=oetTextSequenceDecls; ChildrenArray[2]:=oetTextUserFieldDecls; ChildrenArray[3]:=oetTextDdeConnectionDecls; ChildrenArray[4]:=oetDrawPage; SetLength(AttsArray, 0); end; oetDrawPage : begin Namespace:=onsDraw; LocalName:='page'; SetLength(ChildrenArray, 17); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetDrawLayerSet; ChildrenArray[3]:=oetOfficeForms; ChildrenArray[4]:=oetPresentationAnimations; ChildrenArray[5]:=oetAnimAnimate; ChildrenArray[6]:=oetAnimSet; ChildrenArray[7]:=oetAnimAnimatemotion; ChildrenArray[8]:=oetAnimAnimatecolor; ChildrenArray[9]:=oetAnimAnimatetransform; ChildrenArray[10]:=oetAnimTransitionfilter; ChildrenArray[11]:=oetAnimPar; ChildrenArray[12]:=oetAnimSeq; ChildrenArray[13]:=oetAnimIterate; ChildrenArray[14]:=oetAnimAudio; ChildrenArray[15]:=oetAnimCommand; ChildrenArray[16]:=oetPresentationNotes; SetLength(AttsArray, 10); AttsArray[0]:=oatPresentationUseHeaderName; AttsArray[1]:=oatPresentationUseFooterName; AttsArray[2]:=oatPresentationUseDateTimeName; AttsArray[3]:=oatXmlId; AttsArray[4]:=oatDrawName; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawMasterPageName; AttsArray[7]:=oatPresentationPresentationPageLayoutName; AttsArray[8]:=oatDrawId; AttsArray[9]:=oatDrawNavOrder; end; oetPresentationAnimations : begin Namespace:=onsPresentation; LocalName:='animations'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetPresentationShowShape; ChildrenArray[1]:=oetPresentationShowText; ChildrenArray[2]:=oetPresentationHideShape; ChildrenArray[3]:=oetPresentationHideText; ChildrenArray[4]:=oetPresentationDim; ChildrenArray[5]:=oetPresentationPlay; ChildrenArray[6]:=oetPresentationAnimationGroup; SetLength(AttsArray, 0); end; oetPresentationShowShape : begin Namespace:=onsPresentation; LocalName:='show-shape'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationShowText : begin Namespace:=onsPresentation; LocalName:='show-text'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationHideShape : begin Namespace:=onsPresentation; LocalName:='hide-shape'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationHideText : begin Namespace:=onsPresentation; LocalName:='hide-text'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationDim : begin Namespace:=onsPresentation; LocalName:='dim'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 2); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatDrawColor; end; oetPresentationPlay : begin Namespace:=onsPresentation; LocalName:='play'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationSpeed; end; oetPresentationAnimationGroup : begin Namespace:=onsPresentation; LocalName:='animation-group'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetOfficePresentation : begin Namespace:=onsOffice; LocalName:='presentation'; SetLength(ChildrenArray, 9); ChildrenArray[0]:=oetTextVariableDecls; ChildrenArray[1]:=oetTextSequenceDecls; ChildrenArray[2]:=oetTextUserFieldDecls; ChildrenArray[3]:=oetTextDdeConnectionDecls; ChildrenArray[4]:=oetPresentationHeaderDecl; ChildrenArray[5]:=oetPresentationFooterDecl; ChildrenArray[6]:=oetPresentationDateTimeDecl; ChildrenArray[7]:=oetDrawPage; ChildrenArray[8]:=oetPresentationSettings; SetLength(AttsArray, 0); end; oetPresentationHeaderDecl : begin Namespace:=onsPresentation; LocalName:='header-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatPresentationName; end; oetPresentationFooterDecl : begin Namespace:=onsPresentation; LocalName:='footer-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatPresentationName; end; oetPresentationDateTimeDecl : begin Namespace:=onsPresentation; LocalName:='date-time-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatPresentationName; AttsArray[1]:=oatPresentationSource; AttsArray[2]:=oatStyleDataStyleName; end; oetPresentationSettings : begin Namespace:=onsPresentation; LocalName:='settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationShow; SetLength(AttsArray, 14); AttsArray[0]:=oatPresentationStartPage; AttsArray[1]:=oatPresentationShow; AttsArray[2]:=oatPresentationFullScreen; AttsArray[3]:=oatPresentationEndless; AttsArray[4]:=oatPresentationPause; AttsArray[5]:=oatPresentationShowLogo; AttsArray[6]:=oatPresentationForceManual; AttsArray[7]:=oatPresentationMouseVisible; AttsArray[8]:=oatPresentationMouseAsPen; AttsArray[9]:=oatPresentationStartWithNavigator; AttsArray[10]:=oatPresentationAnimations; AttsArray[11]:=oatPresentationTransitionOnClick; AttsArray[12]:=oatPresentationStayOnTop; AttsArray[13]:=oatPresentationShowEndOfPresentationSlide; end; oetPresentationShow : begin Namespace:=onsPresentation; LocalName:='show'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatPresentationName; AttsArray[1]:=oatPresentationPages; end; oetOfficeSpreadsheet : begin Namespace:=onsOffice; LocalName:='spreadsheet'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetTableTrackedChanges; ChildrenArray[1]:=oetTextVariableDecls; ChildrenArray[2]:=oetTextSequenceDecls; ChildrenArray[3]:=oetTextUserFieldDecls; ChildrenArray[4]:=oetTextDdeConnectionDecls; ChildrenArray[5]:=oetTableTable; SetLength(AttsArray, 3); AttsArray[0]:=oatTableStructureProtected; AttsArray[1]:=oatTableProtectionKey; AttsArray[2]:=oatTableProtectionKeyDigestAlgorithm; end; oetTableTrackedChanges : begin Namespace:=onsTable; LocalName:='tracked-changes'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetTableCellContentChange; ChildrenArray[1]:=oetTableInsertion; ChildrenArray[2]:=oetTableDeletion; ChildrenArray[3]:=oetTableMovement; SetLength(AttsArray, 1); AttsArray[0]:=oatTableTrackChanges; end; oetTableCellContentChange : begin Namespace:=onsTable; LocalName:='cell-content-change'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTableCellAddress; ChildrenArray[1]:=oetOfficeChangeInfo; ChildrenArray[2]:=oetTableDependencies; ChildrenArray[3]:=oetTableDeletions; ChildrenArray[4]:=oetTablePrevious; SetLength(AttsArray, 3); AttsArray[0]:=oatTableId; AttsArray[1]:=oatTableAcceptanceState; AttsArray[2]:=oatTableRejectingChangeId; end; oetTableCellAddress : begin Namespace:=onsTable; LocalName:='cell-address'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableColumn; AttsArray[1]:=oatTableRow; AttsArray[2]:=oatTableTable; end; oetTableDependencies : begin Namespace:=onsTable; LocalName:='dependencies'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDependency; SetLength(AttsArray, 0); end; oetTableDependency : begin Namespace:=onsTable; LocalName:='dependency'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTableDeletions : begin Namespace:=onsTable; LocalName:='deletions'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableCellContentDeletion; ChildrenArray[1]:=oetTableChangeDeletion; SetLength(AttsArray, 0); end; oetTableCellContentDeletion : begin Namespace:=onsTable; LocalName:='cell-content-deletion'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableCellAddress; ChildrenArray[1]:=oetTableChangeTrackTableCell; SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTableChangeTrackTableCell : begin Namespace:=onsTable; LocalName:='change-track-table-cell'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 20); AttsArray[0]:=oatOfficeValueType; AttsArray[1]:=oatOfficeValue; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeCurrency; AttsArray[7]:=oatOfficeValueType; AttsArray[8]:=oatOfficeDateValue; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeTimeValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeBooleanValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeStringValue; AttsArray[15]:=oatTableCellAddress; AttsArray[16]:=oatTableMatrixCovered; AttsArray[17]:=oatTableFormula; AttsArray[18]:=oatTableNumberMatrixColumnsSpanned; AttsArray[19]:=oatTableNumberMatrixRowsSpanned; end; oetTableChangeDeletion : begin Namespace:=onsTable; LocalName:='change-deletion'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTablePrevious : begin Namespace:=onsTable; LocalName:='previous'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableChangeTrackTableCell; SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTableInsertion : begin Namespace:=onsTable; LocalName:='insertion'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetOfficeChangeInfo; ChildrenArray[1]:=oetTableDependencies; ChildrenArray[2]:=oetTableDeletions; SetLength(AttsArray, 7); AttsArray[0]:=oatTableType; AttsArray[1]:=oatTablePosition; AttsArray[2]:=oatTableCount; AttsArray[3]:=oatTableTable; AttsArray[4]:=oatTableId; AttsArray[5]:=oatTableAcceptanceState; AttsArray[6]:=oatTableRejectingChangeId; end; oetTableDeletion : begin Namespace:=onsTable; LocalName:='deletion'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetOfficeChangeInfo; ChildrenArray[1]:=oetTableDependencies; ChildrenArray[2]:=oetTableDeletions; ChildrenArray[3]:=oetTableCutOffs; SetLength(AttsArray, 7); AttsArray[0]:=oatTableType; AttsArray[1]:=oatTablePosition; AttsArray[2]:=oatTableTable; AttsArray[3]:=oatTableMultiDeletionSpanned; AttsArray[4]:=oatTableId; AttsArray[5]:=oatTableAcceptanceState; AttsArray[6]:=oatTableRejectingChangeId; end; oetTableCutOffs : begin Namespace:=onsTable; LocalName:='cut-offs'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableMovementCutOff; ChildrenArray[1]:=oetTableInsertionCutOff; ChildrenArray[2]:=oetTableMovementCutOff; SetLength(AttsArray, 0); end; oetTableMovementCutOff : begin Namespace:=onsTable; LocalName:='movement-cut-off'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTablePosition; AttsArray[1]:=oatTableStartPosition; AttsArray[2]:=oatTableEndPosition; end; oetTableInsertionCutOff : begin Namespace:=onsTable; LocalName:='insertion-cut-off'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableId; AttsArray[1]:=oatTablePosition; end; oetTableMovement : begin Namespace:=onsTable; LocalName:='movement'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTableSourceRangeAddress; ChildrenArray[1]:=oetTableTargetRangeAddress; ChildrenArray[2]:=oetOfficeChangeInfo; ChildrenArray[3]:=oetTableDependencies; ChildrenArray[4]:=oetTableDeletions; SetLength(AttsArray, 3); AttsArray[0]:=oatTableId; AttsArray[1]:=oatTableAcceptanceState; AttsArray[2]:=oatTableRejectingChangeId; end; oetTableSourceRangeAddress : begin Namespace:=onsTable; LocalName:='source-range-address'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatTableColumn; AttsArray[1]:=oatTableRow; AttsArray[2]:=oatTableTable; AttsArray[3]:=oatTableStartColumn; AttsArray[4]:=oatTableStartRow; AttsArray[5]:=oatTableStartTable; AttsArray[6]:=oatTableEndColumn; AttsArray[7]:=oatTableEndRow; AttsArray[8]:=oatTableEndTable; end; oetTableTargetRangeAddress : begin Namespace:=onsTable; LocalName:='target-range-address'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetOfficeChart : begin Namespace:=onsOffice; LocalName:='chart'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextVariableDecls; ChildrenArray[1]:=oetTextSequenceDecls; ChildrenArray[2]:=oetTextUserFieldDecls; ChildrenArray[3]:=oetTextDdeConnectionDecls; ChildrenArray[4]:=oetChartChart; SetLength(AttsArray, 0); end; oetChartChart : begin Namespace:=onsChart; LocalName:='chart'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetChartTitle; ChildrenArray[1]:=oetChartSubtitle; ChildrenArray[2]:=oetChartFooter; ChildrenArray[3]:=oetChartLegend; ChildrenArray[4]:=oetChartPlotArea; ChildrenArray[5]:=oetTableTable; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatSvgHeight; AttsArray[2]:=oatXmlId; AttsArray[3]:=oatChartClass; AttsArray[4]:=oatChartColumnMapping; AttsArray[5]:=oatChartRowMapping; AttsArray[6]:=oatChartStyleName; AttsArray[7]:=oatXlinkType; AttsArray[8]:=oatXlinkHref; end; oetChartTitle : begin Namespace:=onsChart; LocalName:='title'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 4); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatTableCellRange; AttsArray[3]:=oatChartStyleName; end; oetChartSubtitle : begin Namespace:=onsChart; LocalName:='subtitle'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 2); AttsArray[0]:=oatTableCellRange; AttsArray[1]:=oatChartStyleName; end; oetChartFooter : begin Namespace:=onsChart; LocalName:='footer'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 2); AttsArray[0]:=oatTableCellRange; AttsArray[1]:=oatChartStyleName; end; oetChartLegend : begin Namespace:=onsChart; LocalName:='legend'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatChartLegendPosition; AttsArray[3]:=oatChartLegendAlign; AttsArray[4]:=oatChartLegendPosition; AttsArray[5]:=oatStyleLegendExpansion; AttsArray[6]:=oatStyleLegendExpansion; AttsArray[7]:=oatStyleLegendExpansionAspectRatio; AttsArray[8]:=oatChartStyleName; end; oetChartPlotArea : begin Namespace:=onsChart; LocalName:='plot-area'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetDr3dLight; ChildrenArray[1]:=oetChartAxis; ChildrenArray[2]:=oetChartSeries; ChildrenArray[3]:=oetChartStockGainMarker; ChildrenArray[4]:=oetChartStockLossMarker; ChildrenArray[5]:=oetChartStockRangeLine; ChildrenArray[6]:=oetChartWall; ChildrenArray[7]:=oetChartFloor; SetLength(AttsArray, 19); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatSvgWidth; AttsArray[3]:=oatSvgHeight; AttsArray[4]:=oatDr3dVrp; AttsArray[5]:=oatDr3dVpn; AttsArray[6]:=oatDr3dVup; AttsArray[7]:=oatDr3dProjection; AttsArray[8]:=oatDr3dDistance; AttsArray[9]:=oatDr3dFocalLength; AttsArray[10]:=oatDr3dShadowSlant; AttsArray[11]:=oatDr3dShadeMode; AttsArray[12]:=oatDr3dAmbientColor; AttsArray[13]:=oatDr3dLightingMode; AttsArray[14]:=oatDr3dTransform; AttsArray[15]:=oatXmlId; AttsArray[16]:=oatChartStyleName; AttsArray[17]:=oatTableCellRangeAddress; AttsArray[18]:=oatChartDataSourceHasLabels; end; oetChartAxis : begin Namespace:=onsChart; LocalName:='axis'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetChartTitle; ChildrenArray[1]:=oetChartCategories; ChildrenArray[2]:=oetChartGrid; SetLength(AttsArray, 3); AttsArray[0]:=oatChartDimension; AttsArray[1]:=oatChartName; AttsArray[2]:=oatChartStyleName; end; oetChartCategories : begin Namespace:=onsChart; LocalName:='categories'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableCellRangeAddress; end; oetChartGrid : begin Namespace:=onsChart; LocalName:='grid'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatChartClass; AttsArray[1]:=oatChartStyleName; end; oetChartSeries : begin Namespace:=onsChart; LocalName:='series'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetChartDomain; ChildrenArray[1]:=oetChartMeanValue; ChildrenArray[2]:=oetChartRegressionCurve; ChildrenArray[3]:=oetChartErrorIndicator; ChildrenArray[4]:=oetChartDataPoint; ChildrenArray[5]:=oetChartDataLabel; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatChartValuesCellRangeAddress; AttsArray[2]:=oatChartLabelCellAddress; AttsArray[3]:=oatChartClass; AttsArray[4]:=oatChartAttachedAxis; AttsArray[5]:=oatChartStyleName; end; oetChartDomain : begin Namespace:=onsChart; LocalName:='domain'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableCellRangeAddress; end; oetChartMeanValue : begin Namespace:=onsChart; LocalName:='mean-value'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartRegressionCurve : begin Namespace:=onsChart; LocalName:='regression-curve'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetChartEquation; SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartEquation : begin Namespace:=onsChart; LocalName:='equation'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 6); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatChartAutomaticContent; AttsArray[3]:=oatChartDisplayRSquare; AttsArray[4]:=oatChartDisplayEquation; AttsArray[5]:=oatChartStyleName; end; oetChartErrorIndicator : begin Namespace:=onsChart; LocalName:='error-indicator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatChartStyleName; AttsArray[1]:=oatChartDimension; end; oetChartDataPoint : begin Namespace:=onsChart; LocalName:='data-point'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetChartDataLabel; SetLength(AttsArray, 3); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatChartRepeated; AttsArray[2]:=oatChartStyleName; end; oetChartDataLabel : begin Namespace:=onsChart; LocalName:='data-label'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 3); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatChartStyleName; end; oetChartStockGainMarker : begin Namespace:=onsChart; LocalName:='stock-gain-marker'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartStockLossMarker : begin Namespace:=onsChart; LocalName:='stock-loss-marker'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartStockRangeLine : begin Namespace:=onsChart; LocalName:='stock-range-line'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartWall : begin Namespace:=onsChart; LocalName:='wall'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatChartStyleName; end; oetChartFloor : begin Namespace:=onsChart; LocalName:='floor'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatChartStyleName; end; oetOfficeImage : begin Namespace:=onsOffice; LocalName:='image'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawFrame; SetLength(AttsArray, 0); end; oetOfficeDatabase : begin Namespace:=onsOffice; LocalName:='database'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetDbDataSource; ChildrenArray[1]:=oetDbForms; ChildrenArray[2]:=oetDbReports; ChildrenArray[3]:=oetDbQueries; ChildrenArray[4]:=oetDbTableRepresentations; ChildrenArray[5]:=oetDbSchemaDefinition; SetLength(AttsArray, 0); end; oetDbDataSource : begin Namespace:=onsDb; LocalName:='data-source'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbConnectionData; ChildrenArray[1]:=oetDbDriverSettings; ChildrenArray[2]:=oetDbApplicationConnectionSettings; SetLength(AttsArray, 0); end; oetDbConnectionData : begin Namespace:=onsDb; LocalName:='connection-data'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbDatabaseDescription; ChildrenArray[1]:=oetDbConnectionResource; ChildrenArray[2]:=oetDbLogin; SetLength(AttsArray, 0); end; oetDbDatabaseDescription : begin Namespace:=onsDb; LocalName:='database-description'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbFileBasedDatabase; ChildrenArray[1]:=oetDbServerDatabase; SetLength(AttsArray, 0); end; oetDbFileBasedDatabase : begin Namespace:=onsDb; LocalName:='file-based-database'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatDbMediaType; AttsArray[3]:=oatDbExtension; end; oetDbServerDatabase : begin Namespace:=onsDb; LocalName:='server-database'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDbHostname; AttsArray[1]:=oatDbPort; AttsArray[2]:=oatDbLocalSocket; AttsArray[3]:=oatDbType; AttsArray[4]:=oatDbDatabaseName; end; oetDbConnectionResource : begin Namespace:=onsDb; LocalName:='connection-resource'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatXlinkActuate; end; oetDbLogin : begin Namespace:=onsDb; LocalName:='login'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDbUserName; AttsArray[1]:=oatDbUseSystemUser; AttsArray[2]:=oatDbIsPasswordRequired; AttsArray[3]:=oatDbLoginTimeout; end; oetDbDriverSettings : begin Namespace:=onsDb; LocalName:='driver-settings'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetDbAutoIncrement; ChildrenArray[1]:=oetDbDelimiter; ChildrenArray[2]:=oetDbCharacterSet; ChildrenArray[3]:=oetDbTableSettings; SetLength(AttsArray, 5); AttsArray[0]:=oatDbShowDeleted; AttsArray[1]:=oatDbIsFirstRowHeaderLine; AttsArray[2]:=oatDbSystemDriverSettings; AttsArray[3]:=oatDbBaseDn; AttsArray[4]:=oatDbParameterNameSubstitution; end; oetDbAutoIncrement : begin Namespace:=onsDb; LocalName:='auto-increment'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbAdditionalColumnStatement; AttsArray[1]:=oatDbRowRetrievingStatement; end; oetDbDelimiter : begin Namespace:=onsDb; LocalName:='delimiter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDbField; AttsArray[1]:=oatDbString; AttsArray[2]:=oatDbDecimal; AttsArray[3]:=oatDbThousand; end; oetDbCharacterSet : begin Namespace:=onsDb; LocalName:='character-set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatDbEncoding; end; oetDbTableSettings : begin Namespace:=onsDb; LocalName:='table-settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableSetting; SetLength(AttsArray, 0); end; oetDbTableSetting : begin Namespace:=onsDb; LocalName:='table-setting'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbDelimiter; ChildrenArray[1]:=oetDbCharacterSet; SetLength(AttsArray, 2); AttsArray[0]:=oatDbIsFirstRowHeaderLine; AttsArray[1]:=oatDbShowDeleted; end; oetDbApplicationConnectionSettings : begin Namespace:=onsDb; LocalName:='application-connection-settings'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbTableFilter; ChildrenArray[1]:=oetDbTableTypeFilter; ChildrenArray[2]:=oetDbDataSourceSettings; SetLength(AttsArray, 8); AttsArray[0]:=oatDbIsTableNameLengthLimited; AttsArray[1]:=oatDbEnableSql92Check; AttsArray[2]:=oatDbAppendTableAliasName; AttsArray[3]:=oatDbIgnoreDriverPrivileges; AttsArray[4]:=oatDbBooleanComparisonMode; AttsArray[5]:=oatDbUseCatalog; AttsArray[6]:=oatDbMaxRowCount; AttsArray[7]:=oatDbSuppressVersionColumns; end; oetDbTableFilter : begin Namespace:=onsDb; LocalName:='table-filter'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbTableIncludeFilter; ChildrenArray[1]:=oetDbTableExcludeFilter; SetLength(AttsArray, 0); end; oetDbTableIncludeFilter : begin Namespace:=onsDb; LocalName:='table-include-filter'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableFilterPattern; SetLength(AttsArray, 0); end; oetDbTableFilterPattern : begin Namespace:=onsDb; LocalName:='table-filter-pattern'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDbTableExcludeFilter : begin Namespace:=onsDb; LocalName:='table-exclude-filter'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableFilterPattern; SetLength(AttsArray, 0); end; oetDbTableTypeFilter : begin Namespace:=onsDb; LocalName:='table-type-filter'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableType; SetLength(AttsArray, 0); end; oetDbTableType : begin Namespace:=onsDb; LocalName:='table-type'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDbDataSourceSettings : begin Namespace:=onsDb; LocalName:='data-source-settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbDataSourceSetting; SetLength(AttsArray, 0); end; oetDbDataSourceSetting : begin Namespace:=onsDb; LocalName:='data-source-setting'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbDataSourceSettingValue; SetLength(AttsArray, 3); AttsArray[0]:=oatDbDataSourceSettingIsList; AttsArray[1]:=oatDbDataSourceSettingName; AttsArray[2]:=oatDbDataSourceSettingType; end; oetDbDataSourceSettingValue : begin Namespace:=onsDb; LocalName:='data-source-setting-value'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDbForms : begin Namespace:=onsDb; LocalName:='forms'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbComponent; ChildrenArray[1]:=oetDbComponentCollection; SetLength(AttsArray, 0); end; oetDbComponent : begin Namespace:=onsDb; LocalName:='component'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetMathMath; SetLength(AttsArray, 8); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatXlinkActuate; AttsArray[4]:=oatDbAsTemplate; AttsArray[5]:=oatDbName; AttsArray[6]:=oatDbTitle; AttsArray[7]:=oatDbDescription; end; oetDbComponentCollection : begin Namespace:=onsDb; LocalName:='component-collection'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbComponent; SetLength(AttsArray, 3); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbTitle; AttsArray[2]:=oatDbDescription; end; oetDbReports : begin Namespace:=onsDb; LocalName:='reports'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbComponent; ChildrenArray[1]:=oetDbComponentCollection; SetLength(AttsArray, 0); end; oetDbQueries : begin Namespace:=onsDb; LocalName:='queries'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbQuery; ChildrenArray[1]:=oetDbQueryCollection; SetLength(AttsArray, 0); end; oetDbQuery : begin Namespace:=onsDb; LocalName:='query'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetDbOrderStatement; ChildrenArray[1]:=oetDbFilterStatement; ChildrenArray[2]:=oetDbColumns; ChildrenArray[3]:=oetDbUpdateTable; SetLength(AttsArray, 7); AttsArray[0]:=oatDbCommand; AttsArray[1]:=oatDbEscapeProcessing; AttsArray[2]:=oatDbName; AttsArray[3]:=oatDbTitle; AttsArray[4]:=oatDbDescription; AttsArray[5]:=oatDbStyleName; AttsArray[6]:=oatDbDefaultRowStyleName; end; oetDbOrderStatement : begin Namespace:=onsDb; LocalName:='order-statement'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbCommand; AttsArray[1]:=oatDbApplyCommand; end; oetDbFilterStatement : begin Namespace:=onsDb; LocalName:='filter-statement'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbCommand; AttsArray[1]:=oatDbApplyCommand; end; oetDbColumns : begin Namespace:=onsDb; LocalName:='columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbColumn; SetLength(AttsArray, 0); end; oetDbColumn : begin Namespace:=onsDb; LocalName:='column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 21); AttsArray[0]:=oatDbVisible; AttsArray[1]:=oatDbStyleName; AttsArray[2]:=oatDbDefaultCellStyleName; AttsArray[3]:=oatDbName; AttsArray[4]:=oatDbTitle; AttsArray[5]:=oatDbDescription; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValue; AttsArray[8]:=oatOfficeValueType; AttsArray[9]:=oatOfficeValue; AttsArray[10]:=oatOfficeValueType; AttsArray[11]:=oatOfficeValue; AttsArray[12]:=oatOfficeCurrency; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeDateValue; AttsArray[15]:=oatOfficeValueType; AttsArray[16]:=oatOfficeTimeValue; AttsArray[17]:=oatOfficeValueType; AttsArray[18]:=oatOfficeBooleanValue; AttsArray[19]:=oatOfficeValueType; AttsArray[20]:=oatOfficeStringValue; end; oetDbUpdateTable : begin Namespace:=onsDb; LocalName:='update-table'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbSchemaName; end; oetDbQueryCollection : begin Namespace:=onsDb; LocalName:='query-collection'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbQuery; SetLength(AttsArray, 3); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbTitle; AttsArray[2]:=oatDbDescription; end; oetDbTableRepresentations : begin Namespace:=onsDb; LocalName:='table-representations'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableRepresentation; SetLength(AttsArray, 0); end; oetDbTableRepresentation : begin Namespace:=onsDb; LocalName:='table-representation'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbOrderStatement; ChildrenArray[1]:=oetDbFilterStatement; ChildrenArray[2]:=oetDbColumns; SetLength(AttsArray, 7); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbSchemaName; AttsArray[3]:=oatDbTitle; AttsArray[4]:=oatDbDescription; AttsArray[5]:=oatDbStyleName; AttsArray[6]:=oatDbDefaultRowStyleName; end; oetDbSchemaDefinition : begin Namespace:=onsDb; LocalName:='schema-definition'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableDefinitions; SetLength(AttsArray, 0); end; oetDbTableDefinitions : begin Namespace:=onsDb; LocalName:='table-definitions'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableDefinition; SetLength(AttsArray, 0); end; oetDbTableDefinition : begin Namespace:=onsDb; LocalName:='table-definition'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbColumnDefinitions; ChildrenArray[1]:=oetDbKeys; ChildrenArray[2]:=oetDbIndices; SetLength(AttsArray, 4); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbSchemaName; AttsArray[3]:=oatDbType; end; oetDbColumnDefinitions : begin Namespace:=onsDb; LocalName:='column-definitions'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbColumnDefinition; SetLength(AttsArray, 0); end; oetDbColumnDefinition : begin Namespace:=onsDb; LocalName:='column-definition'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbDataType; AttsArray[2]:=oatDbTypeName; AttsArray[3]:=oatDbPrecision; AttsArray[4]:=oatDbScale; AttsArray[5]:=oatDbIsNullable; AttsArray[6]:=oatDbIsEmptyAllowed; AttsArray[7]:=oatDbIsAutoincrement; end; oetDbKeys : begin Namespace:=onsDb; LocalName:='keys'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbKey; SetLength(AttsArray, 0); end; oetDbKey : begin Namespace:=onsDb; LocalName:='key'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbKeyColumns; SetLength(AttsArray, 5); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbType; AttsArray[2]:=oatDbReferencedTableName; AttsArray[3]:=oatDbUpdateRule; AttsArray[4]:=oatDbDeleteRule; end; oetDbKeyColumns : begin Namespace:=onsDb; LocalName:='key-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbKeyColumn; SetLength(AttsArray, 0); end; oetDbKeyColumn : begin Namespace:=onsDb; LocalName:='key-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbRelatedColumnName; end; oetDbIndices : begin Namespace:=onsDb; LocalName:='indices'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbIndex; SetLength(AttsArray, 0); end; oetDbIndex : begin Namespace:=onsDb; LocalName:='index'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbIndexColumns; SetLength(AttsArray, 4); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbIsUnique; AttsArray[3]:=oatDbIsClustered; end; oetDbIndexColumns : begin Namespace:=onsDb; LocalName:='index-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbIndexColumn; SetLength(AttsArray, 0); end; oetDbIndexColumn : begin Namespace:=onsDb; LocalName:='index-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbIsAscending; end; oetOfficeDocumentContent : begin Namespace:=onsOffice; LocalName:='document-content'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetOfficeScripts; ChildrenArray[1]:=oetOfficeFontFaceDecls; ChildrenArray[2]:=oetOfficeAutomaticStyles; ChildrenArray[3]:=oetOfficeBody; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; oetOfficeDocumentStyles : begin Namespace:=onsOffice; LocalName:='document-styles'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetOfficeFontFaceDecls; ChildrenArray[1]:=oetOfficeStyles; ChildrenArray[2]:=oetOfficeAutomaticStyles; ChildrenArray[3]:=oetOfficeMasterStyles; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; oetOfficeDocumentMeta : begin Namespace:=onsOffice; LocalName:='document-meta'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeMeta; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; oetOfficeDocumentSettings : begin Namespace:=onsOffice; LocalName:='document-settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeSettings; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; end; end; \ No newline at end of file +{ proc.inc is part of the fpOdf. fpOdf is a library used to help users to create and to modify OpenDocument Files(ODF) Copyright (C) 2013 Daniel F. Gaspary https://github.com/dgaspary This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version with the following modification: As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules,and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. } {This file was generated automatically. Any modification will be overridden.} procedure OdfElementGetDetails(et: TElementType; out Namespace: TOdfNamespace; out Localname: String; out ChildrenArray: TElementTypeArray; out AttsArray: TAttributeTypeArray); begin case et of oetNone : begin Namespace:=onsNone; LocalName:='none'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetManifestManifest : begin Namespace:=onsManifest; LocalName:='manifest'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetManifestFileEntry; SetLength(AttsArray, 1); AttsArray[0]:=oatManifestVersion; end; oetManifestFileEntry : begin Namespace:=onsManifest; LocalName:='file-entry'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetManifestEncryptionData; SetLength(AttsArray, 5); AttsArray[0]:=oatManifestFullPath; AttsArray[1]:=oatManifestSize; AttsArray[2]:=oatManifestMediaType; AttsArray[3]:=oatManifestPreferredViewMode; AttsArray[4]:=oatManifestVersion; end; oetManifestEncryptionData : begin Namespace:=onsManifest; LocalName:='encryption-data'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetManifestAlgorithm; ChildrenArray[1]:=oetManifestStartKeyGeneration; ChildrenArray[2]:=oetManifestKeyDerivation; SetLength(AttsArray, 2); AttsArray[0]:=oatManifestChecksumType; AttsArray[1]:=oatManifestChecksum; end; oetManifestAlgorithm : begin Namespace:=onsManifest; LocalName:='algorithm'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatManifestAlgorithmName; AttsArray[1]:=oatManifestInitialisationVector; end; oetManifestStartKeyGeneration : begin Namespace:=onsManifest; LocalName:='start-key-generation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatManifestStartKeyGenerationName; AttsArray[1]:=oatManifestKeySize; end; oetManifestKeyDerivation : begin Namespace:=onsManifest; LocalName:='key-derivation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatManifestKeyDerivationName; AttsArray[1]:=oatManifestSalt; AttsArray[2]:=oatManifestIterationCount; AttsArray[3]:=oatManifestKeySize; end; oetOfficeDocument : begin Namespace:=onsOffice; LocalName:='document'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetOfficeMeta; ChildrenArray[1]:=oetOfficeSettings; ChildrenArray[2]:=oetOfficeScripts; ChildrenArray[3]:=oetOfficeFontFaceDecls; ChildrenArray[4]:=oetOfficeStyles; ChildrenArray[5]:=oetOfficeAutomaticStyles; ChildrenArray[6]:=oetOfficeMasterStyles; ChildrenArray[7]:=oetOfficeBody; SetLength(AttsArray, 3); AttsArray[0]:=oatOfficeMimetype; AttsArray[1]:=oatOfficeVersion; AttsArray[2]:=oatGrddlTransformation; end; oetOfficeMeta : begin Namespace:=onsOffice; LocalName:='meta'; SetLength(ChildrenArray, 19); ChildrenArray[0]:=oetDcCreator; ChildrenArray[1]:=oetDcDate; ChildrenArray[2]:=oetMetaGenerator; ChildrenArray[3]:=oetDcTitle; ChildrenArray[4]:=oetDcDescription; ChildrenArray[5]:=oetDcSubject; ChildrenArray[6]:=oetMetaKeyword; ChildrenArray[7]:=oetMetaInitialCreator; ChildrenArray[8]:=oetMetaPrintedBy; ChildrenArray[9]:=oetMetaCreationDate; ChildrenArray[10]:=oetMetaPrintDate; ChildrenArray[11]:=oetMetaTemplate; ChildrenArray[12]:=oetMetaAutoReload; ChildrenArray[13]:=oetMetaHyperlinkBehaviour; ChildrenArray[14]:=oetDcLanguage; ChildrenArray[15]:=oetMetaEditingCycles; ChildrenArray[16]:=oetMetaEditingDuration; ChildrenArray[17]:=oetMetaDocumentStatistic; ChildrenArray[18]:=oetMetaUserDefined; SetLength(AttsArray, 0); end; oetMetaGenerator : begin Namespace:=onsMeta; LocalName:='generator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcTitle : begin Namespace:=onsDc; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcDescription : begin Namespace:=onsDc; LocalName:='description'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcSubject : begin Namespace:=onsDc; LocalName:='subject'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaKeyword : begin Namespace:=onsMeta; LocalName:='keyword'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaInitialCreator : begin Namespace:=onsMeta; LocalName:='initial-creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcCreator : begin Namespace:=onsDc; LocalName:='creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaPrintedBy : begin Namespace:=onsMeta; LocalName:='printed-by'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaCreationDate : begin Namespace:=onsMeta; LocalName:='creation-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDcDate : begin Namespace:=onsDc; LocalName:='date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaPrintDate : begin Namespace:=onsMeta; LocalName:='print-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaTemplate : begin Namespace:=onsMeta; LocalName:='template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkActuate; AttsArray[3]:=oatXlinkTitle; AttsArray[4]:=oatMetaDate; end; oetMetaAutoReload : begin Namespace:=onsMeta; LocalName:='auto-reload'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatXlinkActuate; AttsArray[4]:=oatMetaDelay; end; oetMetaHyperlinkBehaviour : begin Namespace:=onsMeta; LocalName:='hyperlink-behaviour'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeTargetFrameName; AttsArray[1]:=oatXlinkShow; end; oetDcLanguage : begin Namespace:=onsDc; LocalName:='language'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaEditingCycles : begin Namespace:=onsMeta; LocalName:='editing-cycles'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaEditingDuration : begin Namespace:=onsMeta; LocalName:='editing-duration'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetMetaDocumentStatistic : begin Namespace:=onsMeta; LocalName:='document-statistic'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 15); AttsArray[0]:=oatMetaPageCount; AttsArray[1]:=oatMetaTableCount; AttsArray[2]:=oatMetaDrawCount; AttsArray[3]:=oatMetaImageCount; AttsArray[4]:=oatMetaOleObjectCount; AttsArray[5]:=oatMetaObjectCount; AttsArray[6]:=oatMetaParagraphCount; AttsArray[7]:=oatMetaWordCount; AttsArray[8]:=oatMetaCharacterCount; AttsArray[9]:=oatMetaFrameCount; AttsArray[10]:=oatMetaSentenceCount; AttsArray[11]:=oatMetaSyllableCount; AttsArray[12]:=oatMetaNonWhitespaceCharacterCount; AttsArray[13]:=oatMetaRowCount; AttsArray[14]:=oatMetaCellCount; end; oetMetaUserDefined : begin Namespace:=onsMeta; LocalName:='user-defined'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatMetaName; AttsArray[1]:=oatMetaValueType; end; oetOfficeSettings : begin Namespace:=onsOffice; LocalName:='settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetConfigConfigItemSet; SetLength(AttsArray, 0); end; oetConfigConfigItemSet : begin Namespace:=onsConfig; LocalName:='config-item-set'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetConfigConfigItem; ChildrenArray[1]:=oetConfigConfigItemMapNamed; ChildrenArray[2]:=oetConfigConfigItemMapIndexed; SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetConfigConfigItem : begin Namespace:=onsConfig; LocalName:='config-item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatConfigName; AttsArray[1]:=oatConfigType; end; oetConfigConfigItemMapNamed : begin Namespace:=onsConfig; LocalName:='config-item-map-named'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetConfigConfigItemMapEntry; SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetConfigConfigItemMapEntry : begin Namespace:=onsConfig; LocalName:='config-item-map-entry'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetConfigConfigItemMapIndexed : begin Namespace:=onsConfig; LocalName:='config-item-map-indexed'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetConfigConfigItemMapEntry; SetLength(AttsArray, 1); AttsArray[0]:=oatConfigName; end; oetOfficeScripts : begin Namespace:=onsOffice; LocalName:='scripts'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetOfficeScript; ChildrenArray[1]:=oetOfficeEventListeners; SetLength(AttsArray, 0); end; oetOfficeScript : begin Namespace:=onsOffice; LocalName:='script'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatScriptLanguage; end; oetOfficeEventListeners : begin Namespace:=onsOffice; LocalName:='event-listeners'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetScriptEventListener; ChildrenArray[1]:=oetPresentationEventListener; SetLength(AttsArray, 0); end; oetScriptEventListener : begin Namespace:=onsScript; LocalName:='event-listener'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatScriptEventName; AttsArray[1]:=oatScriptLanguage; AttsArray[2]:=oatScriptMacroName; AttsArray[3]:=oatXlinkType; AttsArray[4]:=oatXlinkHref; AttsArray[5]:=oatXlinkActuate; end; oetPresentationEventListener : begin Namespace:=onsPresentation; LocalName:='event-listener'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 11); AttsArray[0]:=oatScriptEventName; AttsArray[1]:=oatPresentationAction; AttsArray[2]:=oatPresentationEffect; AttsArray[3]:=oatPresentationDirection; AttsArray[4]:=oatPresentationSpeed; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatXlinkType; AttsArray[7]:=oatXlinkHref; AttsArray[8]:=oatXlinkShow; AttsArray[9]:=oatXlinkActuate; AttsArray[10]:=oatPresentationVerb; end; oetPresentationSound : begin Namespace:=onsPresentation; LocalName:='sound'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatPresentationPlayFull; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatXlinkShow; end; oetOfficeFontFaceDecls : begin Namespace:=onsOffice; LocalName:='font-face-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleFontFace; SetLength(AttsArray, 0); end; oetStyleFontFace : begin Namespace:=onsStyle; LocalName:='font-face'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgFontFaceSrc; ChildrenArray[1]:=oetSvgDefinitionSrc; SetLength(AttsArray, 38); AttsArray[0]:=oatSvgFontFamily; AttsArray[1]:=oatSvgFontStyle; AttsArray[2]:=oatSvgFontVariant; AttsArray[3]:=oatSvgFontWeight; AttsArray[4]:=oatSvgFontStretch; AttsArray[5]:=oatSvgFontSize; AttsArray[6]:=oatSvgUnicodeRange; AttsArray[7]:=oatSvgUnitsPerEm; AttsArray[8]:=oatSvgPanose1; AttsArray[9]:=oatSvgStemv; AttsArray[10]:=oatSvgStemh; AttsArray[11]:=oatSvgSlope; AttsArray[12]:=oatSvgCapHeight; AttsArray[13]:=oatSvgXHeight; AttsArray[14]:=oatSvgAccentHeight; AttsArray[15]:=oatSvgAscent; AttsArray[16]:=oatSvgDescent; AttsArray[17]:=oatSvgWidths; AttsArray[18]:=oatSvgBbox; AttsArray[19]:=oatSvgIdeographic; AttsArray[20]:=oatSvgAlphabetic; AttsArray[21]:=oatSvgMathematical; AttsArray[22]:=oatSvgHanging; AttsArray[23]:=oatSvgVIdeographic; AttsArray[24]:=oatSvgVAlphabetic; AttsArray[25]:=oatSvgVMathematical; AttsArray[26]:=oatSvgVHanging; AttsArray[27]:=oatSvgUnderlinePosition; AttsArray[28]:=oatSvgUnderlineThickness; AttsArray[29]:=oatSvgStrikethroughPosition; AttsArray[30]:=oatSvgStrikethroughThickness; AttsArray[31]:=oatSvgOverlinePosition; AttsArray[32]:=oatSvgOverlineThickness; AttsArray[33]:=oatStyleName; AttsArray[34]:=oatStyleFontAdornments; AttsArray[35]:=oatStyleFontFamilyGeneric; AttsArray[36]:=oatStyleFontPitch; AttsArray[37]:=oatStyleFontCharset; end; oetSvgFontFaceSrc : begin Namespace:=onsSvg; LocalName:='font-face-src'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgFontFaceUri; ChildrenArray[1]:=oetSvgFontFaceName; SetLength(AttsArray, 0); end; oetSvgFontFaceUri : begin Namespace:=onsSvg; LocalName:='font-face-uri'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetSvgFontFaceFormat; SetLength(AttsArray, 3); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkActuate; end; oetSvgFontFaceFormat : begin Namespace:=onsSvg; LocalName:='font-face-format'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatSvgString; end; oetSvgFontFaceName : begin Namespace:=onsSvg; LocalName:='font-face-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatSvgName; end; oetSvgDefinitionSrc : begin Namespace:=onsSvg; LocalName:='definition-src'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkActuate; end; oetOfficeStyles : begin Namespace:=onsOffice; LocalName:='styles'; SetLength(ChildrenArray, 25); ChildrenArray[0]:=oetStyleStyle; ChildrenArray[1]:=oetTextListStyle; ChildrenArray[2]:=oetNumberNumberStyle; ChildrenArray[3]:=oetNumberCurrencyStyle; ChildrenArray[4]:=oetNumberPercentageStyle; ChildrenArray[5]:=oetNumberDateStyle; ChildrenArray[6]:=oetNumberTimeStyle; ChildrenArray[7]:=oetNumberBooleanStyle; ChildrenArray[8]:=oetNumberTextStyle; ChildrenArray[9]:=oetStyleDefaultStyle; ChildrenArray[10]:=oetStyleDefaultPageLayout; ChildrenArray[11]:=oetTextOutlineStyle; ChildrenArray[12]:=oetTextNotesConfiguration; ChildrenArray[13]:=oetTextBibliographyConfiguration; ChildrenArray[14]:=oetTextLinenumberingConfiguration; ChildrenArray[15]:=oetDrawGradient; ChildrenArray[16]:=oetSvgLineargradient; ChildrenArray[17]:=oetSvgRadialgradient; ChildrenArray[18]:=oetDrawHatch; ChildrenArray[19]:=oetDrawFillImage; ChildrenArray[20]:=oetDrawMarker; ChildrenArray[21]:=oetDrawStrokeDash; ChildrenArray[22]:=oetDrawOpacity; ChildrenArray[23]:=oetStylePresentationPageLayout; ChildrenArray[24]:=oetTableTableTemplate; SetLength(AttsArray, 0); end; oetStyleStyle : begin Namespace:=onsStyle; LocalName:='style'; SetLength(ChildrenArray, 20); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetStyleParagraphProperties; ChildrenArray[2]:=oetStyleTextProperties; ChildrenArray[3]:=oetStyleSectionProperties; ChildrenArray[4]:=oetStyleRubyProperties; ChildrenArray[5]:=oetStyleTableProperties; ChildrenArray[6]:=oetStyleTableColumnProperties; ChildrenArray[7]:=oetStyleTableRowProperties; ChildrenArray[8]:=oetStyleTableCellProperties; ChildrenArray[9]:=oetStyleParagraphProperties; ChildrenArray[10]:=oetStyleTextProperties; ChildrenArray[11]:=oetStyleGraphicProperties; ChildrenArray[12]:=oetStyleParagraphProperties; ChildrenArray[13]:=oetStyleTextProperties; ChildrenArray[14]:=oetStyleDrawingPageProperties; ChildrenArray[15]:=oetStyleChartProperties; ChildrenArray[16]:=oetStyleGraphicProperties; ChildrenArray[17]:=oetStyleParagraphProperties; ChildrenArray[18]:=oetStyleTextProperties; ChildrenArray[19]:=oetStyleMap; SetLength(AttsArray, 13); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatStyleParentStyleName; AttsArray[3]:=oatStyleNextStyleName; AttsArray[4]:=oatStyleListLevel; AttsArray[5]:=oatStyleListStyleName; AttsArray[6]:=oatStyleMasterPageName; AttsArray[7]:=oatStyleAutoUpdate; AttsArray[8]:=oatStyleDataStyleName; AttsArray[9]:=oatStylePercentageDataStyleName; AttsArray[10]:=oatStyleClass; AttsArray[11]:=oatStyleDefaultOutlineLevel; AttsArray[12]:=oatStyleFamily; end; oetStyleTextProperties : begin Namespace:=onsStyle; LocalName:='text-properties'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 86); AttsArray[0]:=oatFoBackgroundColor; AttsArray[1]:=oatFoFontVariant; AttsArray[2]:=oatFoTextTransform; AttsArray[3]:=oatFoColor; AttsArray[4]:=oatStyleUseWindowFontColor; AttsArray[5]:=oatStyleTextOutline; AttsArray[6]:=oatStyleTextLineThroughType; AttsArray[7]:=oatStyleTextLineThroughStyle; AttsArray[8]:=oatStyleTextLineThroughWidth; AttsArray[9]:=oatStyleTextLineThroughColor; AttsArray[10]:=oatStyleTextLineThroughText; AttsArray[11]:=oatStyleTextLineThroughTextStyle; AttsArray[12]:=oatStyleTextPosition; AttsArray[13]:=oatStyleFontName; AttsArray[14]:=oatStyleFontNameAsian; AttsArray[15]:=oatStyleFontNameComplex; AttsArray[16]:=oatFoFontFamily; AttsArray[17]:=oatStyleFontFamilyAsian; AttsArray[18]:=oatStyleFontFamilyComplex; AttsArray[19]:=oatStyleFontFamilyGeneric; AttsArray[20]:=oatStyleFontFamilyGenericAsian; AttsArray[21]:=oatStyleFontFamilyGenericComplex; AttsArray[22]:=oatStyleFontStyleName; AttsArray[23]:=oatStyleFontStyleNameAsian; AttsArray[24]:=oatStyleFontStyleNameComplex; AttsArray[25]:=oatStyleFontPitch; AttsArray[26]:=oatStyleFontPitchAsian; AttsArray[27]:=oatStyleFontPitchComplex; AttsArray[28]:=oatStyleFontCharset; AttsArray[29]:=oatStyleFontCharsetAsian; AttsArray[30]:=oatStyleFontCharsetComplex; AttsArray[31]:=oatFoFontSize; AttsArray[32]:=oatStyleFontSizeAsian; AttsArray[33]:=oatStyleFontSizeComplex; AttsArray[34]:=oatStyleFontSizeRel; AttsArray[35]:=oatStyleFontSizeRelAsian; AttsArray[36]:=oatStyleFontSizeRelComplex; AttsArray[37]:=oatStyleScriptType; AttsArray[38]:=oatFoLetterSpacing; AttsArray[39]:=oatFoLanguage; AttsArray[40]:=oatStyleLanguageAsian; AttsArray[41]:=oatStyleLanguageComplex; AttsArray[42]:=oatFoCountry; AttsArray[43]:=oatStyleCountryAsian; AttsArray[44]:=oatStyleCountryComplex; AttsArray[45]:=oatFoScript; AttsArray[46]:=oatStyleScriptAsian; AttsArray[47]:=oatStyleScriptComplex; AttsArray[48]:=oatStyleRfcLanguageTag; AttsArray[49]:=oatStyleRfcLanguageTagAsian; AttsArray[50]:=oatStyleRfcLanguageTagComplex; AttsArray[51]:=oatFoFontStyle; AttsArray[52]:=oatStyleFontStyleAsian; AttsArray[53]:=oatStyleFontStyleComplex; AttsArray[54]:=oatStyleFontRelief; AttsArray[55]:=oatFoTextShadow; AttsArray[56]:=oatStyleTextUnderlineType; AttsArray[57]:=oatStyleTextUnderlineStyle; AttsArray[58]:=oatStyleTextUnderlineWidth; AttsArray[59]:=oatStyleTextUnderlineColor; AttsArray[60]:=oatStyleTextOverlineType; AttsArray[61]:=oatStyleTextOverlineStyle; AttsArray[62]:=oatStyleTextOverlineWidth; AttsArray[63]:=oatStyleTextOverlineColor; AttsArray[64]:=oatStyleTextOverlineMode; AttsArray[65]:=oatFoFontWeight; AttsArray[66]:=oatStyleFontWeightAsian; AttsArray[67]:=oatStyleFontWeightComplex; AttsArray[68]:=oatStyleTextUnderlineMode; AttsArray[69]:=oatStyleTextLineThroughMode; AttsArray[70]:=oatStyleLetterKerning; AttsArray[71]:=oatStyleTextBlinking; AttsArray[72]:=oatStyleTextCombine; AttsArray[73]:=oatStyleTextCombineStartChar; AttsArray[74]:=oatStyleTextCombineEndChar; AttsArray[75]:=oatStyleTextEmphasize; AttsArray[76]:=oatStyleTextScale; AttsArray[77]:=oatStyleTextRotationAngle; AttsArray[78]:=oatStyleTextRotationScale; AttsArray[79]:=oatFoHyphenate; AttsArray[80]:=oatFoHyphenationRemainCharCount; AttsArray[81]:=oatFoHyphenationPushCharCount; AttsArray[82]:=oatTextDisplay; AttsArray[83]:=oatTextDisplay; AttsArray[84]:=oatTextDisplay; AttsArray[85]:=oatTextCondition; end; oetStyleParagraphProperties : begin Namespace:=onsStyle; LocalName:='paragraph-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleTabStops; ChildrenArray[1]:=oetStyleDropCap; ChildrenArray[2]:=oetStyleBackgroundImage; SetLength(AttsArray, 53); AttsArray[0]:=oatFoTextAlign; AttsArray[1]:=oatFoMarginLeft; AttsArray[2]:=oatFoMarginRight; AttsArray[3]:=oatFoMarginTop; AttsArray[4]:=oatFoMarginBottom; AttsArray[5]:=oatFoMargin; AttsArray[6]:=oatFoBreakBefore; AttsArray[7]:=oatFoBreakAfter; AttsArray[8]:=oatFoBackgroundColor; AttsArray[9]:=oatFoBorder; AttsArray[10]:=oatFoBorderTop; AttsArray[11]:=oatFoBorderBottom; AttsArray[12]:=oatFoBorderLeft; AttsArray[13]:=oatFoBorderRight; AttsArray[14]:=oatStyleBorderLineWidth; AttsArray[15]:=oatStyleBorderLineWidthTop; AttsArray[16]:=oatStyleBorderLineWidthBottom; AttsArray[17]:=oatStyleBorderLineWidthLeft; AttsArray[18]:=oatStyleBorderLineWidthRight; AttsArray[19]:=oatFoPadding; AttsArray[20]:=oatFoPaddingTop; AttsArray[21]:=oatFoPaddingBottom; AttsArray[22]:=oatFoPaddingLeft; AttsArray[23]:=oatFoPaddingRight; AttsArray[24]:=oatStyleShadow; AttsArray[25]:=oatFoKeepWithNext; AttsArray[26]:=oatStyleWritingMode; AttsArray[27]:=oatStylePageNumber; AttsArray[28]:=oatStyleBackgroundTransparency; AttsArray[29]:=oatFoLineHeight; AttsArray[30]:=oatStyleLineHeightAtLeast; AttsArray[31]:=oatStyleLineSpacing; AttsArray[32]:=oatStyleFontIndependentLineSpacing; AttsArray[33]:=oatFoTextAlignLast; AttsArray[34]:=oatStyleJustifySingleWord; AttsArray[35]:=oatFoKeepTogether; AttsArray[36]:=oatFoWidows; AttsArray[37]:=oatFoOrphans; AttsArray[38]:=oatStyleTabStopDistance; AttsArray[39]:=oatFoHyphenationKeep; AttsArray[40]:=oatFoHyphenationLadderCount; AttsArray[41]:=oatStyleRegisterTrue; AttsArray[42]:=oatFoTextIndent; AttsArray[43]:=oatStyleAutoTextIndent; AttsArray[44]:=oatStyleJoinBorder; AttsArray[45]:=oatTextNumberLines; AttsArray[46]:=oatTextLineNumber; AttsArray[47]:=oatStyleTextAutospace; AttsArray[48]:=oatStylePunctuationWrap; AttsArray[49]:=oatStyleLineBreak; AttsArray[50]:=oatStyleVerticalAlign; AttsArray[51]:=oatStyleWritingModeAutomatic; AttsArray[52]:=oatStyleSnapToLayoutGrid; end; oetStyleTabStops : begin Namespace:=onsStyle; LocalName:='tab-stops'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleTabStop; SetLength(AttsArray, 0); end; oetStyleTabStop : begin Namespace:=onsStyle; LocalName:='tab-stop'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatStyleChar; AttsArray[1]:=oatStylePosition; AttsArray[2]:=oatStyleType; AttsArray[3]:=oatStyleType; AttsArray[4]:=oatStyleLeaderType; AttsArray[5]:=oatStyleLeaderStyle; AttsArray[6]:=oatStyleLeaderWidth; AttsArray[7]:=oatStyleLeaderColor; AttsArray[8]:=oatStyleLeaderText; AttsArray[9]:=oatStyleLeaderTextStyle; end; oetStyleDropCap : begin Namespace:=onsStyle; LocalName:='drop-cap'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatStyleLength; AttsArray[1]:=oatStyleLines; AttsArray[2]:=oatStyleDistance; AttsArray[3]:=oatStyleStyleName; end; oetStyleBackgroundImage : begin Namespace:=onsStyle; LocalName:='background-image'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeBinaryData; SetLength(AttsArray, 8); AttsArray[0]:=oatStyleRepeat; AttsArray[1]:=oatStylePosition; AttsArray[2]:=oatStyleFilterName; AttsArray[3]:=oatDrawOpacity; AttsArray[4]:=oatXlinkType; AttsArray[5]:=oatXlinkHref; AttsArray[6]:=oatXlinkShow; AttsArray[7]:=oatXlinkActuate; end; oetOfficeBinaryData : begin Namespace:=onsOffice; LocalName:='binary-data'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleSectionProperties : begin Namespace:=onsStyle; LocalName:='section-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleBackgroundImage; ChildrenArray[1]:=oetStyleColumns; ChildrenArray[2]:=oetTextNotesConfiguration; SetLength(AttsArray, 7); AttsArray[0]:=oatFoBackgroundColor; AttsArray[1]:=oatFoMarginLeft; AttsArray[2]:=oatFoMarginRight; AttsArray[3]:=oatStyleEditable; AttsArray[4]:=oatStyleWritingMode; AttsArray[5]:=oatStyleProtect; AttsArray[6]:=oatTextDontBalanceTextColumns; end; oetStyleColumns : begin Namespace:=onsStyle; LocalName:='columns'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleColumnSep; ChildrenArray[1]:=oetStyleColumn; SetLength(AttsArray, 2); AttsArray[0]:=oatFoColumnCount; AttsArray[1]:=oatFoColumnGap; end; oetStyleColumnSep : begin Namespace:=onsStyle; LocalName:='column-sep'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatStyleStyle; AttsArray[1]:=oatStyleWidth; AttsArray[2]:=oatStyleHeight; AttsArray[3]:=oatStyleVerticalAlign; AttsArray[4]:=oatStyleColor; end; oetStyleColumn : begin Namespace:=onsStyle; LocalName:='column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatStyleRelWidth; AttsArray[1]:=oatFoStartIndent; AttsArray[2]:=oatFoEndIndent; AttsArray[3]:=oatFoSpaceBefore; AttsArray[4]:=oatFoSpaceAfter; end; oetTextNotesConfiguration : begin Namespace:=onsText; LocalName:='notes-configuration'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextNoteContinuationNoticeForward; ChildrenArray[1]:=oetTextNoteContinuationNoticeBackward; SetLength(AttsArray, 13); AttsArray[0]:=oatTextNoteClass; AttsArray[1]:=oatStyleNumPrefix; AttsArray[2]:=oatStyleNumSuffix; AttsArray[3]:=oatStyleNumLetterSync; AttsArray[4]:=oatStyleNumFormat; AttsArray[5]:=oatStyleNumFormat; AttsArray[6]:=oatTextCitationStyleName; AttsArray[7]:=oatTextCitationBodyStyleName; AttsArray[8]:=oatTextDefaultStyleName; AttsArray[9]:=oatTextMasterPageName; AttsArray[10]:=oatTextStartValue; AttsArray[11]:=oatTextStartNumberingAt; AttsArray[12]:=oatTextFootnotesPosition; end; oetTextNoteContinuationNoticeForward : begin Namespace:=onsText; LocalName:='note-continuation-notice-forward'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextNoteContinuationNoticeBackward : begin Namespace:=onsText; LocalName:='note-continuation-notice-backward'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleRubyProperties : begin Namespace:=onsStyle; LocalName:='ruby-properties'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatStyleRubyPosition; AttsArray[1]:=oatStyleRubyAlign; end; oetStyleTableProperties : begin Namespace:=onsStyle; LocalName:='table-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 18); AttsArray[0]:=oatFoMarginLeft; AttsArray[1]:=oatFoMarginRight; AttsArray[2]:=oatFoMarginTop; AttsArray[3]:=oatFoMarginBottom; AttsArray[4]:=oatFoMargin; AttsArray[5]:=oatStylePageNumber; AttsArray[6]:=oatFoBreakBefore; AttsArray[7]:=oatFoBreakAfter; AttsArray[8]:=oatFoBackgroundColor; AttsArray[9]:=oatStyleShadow; AttsArray[10]:=oatFoKeepWithNext; AttsArray[11]:=oatStyleWritingMode; AttsArray[12]:=oatStyleWidth; AttsArray[13]:=oatStyleRelWidth; AttsArray[14]:=oatTableAlign; AttsArray[15]:=oatStyleMayBreakBetweenRows; AttsArray[16]:=oatTableBorderModel; AttsArray[17]:=oatTableDisplay; end; oetStyleTableColumnProperties : begin Namespace:=onsStyle; LocalName:='table-column-properties'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatFoBreakBefore; AttsArray[1]:=oatFoBreakAfter; AttsArray[2]:=oatStyleColumnWidth; AttsArray[3]:=oatStyleRelColumnWidth; AttsArray[4]:=oatStyleUseOptimalColumnWidth; end; oetStyleTableRowProperties : begin Namespace:=onsStyle; LocalName:='table-row-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 7); AttsArray[0]:=oatFoBackgroundColor; AttsArray[1]:=oatFoBreakBefore; AttsArray[2]:=oatFoBreakAfter; AttsArray[3]:=oatStyleRowHeight; AttsArray[4]:=oatStyleMinRowHeight; AttsArray[5]:=oatStyleUseOptimalRowHeight; AttsArray[6]:=oatFoKeepTogether; end; oetStyleTableCellProperties : begin Namespace:=onsStyle; LocalName:='table-cell-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 34); AttsArray[0]:=oatStyleDirection; AttsArray[1]:=oatStyleWritingMode; AttsArray[2]:=oatStyleShadow; AttsArray[3]:=oatFoBackgroundColor; AttsArray[4]:=oatFoBorder; AttsArray[5]:=oatFoBorderTop; AttsArray[6]:=oatFoBorderBottom; AttsArray[7]:=oatFoBorderLeft; AttsArray[8]:=oatFoBorderRight; AttsArray[9]:=oatStyleBorderLineWidth; AttsArray[10]:=oatStyleBorderLineWidthTop; AttsArray[11]:=oatStyleBorderLineWidthBottom; AttsArray[12]:=oatStyleBorderLineWidthLeft; AttsArray[13]:=oatStyleBorderLineWidthRight; AttsArray[14]:=oatFoPadding; AttsArray[15]:=oatFoPaddingTop; AttsArray[16]:=oatFoPaddingBottom; AttsArray[17]:=oatFoPaddingLeft; AttsArray[18]:=oatFoPaddingRight; AttsArray[19]:=oatStyleRotationAngle; AttsArray[20]:=oatStyleVerticalAlign; AttsArray[21]:=oatStyleTextAlignSource; AttsArray[22]:=oatStyleGlyphOrientationVertical; AttsArray[23]:=oatStyleDiagonalTlBr; AttsArray[24]:=oatStyleDiagonalTlBrWidths; AttsArray[25]:=oatStyleDiagonalBlTr; AttsArray[26]:=oatStyleDiagonalBlTrWidths; AttsArray[27]:=oatFoWrapOption; AttsArray[28]:=oatStyleRotationAlign; AttsArray[29]:=oatStyleCellProtect; AttsArray[30]:=oatStylePrintContent; AttsArray[31]:=oatStyleDecimalPlaces; AttsArray[32]:=oatStyleRepeatContent; AttsArray[33]:=oatStyleShrinkToFit; end; oetStyleGraphicProperties : begin Namespace:=onsStyle; LocalName:='graphic-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextListStyle; ChildrenArray[1]:=oetStyleBackgroundImage; ChildrenArray[2]:=oetStyleColumns; SetLength(AttsArray, 174); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatSvgHeight; AttsArray[2]:=oatStyleRelWidth; AttsArray[3]:=oatStyleRelHeight; AttsArray[4]:=oatFoMarginLeft; AttsArray[5]:=oatFoMarginRight; AttsArray[6]:=oatFoMarginTop; AttsArray[7]:=oatFoMarginBottom; AttsArray[8]:=oatFoMargin; AttsArray[9]:=oatStyleVerticalPos; AttsArray[10]:=oatSvgY; AttsArray[11]:=oatStyleVerticalRel; AttsArray[12]:=oatTextAnchorType; AttsArray[13]:=oatTextAnchorPageNumber; AttsArray[14]:=oatFoBorder; AttsArray[15]:=oatFoBorderTop; AttsArray[16]:=oatFoBorderBottom; AttsArray[17]:=oatFoBorderLeft; AttsArray[18]:=oatFoBorderRight; AttsArray[19]:=oatStyleBorderLineWidth; AttsArray[20]:=oatStyleBorderLineWidthTop; AttsArray[21]:=oatStyleBorderLineWidthBottom; AttsArray[22]:=oatStyleBorderLineWidthLeft; AttsArray[23]:=oatStyleBorderLineWidthRight; AttsArray[24]:=oatFoPadding; AttsArray[25]:=oatFoPaddingTop; AttsArray[26]:=oatFoPaddingBottom; AttsArray[27]:=oatFoPaddingLeft; AttsArray[28]:=oatFoPaddingRight; AttsArray[29]:=oatStyleShadow; AttsArray[30]:=oatFoBackgroundColor; AttsArray[31]:=oatStyleBackgroundTransparency; AttsArray[32]:=oatStyleEditable; AttsArray[33]:=oatStyleWritingMode; AttsArray[34]:=oatDrawStroke; AttsArray[35]:=oatDrawStrokeDash; AttsArray[36]:=oatDrawStrokeDashNames; AttsArray[37]:=oatSvgStrokeWidth; AttsArray[38]:=oatSvgStrokeColor; AttsArray[39]:=oatDrawMarkerStart; AttsArray[40]:=oatDrawMarkerEnd; AttsArray[41]:=oatDrawMarkerStartWidth; AttsArray[42]:=oatDrawMarkerEndWidth; AttsArray[43]:=oatDrawMarkerStartCenter; AttsArray[44]:=oatDrawMarkerEndCenter; AttsArray[45]:=oatSvgStrokeOpacity; AttsArray[46]:=oatDrawStrokeLinejoin; AttsArray[47]:=oatSvgStrokeLinecap; AttsArray[48]:=oatDrawSymbolColor; AttsArray[49]:=oatTextAnimation; AttsArray[50]:=oatTextAnimationDirection; AttsArray[51]:=oatTextAnimationStartInside; AttsArray[52]:=oatTextAnimationStopInside; AttsArray[53]:=oatTextAnimationRepeat; AttsArray[54]:=oatTextAnimationDelay; AttsArray[55]:=oatTextAnimationSteps; AttsArray[56]:=oatDrawAutoGrowWidth; AttsArray[57]:=oatDrawAutoGrowHeight; AttsArray[58]:=oatDrawFitToSize; AttsArray[59]:=oatDrawFitToContour; AttsArray[60]:=oatDrawTextareaVerticalAlign; AttsArray[61]:=oatDrawTextareaHorizontalAlign; AttsArray[62]:=oatFoWrapOption; AttsArray[63]:=oatStyleShrinkToFit; AttsArray[64]:=oatDrawColorMode; AttsArray[65]:=oatDrawColorInversion; AttsArray[66]:=oatDrawLuminance; AttsArray[67]:=oatDrawContrast; AttsArray[68]:=oatDrawGamma; AttsArray[69]:=oatDrawRed; AttsArray[70]:=oatDrawGreen; AttsArray[71]:=oatDrawBlue; AttsArray[72]:=oatDrawImageOpacity; AttsArray[73]:=oatDrawShadow; AttsArray[74]:=oatDrawShadowOffsetX; AttsArray[75]:=oatDrawShadowOffsetY; AttsArray[76]:=oatDrawShadowColor; AttsArray[77]:=oatDrawShadowOpacity; AttsArray[78]:=oatDrawStartLineSpacingHorizontal; AttsArray[79]:=oatDrawStartLineSpacingVertical; AttsArray[80]:=oatDrawEndLineSpacingHorizontal; AttsArray[81]:=oatDrawEndLineSpacingVertical; AttsArray[82]:=oatDrawLineDistance; AttsArray[83]:=oatDrawGuideOverhang; AttsArray[84]:=oatDrawGuideDistance; AttsArray[85]:=oatDrawStartGuide; AttsArray[86]:=oatDrawEndGuide; AttsArray[87]:=oatDrawPlacing; AttsArray[88]:=oatDrawParallel; AttsArray[89]:=oatDrawMeasureAlign; AttsArray[90]:=oatDrawMeasureVerticalAlign; AttsArray[91]:=oatDrawUnit; AttsArray[92]:=oatDrawShowUnit; AttsArray[93]:=oatDrawDecimalPlaces; AttsArray[94]:=oatDrawCaptionType; AttsArray[95]:=oatDrawCaptionAngleType; AttsArray[96]:=oatDrawCaptionAngle; AttsArray[97]:=oatDrawCaptionGap; AttsArray[98]:=oatDrawCaptionEscapeDirection; AttsArray[99]:=oatDrawCaptionEscape; AttsArray[100]:=oatDrawCaptionLineLength; AttsArray[101]:=oatDrawCaptionFitLineLength; AttsArray[102]:=oatDr3dHorizontalSegments; AttsArray[103]:=oatDr3dVerticalSegments; AttsArray[104]:=oatDr3dEdgeRounding; AttsArray[105]:=oatDr3dEdgeRoundingMode; AttsArray[106]:=oatDr3dBackScale; AttsArray[107]:=oatDr3dDepth; AttsArray[108]:=oatDr3dBackfaceCulling; AttsArray[109]:=oatDr3dEndAngle; AttsArray[110]:=oatDr3dCloseFront; AttsArray[111]:=oatDr3dCloseBack; AttsArray[112]:=oatDr3dLightingMode; AttsArray[113]:=oatDr3dNormalsKind; AttsArray[114]:=oatDr3dNormalsDirection; AttsArray[115]:=oatDr3dTextureGenerationModeX; AttsArray[116]:=oatDr3dTextureGenerationModeY; AttsArray[117]:=oatDr3dTextureKind; AttsArray[118]:=oatDr3dTextureFilter; AttsArray[119]:=oatDr3dTextureMode; AttsArray[120]:=oatDr3dAmbientColor; AttsArray[121]:=oatDr3dEmissiveColor; AttsArray[122]:=oatDr3dSpecularColor; AttsArray[123]:=oatDr3dDiffuseColor; AttsArray[124]:=oatDr3dShininess; AttsArray[125]:=oatDr3dShadow; AttsArray[126]:=oatFoMinWidth; AttsArray[127]:=oatFoMinHeight; AttsArray[128]:=oatFoMaxHeight; AttsArray[129]:=oatFoMaxWidth; AttsArray[130]:=oatStylePrintContent; AttsArray[131]:=oatStyleProtect; AttsArray[132]:=oatStyleHorizontalPos; AttsArray[133]:=oatSvgX; AttsArray[134]:=oatStyleHorizontalRel; AttsArray[135]:=oatStyleWrap; AttsArray[136]:=oatStyleWrapDynamicThreshold; AttsArray[137]:=oatStyleNumberWrappedParagraphs; AttsArray[138]:=oatStyleWrapContour; AttsArray[139]:=oatStyleWrapContourMode; AttsArray[140]:=oatStyleRunThrough; AttsArray[141]:=oatStyleFlowWithText; AttsArray[142]:=oatStyleOverflowBehavior; AttsArray[143]:=oatStyleMirror; AttsArray[144]:=oatFoClip; AttsArray[145]:=oatDrawWrapInfluenceOnPosition; AttsArray[146]:=oatDrawFrameDisplayScrollbar; AttsArray[147]:=oatDrawFrameDisplayBorder; AttsArray[148]:=oatDrawFrameMarginHorizontal; AttsArray[149]:=oatDrawFrameMarginVertical; AttsArray[150]:=oatDrawVisibleAreaLeft; AttsArray[151]:=oatDrawVisibleAreaTop; AttsArray[152]:=oatDrawVisibleAreaWidth; AttsArray[153]:=oatDrawVisibleAreaHeight; AttsArray[154]:=oatDrawDrawAspect; AttsArray[155]:=oatDrawOleDrawAspect; AttsArray[156]:=oatDrawFill; AttsArray[157]:=oatDrawFillColor; AttsArray[158]:=oatDrawSecondaryFillColor; AttsArray[159]:=oatDrawFillGradientName; AttsArray[160]:=oatDrawGradientStepCount; AttsArray[161]:=oatDrawFillHatchName; AttsArray[162]:=oatDrawFillHatchSolid; AttsArray[163]:=oatDrawFillImageName; AttsArray[164]:=oatStyleRepeat; AttsArray[165]:=oatDrawFillImageWidth; AttsArray[166]:=oatDrawFillImageHeight; AttsArray[167]:=oatDrawFillImageRefPointX; AttsArray[168]:=oatDrawFillImageRefPointY; AttsArray[169]:=oatDrawFillImageRefPoint; AttsArray[170]:=oatDrawTileRepeatOffset; AttsArray[171]:=oatDrawOpacity; AttsArray[172]:=oatDrawOpacityName; AttsArray[173]:=oatSvgFillRule; end; oetTextListStyle : begin Namespace:=onsText; LocalName:='list-style'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextListLevelStyleNumber; ChildrenArray[1]:=oetTextListLevelStyleBullet; ChildrenArray[2]:=oetTextListLevelStyleImage; SetLength(AttsArray, 3); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatTextConsecutiveNumbering; end; oetTextListLevelStyleNumber : begin Namespace:=onsText; LocalName:='list-level-style-number'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleListLevelProperties; ChildrenArray[1]:=oetStyleTextProperties; SetLength(AttsArray, 8); AttsArray[0]:=oatTextLevel; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatStyleNumFormat; AttsArray[3]:=oatStyleNumPrefix; AttsArray[4]:=oatStyleNumSuffix; AttsArray[5]:=oatTextStyleName; AttsArray[6]:=oatTextDisplayLevels; AttsArray[7]:=oatTextStartValue; end; oetStyleListLevelProperties : begin Namespace:=onsStyle; LocalName:='list-level-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleListLevelLabelAlignment; SetLength(AttsArray, 11); AttsArray[0]:=oatFoTextAlign; AttsArray[1]:=oatStyleVerticalRel; AttsArray[2]:=oatStyleVerticalPos; AttsArray[3]:=oatSvgY; AttsArray[4]:=oatTextSpaceBefore; AttsArray[5]:=oatTextMinLabelWidth; AttsArray[6]:=oatTextMinLabelDistance; AttsArray[7]:=oatStyleFontName; AttsArray[8]:=oatFoWidth; AttsArray[9]:=oatFoHeight; AttsArray[10]:=oatTextListLevelPositionAndSpaceMode; end; oetStyleListLevelLabelAlignment : begin Namespace:=onsStyle; LocalName:='list-level-label-alignment'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextLabelFollowedBy; AttsArray[1]:=oatTextListTabStopPosition; AttsArray[2]:=oatFoTextIndent; AttsArray[3]:=oatFoMarginLeft; end; oetTextListLevelStyleBullet : begin Namespace:=onsText; LocalName:='list-level-style-bullet'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleListLevelProperties; ChildrenArray[1]:=oetStyleTextProperties; SetLength(AttsArray, 6); AttsArray[0]:=oatTextLevel; AttsArray[1]:=oatStyleNumPrefix; AttsArray[2]:=oatStyleNumSuffix; AttsArray[3]:=oatTextStyleName; AttsArray[4]:=oatTextBulletChar; AttsArray[5]:=oatTextBulletRelativeSize; end; oetTextListLevelStyleImage : begin Namespace:=onsText; LocalName:='list-level-style-image'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetOfficeBinaryData; ChildrenArray[1]:=oetStyleListLevelProperties; SetLength(AttsArray, 5); AttsArray[0]:=oatTextLevel; AttsArray[1]:=oatXlinkType; AttsArray[2]:=oatXlinkHref; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatXlinkActuate; end; oetStyleDrawingPageProperties : begin Namespace:=onsStyle; LocalName:='drawing-page-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 34); AttsArray[0]:=oatDrawFill; AttsArray[1]:=oatDrawFillColor; AttsArray[2]:=oatDrawSecondaryFillColor; AttsArray[3]:=oatDrawFillGradientName; AttsArray[4]:=oatDrawGradientStepCount; AttsArray[5]:=oatDrawFillHatchName; AttsArray[6]:=oatDrawFillHatchSolid; AttsArray[7]:=oatDrawFillImageName; AttsArray[8]:=oatStyleRepeat; AttsArray[9]:=oatDrawFillImageWidth; AttsArray[10]:=oatDrawFillImageHeight; AttsArray[11]:=oatDrawFillImageRefPointX; AttsArray[12]:=oatDrawFillImageRefPointY; AttsArray[13]:=oatDrawFillImageRefPoint; AttsArray[14]:=oatDrawTileRepeatOffset; AttsArray[15]:=oatDrawOpacity; AttsArray[16]:=oatDrawOpacityName; AttsArray[17]:=oatSvgFillRule; AttsArray[18]:=oatPresentationTransitionType; AttsArray[19]:=oatPresentationTransitionStyle; AttsArray[20]:=oatPresentationTransitionSpeed; AttsArray[21]:=oatSmilType; AttsArray[22]:=oatSmilSubtype; AttsArray[23]:=oatSmilDirection; AttsArray[24]:=oatSmilFadecolor; AttsArray[25]:=oatPresentationDuration; AttsArray[26]:=oatPresentationVisibility; AttsArray[27]:=oatDrawBackgroundSize; AttsArray[28]:=oatPresentationBackgroundObjectsVisible; AttsArray[29]:=oatPresentationBackgroundVisible; AttsArray[30]:=oatPresentationDisplayHeader; AttsArray[31]:=oatPresentationDisplayFooter; AttsArray[32]:=oatPresentationDisplayPageNumber; AttsArray[33]:=oatPresentationDisplayDateTime; end; oetStyleChartProperties : begin Namespace:=onsStyle; LocalName:='chart-properties'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetChartSymbolImage; ChildrenArray[1]:=oetChartLabelSeparator; SetLength(AttsArray, 71); AttsArray[0]:=oatStyleDirection; AttsArray[1]:=oatStyleRotationAngle; AttsArray[2]:=oatChartScaleText; AttsArray[3]:=oatChartThreeDimensional; AttsArray[4]:=oatChartDeep; AttsArray[5]:=oatChartRightAngledAxes; AttsArray[6]:=oatChartSymbolType; AttsArray[7]:=oatChartSymbolType; AttsArray[8]:=oatChartSymbolType; AttsArray[9]:=oatChartSymbolName; AttsArray[10]:=oatChartSymbolType; AttsArray[11]:=oatChartSymbolWidth; AttsArray[12]:=oatChartSymbolHeight; AttsArray[13]:=oatChartSortByXValues; AttsArray[14]:=oatChartVertical; AttsArray[15]:=oatChartConnectBars; AttsArray[16]:=oatChartGapWidth; AttsArray[17]:=oatChartOverlap; AttsArray[18]:=oatChartGroupBarsPerAxis; AttsArray[19]:=oatChartJapaneseCandleStick; AttsArray[20]:=oatChartInterpolation; AttsArray[21]:=oatChartSplineOrder; AttsArray[22]:=oatChartSplineResolution; AttsArray[23]:=oatChartPieOffset; AttsArray[24]:=oatChartAngleOffset; AttsArray[25]:=oatChartHoleSize; AttsArray[26]:=oatChartLines; AttsArray[27]:=oatChartSolidType; AttsArray[28]:=oatChartStacked; AttsArray[29]:=oatChartPercentage; AttsArray[30]:=oatChartTreatEmptyCells; AttsArray[31]:=oatChartLinkDataStyleToSource; AttsArray[32]:=oatChartLogarithmic; AttsArray[33]:=oatChartMaximum; AttsArray[34]:=oatChartMinimum; AttsArray[35]:=oatChartOrigin; AttsArray[36]:=oatChartIntervalMajor; AttsArray[37]:=oatChartIntervalMinorDivisor; AttsArray[38]:=oatChartTickMarksMajorInner; AttsArray[39]:=oatChartTickMarksMajorOuter; AttsArray[40]:=oatChartTickMarksMinorInner; AttsArray[41]:=oatChartTickMarksMinorOuter; AttsArray[42]:=oatChartReverseDirection; AttsArray[43]:=oatChartDisplayLabel; AttsArray[44]:=oatChartTextOverlap; AttsArray[45]:=oatTextLineBreak; AttsArray[46]:=oatChartLabelArrangement; AttsArray[47]:=oatChartDataLabelNumber; AttsArray[48]:=oatChartDataLabelText; AttsArray[49]:=oatChartDataLabelSymbol; AttsArray[50]:=oatChartLabelPosition; AttsArray[51]:=oatChartLabelPositionNegative; AttsArray[52]:=oatChartVisible; AttsArray[53]:=oatChartAutoPosition; AttsArray[54]:=oatChartAutoSize; AttsArray[55]:=oatChartMeanValue; AttsArray[56]:=oatChartErrorCategory; AttsArray[57]:=oatChartErrorPercentage; AttsArray[58]:=oatChartErrorMargin; AttsArray[59]:=oatChartErrorLowerLimit; AttsArray[60]:=oatChartErrorUpperLimit; AttsArray[61]:=oatChartErrorUpperIndicator; AttsArray[62]:=oatChartErrorLowerIndicator; AttsArray[63]:=oatChartErrorLowerRange; AttsArray[64]:=oatChartErrorUpperRange; AttsArray[65]:=oatChartSeriesSource; AttsArray[66]:=oatChartRegressionType; AttsArray[67]:=oatChartAxisPosition; AttsArray[68]:=oatChartAxisLabelPosition; AttsArray[69]:=oatChartTickMarkPosition; AttsArray[70]:=oatChartIncludeHiddenCells; end; oetChartSymbolImage : begin Namespace:=onsChart; LocalName:='symbol-image'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatXlinkHref; end; oetChartLabelSeparator : begin Namespace:=onsChart; LocalName:='label-separator'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 0); end; oetTextP : begin Namespace:=onsText; LocalName:='p'; SetLength(ChildrenArray, 101); ChildrenArray[0]:=oetTextSoftPageBreak; ChildrenArray[1]:=oetTextBookmark; ChildrenArray[2]:=oetTextBookmarkStart; ChildrenArray[3]:=oetTextBookmarkEnd; ChildrenArray[4]:=oetOfficeAnnotation; ChildrenArray[5]:=oetOfficeAnnotationEnd; ChildrenArray[6]:=oetTextChange; ChildrenArray[7]:=oetTextChangeStart; ChildrenArray[8]:=oetTextChangeEnd; ChildrenArray[9]:=oetTextS; ChildrenArray[10]:=oetTextTab; ChildrenArray[11]:=oetTextLineBreak; ChildrenArray[12]:=oetTextSpan; ChildrenArray[13]:=oetTextMeta; ChildrenArray[14]:=oetTextReferenceMark; ChildrenArray[15]:=oetTextReferenceMarkStart; ChildrenArray[16]:=oetTextReferenceMarkEnd; ChildrenArray[17]:=oetTextNote; ChildrenArray[18]:=oetTextRuby; ChildrenArray[19]:=oetTextDate; ChildrenArray[20]:=oetTextTime; ChildrenArray[21]:=oetTextPageNumber; ChildrenArray[22]:=oetTextPageContinuation; ChildrenArray[23]:=oetTextSenderFirstname; ChildrenArray[24]:=oetTextSenderLastname; ChildrenArray[25]:=oetTextSenderInitials; ChildrenArray[26]:=oetTextSenderTitle; ChildrenArray[27]:=oetTextSenderPosition; ChildrenArray[28]:=oetTextSenderEmail; ChildrenArray[29]:=oetTextSenderPhonePrivate; ChildrenArray[30]:=oetTextSenderFax; ChildrenArray[31]:=oetTextSenderCompany; ChildrenArray[32]:=oetTextSenderPhoneWork; ChildrenArray[33]:=oetTextSenderStreet; ChildrenArray[34]:=oetTextSenderCity; ChildrenArray[35]:=oetTextSenderPostalCode; ChildrenArray[36]:=oetTextSenderCountry; ChildrenArray[37]:=oetTextSenderStateOrProvince; ChildrenArray[38]:=oetTextAuthorName; ChildrenArray[39]:=oetTextAuthorInitials; ChildrenArray[40]:=oetTextChapter; ChildrenArray[41]:=oetTextFileName; ChildrenArray[42]:=oetTextTemplateName; ChildrenArray[43]:=oetTextSheetName; ChildrenArray[44]:=oetTextVariableSet; ChildrenArray[45]:=oetTextVariableGet; ChildrenArray[46]:=oetTextVariableInput; ChildrenArray[47]:=oetTextUserFieldGet; ChildrenArray[48]:=oetTextUserFieldInput; ChildrenArray[49]:=oetTextSequence; ChildrenArray[50]:=oetTextExpression; ChildrenArray[51]:=oetTextTextInput; ChildrenArray[52]:=oetTextInitialCreator; ChildrenArray[53]:=oetTextCreationDate; ChildrenArray[54]:=oetTextCreationTime; ChildrenArray[55]:=oetTextDescription; ChildrenArray[56]:=oetTextUserDefined; ChildrenArray[57]:=oetTextPrintTime; ChildrenArray[58]:=oetTextPrintDate; ChildrenArray[59]:=oetTextPrintedBy; ChildrenArray[60]:=oetTextTitle; ChildrenArray[61]:=oetTextSubject; ChildrenArray[62]:=oetTextKeywords; ChildrenArray[63]:=oetTextEditingCycles; ChildrenArray[64]:=oetTextEditingDuration; ChildrenArray[65]:=oetTextModificationTime; ChildrenArray[66]:=oetTextModificationDate; ChildrenArray[67]:=oetTextCreator; ChildrenArray[68]:=oetTextDatabaseDisplay; ChildrenArray[69]:=oetTextDatabaseNext; ChildrenArray[70]:=oetTextDatabaseRowSelect; ChildrenArray[71]:=oetTextDatabaseRowNumber; ChildrenArray[72]:=oetTextDatabaseName; ChildrenArray[73]:=oetTextPageVariableSet; ChildrenArray[74]:=oetTextPageVariableGet; ChildrenArray[75]:=oetTextPlaceholder; ChildrenArray[76]:=oetTextConditionalText; ChildrenArray[77]:=oetTextHiddenText; ChildrenArray[78]:=oetTextNoteRef; ChildrenArray[79]:=oetTextSequenceRef; ChildrenArray[80]:=oetTextScript; ChildrenArray[81]:=oetTextExecuteMacro; ChildrenArray[82]:=oetTextHiddenParagraph; ChildrenArray[83]:=oetTextDdeConnection; ChildrenArray[84]:=oetTextMeasure; ChildrenArray[85]:=oetTextTableFormula; ChildrenArray[86]:=oetTextMetaField; ChildrenArray[87]:=oetTextTocMarkStart; ChildrenArray[88]:=oetTextTocMarkEnd; ChildrenArray[89]:=oetTextTocMark; ChildrenArray[90]:=oetTextUserIndexMarkStart; ChildrenArray[91]:=oetTextUserIndexMarkEnd; ChildrenArray[92]:=oetTextUserIndexMark; ChildrenArray[93]:=oetTextAlphabeticalIndexMarkStart; ChildrenArray[94]:=oetTextAlphabeticalIndexMarkEnd; ChildrenArray[95]:=oetTextAlphabeticalIndexMark; ChildrenArray[96]:=oetTextBibliographyMark; ChildrenArray[97]:=oetPresentationHeader; ChildrenArray[98]:=oetPresentationFooter; ChildrenArray[99]:=oetPresentationDateTime; ChildrenArray[100]:=oetTextA; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatXhtmlDatatype; AttsArray[2]:=oatXhtmlContent; AttsArray[3]:=oatXhtmlAbout; AttsArray[4]:=oatXhtmlProperty; AttsArray[5]:=oatTextStyleName; AttsArray[6]:=oatTextClassNames; AttsArray[7]:=oatTextCondStyleName; AttsArray[8]:=oatTextId; end; oetTextS : begin Namespace:=onsText; LocalName:='s'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextC; end; oetTextTab : begin Namespace:=onsText; LocalName:='tab'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextTabRef; end; oetTextLineBreak : begin Namespace:=onsText; LocalName:='line-break'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextSoftPageBreak : begin Namespace:=onsText; LocalName:='soft-page-break'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextSpan : begin Namespace:=onsText; LocalName:='span'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextClassNames; end; oetTextMeta : begin Namespace:=onsText; LocalName:='meta'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXhtmlAbout; AttsArray[1]:=oatXhtmlProperty; AttsArray[2]:=oatXmlId; end; oetTextBookmark : begin Namespace:=onsText; LocalName:='bookmark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextName; end; oetTextBookmarkStart : begin Namespace:=onsText; LocalName:='bookmark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatXhtmlAbout; AttsArray[2]:=oatXhtmlProperty; AttsArray[3]:=oatTextName; end; oetTextBookmarkEnd : begin Namespace:=onsText; LocalName:='bookmark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextReferenceMark : begin Namespace:=onsText; LocalName:='reference-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextReferenceMarkStart : begin Namespace:=onsText; LocalName:='reference-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextReferenceMarkEnd : begin Namespace:=onsText; LocalName:='reference-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextNote : begin Namespace:=onsText; LocalName:='note'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextNoteCitation; ChildrenArray[1]:=oetTextNoteBody; SetLength(AttsArray, 2); AttsArray[0]:=oatTextNoteClass; AttsArray[1]:=oatTextId; end; oetTextNoteCitation : begin Namespace:=onsText; LocalName:='note-citation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextLabel; end; oetTextNoteBody : begin Namespace:=onsText; LocalName:='note-body'; SetLength(ChildrenArray, 16); ChildrenArray[0]:=oetTextH; ChildrenArray[1]:=oetTextList; ChildrenArray[2]:=oetTextNumberedParagraph; ChildrenArray[3]:=oetTableTable; ChildrenArray[4]:=oetTextSection; ChildrenArray[5]:=oetTextSoftPageBreak; ChildrenArray[6]:=oetTextTableOfContent; ChildrenArray[7]:=oetTextIllustrationIndex; ChildrenArray[8]:=oetTextTableIndex; ChildrenArray[9]:=oetTextObjectIndex; ChildrenArray[10]:=oetTextUserIndex; ChildrenArray[11]:=oetTextAlphabeticalIndex; ChildrenArray[12]:=oetTextBibliography; ChildrenArray[13]:=oetTextChange; ChildrenArray[14]:=oetTextChangeStart; ChildrenArray[15]:=oetTextChangeEnd; SetLength(AttsArray, 0); end; oetTextH : begin Namespace:=onsText; LocalName:='h'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextNumber; SetLength(AttsArray, 8); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextRestartNumbering; AttsArray[2]:=oatTextStartValue; AttsArray[3]:=oatTextIsListHeader; AttsArray[4]:=oatTextStyleName; AttsArray[5]:=oatTextClassNames; AttsArray[6]:=oatTextCondStyleName; AttsArray[7]:=oatTextId; end; oetTextNumber : begin Namespace:=onsText; LocalName:='number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextList : begin Namespace:=onsText; LocalName:='list'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextListHeader; ChildrenArray[1]:=oetTextListItem; SetLength(AttsArray, 4); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextStyleName; AttsArray[2]:=oatTextContinueNumbering; AttsArray[3]:=oatTextContinueList; end; oetTextListHeader : begin Namespace:=onsText; LocalName:='list-header'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextNumber; ChildrenArray[1]:=oetTextH; ChildrenArray[2]:=oetTextSoftPageBreak; SetLength(AttsArray, 1); AttsArray[0]:=oatXmlId; end; oetTextListItem : begin Namespace:=onsText; LocalName:='list-item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextStartValue; AttsArray[2]:=oatTextStyleOverride; end; oetTextNumberedParagraph : begin Namespace:=onsText; LocalName:='numbered-paragraph'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextNumber; ChildrenArray[1]:=oetTextH; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextListId; AttsArray[2]:=oatTextLevel; AttsArray[3]:=oatTextStyleName; AttsArray[4]:=oatTextContinueNumbering; AttsArray[5]:=oatTextStartValue; end; oetTableTable : begin Namespace:=onsTable; LocalName:='table'; SetLength(ChildrenArray, 19); ChildrenArray[0]:=oetTableTitle; ChildrenArray[1]:=oetTableDesc; ChildrenArray[2]:=oetTableTableSource; ChildrenArray[3]:=oetOfficeDdeSource; ChildrenArray[4]:=oetTableScenario; ChildrenArray[5]:=oetOfficeForms; ChildrenArray[6]:=oetTableShapes; ChildrenArray[7]:=oetTableTableColumnGroup; ChildrenArray[8]:=oetTableTableColumns; ChildrenArray[9]:=oetTableTableColumn; ChildrenArray[10]:=oetTableTableHeaderColumns; ChildrenArray[11]:=oetTableTableHeaderColumns; ChildrenArray[12]:=oetTableTableRowGroup; ChildrenArray[13]:=oetTableTableRows; ChildrenArray[14]:=oetTextSoftPageBreak; ChildrenArray[15]:=oetTableTableRow; ChildrenArray[16]:=oetTableTableHeaderRows; ChildrenArray[17]:=oetTableTableHeaderRows; ChildrenArray[18]:=oetTableNamedExpressions; SetLength(AttsArray, 16); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTableName; AttsArray[2]:=oatTableStyleName; AttsArray[3]:=oatTableTemplateName; AttsArray[4]:=oatTableUseFirstRowStyles; AttsArray[5]:=oatTableUseLastRowStyles; AttsArray[6]:=oatTableUseFirstColumnStyles; AttsArray[7]:=oatTableUseLastColumnStyles; AttsArray[8]:=oatTableUseBandingRowsStyles; AttsArray[9]:=oatTableUseBandingColumnsStyles; AttsArray[10]:=oatTableProtected; AttsArray[11]:=oatTableProtectionKey; AttsArray[12]:=oatTableProtectionKeyDigestAlgorithm; AttsArray[13]:=oatTablePrint; AttsArray[14]:=oatTablePrintRanges; AttsArray[15]:=oatTableIsSubTable; end; oetTableTitle : begin Namespace:=onsTable; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableDesc : begin Namespace:=onsTable; LocalName:='desc'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableTableSource : begin Namespace:=onsTable; LocalName:='table-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatTableMode; AttsArray[1]:=oatTableTableName; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatTableFilterName; AttsArray[6]:=oatTableFilterOptions; AttsArray[7]:=oatTableRefreshDelay; end; oetOfficeDdeSource : begin Namespace:=onsOffice; LocalName:='dde-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeConversionMode; AttsArray[2]:=oatOfficeDdeApplication; AttsArray[3]:=oatOfficeDdeTopic; AttsArray[4]:=oatOfficeDdeItem; AttsArray[5]:=oatOfficeAutomaticUpdate; end; oetTableScenario : begin Namespace:=onsTable; LocalName:='scenario'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatTableScenarioRanges; AttsArray[1]:=oatTableIsActive; AttsArray[2]:=oatTableDisplayBorder; AttsArray[3]:=oatTableBorderColor; AttsArray[4]:=oatTableCopyBack; AttsArray[5]:=oatTableCopyStyles; AttsArray[6]:=oatTableCopyFormulas; AttsArray[7]:=oatTableComment; AttsArray[8]:=oatTableProtected; end; oetOfficeForms : begin Namespace:=onsOffice; LocalName:='forms'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetFormForm; ChildrenArray[1]:=oetXformsModel; SetLength(AttsArray, 2); AttsArray[0]:=oatFormAutomaticFocus; AttsArray[1]:=oatFormApplyDesignMode; end; oetFormForm : begin Namespace:=onsForm; LocalName:='form'; SetLength(ChildrenArray, 24); ChildrenArray[0]:=oetFormProperties; ChildrenArray[1]:=oetOfficeEventListeners; ChildrenArray[2]:=oetFormText; ChildrenArray[3]:=oetFormTextarea; ChildrenArray[4]:=oetFormFormattedText; ChildrenArray[5]:=oetFormNumber; ChildrenArray[6]:=oetFormDate; ChildrenArray[7]:=oetFormTime; ChildrenArray[8]:=oetFormCombobox; ChildrenArray[9]:=oetFormListbox; ChildrenArray[10]:=oetFormCheckbox; ChildrenArray[11]:=oetFormPassword; ChildrenArray[12]:=oetFormFile; ChildrenArray[13]:=oetFormFixedText; ChildrenArray[14]:=oetFormButton; ChildrenArray[15]:=oetFormImage; ChildrenArray[16]:=oetFormRadio; ChildrenArray[17]:=oetFormFrame; ChildrenArray[18]:=oetFormImageFrame; ChildrenArray[19]:=oetFormHidden; ChildrenArray[20]:=oetFormGrid; ChildrenArray[21]:=oetFormValueRange; ChildrenArray[22]:=oetFormGenericControl; ChildrenArray[23]:=oetFormConnectionResource; SetLength(AttsArray, 23); AttsArray[0]:=oatFormName; AttsArray[1]:=oatFormControlImplementation; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatOfficeTargetFrame; AttsArray[6]:=oatFormMethod; AttsArray[7]:=oatFormEnctype; AttsArray[8]:=oatFormAllowDeletes; AttsArray[9]:=oatFormAllowInserts; AttsArray[10]:=oatFormAllowUpdates; AttsArray[11]:=oatFormApplyFilter; AttsArray[12]:=oatFormCommandType; AttsArray[13]:=oatFormCommand; AttsArray[14]:=oatFormDatasource; AttsArray[15]:=oatFormMasterFields; AttsArray[16]:=oatFormDetailFields; AttsArray[17]:=oatFormEscapeProcessing; AttsArray[18]:=oatFormFilter; AttsArray[19]:=oatFormIgnoreResult; AttsArray[20]:=oatFormNavigationMode; AttsArray[21]:=oatFormOrder; AttsArray[22]:=oatFormTabCycle; end; oetFormProperties : begin Namespace:=onsForm; LocalName:='properties'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetFormProperty; ChildrenArray[1]:=oetFormListProperty; SetLength(AttsArray, 0); end; oetFormProperty : begin Namespace:=onsForm; LocalName:='property'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 17); AttsArray[0]:=oatFormPropertyName; AttsArray[1]:=oatOfficeValueType; AttsArray[2]:=oatOfficeValue; AttsArray[3]:=oatOfficeValueType; AttsArray[4]:=oatOfficeValue; AttsArray[5]:=oatOfficeValueType; AttsArray[6]:=oatOfficeValue; AttsArray[7]:=oatOfficeCurrency; AttsArray[8]:=oatOfficeValueType; AttsArray[9]:=oatOfficeDateValue; AttsArray[10]:=oatOfficeValueType; AttsArray[11]:=oatOfficeTimeValue; AttsArray[12]:=oatOfficeValueType; AttsArray[13]:=oatOfficeBooleanValue; AttsArray[14]:=oatOfficeValueType; AttsArray[15]:=oatOfficeStringValue; AttsArray[16]:=oatOfficeValueType; end; oetFormListProperty : begin Namespace:=onsForm; LocalName:='list-property'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetFormListValue; ChildrenArray[1]:=oetFormListValue; ChildrenArray[2]:=oetFormListValue; ChildrenArray[3]:=oetFormListValue; ChildrenArray[4]:=oetFormListValue; ChildrenArray[5]:=oetFormListValue; ChildrenArray[6]:=oetFormListValue; SetLength(AttsArray, 9); AttsArray[0]:=oatFormPropertyName; AttsArray[1]:=oatOfficeValueType; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValueType; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValueType; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValueType; AttsArray[8]:=oatOfficeValueType; end; oetFormListValue : begin Namespace:=onsForm; LocalName:='list-value'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatOfficeValue; AttsArray[1]:=oatOfficeCurrency; AttsArray[2]:=oatOfficeDateValue; AttsArray[3]:=oatOfficeTimeValue; AttsArray[4]:=oatOfficeBooleanValue; AttsArray[5]:=oatOfficeStringValue; end; oetFormText : begin Namespace:=onsForm; LocalName:='text'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetFormProperties; ChildrenArray[1]:=oetOfficeEventListeners; SetLength(AttsArray, 17); AttsArray[0]:=oatFormName; AttsArray[1]:=oatFormControlImplementation; AttsArray[2]:=oatXmlId; AttsArray[3]:=oatFormId; AttsArray[4]:=oatXformsBind; AttsArray[5]:=oatFormCurrentValue; AttsArray[6]:=oatFormDisabled; AttsArray[7]:=oatFormMaxLength; AttsArray[8]:=oatFormPrintable; AttsArray[9]:=oatFormReadonly; AttsArray[10]:=oatFormTabIndex; AttsArray[11]:=oatFormTabStop; AttsArray[12]:=oatFormTitle; AttsArray[13]:=oatFormValue; AttsArray[14]:=oatFormConvertEmptyToNull; AttsArray[15]:=oatFormDataField; AttsArray[16]:=oatFormLinkedCell; end; oetFormTextarea : begin Namespace:=onsForm; LocalName:='textarea'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 12); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormMaxLength; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormReadonly; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormConvertEmptyToNull; AttsArray[10]:=oatFormDataField; AttsArray[11]:=oatFormLinkedCell; end; oetFormFormattedText : begin Namespace:=onsForm; LocalName:='formatted-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 18); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormMaxLength; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormReadonly; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormConvertEmptyToNull; AttsArray[10]:=oatFormDataField; AttsArray[11]:=oatFormLinkedCell; AttsArray[12]:=oatFormSpinButton; AttsArray[13]:=oatFormRepeat; AttsArray[14]:=oatFormDelayForRepeat; AttsArray[15]:=oatFormMaxValue; AttsArray[16]:=oatFormMinValue; AttsArray[17]:=oatFormValidation; end; oetFormNumber : begin Namespace:=onsForm; LocalName:='number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 17); AttsArray[0]:=oatFormValue; AttsArray[1]:=oatFormCurrentValue; AttsArray[2]:=oatFormMinValue; AttsArray[3]:=oatFormMaxValue; AttsArray[4]:=oatFormDisabled; AttsArray[5]:=oatFormMaxLength; AttsArray[6]:=oatFormPrintable; AttsArray[7]:=oatFormReadonly; AttsArray[8]:=oatFormTabIndex; AttsArray[9]:=oatFormTabStop; AttsArray[10]:=oatFormTitle; AttsArray[11]:=oatFormConvertEmptyToNull; AttsArray[12]:=oatFormDataField; AttsArray[13]:=oatFormLinkedCell; AttsArray[14]:=oatFormSpinButton; AttsArray[15]:=oatFormRepeat; AttsArray[16]:=oatFormDelayForRepeat; end; oetFormDate : begin Namespace:=onsForm; LocalName:='date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatFormValue; AttsArray[1]:=oatFormCurrentValue; AttsArray[2]:=oatFormMinValue; AttsArray[3]:=oatFormMaxValue; AttsArray[4]:=oatFormLinkedCell; AttsArray[5]:=oatFormSpinButton; AttsArray[6]:=oatFormRepeat; AttsArray[7]:=oatFormDelayForRepeat; end; oetFormTime : begin Namespace:=onsForm; LocalName:='time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatFormValue; AttsArray[1]:=oatFormCurrentValue; AttsArray[2]:=oatFormMinValue; AttsArray[3]:=oatFormMaxValue; AttsArray[4]:=oatFormLinkedCell; AttsArray[5]:=oatFormSpinButton; AttsArray[6]:=oatFormRepeat; AttsArray[7]:=oatFormDelayForRepeat; end; oetFormCombobox : begin Namespace:=onsForm; LocalName:='combobox'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormItem; SetLength(AttsArray, 18); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormDropdown; AttsArray[3]:=oatFormMaxLength; AttsArray[4]:=oatFormPrintable; AttsArray[5]:=oatFormReadonly; AttsArray[6]:=oatFormSize; AttsArray[7]:=oatFormTabIndex; AttsArray[8]:=oatFormTabStop; AttsArray[9]:=oatFormTitle; AttsArray[10]:=oatFormValue; AttsArray[11]:=oatFormConvertEmptyToNull; AttsArray[12]:=oatFormDataField; AttsArray[13]:=oatFormListSource; AttsArray[14]:=oatFormListSourceType; AttsArray[15]:=oatFormLinkedCell; AttsArray[16]:=oatFormSourceCellRange; AttsArray[17]:=oatFormAutoComplete; end; oetFormItem : begin Namespace:=onsForm; LocalName:='item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatFormLabel; end; oetFormListbox : begin Namespace:=onsForm; LocalName:='listbox'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormOption; SetLength(AttsArray, 16); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormDropdown; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormSize; AttsArray[4]:=oatFormTabIndex; AttsArray[5]:=oatFormTabStop; AttsArray[6]:=oatFormTitle; AttsArray[7]:=oatFormBoundColumn; AttsArray[8]:=oatFormDataField; AttsArray[9]:=oatFormListSource; AttsArray[10]:=oatFormListSourceType; AttsArray[11]:=oatFormLinkedCell; AttsArray[12]:=oatFormListLinkageType; AttsArray[13]:=oatFormSourceCellRange; AttsArray[14]:=oatFormMultiple; AttsArray[15]:=oatFormXformsListSource; end; oetFormOption : begin Namespace:=onsForm; LocalName:='option'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatFormCurrentSelected; AttsArray[1]:=oatFormSelected; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormValue; end; oetFormCheckbox : begin Namespace:=onsForm; LocalName:='checkbox'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 16); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormLabel; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormTabIndex; AttsArray[4]:=oatFormTabStop; AttsArray[5]:=oatFormTitle; AttsArray[6]:=oatFormValue; AttsArray[7]:=oatFormDataField; AttsArray[8]:=oatFormVisualEffect; AttsArray[9]:=oatFormImagePosition; AttsArray[10]:=oatFormImagePosition; AttsArray[11]:=oatFormImageAlign; AttsArray[12]:=oatFormLinkedCell; AttsArray[13]:=oatFormCurrentState; AttsArray[14]:=oatFormIsTristate; AttsArray[15]:=oatFormState; end; oetFormPassword : begin Namespace:=onsForm; LocalName:='password'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormMaxLength; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormTabIndex; AttsArray[4]:=oatFormTabStop; AttsArray[5]:=oatFormTitle; AttsArray[6]:=oatFormValue; AttsArray[7]:=oatFormConvertEmptyToNull; AttsArray[8]:=oatFormLinkedCell; AttsArray[9]:=oatFormEchoChar; end; oetFormFile : begin Namespace:=onsForm; LocalName:='file'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatFormCurrentValue; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormMaxLength; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormReadonly; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormLinkedCell; end; oetFormFixedText : begin Namespace:=onsForm; LocalName:='fixed-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatFormFor; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormTitle; AttsArray[5]:=oatFormMultiLine; end; oetFormButton : begin Namespace:=onsForm; LocalName:='button'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 20); AttsArray[0]:=oatFormButtonType; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormImageData; AttsArray[4]:=oatFormPrintable; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatOfficeTargetFrame; AttsArray[8]:=oatXlinkHref; AttsArray[9]:=oatFormTitle; AttsArray[10]:=oatFormValue; AttsArray[11]:=oatFormImagePosition; AttsArray[12]:=oatFormImagePosition; AttsArray[13]:=oatFormImageAlign; AttsArray[14]:=oatFormRepeat; AttsArray[15]:=oatFormDelayForRepeat; AttsArray[16]:=oatFormDefaultButton; AttsArray[17]:=oatFormToggle; AttsArray[18]:=oatFormFocusOnClick; AttsArray[19]:=oatFormXformsSubmission; end; oetFormImage : begin Namespace:=onsForm; LocalName:='image'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatFormButtonType; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormImageData; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormTabIndex; AttsArray[5]:=oatFormTabStop; AttsArray[6]:=oatOfficeTargetFrame; AttsArray[7]:=oatXlinkHref; AttsArray[8]:=oatFormTitle; AttsArray[9]:=oatFormValue; end; oetFormRadio : begin Namespace:=onsForm; LocalName:='radio'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 15); AttsArray[0]:=oatFormCurrentSelected; AttsArray[1]:=oatFormDisabled; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormSelected; AttsArray[5]:=oatFormTabIndex; AttsArray[6]:=oatFormTabStop; AttsArray[7]:=oatFormTitle; AttsArray[8]:=oatFormValue; AttsArray[9]:=oatFormDataField; AttsArray[10]:=oatFormVisualEffect; AttsArray[11]:=oatFormImagePosition; AttsArray[12]:=oatFormImagePosition; AttsArray[13]:=oatFormImageAlign; AttsArray[14]:=oatFormLinkedCell; end; oetFormFrame : begin Namespace:=onsForm; LocalName:='frame'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormFor; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormPrintable; AttsArray[4]:=oatFormTitle; end; oetFormImageFrame : begin Namespace:=onsForm; LocalName:='image-frame'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormImageData; AttsArray[2]:=oatFormPrintable; AttsArray[3]:=oatFormReadonly; AttsArray[4]:=oatFormTitle; AttsArray[5]:=oatFormDataField; end; oetFormHidden : begin Namespace:=onsForm; LocalName:='hidden'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatFormValue; end; oetFormGrid : begin Namespace:=onsForm; LocalName:='grid'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormColumn; SetLength(AttsArray, 5); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormPrintable; AttsArray[2]:=oatFormTabIndex; AttsArray[3]:=oatFormTabStop; AttsArray[4]:=oatFormTitle; end; oetFormColumn : begin Namespace:=onsForm; LocalName:='column'; SetLength(ChildrenArray, 9); ChildrenArray[0]:=oetFormText; ChildrenArray[1]:=oetFormTextarea; ChildrenArray[2]:=oetFormFormattedText; ChildrenArray[3]:=oetFormNumber; ChildrenArray[4]:=oetFormDate; ChildrenArray[5]:=oetFormTime; ChildrenArray[6]:=oetFormCombobox; ChildrenArray[7]:=oetFormListbox; ChildrenArray[8]:=oetFormCheckbox; SetLength(AttsArray, 4); AttsArray[0]:=oatFormName; AttsArray[1]:=oatFormControlImplementation; AttsArray[2]:=oatFormLabel; AttsArray[3]:=oatFormTextStyleName; end; oetFormValueRange : begin Namespace:=onsForm; LocalName:='value-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatFormDisabled; AttsArray[1]:=oatFormPrintable; AttsArray[2]:=oatFormTabIndex; AttsArray[3]:=oatFormTabStop; AttsArray[4]:=oatFormTitle; AttsArray[5]:=oatFormValue; AttsArray[6]:=oatFormLinkedCell; AttsArray[7]:=oatFormRepeat; AttsArray[8]:=oatFormDelayForRepeat; AttsArray[9]:=oatFormMaxValue; AttsArray[10]:=oatFormMinValue; AttsArray[11]:=oatFormStepSize; AttsArray[12]:=oatFormPageStepSize; AttsArray[13]:=oatFormOrientation; end; oetFormGenericControl : begin Namespace:=onsForm; LocalName:='generic-control'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetFormConnectionResource : begin Namespace:=onsForm; LocalName:='connection-resource'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatXlinkHref; end; oetXformsModel : begin Namespace:=onsXforms; LocalName:='model'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableShapes : begin Namespace:=onsTable; LocalName:='shapes'; SetLength(ChildrenArray, 18); ChildrenArray[0]:=oetDrawRect; ChildrenArray[1]:=oetDrawLine; ChildrenArray[2]:=oetDrawPolyline; ChildrenArray[3]:=oetDrawPolygon; ChildrenArray[4]:=oetDrawRegularPolygon; ChildrenArray[5]:=oetDrawPath; ChildrenArray[6]:=oetDrawCircle; ChildrenArray[7]:=oetDrawEllipse; ChildrenArray[8]:=oetDrawG; ChildrenArray[9]:=oetDrawPageThumbnail; ChildrenArray[10]:=oetDrawFrame; ChildrenArray[11]:=oetDrawMeasure; ChildrenArray[12]:=oetDrawCaption; ChildrenArray[13]:=oetDrawConnector; ChildrenArray[14]:=oetDrawControl; ChildrenArray[15]:=oetDr3dScene; ChildrenArray[16]:=oetDrawCustomShape; ChildrenArray[17]:=oetDrawA; SetLength(AttsArray, 0); end; oetDrawRect : begin Namespace:=onsDraw; LocalName:='rect'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; ChildrenArray[4]:=oetTextList; SetLength(AttsArray, 25); AttsArray[0]:=oatDrawCornerRadius; AttsArray[1]:=oatSvgRx; AttsArray[2]:=oatSvgRy; AttsArray[3]:=oatSvgX; AttsArray[4]:=oatSvgY; AttsArray[5]:=oatSvgWidth; AttsArray[6]:=oatSvgHeight; AttsArray[7]:=oatDrawZIndex; AttsArray[8]:=oatXmlId; AttsArray[9]:=oatDrawId; AttsArray[10]:=oatDrawLayer; AttsArray[11]:=oatDrawStyleName; AttsArray[12]:=oatDrawClassNames; AttsArray[13]:=oatPresentationStyleName; AttsArray[14]:=oatPresentationClassNames; AttsArray[15]:=oatDrawTransform; AttsArray[16]:=oatDrawName; AttsArray[17]:=oatTextAnchorType; AttsArray[18]:=oatTextAnchorPageNumber; AttsArray[19]:=oatTableEndCellAddress; AttsArray[20]:=oatTableEndX; AttsArray[21]:=oatTableEndY; AttsArray[22]:=oatTableTableBackground; AttsArray[23]:=oatDrawTextStyleName; AttsArray[24]:=oatDrawCaptionId; end; oetSvgTitle : begin Namespace:=onsSvg; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetSvgDesc : begin Namespace:=onsSvg; LocalName:='desc'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDrawGluePoint : begin Namespace:=onsDraw; LocalName:='glue-point'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDrawId; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatDrawAlign; AttsArray[4]:=oatDrawEscapeDirection; end; oetDrawLine : begin Namespace:=onsDraw; LocalName:='line'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 5); AttsArray[0]:=oatSvgX1; AttsArray[1]:=oatSvgY1; AttsArray[2]:=oatSvgX2; AttsArray[3]:=oatSvgY2; AttsArray[4]:=oatDrawCaptionId; end; oetDrawPolyline : begin Namespace:=onsDraw; LocalName:='polyline'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawPoints; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatSvgViewbox; AttsArray[6]:=oatDrawCaptionId; end; oetDrawPolygon : begin Namespace:=onsDraw; LocalName:='polygon'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawPoints; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatSvgViewbox; AttsArray[6]:=oatDrawCaptionId; end; oetDrawRegularPolygon : begin Namespace:=onsDraw; LocalName:='regular-polygon'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 9); AttsArray[0]:=oatDrawSharpness; AttsArray[1]:=oatDrawConcave; AttsArray[2]:=oatDrawConcave; AttsArray[3]:=oatDrawCorners; AttsArray[4]:=oatSvgX; AttsArray[5]:=oatSvgY; AttsArray[6]:=oatSvgWidth; AttsArray[7]:=oatSvgHeight; AttsArray[8]:=oatDrawCaptionId; end; oetDrawPath : begin Namespace:=onsDraw; LocalName:='path'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 7); AttsArray[0]:=oatSvgD; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatSvgViewbox; AttsArray[6]:=oatDrawCaptionId; end; oetDrawCircle : begin Namespace:=onsDraw; LocalName:='circle'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 11); AttsArray[0]:=oatSvgR; AttsArray[1]:=oatSvgCx; AttsArray[2]:=oatSvgCy; AttsArray[3]:=oatSvgX; AttsArray[4]:=oatSvgY; AttsArray[5]:=oatSvgWidth; AttsArray[6]:=oatSvgHeight; AttsArray[7]:=oatDrawKind; AttsArray[8]:=oatDrawStartAngle; AttsArray[9]:=oatDrawEndAngle; AttsArray[10]:=oatDrawCaptionId; end; oetDrawEllipse : begin Namespace:=onsDraw; LocalName:='ellipse'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 12); AttsArray[0]:=oatSvgRx; AttsArray[1]:=oatSvgRy; AttsArray[2]:=oatSvgCx; AttsArray[3]:=oatSvgCy; AttsArray[4]:=oatSvgX; AttsArray[5]:=oatSvgY; AttsArray[6]:=oatSvgWidth; AttsArray[7]:=oatSvgHeight; AttsArray[8]:=oatDrawKind; AttsArray[9]:=oatDrawStartAngle; AttsArray[10]:=oatDrawEndAngle; AttsArray[11]:=oatDrawCaptionId; end; oetDrawG : begin Namespace:=onsDraw; LocalName:='g'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 13); AttsArray[0]:=oatSvgY; AttsArray[1]:=oatDrawZIndex; AttsArray[2]:=oatDrawName; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawStyleName; AttsArray[5]:=oatDrawClassNames; AttsArray[6]:=oatPresentationStyleName; AttsArray[7]:=oatPresentationClassNames; AttsArray[8]:=oatTableEndCellAddress; AttsArray[9]:=oatTableEndX; AttsArray[10]:=oatTableEndY; AttsArray[11]:=oatTableTableBackground; AttsArray[12]:=oatDrawCaptionId; end; oetDrawPageThumbnail : begin Namespace:=onsDraw; LocalName:='page-thumbnail'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; SetLength(AttsArray, 9); AttsArray[0]:=oatDrawPageNumber; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatPresentationClass; AttsArray[6]:=oatPresentationPlaceholder; AttsArray[7]:=oatPresentationUserTransformed; AttsArray[8]:=oatDrawCaptionId; end; oetDrawFrame : begin Namespace:=onsDraw; LocalName:='frame'; SetLength(ChildrenArray, 14); ChildrenArray[0]:=oetDrawTextBox; ChildrenArray[1]:=oetDrawImage; ChildrenArray[2]:=oetDrawObject; ChildrenArray[3]:=oetDrawObjectOle; ChildrenArray[4]:=oetDrawApplet; ChildrenArray[5]:=oetDrawFloatingFrame; ChildrenArray[6]:=oetDrawPlugin; ChildrenArray[7]:=oetOfficeEventListeners; ChildrenArray[8]:=oetDrawGluePoint; ChildrenArray[9]:=oetDrawImageMap; ChildrenArray[10]:=oetSvgTitle; ChildrenArray[11]:=oetSvgDesc; ChildrenArray[12]:=oetDrawContourPolygon; ChildrenArray[13]:=oetDrawContourPath; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatStyleRelWidth; AttsArray[3]:=oatStyleRelHeight; AttsArray[4]:=oatDrawCaptionId; AttsArray[5]:=oatPresentationClass; AttsArray[6]:=oatPresentationPlaceholder; AttsArray[7]:=oatPresentationUserTransformed; AttsArray[8]:=oatDrawCopyOf; end; oetDrawTextBox : begin Namespace:=onsDraw; LocalName:='text-box'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawChainNextName; AttsArray[2]:=oatDrawCornerRadius; AttsArray[3]:=oatFoMinHeight; AttsArray[4]:=oatFoMinWidth; AttsArray[5]:=oatFoMaxHeight; AttsArray[6]:=oatFoMaxWidth; AttsArray[7]:=oatTextId; end; oetDrawImage : begin Namespace:=onsDraw; LocalName:='image'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeBinaryData; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawFilterName; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawObject : begin Namespace:=onsDraw; LocalName:='object'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetMathMath; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawNotifyOnUpdateOfRanges; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetMathMath : begin Namespace:=onsMath; LocalName:='math'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDrawObjectOle : begin Namespace:=onsDraw; LocalName:='object-ole'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeBinaryData; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawClassId; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawApplet : begin Namespace:=onsDraw; LocalName:='applet'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawParam; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawCode; AttsArray[2]:=oatDrawObject; AttsArray[3]:=oatDrawArchive; AttsArray[4]:=oatDrawMayScript; AttsArray[5]:=oatXlinkType; AttsArray[6]:=oatXlinkHref; AttsArray[7]:=oatXlinkShow; AttsArray[8]:=oatXlinkActuate; end; oetDrawParam : begin Namespace:=onsDraw; LocalName:='param'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawValue; end; oetDrawFloatingFrame : begin Namespace:=onsDraw; LocalName:='floating-frame'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawFrameName; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawPlugin : begin Namespace:=onsDraw; LocalName:='plugin'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawParam; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatDrawMimeType; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkShow; AttsArray[5]:=oatXlinkActuate; end; oetDrawImageMap : begin Namespace:=onsDraw; LocalName:='image-map'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDrawAreaRectangle; ChildrenArray[1]:=oetDrawAreaCircle; ChildrenArray[2]:=oetDrawAreaPolygon; SetLength(AttsArray, 0); end; oetDrawAreaRectangle : begin Namespace:=onsDraw; LocalName:='area-rectangle'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; SetLength(AttsArray, 10); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatOfficeTargetFrameName; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatOfficeName; AttsArray[5]:=oatDrawNohref; AttsArray[6]:=oatSvgX; AttsArray[7]:=oatSvgY; AttsArray[8]:=oatSvgWidth; AttsArray[9]:=oatSvgHeight; end; oetDrawAreaCircle : begin Namespace:=onsDraw; LocalName:='area-circle'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; SetLength(AttsArray, 9); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatOfficeTargetFrameName; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatOfficeName; AttsArray[5]:=oatDrawNohref; AttsArray[6]:=oatSvgCx; AttsArray[7]:=oatSvgCy; AttsArray[8]:=oatSvgR; end; oetDrawAreaPolygon : begin Namespace:=onsDraw; LocalName:='area-polygon'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; SetLength(AttsArray, 12); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatOfficeTargetFrameName; AttsArray[3]:=oatXlinkShow; AttsArray[4]:=oatOfficeName; AttsArray[5]:=oatDrawNohref; AttsArray[6]:=oatSvgX; AttsArray[7]:=oatSvgY; AttsArray[8]:=oatSvgWidth; AttsArray[9]:=oatSvgHeight; AttsArray[10]:=oatSvgViewbox; AttsArray[11]:=oatDrawPoints; end; oetDrawContourPolygon : begin Namespace:=onsDraw; LocalName:='contour-polygon'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDrawRecreateOnEdit; AttsArray[1]:=oatSvgWidth; AttsArray[2]:=oatSvgHeight; AttsArray[3]:=oatSvgViewbox; AttsArray[4]:=oatDrawPoints; end; oetDrawContourPath : begin Namespace:=onsDraw; LocalName:='contour-path'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDrawRecreateOnEdit; AttsArray[1]:=oatSvgWidth; AttsArray[2]:=oatSvgHeight; AttsArray[3]:=oatSvgViewbox; AttsArray[4]:=oatSvgD; end; oetDrawMeasure : begin Namespace:=onsDraw; LocalName:='measure'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 5); AttsArray[0]:=oatSvgX1; AttsArray[1]:=oatSvgY1; AttsArray[2]:=oatSvgX2; AttsArray[3]:=oatSvgY2; AttsArray[4]:=oatDrawCaptionId; end; oetDrawCaption : begin Namespace:=onsDraw; LocalName:='caption'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 8); AttsArray[0]:=oatDrawCaptionPointX; AttsArray[1]:=oatDrawCaptionPointY; AttsArray[2]:=oatDrawCornerRadius; AttsArray[3]:=oatSvgX; AttsArray[4]:=oatSvgY; AttsArray[5]:=oatSvgWidth; AttsArray[6]:=oatSvgHeight; AttsArray[7]:=oatDrawCaptionId; end; oetDrawConnector : begin Namespace:=onsDraw; LocalName:='connector'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; SetLength(AttsArray, 13); AttsArray[0]:=oatDrawType; AttsArray[1]:=oatSvgX1; AttsArray[2]:=oatSvgY1; AttsArray[3]:=oatDrawStartShape; AttsArray[4]:=oatDrawStartGluePoint; AttsArray[5]:=oatSvgX2; AttsArray[6]:=oatSvgY2; AttsArray[7]:=oatDrawEndShape; AttsArray[8]:=oatDrawEndGluePoint; AttsArray[9]:=oatDrawLineSkew; AttsArray[10]:=oatSvgD; AttsArray[11]:=oatDrawCaptionId; AttsArray[12]:=oatSvgViewbox; end; oetDrawControl : begin Namespace:=onsDraw; LocalName:='control'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetDrawGluePoint; SetLength(AttsArray, 6); AttsArray[0]:=oatDrawControl; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; AttsArray[5]:=oatDrawCaptionId; end; oetDr3dScene : begin Namespace:=onsDr3d; LocalName:='scene'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetDr3dLight; ChildrenArray[3]:=oetDr3dExtrude; ChildrenArray[4]:=oetDr3dSphere; ChildrenArray[5]:=oetDr3dRotate; ChildrenArray[6]:=oetDr3dCube; ChildrenArray[7]:=oetDrawGluePoint; SetLength(AttsArray, 27); AttsArray[0]:=oatDr3dVrp; AttsArray[1]:=oatDr3dVpn; AttsArray[2]:=oatDr3dVup; AttsArray[3]:=oatDr3dProjection; AttsArray[4]:=oatDr3dDistance; AttsArray[5]:=oatDr3dFocalLength; AttsArray[6]:=oatDr3dShadowSlant; AttsArray[7]:=oatDr3dShadeMode; AttsArray[8]:=oatDr3dAmbientColor; AttsArray[9]:=oatDr3dLightingMode; AttsArray[10]:=oatSvgX; AttsArray[11]:=oatSvgY; AttsArray[12]:=oatSvgWidth; AttsArray[13]:=oatSvgHeight; AttsArray[14]:=oatDrawStyleName; AttsArray[15]:=oatDrawClassNames; AttsArray[16]:=oatPresentationStyleName; AttsArray[17]:=oatPresentationClassNames; AttsArray[18]:=oatDrawZIndex; AttsArray[19]:=oatDrawId; AttsArray[20]:=oatDrawLayer; AttsArray[21]:=oatTableEndCellAddress; AttsArray[22]:=oatTableEndX; AttsArray[23]:=oatTableEndY; AttsArray[24]:=oatTableTableBackground; AttsArray[25]:=oatDr3dTransform; AttsArray[26]:=oatDrawCaptionId; end; oetDr3dLight : begin Namespace:=onsDr3d; LocalName:='light'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDr3dDiffuseColor; AttsArray[1]:=oatDr3dDirection; AttsArray[2]:=oatDr3dEnabled; AttsArray[3]:=oatDr3dSpecular; end; oetDr3dExtrude : begin Namespace:=onsDr3d; LocalName:='extrude'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatSvgD; AttsArray[1]:=oatSvgViewbox; AttsArray[2]:=oatDrawId; AttsArray[3]:=oatDrawZIndex; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDr3dSphere : begin Namespace:=onsDr3d; LocalName:='sphere'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatDr3dCenter; AttsArray[1]:=oatDr3dSize; AttsArray[2]:=oatDrawZIndex; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDr3dRotate : begin Namespace:=onsDr3d; LocalName:='rotate'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatSvgViewbox; AttsArray[1]:=oatSvgD; AttsArray[2]:=oatDrawZIndex; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDr3dCube : begin Namespace:=onsDr3d; LocalName:='cube'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatDr3dMinEdge; AttsArray[1]:=oatDr3dMaxEdge; AttsArray[2]:=oatDrawZIndex; AttsArray[3]:=oatDrawId; AttsArray[4]:=oatDrawLayer; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawClassNames; AttsArray[7]:=oatPresentationStyleName; AttsArray[8]:=oatPresentationClassNames; AttsArray[9]:=oatDr3dTransform; end; oetDrawCustomShape : begin Namespace:=onsDraw; LocalName:='custom-shape'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetOfficeEventListeners; ChildrenArray[3]:=oetDrawGluePoint; ChildrenArray[4]:=oetDrawEnhancedGeometry; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawEngine; AttsArray[1]:=oatDrawData; AttsArray[2]:=oatSvgX; AttsArray[3]:=oatSvgY; AttsArray[4]:=oatSvgWidth; AttsArray[5]:=oatSvgHeight; AttsArray[6]:=oatDrawCaptionId; end; oetDrawEnhancedGeometry : begin Namespace:=onsDraw; LocalName:='enhanced-geometry'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDrawEquation; ChildrenArray[1]:=oetDrawHandle; SetLength(AttsArray, 43); AttsArray[0]:=oatDrawType; AttsArray[1]:=oatSvgViewbox; AttsArray[2]:=oatDrawMirrorVertical; AttsArray[3]:=oatDrawMirrorHorizontal; AttsArray[4]:=oatDrawTextRotateAngle; AttsArray[5]:=oatDrawExtrusionAllowed; AttsArray[6]:=oatDrawTextPathAllowed; AttsArray[7]:=oatDrawConcentricGradientFillAllowed; AttsArray[8]:=oatDrawExtrusion; AttsArray[9]:=oatDrawExtrusionBrightness; AttsArray[10]:=oatDrawExtrusionDepth; AttsArray[11]:=oatDrawExtrusionDiffusion; AttsArray[12]:=oatDrawExtrusionNumberOfLineSegments; AttsArray[13]:=oatDrawExtrusionLightFace; AttsArray[14]:=oatDrawExtrusionFirstLightHarsh; AttsArray[15]:=oatDrawExtrusionSecondLightHarsh; AttsArray[16]:=oatDrawExtrusionFirstLightLevel; AttsArray[17]:=oatDrawExtrusionSecondLightLevel; AttsArray[18]:=oatDrawExtrusionFirstLightDirection; AttsArray[19]:=oatDrawExtrusionSecondLightDirection; AttsArray[20]:=oatDrawExtrusionMetal; AttsArray[21]:=oatDr3dShadeMode; AttsArray[22]:=oatDrawExtrusionRotationAngle; AttsArray[23]:=oatDrawExtrusionRotationCenter; AttsArray[24]:=oatDrawExtrusionShininess; AttsArray[25]:=oatDrawExtrusionSkew; AttsArray[26]:=oatDrawExtrusionSpecularity; AttsArray[27]:=oatDr3dProjection; AttsArray[28]:=oatDrawExtrusionViewpoint; AttsArray[29]:=oatDrawExtrusionOrigin; AttsArray[30]:=oatDrawExtrusionColor; AttsArray[31]:=oatDrawEnhancedPath; AttsArray[32]:=oatDrawPathStretchpointX; AttsArray[33]:=oatDrawPathStretchpointY; AttsArray[34]:=oatDrawTextAreas; AttsArray[35]:=oatDrawGluePoints; AttsArray[36]:=oatDrawGluePointType; AttsArray[37]:=oatDrawGluePointLeavingDirections; AttsArray[38]:=oatDrawTextPath; AttsArray[39]:=oatDrawTextPathMode; AttsArray[40]:=oatDrawTextPathScale; AttsArray[41]:=oatDrawTextPathSameLetterHeights; AttsArray[42]:=oatDrawModifiers; end; oetDrawEquation : begin Namespace:=onsDraw; LocalName:='equation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawFormula; end; oetDrawHandle : begin Namespace:=onsDraw; LocalName:='handle'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 11); AttsArray[0]:=oatDrawHandleMirrorVertical; AttsArray[1]:=oatDrawHandleMirrorHorizontal; AttsArray[2]:=oatDrawHandleSwitched; AttsArray[3]:=oatDrawHandlePosition; AttsArray[4]:=oatDrawHandleRangeXMinimum; AttsArray[5]:=oatDrawHandleRangeXMaximum; AttsArray[6]:=oatDrawHandleRangeYMinimum; AttsArray[7]:=oatDrawHandleRangeYMaximum; AttsArray[8]:=oatDrawHandlePolar; AttsArray[9]:=oatDrawHandleRadiusRangeMinimum; AttsArray[10]:=oatDrawHandleRadiusRangeMaximum; end; oetDrawA : begin Namespace:=onsDraw; LocalName:='a'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatXlinkType; AttsArray[2]:=oatXlinkHref; AttsArray[3]:=oatXlinkActuate; AttsArray[4]:=oatOfficeTargetFrameName; AttsArray[5]:=oatXlinkShow; AttsArray[6]:=oatOfficeName; AttsArray[7]:=oatOfficeTitle; AttsArray[8]:=oatOfficeServerMap; end; oetTableTableColumnGroup : begin Namespace:=onsTable; LocalName:='table-column-group'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableDisplay; end; oetTableTableColumns : begin Namespace:=onsTable; LocalName:='table-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableTableColumn; SetLength(AttsArray, 0); end; oetTableTableColumn : begin Namespace:=onsTable; LocalName:='table-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTableNumberColumnsRepeated; AttsArray[2]:=oatTableStyleName; AttsArray[3]:=oatTableVisibility; AttsArray[4]:=oatTableDefaultCellStyleName; end; oetTableTableHeaderColumns : begin Namespace:=onsTable; LocalName:='table-header-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableTableColumn; SetLength(AttsArray, 0); end; oetTableTableRowGroup : begin Namespace:=onsTable; LocalName:='table-row-group'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableDisplay; end; oetTableTableRows : begin Namespace:=onsTable; LocalName:='table-rows'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextSoftPageBreak; ChildrenArray[1]:=oetTableTableRow; SetLength(AttsArray, 0); end; oetTableTableRow : begin Namespace:=onsTable; LocalName:='table-row'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableTableCell; ChildrenArray[1]:=oetTableCoveredTableCell; SetLength(AttsArray, 5); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTableNumberRowsRepeated; AttsArray[2]:=oatTableStyleName; AttsArray[3]:=oatTableDefaultCellStyleName; AttsArray[4]:=oatTableVisibility; end; oetTableTableCell : begin Namespace:=onsTable; LocalName:='table-cell'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableCellRangeSource; ChildrenArray[1]:=oetOfficeAnnotation; ChildrenArray[2]:=oetTableDetective; SetLength(AttsArray, 28); AttsArray[0]:=oatOfficeValueType; AttsArray[1]:=oatOfficeValue; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeCurrency; AttsArray[7]:=oatOfficeValueType; AttsArray[8]:=oatOfficeDateValue; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeTimeValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeBooleanValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeStringValue; AttsArray[15]:=oatXmlId; AttsArray[16]:=oatXhtmlAbout; AttsArray[17]:=oatXhtmlProperty; AttsArray[18]:=oatTableNumberColumnsRepeated; AttsArray[19]:=oatTableStyleName; AttsArray[20]:=oatTableContentValidationName; AttsArray[21]:=oatTableFormula; AttsArray[22]:=oatTableProtect; AttsArray[23]:=oatTableProtected; AttsArray[24]:=oatTableNumberColumnsSpanned; AttsArray[25]:=oatTableNumberRowsSpanned; AttsArray[26]:=oatTableNumberMatrixColumnsSpanned; AttsArray[27]:=oatTableNumberMatrixRowsSpanned; end; oetTableCellRangeSource : begin Namespace:=onsTable; LocalName:='cell-range-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableLastColumnSpanned; AttsArray[2]:=oatTableLastRowSpanned; AttsArray[3]:=oatXlinkType; AttsArray[4]:=oatXlinkHref; AttsArray[5]:=oatXlinkActuate; AttsArray[6]:=oatTableFilterName; AttsArray[7]:=oatTableFilterOptions; AttsArray[8]:=oatTableRefreshDelay; end; oetOfficeAnnotation : begin Namespace:=onsOffice; LocalName:='annotation'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetDcCreator; ChildrenArray[1]:=oetDcDate; ChildrenArray[2]:=oetMetaDateString; ChildrenArray[3]:=oetTextList; SetLength(AttsArray, 9); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeDisplay; AttsArray[2]:=oatDrawCaptionPointX; AttsArray[3]:=oatDrawCaptionPointY; AttsArray[4]:=oatDrawCornerRadius; AttsArray[5]:=oatSvgX; AttsArray[6]:=oatSvgY; AttsArray[7]:=oatSvgWidth; AttsArray[8]:=oatSvgHeight; end; oetMetaDateString : begin Namespace:=onsMeta; LocalName:='date-string'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTableDetective : begin Namespace:=onsTable; LocalName:='detective'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableHighlightedRange; ChildrenArray[1]:=oetTableOperation; SetLength(AttsArray, 0); end; oetTableHighlightedRange : begin Namespace:=onsTable; LocalName:='highlighted-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableCellRangeAddress; AttsArray[1]:=oatTableDirection; AttsArray[2]:=oatTableContainsError; AttsArray[3]:=oatTableMarkedInvalid; end; oetTableOperation : begin Namespace:=onsTable; LocalName:='operation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableIndex; end; oetTableCoveredTableCell : begin Namespace:=onsTable; LocalName:='covered-table-cell'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatTableNumberColumnsRepeated; AttsArray[1]:=oatTableStyleName; AttsArray[2]:=oatTableContentValidationName; AttsArray[3]:=oatTableFormula; AttsArray[4]:=oatTableProtect; AttsArray[5]:=oatTableProtected; end; oetTableTableHeaderRows : begin Namespace:=onsTable; LocalName:='table-header-rows'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextSoftPageBreak; ChildrenArray[1]:=oetTableTableRow; SetLength(AttsArray, 0); end; oetTableNamedExpressions : begin Namespace:=onsTable; LocalName:='named-expressions'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableNamedRange; ChildrenArray[1]:=oetTableNamedExpression; SetLength(AttsArray, 0); end; oetTableNamedRange : begin Namespace:=onsTable; LocalName:='named-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableCellRangeAddress; AttsArray[2]:=oatTableBaseCellAddress; AttsArray[3]:=oatTableRangeUsableAs; end; oetTableNamedExpression : begin Namespace:=onsTable; LocalName:='named-expression'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableExpression; AttsArray[2]:=oatTableBaseCellAddress; end; oetTextSection : begin Namespace:=onsText; LocalName:='section'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextSectionSource; ChildrenArray[1]:=oetOfficeDdeSource; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextStyleName; AttsArray[2]:=oatTextName; AttsArray[3]:=oatTextProtected; AttsArray[4]:=oatTextProtectionKey; AttsArray[5]:=oatTextProtectionKeyDigestAlgorithm; AttsArray[6]:=oatTextDisplay; AttsArray[7]:=oatTextDisplay; AttsArray[8]:=oatTextCondition; end; oetTextSectionSource : begin Namespace:=onsText; LocalName:='section-source'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatTextSectionName; AttsArray[4]:=oatTextFilterName; end; oetTextTableOfContent : begin Namespace:=onsText; LocalName:='table-of-content'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextTableOfContentSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextTableOfContentSource : begin Namespace:=onsText; LocalName:='table-of-content-source'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextTableOfContentEntryTemplate; ChildrenArray[2]:=oetTextIndexSourceStyles; SetLength(AttsArray, 6); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextUseOutlineLevel; AttsArray[2]:=oatTextUseIndexMarks; AttsArray[3]:=oatTextUseIndexSourceStyles; AttsArray[4]:=oatTextIndexScope; AttsArray[5]:=oatTextRelativeTabStopPosition; end; oetTextIndexTitleTemplate : begin Namespace:=onsText; LocalName:='index-title-template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextTableOfContentEntryTemplate : begin Namespace:=onsText; LocalName:='table-of-content-entry-template'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; ChildrenArray[5]:=oetTextIndexEntryLinkStart; ChildrenArray[6]:=oetTextIndexEntryLinkEnd; SetLength(AttsArray, 2); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextStyleName; end; oetTextIndexEntryChapter : begin Namespace:=onsText; LocalName:='index-entry-chapter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatTextOutlineLevel; end; oetTextIndexEntryPageNumber : begin Namespace:=onsText; LocalName:='index-entry-page-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntryText : begin Namespace:=onsText; LocalName:='index-entry-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntrySpan : begin Namespace:=onsText; LocalName:='index-entry-span'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntryTabStop : begin Namespace:=onsText; LocalName:='index-entry-tab-stop'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatStyleLeaderChar; AttsArray[2]:=oatStyleType; AttsArray[3]:=oatStyleType; AttsArray[4]:=oatStylePosition; end; oetTextIndexEntryLinkStart : begin Namespace:=onsText; LocalName:='index-entry-link-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexEntryLinkEnd : begin Namespace:=onsText; LocalName:='index-entry-link-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexSourceStyles : begin Namespace:=onsText; LocalName:='index-source-styles'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextIndexSourceStyle; SetLength(AttsArray, 1); AttsArray[0]:=oatTextOutlineLevel; end; oetTextIndexSourceStyle : begin Namespace:=onsText; LocalName:='index-source-style'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextIndexBody : begin Namespace:=onsText; LocalName:='index-body'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextIndexTitle; SetLength(AttsArray, 0); end; oetTextIndexTitle : begin Namespace:=onsText; LocalName:='index-title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextIllustrationIndex : begin Namespace:=onsText; LocalName:='illustration-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIllustrationIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextIllustrationIndexSource : begin Namespace:=onsText; LocalName:='illustration-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextIllustrationIndexEntryTemplate; SetLength(AttsArray, 5); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextUseCaption; AttsArray[3]:=oatTextCaptionSequenceName; AttsArray[4]:=oatTextCaptionSequenceFormat; end; oetTextIllustrationIndexEntryTemplate : begin Namespace:=onsText; LocalName:='illustration-index-entry-template'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextTableIndex : begin Namespace:=onsText; LocalName:='table-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextTableIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextTableIndexSource : begin Namespace:=onsText; LocalName:='table-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextTableIndexEntryTemplate; SetLength(AttsArray, 3); AttsArray[0]:=oatTextUseCaption; AttsArray[1]:=oatTextCaptionSequenceName; AttsArray[2]:=oatTextCaptionSequenceFormat; end; oetTextTableIndexEntryTemplate : begin Namespace:=onsText; LocalName:='table-index-entry-template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextObjectIndex : begin Namespace:=onsText; LocalName:='object-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextObjectIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextObjectIndexSource : begin Namespace:=onsText; LocalName:='object-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextObjectIndexEntryTemplate; SetLength(AttsArray, 7); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextUseSpreadsheetObjects; AttsArray[3]:=oatTextUseMathObjects; AttsArray[4]:=oatTextUseDrawObjects; AttsArray[5]:=oatTextUseChartObjects; AttsArray[6]:=oatTextUseOtherObjects; end; oetTextObjectIndexEntryTemplate : begin Namespace:=onsText; LocalName:='object-index-entry-template'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextUserIndex : begin Namespace:=onsText; LocalName:='user-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextUserIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextUserIndexSource : begin Namespace:=onsText; LocalName:='user-index-source'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextUserIndexEntryTemplate; ChildrenArray[2]:=oetTextIndexSourceStyles; SetLength(AttsArray, 10); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextUseIndexMarks; AttsArray[3]:=oatTextUseIndexSourceStyles; AttsArray[4]:=oatTextUseGraphics; AttsArray[5]:=oatTextUseTables; AttsArray[6]:=oatTextUseFloatingFrames; AttsArray[7]:=oatTextUseObjects; AttsArray[8]:=oatTextCopyOutlineLevels; AttsArray[9]:=oatTextIndexName; end; oetTextUserIndexEntryTemplate : begin Namespace:=onsText; LocalName:='user-index-entry-template'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; SetLength(AttsArray, 2); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextStyleName; end; oetTextAlphabeticalIndex : begin Namespace:=onsText; LocalName:='alphabetical-index'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextAlphabeticalIndexSource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextAlphabeticalIndexSource : begin Namespace:=onsText; LocalName:='alphabetical-index-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextAlphabeticalIndexEntryTemplate; SetLength(AttsArray, 16); AttsArray[0]:=oatTextIndexScope; AttsArray[1]:=oatTextRelativeTabStopPosition; AttsArray[2]:=oatTextIgnoreCase; AttsArray[3]:=oatTextMainEntryStyleName; AttsArray[4]:=oatTextAlphabeticalSeparators; AttsArray[5]:=oatTextCombineEntries; AttsArray[6]:=oatTextCombineEntriesWithDash; AttsArray[7]:=oatTextCombineEntriesWithPp; AttsArray[8]:=oatTextUseKeysAsEntries; AttsArray[9]:=oatTextCapitalizeEntries; AttsArray[10]:=oatTextCommaSeparated; AttsArray[11]:=oatFoLanguage; AttsArray[12]:=oatFoCountry; AttsArray[13]:=oatFoScript; AttsArray[14]:=oatStyleRfcLanguageTag; AttsArray[15]:=oatTextSortAlgorithm; end; oetTextAlphabeticalIndexEntryTemplate : begin Namespace:=onsText; LocalName:='alphabetical-index-entry-template'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextIndexEntryChapter; ChildrenArray[1]:=oetTextIndexEntryPageNumber; ChildrenArray[2]:=oetTextIndexEntryText; ChildrenArray[3]:=oetTextIndexEntrySpan; ChildrenArray[4]:=oetTextIndexEntryTabStop; SetLength(AttsArray, 2); AttsArray[0]:=oatTextOutlineLevel; AttsArray[1]:=oatTextStyleName; end; oetTextBibliography : begin Namespace:=onsText; LocalName:='bibliography'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextBibliographySource; ChildrenArray[1]:=oetTextIndexBody; SetLength(AttsArray, 5); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextName; AttsArray[2]:=oatTextProtected; AttsArray[3]:=oatTextProtectionKey; AttsArray[4]:=oatTextProtectionKeyDigestAlgorithm; end; oetTextBibliographySource : begin Namespace:=onsText; LocalName:='bibliography-source'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextIndexTitleTemplate; ChildrenArray[1]:=oetTextBibliographyEntryTemplate; SetLength(AttsArray, 0); end; oetTextBibliographyEntryTemplate : begin Namespace:=onsText; LocalName:='bibliography-entry-template'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextIndexEntrySpan; ChildrenArray[1]:=oetTextIndexEntryTabStop; ChildrenArray[2]:=oetTextIndexEntryBibliography; SetLength(AttsArray, 2); AttsArray[0]:=oatTextBibliographyType; AttsArray[1]:=oatTextStyleName; end; oetTextIndexEntryBibliography : begin Namespace:=onsText; LocalName:='index-entry-bibliography'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextStyleName; AttsArray[1]:=oatTextBibliographyDataField; end; oetTextChange : begin Namespace:=onsText; LocalName:='change'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextChangeId; end; oetTextChangeStart : begin Namespace:=onsText; LocalName:='change-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextChangeId; end; oetTextChangeEnd : begin Namespace:=onsText; LocalName:='change-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextChangeId; end; oetTextRuby : begin Namespace:=onsText; LocalName:='ruby'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTextRubyBase; ChildrenArray[1]:=oetTextRubyText; SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetTextRubyBase : begin Namespace:=onsText; LocalName:='ruby-base'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextRubyText : begin Namespace:=onsText; LocalName:='ruby-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextStyleName; end; oetOfficeAnnotationEnd : begin Namespace:=onsOffice; LocalName:='annotation-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatOfficeName; end; oetTextDate : begin Namespace:=onsText; LocalName:='date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; AttsArray[3]:=oatTextDateAdjust; end; oetTextTime : begin Namespace:=onsText; LocalName:='time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; AttsArray[3]:=oatTextTimeAdjust; end; oetTextPageNumber : begin Namespace:=onsText; LocalName:='page-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatTextFixed; AttsArray[3]:=oatTextPageAdjust; AttsArray[4]:=oatTextSelectPage; end; oetTextPageContinuation : begin Namespace:=onsText; LocalName:='page-continuation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextSelectPage; AttsArray[1]:=oatTextStringValue; end; oetTextSenderFirstname : begin Namespace:=onsText; LocalName:='sender-firstname'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderLastname : begin Namespace:=onsText; LocalName:='sender-lastname'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderInitials : begin Namespace:=onsText; LocalName:='sender-initials'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderTitle : begin Namespace:=onsText; LocalName:='sender-title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPosition : begin Namespace:=onsText; LocalName:='sender-position'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderEmail : begin Namespace:=onsText; LocalName:='sender-email'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPhonePrivate : begin Namespace:=onsText; LocalName:='sender-phone-private'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderFax : begin Namespace:=onsText; LocalName:='sender-fax'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderCompany : begin Namespace:=onsText; LocalName:='sender-company'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPhoneWork : begin Namespace:=onsText; LocalName:='sender-phone-work'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderStreet : begin Namespace:=onsText; LocalName:='sender-street'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderCity : begin Namespace:=onsText; LocalName:='sender-city'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderPostalCode : begin Namespace:=onsText; LocalName:='sender-postal-code'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderCountry : begin Namespace:=onsText; LocalName:='sender-country'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSenderStateOrProvince : begin Namespace:=onsText; LocalName:='sender-state-or-province'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextAuthorName : begin Namespace:=onsText; LocalName:='author-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextAuthorInitials : begin Namespace:=onsText; LocalName:='author-initials'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextChapter : begin Namespace:=onsText; LocalName:='chapter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextDisplay; AttsArray[1]:=oatTextOutlineLevel; end; oetTextFileName : begin Namespace:=onsText; LocalName:='file-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatTextDisplay; end; oetTextTemplateName : begin Namespace:=onsText; LocalName:='template-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextDisplay; end; oetTextSheetName : begin Namespace:=onsText; LocalName:='sheet-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextVariableSet : begin Namespace:=onsText; LocalName:='variable-set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 19); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextFormula; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValue; AttsArray[8]:=oatOfficeCurrency; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeDateValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeTimeValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeBooleanValue; AttsArray[15]:=oatOfficeValueType; AttsArray[16]:=oatOfficeStringValue; AttsArray[17]:=oatTextDisplay; AttsArray[18]:=oatStyleDataStyleName; end; oetTextVariableGet : begin Namespace:=onsText; LocalName:='variable-get'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatStyleDataStyleName; end; oetTextVariableInput : begin Namespace:=onsText; LocalName:='variable-input'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDescription; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatTextDisplay; AttsArray[4]:=oatStyleDataStyleName; end; oetTextUserFieldGet : begin Namespace:=onsText; LocalName:='user-field-get'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatStyleDataStyleName; end; oetTextUserFieldInput : begin Namespace:=onsText; LocalName:='user-field-input'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDescription; AttsArray[2]:=oatStyleDataStyleName; end; oetTextSequence : begin Namespace:=onsText; LocalName:='sequence'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextFormula; AttsArray[2]:=oatTextRefName; end; oetTextExpression : begin Namespace:=onsText; LocalName:='expression'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 18); AttsArray[0]:=oatTextFormula; AttsArray[1]:=oatOfficeValueType; AttsArray[2]:=oatOfficeValue; AttsArray[3]:=oatOfficeValueType; AttsArray[4]:=oatOfficeValue; AttsArray[5]:=oatOfficeValueType; AttsArray[6]:=oatOfficeValue; AttsArray[7]:=oatOfficeCurrency; AttsArray[8]:=oatOfficeValueType; AttsArray[9]:=oatOfficeDateValue; AttsArray[10]:=oatOfficeValueType; AttsArray[11]:=oatOfficeTimeValue; AttsArray[12]:=oatOfficeValueType; AttsArray[13]:=oatOfficeBooleanValue; AttsArray[14]:=oatOfficeValueType; AttsArray[15]:=oatOfficeStringValue; AttsArray[16]:=oatTextDisplay; AttsArray[17]:=oatStyleDataStyleName; end; oetTextTextInput : begin Namespace:=onsText; LocalName:='text-input'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextDescription; end; oetTextInitialCreator : begin Namespace:=onsText; LocalName:='initial-creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextCreationDate : begin Namespace:=onsText; LocalName:='creation-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; end; oetTextCreationTime : begin Namespace:=onsText; LocalName:='creation-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; end; oetTextDescription : begin Namespace:=onsText; LocalName:='description'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextUserDefined : begin Namespace:=onsText; LocalName:='user-defined'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatTextName; AttsArray[2]:=oatStyleDataStyleName; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeDateValue; AttsArray[5]:=oatOfficeTimeValue; AttsArray[6]:=oatOfficeBooleanValue; AttsArray[7]:=oatOfficeStringValue; end; oetTextPrintTime : begin Namespace:=onsText; LocalName:='print-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; end; oetTextPrintDate : begin Namespace:=onsText; LocalName:='print-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; end; oetTextPrintedBy : begin Namespace:=onsText; LocalName:='printed-by'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextTitle : begin Namespace:=onsText; LocalName:='title'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextSubject : begin Namespace:=onsText; LocalName:='subject'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextKeywords : begin Namespace:=onsText; LocalName:='keywords'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextEditingCycles : begin Namespace:=onsText; LocalName:='editing-cycles'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextEditingDuration : begin Namespace:=onsText; LocalName:='editing-duration'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDuration; end; oetTextModificationTime : begin Namespace:=onsText; LocalName:='modification-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextTimeValue; end; oetTextModificationDate : begin Namespace:=onsText; LocalName:='modification-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFixed; AttsArray[1]:=oatStyleDataStyleName; AttsArray[2]:=oatTextDateValue; end; oetTextCreator : begin Namespace:=onsText; LocalName:='creator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextFixed; end; oetTextDatabaseDisplay : begin Namespace:=onsText; LocalName:='database-display'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetFormConnectionResource; SetLength(AttsArray, 5); AttsArray[0]:=oatTextTableName; AttsArray[1]:=oatTextTableType; AttsArray[2]:=oatTextDatabaseName; AttsArray[3]:=oatStyleDataStyleName; AttsArray[4]:=oatTextColumnName; end; oetTextDatabaseNext : begin Namespace:=onsText; LocalName:='database-next'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextCondition; end; oetTextDatabaseRowSelect : begin Namespace:=onsText; LocalName:='database-row-select'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextRowNumber; end; oetTextDatabaseRowNumber : begin Namespace:=onsText; LocalName:='database-row-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextValue; end; oetTextDatabaseName : begin Namespace:=onsText; LocalName:='database-name'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextPageVariableSet : begin Namespace:=onsText; LocalName:='page-variable-set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextActive; AttsArray[1]:=oatTextPageAdjust; end; oetTextPageVariableGet : begin Namespace:=onsText; LocalName:='page-variable-get'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextPlaceholder : begin Namespace:=onsText; LocalName:='placeholder'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextDescription; AttsArray[1]:=oatTextPlaceholderType; end; oetTextConditionalText : begin Namespace:=onsText; LocalName:='conditional-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextStringValueIfTrue; AttsArray[2]:=oatTextStringValueIfFalse; AttsArray[3]:=oatTextCurrentValue; end; oetTextHiddenText : begin Namespace:=onsText; LocalName:='hidden-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextStringValue; AttsArray[2]:=oatTextIsHidden; end; oetTextNoteRef : begin Namespace:=onsText; LocalName:='note-ref'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextRefName; AttsArray[1]:=oatTextNoteClass; AttsArray[2]:=oatTextReferenceFormat; end; oetTextSequenceRef : begin Namespace:=onsText; LocalName:='sequence-ref'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextRefName; AttsArray[1]:=oatTextReferenceFormat; end; oetTextScript : begin Namespace:=onsText; LocalName:='script'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatScriptLanguage; end; oetTextExecuteMacro : begin Namespace:=onsText; LocalName:='execute-macro'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeEventListeners; SetLength(AttsArray, 1); AttsArray[0]:=oatTextName; end; oetTextHiddenParagraph : begin Namespace:=onsText; LocalName:='hidden-paragraph'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextCondition; AttsArray[1]:=oatTextIsHidden; end; oetTextDdeConnection : begin Namespace:=onsText; LocalName:='dde-connection'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextConnectionName; end; oetTextMeasure : begin Namespace:=onsText; LocalName:='measure'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextKind; end; oetTextTableFormula : begin Namespace:=onsText; LocalName:='table-formula'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextFormula; AttsArray[1]:=oatTextDisplay; AttsArray[2]:=oatStyleDataStyleName; end; oetTextMetaField : begin Namespace:=onsText; LocalName:='meta-field'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatStyleDataStyleName; end; oetTextTocMarkStart : begin Namespace:=onsText; LocalName:='toc-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextId; AttsArray[1]:=oatTextOutlineLevel; end; oetTextTocMarkEnd : begin Namespace:=onsText; LocalName:='toc-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextId; end; oetTextTocMark : begin Namespace:=onsText; LocalName:='toc-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextStringValue; AttsArray[1]:=oatTextOutlineLevel; end; oetTextUserIndexMarkStart : begin Namespace:=onsText; LocalName:='user-index-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextId; AttsArray[1]:=oatTextOutlineLevel; AttsArray[2]:=oatTextIndexName; end; oetTextUserIndexMarkEnd : begin Namespace:=onsText; LocalName:='user-index-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextId; end; oetTextUserIndexMark : begin Namespace:=onsText; LocalName:='user-index-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextStringValue; AttsArray[1]:=oatTextOutlineLevel; AttsArray[2]:=oatTextIndexName; end; oetTextAlphabeticalIndexMarkStart : begin Namespace:=onsText; LocalName:='alphabetical-index-mark-start'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 7); AttsArray[0]:=oatTextId; AttsArray[1]:=oatTextKey1; AttsArray[2]:=oatTextKey2; AttsArray[3]:=oatTextStringValuePhonetic; AttsArray[4]:=oatTextKey1Phonetic; AttsArray[5]:=oatTextKey2Phonetic; AttsArray[6]:=oatTextMainEntry; end; oetTextAlphabeticalIndexMarkEnd : begin Namespace:=onsText; LocalName:='alphabetical-index-mark-end'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextId; end; oetTextAlphabeticalIndexMark : begin Namespace:=onsText; LocalName:='alphabetical-index-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 7); AttsArray[0]:=oatTextStringValue; AttsArray[1]:=oatTextKey1; AttsArray[2]:=oatTextKey2; AttsArray[3]:=oatTextStringValuePhonetic; AttsArray[4]:=oatTextKey1Phonetic; AttsArray[5]:=oatTextKey2Phonetic; AttsArray[6]:=oatTextMainEntry; end; oetTextBibliographyMark : begin Namespace:=onsText; LocalName:='bibliography-mark'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextBibliographyType; end; oetPresentationHeader : begin Namespace:=onsPresentation; LocalName:='header'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetPresentationFooter : begin Namespace:=onsPresentation; LocalName:='footer'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetPresentationDateTime : begin Namespace:=onsPresentation; LocalName:='date-time'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetTextA : begin Namespace:=onsText; LocalName:='a'; SetLength(ChildrenArray, 92); ChildrenArray[0]:=oetOfficeEventListeners; ChildrenArray[1]:=oetTextS; ChildrenArray[2]:=oetTextTab; ChildrenArray[3]:=oetTextLineBreak; ChildrenArray[4]:=oetTextSpan; ChildrenArray[5]:=oetTextMeta; ChildrenArray[6]:=oetTextReferenceMark; ChildrenArray[7]:=oetTextReferenceMarkStart; ChildrenArray[8]:=oetTextReferenceMarkEnd; ChildrenArray[9]:=oetTextNote; ChildrenArray[10]:=oetTextRuby; ChildrenArray[11]:=oetTextDate; ChildrenArray[12]:=oetTextTime; ChildrenArray[13]:=oetTextPageNumber; ChildrenArray[14]:=oetTextPageContinuation; ChildrenArray[15]:=oetTextSenderFirstname; ChildrenArray[16]:=oetTextSenderLastname; ChildrenArray[17]:=oetTextSenderInitials; ChildrenArray[18]:=oetTextSenderTitle; ChildrenArray[19]:=oetTextSenderPosition; ChildrenArray[20]:=oetTextSenderEmail; ChildrenArray[21]:=oetTextSenderPhonePrivate; ChildrenArray[22]:=oetTextSenderFax; ChildrenArray[23]:=oetTextSenderCompany; ChildrenArray[24]:=oetTextSenderPhoneWork; ChildrenArray[25]:=oetTextSenderStreet; ChildrenArray[26]:=oetTextSenderCity; ChildrenArray[27]:=oetTextSenderPostalCode; ChildrenArray[28]:=oetTextSenderCountry; ChildrenArray[29]:=oetTextSenderStateOrProvince; ChildrenArray[30]:=oetTextAuthorName; ChildrenArray[31]:=oetTextAuthorInitials; ChildrenArray[32]:=oetTextChapter; ChildrenArray[33]:=oetTextFileName; ChildrenArray[34]:=oetTextTemplateName; ChildrenArray[35]:=oetTextSheetName; ChildrenArray[36]:=oetTextVariableSet; ChildrenArray[37]:=oetTextVariableGet; ChildrenArray[38]:=oetTextVariableInput; ChildrenArray[39]:=oetTextUserFieldGet; ChildrenArray[40]:=oetTextUserFieldInput; ChildrenArray[41]:=oetTextSequence; ChildrenArray[42]:=oetTextExpression; ChildrenArray[43]:=oetTextTextInput; ChildrenArray[44]:=oetTextInitialCreator; ChildrenArray[45]:=oetTextCreationDate; ChildrenArray[46]:=oetTextCreationTime; ChildrenArray[47]:=oetTextDescription; ChildrenArray[48]:=oetTextUserDefined; ChildrenArray[49]:=oetTextPrintTime; ChildrenArray[50]:=oetTextPrintDate; ChildrenArray[51]:=oetTextPrintedBy; ChildrenArray[52]:=oetTextTitle; ChildrenArray[53]:=oetTextSubject; ChildrenArray[54]:=oetTextKeywords; ChildrenArray[55]:=oetTextEditingCycles; ChildrenArray[56]:=oetTextEditingDuration; ChildrenArray[57]:=oetTextModificationTime; ChildrenArray[58]:=oetTextModificationDate; ChildrenArray[59]:=oetTextCreator; ChildrenArray[60]:=oetTextDatabaseDisplay; ChildrenArray[61]:=oetTextDatabaseNext; ChildrenArray[62]:=oetTextDatabaseRowSelect; ChildrenArray[63]:=oetTextDatabaseRowNumber; ChildrenArray[64]:=oetTextDatabaseName; ChildrenArray[65]:=oetTextPageVariableSet; ChildrenArray[66]:=oetTextPageVariableGet; ChildrenArray[67]:=oetTextPlaceholder; ChildrenArray[68]:=oetTextConditionalText; ChildrenArray[69]:=oetTextHiddenText; ChildrenArray[70]:=oetTextNoteRef; ChildrenArray[71]:=oetTextSequenceRef; ChildrenArray[72]:=oetTextScript; ChildrenArray[73]:=oetTextExecuteMacro; ChildrenArray[74]:=oetTextHiddenParagraph; ChildrenArray[75]:=oetTextDdeConnection; ChildrenArray[76]:=oetTextMeasure; ChildrenArray[77]:=oetTextTableFormula; ChildrenArray[78]:=oetTextMetaField; ChildrenArray[79]:=oetTextTocMarkStart; ChildrenArray[80]:=oetTextTocMarkEnd; ChildrenArray[81]:=oetTextTocMark; ChildrenArray[82]:=oetTextUserIndexMarkStart; ChildrenArray[83]:=oetTextUserIndexMarkEnd; ChildrenArray[84]:=oetTextUserIndexMark; ChildrenArray[85]:=oetTextAlphabeticalIndexMarkStart; ChildrenArray[86]:=oetTextAlphabeticalIndexMarkEnd; ChildrenArray[87]:=oetTextAlphabeticalIndexMark; ChildrenArray[88]:=oetTextBibliographyMark; ChildrenArray[89]:=oetPresentationHeader; ChildrenArray[90]:=oetPresentationFooter; ChildrenArray[91]:=oetPresentationDateTime; SetLength(AttsArray, 9); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeTitle; AttsArray[2]:=oatXlinkType; AttsArray[3]:=oatXlinkHref; AttsArray[4]:=oatXlinkActuate; AttsArray[5]:=oatOfficeTargetFrameName; AttsArray[6]:=oatXlinkShow; AttsArray[7]:=oatTextStyleName; AttsArray[8]:=oatTextVisitedStyleName; end; oetStyleMap : begin Namespace:=onsStyle; LocalName:='map'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatStyleCondition; AttsArray[1]:=oatStyleApplyStyleName; AttsArray[2]:=oatStyleBaseCellAddress; end; oetNumberNumberStyle : begin Namespace:=onsNumber; LocalName:='number-style'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberNumber; ChildrenArray[3]:=oetNumberScientificNumber; ChildrenArray[4]:=oetNumberFraction; ChildrenArray[5]:=oetNumberText; ChildrenArray[6]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberText : begin Namespace:=onsNumber; LocalName:='text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetNumberNumber : begin Namespace:=onsNumber; LocalName:='number'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetNumberEmbeddedText; SetLength(AttsArray, 5); AttsArray[0]:=oatNumberDecimalReplacement; AttsArray[1]:=oatNumberDisplayFactor; AttsArray[2]:=oatNumberDecimalPlaces; AttsArray[3]:=oatNumberMinIntegerDigits; AttsArray[4]:=oatNumberGrouping; end; oetNumberEmbeddedText : begin Namespace:=onsNumber; LocalName:='embedded-text'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberPosition; end; oetNumberScientificNumber : begin Namespace:=onsNumber; LocalName:='scientific-number'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatNumberMinExponentDigits; AttsArray[1]:=oatNumberDecimalPlaces; AttsArray[2]:=oatNumberMinIntegerDigits; AttsArray[3]:=oatNumberGrouping; end; oetNumberFraction : begin Namespace:=onsNumber; LocalName:='fraction'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatNumberMinNumeratorDigits; AttsArray[1]:=oatNumberMinDenominatorDigits; AttsArray[2]:=oatNumberDenominatorValue; AttsArray[3]:=oatNumberMinIntegerDigits; AttsArray[4]:=oatNumberGrouping; end; oetNumberCurrencyStyle : begin Namespace:=onsNumber; LocalName:='currency-style'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberNumber; ChildrenArray[3]:=oetNumberText; ChildrenArray[4]:=oetNumberCurrencySymbol; ChildrenArray[5]:=oetNumberText; ChildrenArray[6]:=oetStyleMap; SetLength(AttsArray, 13); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; AttsArray[12]:=oatNumberAutomaticOrder; end; oetNumberCurrencySymbol : begin Namespace:=onsNumber; LocalName:='currency-symbol'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatNumberLanguage; AttsArray[1]:=oatNumberCountry; AttsArray[2]:=oatNumberScript; AttsArray[3]:=oatNumberRfcLanguageTag; end; oetNumberPercentageStyle : begin Namespace:=onsNumber; LocalName:='percentage-style'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberDateStyle : begin Namespace:=onsNumber; LocalName:='date-style'; SetLength(ChildrenArray, 15); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberDay; ChildrenArray[3]:=oetNumberMonth; ChildrenArray[4]:=oetNumberYear; ChildrenArray[5]:=oetNumberEra; ChildrenArray[6]:=oetNumberDayOfWeek; ChildrenArray[7]:=oetNumberWeekOfYear; ChildrenArray[8]:=oetNumberQuarter; ChildrenArray[9]:=oetNumberHours; ChildrenArray[10]:=oetNumberAmPm; ChildrenArray[11]:=oetNumberMinutes; ChildrenArray[12]:=oetNumberSeconds; ChildrenArray[13]:=oetNumberText; ChildrenArray[14]:=oetStyleMap; SetLength(AttsArray, 14); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; AttsArray[12]:=oatNumberAutomaticOrder; AttsArray[13]:=oatNumberFormatSource; end; oetNumberDay : begin Namespace:=onsNumber; LocalName:='day'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberMonth : begin Namespace:=onsNumber; LocalName:='month'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatNumberTextual; AttsArray[1]:=oatNumberPossessiveForm; AttsArray[2]:=oatNumberStyle; AttsArray[3]:=oatNumberCalendar; end; oetNumberYear : begin Namespace:=onsNumber; LocalName:='year'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberEra : begin Namespace:=onsNumber; LocalName:='era'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberDayOfWeek : begin Namespace:=onsNumber; LocalName:='day-of-week'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberWeekOfYear : begin Namespace:=onsNumber; LocalName:='week-of-year'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberCalendar; end; oetNumberQuarter : begin Namespace:=onsNumber; LocalName:='quarter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberCalendar; end; oetNumberHours : begin Namespace:=onsNumber; LocalName:='hours'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberStyle; end; oetNumberAmPm : begin Namespace:=onsNumber; LocalName:='am-pm'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetNumberMinutes : begin Namespace:=onsNumber; LocalName:='minutes'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatNumberStyle; end; oetNumberSeconds : begin Namespace:=onsNumber; LocalName:='seconds'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatNumberStyle; AttsArray[1]:=oatNumberDecimalPlaces; end; oetNumberTimeStyle : begin Namespace:=onsNumber; LocalName:='time-style'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberHours; ChildrenArray[3]:=oetNumberAmPm; ChildrenArray[4]:=oetNumberMinutes; ChildrenArray[5]:=oetNumberSeconds; ChildrenArray[6]:=oetNumberText; ChildrenArray[7]:=oetStyleMap; SetLength(AttsArray, 14); AttsArray[0]:=oatNumberTruncateOnOverflow; AttsArray[1]:=oatStyleName; AttsArray[2]:=oatStyleDisplayName; AttsArray[3]:=oatNumberLanguage; AttsArray[4]:=oatNumberCountry; AttsArray[5]:=oatNumberScript; AttsArray[6]:=oatNumberRfcLanguageTag; AttsArray[7]:=oatNumberTitle; AttsArray[8]:=oatStyleVolatile; AttsArray[9]:=oatNumberTransliterationFormat; AttsArray[10]:=oatNumberTransliterationLanguage; AttsArray[11]:=oatNumberTransliterationCountry; AttsArray[12]:=oatNumberTransliterationStyle; AttsArray[13]:=oatNumberFormatSource; end; oetNumberBooleanStyle : begin Namespace:=onsNumber; LocalName:='boolean-style'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberBoolean; ChildrenArray[3]:=oetNumberText; ChildrenArray[4]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberBoolean : begin Namespace:=onsNumber; LocalName:='boolean'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetNumberTextStyle : begin Namespace:=onsNumber; LocalName:='text-style'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetStyleTextProperties; ChildrenArray[1]:=oetNumberText; ChildrenArray[2]:=oetNumberTextContent; ChildrenArray[3]:=oetNumberText; ChildrenArray[4]:=oetStyleMap; SetLength(AttsArray, 12); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatNumberLanguage; AttsArray[3]:=oatNumberCountry; AttsArray[4]:=oatNumberScript; AttsArray[5]:=oatNumberRfcLanguageTag; AttsArray[6]:=oatNumberTitle; AttsArray[7]:=oatStyleVolatile; AttsArray[8]:=oatNumberTransliterationFormat; AttsArray[9]:=oatNumberTransliterationLanguage; AttsArray[10]:=oatNumberTransliterationCountry; AttsArray[11]:=oatNumberTransliterationStyle; end; oetNumberTextContent : begin Namespace:=onsNumber; LocalName:='text-content'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleDefaultStyle : begin Namespace:=onsStyle; LocalName:='default-style'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 11); AttsArray[0]:=oatStyleFamily; AttsArray[1]:=oatStyleFamily; AttsArray[2]:=oatStyleFamily; AttsArray[3]:=oatStyleFamily; AttsArray[4]:=oatStyleFamily; AttsArray[5]:=oatStyleFamily; AttsArray[6]:=oatStyleFamily; AttsArray[7]:=oatStyleFamily; AttsArray[8]:=oatStyleFamily; AttsArray[9]:=oatStyleFamily; AttsArray[10]:=oatStyleFamily; end; oetStyleDefaultPageLayout : begin Namespace:=onsStyle; LocalName:='default-page-layout'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStylePageLayoutProperties; ChildrenArray[1]:=oetStyleHeaderStyle; ChildrenArray[2]:=oetStyleFooterStyle; SetLength(AttsArray, 0); end; oetStylePageLayoutProperties : begin Namespace:=onsStyle; LocalName:='page-layout-properties'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleBackgroundImage; ChildrenArray[1]:=oetStyleColumns; ChildrenArray[2]:=oetStyleFootnoteSep; SetLength(AttsArray, 50); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatStyleNumPrefix; AttsArray[3]:=oatStyleNumSuffix; AttsArray[4]:=oatFoMarginLeft; AttsArray[5]:=oatFoMarginRight; AttsArray[6]:=oatFoMarginTop; AttsArray[7]:=oatFoMarginBottom; AttsArray[8]:=oatFoMargin; AttsArray[9]:=oatFoBorder; AttsArray[10]:=oatFoBorderTop; AttsArray[11]:=oatFoBorderBottom; AttsArray[12]:=oatFoBorderLeft; AttsArray[13]:=oatFoBorderRight; AttsArray[14]:=oatStyleBorderLineWidth; AttsArray[15]:=oatStyleBorderLineWidthTop; AttsArray[16]:=oatStyleBorderLineWidthBottom; AttsArray[17]:=oatStyleBorderLineWidthLeft; AttsArray[18]:=oatStyleBorderLineWidthRight; AttsArray[19]:=oatFoPadding; AttsArray[20]:=oatFoPaddingTop; AttsArray[21]:=oatFoPaddingBottom; AttsArray[22]:=oatFoPaddingLeft; AttsArray[23]:=oatFoPaddingRight; AttsArray[24]:=oatStyleShadow; AttsArray[25]:=oatFoBackgroundColor; AttsArray[26]:=oatStyleWritingMode; AttsArray[27]:=oatFoPageWidth; AttsArray[28]:=oatFoPageHeight; AttsArray[29]:=oatStylePaperTrayName; AttsArray[30]:=oatStylePrintOrientation; AttsArray[31]:=oatStyleRegisterTruthRefStyleName; AttsArray[32]:=oatStylePrint; AttsArray[33]:=oatStylePrintPageOrder; AttsArray[34]:=oatStyleFirstPageNumber; AttsArray[35]:=oatStyleScaleTo; AttsArray[36]:=oatStyleScaleToPages; AttsArray[37]:=oatStyleTableCentering; AttsArray[38]:=oatStyleFootnoteMaxHeight; AttsArray[39]:=oatStyleLayoutGridMode; AttsArray[40]:=oatStyleLayoutGridStandardMode; AttsArray[41]:=oatStyleLayoutGridBaseHeight; AttsArray[42]:=oatStyleLayoutGridRubyHeight; AttsArray[43]:=oatStyleLayoutGridLines; AttsArray[44]:=oatStyleLayoutGridBaseWidth; AttsArray[45]:=oatStyleLayoutGridColor; AttsArray[46]:=oatStyleLayoutGridRubyBelow; AttsArray[47]:=oatStyleLayoutGridPrint; AttsArray[48]:=oatStyleLayoutGridDisplay; AttsArray[49]:=oatStyleLayoutGridSnapTo; end; oetStyleFootnoteSep : begin Namespace:=onsStyle; LocalName:='footnote-sep'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 7); AttsArray[0]:=oatStyleWidth; AttsArray[1]:=oatStyleRelWidth; AttsArray[2]:=oatStyleColor; AttsArray[3]:=oatStyleLineStyle; AttsArray[4]:=oatStyleAdjustment; AttsArray[5]:=oatStyleDistanceBeforeSep; AttsArray[6]:=oatStyleDistanceAfterSep; end; oetStyleHeaderStyle : begin Namespace:=onsStyle; LocalName:='header-style'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleHeaderFooterProperties; SetLength(AttsArray, 0); end; oetStyleHeaderFooterProperties : begin Namespace:=onsStyle; LocalName:='header-footer-properties'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleBackgroundImage; SetLength(AttsArray, 25); AttsArray[0]:=oatFoMarginLeft; AttsArray[1]:=oatFoMarginRight; AttsArray[2]:=oatFoMarginTop; AttsArray[3]:=oatFoMarginBottom; AttsArray[4]:=oatFoMargin; AttsArray[5]:=oatFoBorder; AttsArray[6]:=oatFoBorderTop; AttsArray[7]:=oatFoBorderBottom; AttsArray[8]:=oatFoBorderLeft; AttsArray[9]:=oatFoBorderRight; AttsArray[10]:=oatStyleBorderLineWidth; AttsArray[11]:=oatStyleBorderLineWidthTop; AttsArray[12]:=oatStyleBorderLineWidthBottom; AttsArray[13]:=oatStyleBorderLineWidthLeft; AttsArray[14]:=oatStyleBorderLineWidthRight; AttsArray[15]:=oatFoPadding; AttsArray[16]:=oatFoPaddingTop; AttsArray[17]:=oatFoPaddingBottom; AttsArray[18]:=oatFoPaddingLeft; AttsArray[19]:=oatFoPaddingRight; AttsArray[20]:=oatFoBackgroundColor; AttsArray[21]:=oatStyleShadow; AttsArray[22]:=oatSvgHeight; AttsArray[23]:=oatFoMinHeight; AttsArray[24]:=oatStyleDynamicSpacing; end; oetStyleFooterStyle : begin Namespace:=onsStyle; LocalName:='footer-style'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStyleHeaderFooterProperties; SetLength(AttsArray, 0); end; oetTextOutlineStyle : begin Namespace:=onsText; LocalName:='outline-style'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextOutlineLevelStyle; SetLength(AttsArray, 1); AttsArray[0]:=oatStyleName; end; oetTextOutlineLevelStyle : begin Namespace:=onsText; LocalName:='outline-level-style'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetStyleListLevelProperties; ChildrenArray[1]:=oetStyleTextProperties; SetLength(AttsArray, 8); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatStyleNumPrefix; AttsArray[3]:=oatStyleNumSuffix; AttsArray[4]:=oatTextLevel; AttsArray[5]:=oatTextStyleName; AttsArray[6]:=oatTextDisplayLevels; AttsArray[7]:=oatTextStartValue; end; oetTextBibliographyConfiguration : begin Namespace:=onsText; LocalName:='bibliography-configuration'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextSortKey; SetLength(AttsArray, 9); AttsArray[0]:=oatTextPrefix; AttsArray[1]:=oatTextSuffix; AttsArray[2]:=oatTextNumberedEntries; AttsArray[3]:=oatTextSortByPosition; AttsArray[4]:=oatFoLanguage; AttsArray[5]:=oatFoCountry; AttsArray[6]:=oatFoScript; AttsArray[7]:=oatStyleRfcLanguageTag; AttsArray[8]:=oatTextSortAlgorithm; end; oetTextSortKey : begin Namespace:=onsText; LocalName:='sort-key'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextKey; AttsArray[1]:=oatTextSortAscending; end; oetTextLinenumberingConfiguration : begin Namespace:=onsText; LocalName:='linenumbering-configuration'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextLinenumberingSeparator; SetLength(AttsArray, 10); AttsArray[0]:=oatStyleNumFormat; AttsArray[1]:=oatStyleNumFormat; AttsArray[2]:=oatTextNumberLines; AttsArray[3]:=oatTextStyleName; AttsArray[4]:=oatTextIncrement; AttsArray[5]:=oatTextNumberPosition; AttsArray[6]:=oatTextOffset; AttsArray[7]:=oatTextCountEmptyLines; AttsArray[8]:=oatTextCountInTextBoxes; AttsArray[9]:=oatTextRestartOnPage; end; oetTextLinenumberingSeparator : begin Namespace:=onsText; LocalName:='linenumbering-separator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextIncrement; end; oetDrawGradient : begin Namespace:=onsDraw; LocalName:='gradient'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 11); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawCx; AttsArray[4]:=oatDrawCy; AttsArray[5]:=oatDrawAngle; AttsArray[6]:=oatDrawBorder; AttsArray[7]:=oatDrawStartColor; AttsArray[8]:=oatDrawEndColor; AttsArray[9]:=oatDrawStartIntensity; AttsArray[10]:=oatDrawEndIntensity; end; oetSvgLineargradient : begin Namespace:=onsSvg; LocalName:='linearGradient'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetSvgStop; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgGradientunits; AttsArray[1]:=oatSvgGradienttransform; AttsArray[2]:=oatSvgSpreadmethod; AttsArray[3]:=oatDrawName; AttsArray[4]:=oatDrawDisplayName; AttsArray[5]:=oatSvgX1; AttsArray[6]:=oatSvgY1; AttsArray[7]:=oatSvgX2; AttsArray[8]:=oatSvgY2; end; oetSvgStop : begin Namespace:=onsSvg; LocalName:='stop'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatSvgOffset; AttsArray[1]:=oatSvgStopColor; AttsArray[2]:=oatSvgStopOpacity; end; oetSvgRadialgradient : begin Namespace:=onsSvg; LocalName:='radialGradient'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetSvgStop; SetLength(AttsArray, 10); AttsArray[0]:=oatSvgGradientunits; AttsArray[1]:=oatSvgGradienttransform; AttsArray[2]:=oatSvgSpreadmethod; AttsArray[3]:=oatDrawName; AttsArray[4]:=oatDrawDisplayName; AttsArray[5]:=oatSvgCx; AttsArray[6]:=oatSvgCy; AttsArray[7]:=oatSvgR; AttsArray[8]:=oatSvgFx; AttsArray[9]:=oatSvgFy; end; oetDrawHatch : begin Namespace:=onsDraw; LocalName:='hatch'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawColor; AttsArray[4]:=oatDrawDistance; AttsArray[5]:=oatDrawRotation; end; oetDrawFillImage : begin Namespace:=onsDraw; LocalName:='fill-image'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatSvgWidth; AttsArray[3]:=oatSvgHeight; AttsArray[4]:=oatXlinkType; AttsArray[5]:=oatXlinkHref; AttsArray[6]:=oatXlinkShow; AttsArray[7]:=oatXlinkActuate; end; oetDrawMarker : begin Namespace:=onsDraw; LocalName:='marker'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatSvgViewbox; AttsArray[3]:=oatSvgD; end; oetDrawStrokeDash : begin Namespace:=onsDraw; LocalName:='stroke-dash'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawDots1; AttsArray[4]:=oatDrawDots1Length; AttsArray[5]:=oatDrawDots2; AttsArray[6]:=oatDrawDots2Length; AttsArray[7]:=oatDrawDistance; end; oetDrawOpacity : begin Namespace:=onsDraw; LocalName:='opacity'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawDisplayName; AttsArray[2]:=oatDrawStyle; AttsArray[3]:=oatDrawCx; AttsArray[4]:=oatDrawCy; AttsArray[5]:=oatDrawAngle; AttsArray[6]:=oatDrawBorder; AttsArray[7]:=oatDrawStart; AttsArray[8]:=oatDrawEnd; end; oetStylePresentationPageLayout : begin Namespace:=onsStyle; LocalName:='presentation-page-layout'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationPlaceholder; SetLength(AttsArray, 2); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; end; oetPresentationPlaceholder : begin Namespace:=onsPresentation; LocalName:='placeholder'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatPresentationObject; AttsArray[1]:=oatSvgX; AttsArray[2]:=oatSvgY; AttsArray[3]:=oatSvgWidth; AttsArray[4]:=oatSvgHeight; end; oetTableTableTemplate : begin Namespace:=onsTable; LocalName:='table-template'; SetLength(ChildrenArray, 10); ChildrenArray[0]:=oetTableFirstRow; ChildrenArray[1]:=oetTableLastRow; ChildrenArray[2]:=oetTableFirstColumn; ChildrenArray[3]:=oetTableLastColumn; ChildrenArray[4]:=oetTableBody; ChildrenArray[5]:=oetTableEvenRows; ChildrenArray[6]:=oetTableOddRows; ChildrenArray[7]:=oetTableEvenColumns; ChildrenArray[8]:=oetTableOddColumns; ChildrenArray[9]:=oetTableBackground; SetLength(AttsArray, 5); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableFirstRowStartColumn; AttsArray[2]:=oatTableFirstRowEndColumn; AttsArray[3]:=oatTableLastRowStartColumn; AttsArray[4]:=oatTableLastRowEndColumn; end; oetTableFirstRow : begin Namespace:=onsTable; LocalName:='first-row'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableLastRow : begin Namespace:=onsTable; LocalName:='last-row'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableFirstColumn : begin Namespace:=onsTable; LocalName:='first-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableLastColumn : begin Namespace:=onsTable; LocalName:='last-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableBody : begin Namespace:=onsTable; LocalName:='body'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableEvenRows : begin Namespace:=onsTable; LocalName:='even-rows'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableOddRows : begin Namespace:=onsTable; LocalName:='odd-rows'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableEvenColumns : begin Namespace:=onsTable; LocalName:='even-columns'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableOddColumns : begin Namespace:=onsTable; LocalName:='odd-columns'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableStyleName; AttsArray[1]:=oatTableParagraphStyleName; end; oetTableBackground : begin Namespace:=onsTable; LocalName:='background'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableStyleName; end; oetOfficeAutomaticStyles : begin Namespace:=onsOffice; LocalName:='automatic-styles'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetStylePageLayout; SetLength(AttsArray, 0); end; oetStylePageLayout : begin Namespace:=onsStyle; LocalName:='page-layout'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStylePageUsage; end; oetOfficeMasterStyles : begin Namespace:=onsOffice; LocalName:='master-styles'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetStyleMasterPage; ChildrenArray[1]:=oetStyleHandoutMaster; ChildrenArray[2]:=oetDrawLayerSet; SetLength(AttsArray, 0); end; oetStyleMasterPage : begin Namespace:=onsStyle; LocalName:='master-page'; SetLength(ChildrenArray, 20); ChildrenArray[0]:=oetStyleHeader; ChildrenArray[1]:=oetStyleHeaderLeft; ChildrenArray[2]:=oetStyleHeaderFirst; ChildrenArray[3]:=oetStyleFooter; ChildrenArray[4]:=oetStyleFooterLeft; ChildrenArray[5]:=oetStyleFooterFirst; ChildrenArray[6]:=oetDrawLayerSet; ChildrenArray[7]:=oetOfficeForms; ChildrenArray[8]:=oetAnimAnimate; ChildrenArray[9]:=oetAnimSet; ChildrenArray[10]:=oetAnimAnimatemotion; ChildrenArray[11]:=oetAnimAnimatecolor; ChildrenArray[12]:=oetAnimAnimatetransform; ChildrenArray[13]:=oetAnimTransitionfilter; ChildrenArray[14]:=oetAnimPar; ChildrenArray[15]:=oetAnimSeq; ChildrenArray[16]:=oetAnimIterate; ChildrenArray[17]:=oetAnimAudio; ChildrenArray[18]:=oetAnimCommand; ChildrenArray[19]:=oetPresentationNotes; SetLength(AttsArray, 5); AttsArray[0]:=oatStyleName; AttsArray[1]:=oatStyleDisplayName; AttsArray[2]:=oatStylePageLayoutName; AttsArray[3]:=oatDrawStyleName; AttsArray[4]:=oatStyleNextStyleName; end; oetStyleHeader : begin Namespace:=onsStyle; LocalName:='header'; SetLength(ChildrenArray, 25); ChildrenArray[0]:=oetTextTrackedChanges; ChildrenArray[1]:=oetTextAlphabeticalIndexAutoMarkFile; ChildrenArray[2]:=oetTextVariableDecls; ChildrenArray[3]:=oetTextSequenceDecls; ChildrenArray[4]:=oetTextUserFieldDecls; ChildrenArray[5]:=oetTextDdeConnectionDecls; ChildrenArray[6]:=oetTextH; ChildrenArray[7]:=oetTextP; ChildrenArray[8]:=oetTextList; ChildrenArray[9]:=oetTableTable; ChildrenArray[10]:=oetTextSection; ChildrenArray[11]:=oetTextTableOfContent; ChildrenArray[12]:=oetTextIllustrationIndex; ChildrenArray[13]:=oetTextTableIndex; ChildrenArray[14]:=oetTextObjectIndex; ChildrenArray[15]:=oetTextUserIndex; ChildrenArray[16]:=oetTextAlphabeticalIndex; ChildrenArray[17]:=oetTextBibliography; ChildrenArray[18]:=oetTextIndexTitle; ChildrenArray[19]:=oetTextChange; ChildrenArray[20]:=oetTextChangeStart; ChildrenArray[21]:=oetTextChangeEnd; ChildrenArray[22]:=oetStyleRegionLeft; ChildrenArray[23]:=oetStyleRegionCenter; ChildrenArray[24]:=oetStyleRegionRight; SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetStyleHeaderFirst : begin Namespace:=onsStyle; LocalName:='header-first'; SetLength(ChildrenArray, 25); ChildrenArray[0]:=oetTextTrackedChanges; ChildrenArray[1]:=oetTextAlphabeticalIndexAutoMarkFile; ChildrenArray[2]:=oetTextVariableDecls; ChildrenArray[3]:=oetTextSequenceDecls; ChildrenArray[4]:=oetTextUserFieldDecls; ChildrenArray[5]:=oetTextDdeConnectionDecls; ChildrenArray[6]:=oetTextH; ChildrenArray[7]:=oetTextP; ChildrenArray[8]:=oetTextList; ChildrenArray[9]:=oetTableTable; ChildrenArray[10]:=oetTextSection; ChildrenArray[11]:=oetTextTableOfContent; ChildrenArray[12]:=oetTextIllustrationIndex; ChildrenArray[13]:=oetTextTableIndex; ChildrenArray[14]:=oetTextObjectIndex; ChildrenArray[15]:=oetTextUserIndex; ChildrenArray[16]:=oetTextAlphabeticalIndex; ChildrenArray[17]:=oetTextBibliography; ChildrenArray[18]:=oetTextIndexTitle; ChildrenArray[19]:=oetTextChange; ChildrenArray[20]:=oetTextChangeStart; ChildrenArray[21]:=oetTextChangeEnd; ChildrenArray[22]:=oetStyleRegionLeft; ChildrenArray[23]:=oetStyleRegionCenter; ChildrenArray[24]:=oetStyleRegionRight; SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetTextTrackedChanges : begin Namespace:=onsText; LocalName:='tracked-changes'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextChangedRegion; SetLength(AttsArray, 1); AttsArray[0]:=oatTextTrackChanges; end; oetTextChangedRegion : begin Namespace:=onsText; LocalName:='changed-region'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTextInsertion; ChildrenArray[1]:=oetTextDeletion; ChildrenArray[2]:=oetTextFormatChange; SetLength(AttsArray, 2); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatTextId; end; oetTextInsertion : begin Namespace:=onsText; LocalName:='insertion'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeChangeInfo; SetLength(AttsArray, 0); end; oetOfficeChangeInfo : begin Namespace:=onsOffice; LocalName:='change-info'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDcCreator; ChildrenArray[1]:=oetDcDate; ChildrenArray[2]:=oetTextP; SetLength(AttsArray, 0); end; oetTextDeletion : begin Namespace:=onsText; LocalName:='deletion'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeChangeInfo; SetLength(AttsArray, 0); end; oetTextFormatChange : begin Namespace:=onsText; LocalName:='format-change'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeChangeInfo; SetLength(AttsArray, 0); end; oetTextVariableDecls : begin Namespace:=onsText; LocalName:='variable-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextVariableDecl; SetLength(AttsArray, 0); end; oetTextVariableDecl : begin Namespace:=onsText; LocalName:='variable-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTextName; AttsArray[1]:=oatOfficeValueType; end; oetTextSequenceDecls : begin Namespace:=onsText; LocalName:='sequence-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextSequenceDecl; SetLength(AttsArray, 0); end; oetTextSequenceDecl : begin Namespace:=onsText; LocalName:='sequence-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextDisplayOutlineLevel; AttsArray[2]:=oatTextSeparationCharacter; end; oetTextUserFieldDecls : begin Namespace:=onsText; LocalName:='user-field-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextUserFieldDecl; SetLength(AttsArray, 0); end; oetTextUserFieldDecl : begin Namespace:=onsText; LocalName:='user-field-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 17); AttsArray[0]:=oatTextName; AttsArray[1]:=oatTextFormula; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValue; AttsArray[8]:=oatOfficeCurrency; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeDateValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeTimeValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeBooleanValue; AttsArray[15]:=oatOfficeValueType; AttsArray[16]:=oatOfficeStringValue; end; oetTextDdeConnectionDecls : begin Namespace:=onsText; LocalName:='dde-connection-decls'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextDdeConnectionDecl; SetLength(AttsArray, 0); end; oetTextDdeConnectionDecl : begin Namespace:=onsText; LocalName:='dde-connection-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatOfficeName; AttsArray[1]:=oatOfficeDdeApplication; AttsArray[2]:=oatOfficeDdeTopic; AttsArray[3]:=oatOfficeDdeItem; AttsArray[4]:=oatOfficeAutomaticUpdate; end; oetTextAlphabeticalIndexAutoMarkFile : begin Namespace:=onsText; LocalName:='alphabetical-index-auto-mark-file'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; end; oetStyleRegionLeft : begin Namespace:=onsStyle; LocalName:='region-left'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 0); end; oetStyleRegionCenter : begin Namespace:=onsStyle; LocalName:='region-center'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleRegionRight : begin Namespace:=onsStyle; LocalName:='region-right'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetStyleHeaderLeft : begin Namespace:=onsStyle; LocalName:='header-left'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetStyleFooter : begin Namespace:=onsStyle; LocalName:='footer'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetStyleFooterFirst : begin Namespace:=onsStyle; LocalName:='footer-first'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetStyleFooterLeft : begin Namespace:=onsStyle; LocalName:='footer-left'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetLoExtFooterFirst : begin Namespace:=onsLoExt; LocalName:='footer-first'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetLoExtHeaderFirst : begin Namespace:=onsLoExt; LocalName:='header-first'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatStyleDisplay; end; oetDrawLayerSet : begin Namespace:=onsDraw; LocalName:='layer-set'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawLayer; SetLength(AttsArray, 0); end; oetDrawLayer : begin Namespace:=onsDraw; LocalName:='layer'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; SetLength(AttsArray, 3); AttsArray[0]:=oatDrawName; AttsArray[1]:=oatDrawProtected; AttsArray[2]:=oatDrawDisplay; end; oetAnimAnimate : begin Namespace:=onsAnim; LocalName:='animate'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 25); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilTo; AttsArray[4]:=oatSmilValues; AttsArray[5]:=oatAnimFormula; AttsArray[6]:=oatSmilFrom; AttsArray[7]:=oatSmilBy; AttsArray[8]:=oatSmilCalcmode; AttsArray[9]:=oatSmilKeytimes; AttsArray[10]:=oatSmilKeysplines; AttsArray[11]:=oatSmilBegin; AttsArray[12]:=oatSmilEnd; AttsArray[13]:=oatSmilDur; AttsArray[14]:=oatSmilRepeatdur; AttsArray[15]:=oatSmilRepeatcount; AttsArray[16]:=oatSmilRestart; AttsArray[17]:=oatSmilRestartdefault; AttsArray[18]:=oatSmilFill; AttsArray[19]:=oatSmilFilldefault; AttsArray[20]:=oatSmilAccelerate; AttsArray[21]:=oatSmilDecelerate; AttsArray[22]:=oatSmilAutoreverse; AttsArray[23]:=oatSmilAccumulate; AttsArray[24]:=oatSmilAdditive; end; oetAnimSet : begin Namespace:=onsAnim; LocalName:='set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilTo; AttsArray[4]:=oatSmilAccumulate; AttsArray[5]:=oatSmilAdditive; end; oetAnimAnimatemotion : begin Namespace:=onsAnim; LocalName:='animateMotion'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatSvgPath; AttsArray[1]:=oatSvgOrigin; AttsArray[2]:=oatSmilCalcmode; AttsArray[3]:=oatSmilTargetelement; AttsArray[4]:=oatAnimSubItem; AttsArray[5]:=oatSmilAttributename; AttsArray[6]:=oatSmilAccumulate; AttsArray[7]:=oatSmilAdditive; AttsArray[8]:=oatSmilValues; AttsArray[9]:=oatAnimFormula; AttsArray[10]:=oatSmilFrom; AttsArray[11]:=oatSmilBy; AttsArray[12]:=oatSmilKeytimes; AttsArray[13]:=oatSmilKeysplines; end; oetAnimAnimatecolor : begin Namespace:=onsAnim; LocalName:='animateColor'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilAccumulate; AttsArray[4]:=oatSmilAdditive; AttsArray[5]:=oatSmilValues; AttsArray[6]:=oatAnimFormula; AttsArray[7]:=oatSmilFrom; AttsArray[8]:=oatSmilBy; AttsArray[9]:=oatSmilCalcmode; AttsArray[10]:=oatSmilKeytimes; AttsArray[11]:=oatSmilKeysplines; AttsArray[12]:=oatAnimColorInterpolation; AttsArray[13]:=oatAnimColorInterpolationDirection; end; oetAnimAnimatetransform : begin Namespace:=onsAnim; LocalName:='animateTransform'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 10); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAttributename; AttsArray[3]:=oatSmilAccumulate; AttsArray[4]:=oatSmilAdditive; AttsArray[5]:=oatSmilValues; AttsArray[6]:=oatAnimFormula; AttsArray[7]:=oatSmilFrom; AttsArray[8]:=oatSmilBy; AttsArray[9]:=oatSvgType; end; oetAnimTransitionfilter : begin Namespace:=onsAnim; LocalName:='transitionFilter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 14); AttsArray[0]:=oatSmilTargetelement; AttsArray[1]:=oatAnimSubItem; AttsArray[2]:=oatSmilAccumulate; AttsArray[3]:=oatSmilAdditive; AttsArray[4]:=oatSmilValues; AttsArray[5]:=oatAnimFormula; AttsArray[6]:=oatSmilFrom; AttsArray[7]:=oatSmilBy; AttsArray[8]:=oatSmilCalcmode; AttsArray[9]:=oatSmilType; AttsArray[10]:=oatSmilSubtype; AttsArray[11]:=oatSmilDirection; AttsArray[12]:=oatSmilFadecolor; AttsArray[13]:=oatSmilMode; end; oetAnimPar : begin Namespace:=onsAnim; LocalName:='par'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetAnimAnimate; ChildrenArray[1]:=oetAnimSet; ChildrenArray[2]:=oetAnimAnimatemotion; ChildrenArray[3]:=oetAnimAnimatecolor; ChildrenArray[4]:=oetAnimAnimatetransform; ChildrenArray[5]:=oetAnimTransitionfilter; SetLength(AttsArray, 9); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatPresentationNodeType; AttsArray[2]:=oatPresentationPresetId; AttsArray[3]:=oatPresentationPresetSubType; AttsArray[4]:=oatPresentationPresetClass; AttsArray[5]:=oatPresentationMasterElement; AttsArray[6]:=oatPresentationGroupId; AttsArray[7]:=oatAnimId; AttsArray[8]:=oatSmilEndsync; end; oetAnimSeq : begin Namespace:=onsAnim; LocalName:='seq'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetAnimAnimate; ChildrenArray[1]:=oetAnimSet; ChildrenArray[2]:=oetAnimAnimatemotion; ChildrenArray[3]:=oetAnimAnimatecolor; ChildrenArray[4]:=oetAnimAnimatetransform; ChildrenArray[5]:=oetAnimTransitionfilter; ChildrenArray[6]:=oetAnimPar; SetLength(AttsArray, 8); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatSmilEndsync; end; oetAnimIterate : begin Namespace:=onsAnim; LocalName:='iterate'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetAnimAnimate; ChildrenArray[1]:=oetAnimSet; ChildrenArray[2]:=oetAnimAnimatemotion; ChildrenArray[3]:=oetAnimAnimatecolor; ChildrenArray[4]:=oetAnimAnimatetransform; ChildrenArray[5]:=oetAnimTransitionfilter; ChildrenArray[6]:=oetAnimPar; ChildrenArray[7]:=oetAnimSeq; SetLength(AttsArray, 12); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatSmilTargetelement; AttsArray[8]:=oatAnimSubItem; AttsArray[9]:=oatAnimIterateType; AttsArray[10]:=oatAnimIterateInterval; AttsArray[11]:=oatSmilEndsync; end; oetAnimAudio : begin Namespace:=onsAnim; LocalName:='audio'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatXlinkHref; AttsArray[8]:=oatAnimAudioLevel; end; oetAnimCommand : begin Namespace:=onsAnim; LocalName:='command'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetAnimParam; SetLength(AttsArray, 12); AttsArray[0]:=oatPresentationNodeType; AttsArray[1]:=oatPresentationPresetId; AttsArray[2]:=oatPresentationPresetSubType; AttsArray[3]:=oatPresentationPresetClass; AttsArray[4]:=oatPresentationMasterElement; AttsArray[5]:=oatPresentationGroupId; AttsArray[6]:=oatAnimId; AttsArray[7]:=oatAnimCommand; AttsArray[8]:=oatSmilBegin; AttsArray[9]:=oatSmilEnd; AttsArray[10]:=oatSmilTargetelement; AttsArray[11]:=oatAnimSubItem; end; oetAnimParam : begin Namespace:=onsAnim; LocalName:='param'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatAnimName; AttsArray[1]:=oatAnimValue; end; oetPresentationNotes : begin Namespace:=onsPresentation; LocalName:='notes'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeForms; SetLength(AttsArray, 5); AttsArray[0]:=oatPresentationUseHeaderName; AttsArray[1]:=oatPresentationUseFooterName; AttsArray[2]:=oatPresentationUseDateTimeName; AttsArray[3]:=oatStylePageLayoutName; AttsArray[4]:=oatDrawStyleName; end; oetStyleHandoutMaster : begin Namespace:=onsStyle; LocalName:='handout-master'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 6); AttsArray[0]:=oatPresentationUseHeaderName; AttsArray[1]:=oatPresentationUseFooterName; AttsArray[2]:=oatPresentationUseDateTimeName; AttsArray[3]:=oatPresentationPresentationPageLayoutName; AttsArray[4]:=oatStylePageLayoutName; AttsArray[5]:=oatDrawStyleName; end; oetOfficeBody : begin Namespace:=onsOffice; LocalName:='body'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetOfficeDatabase; ChildrenArray[1]:=oetOfficeText; ChildrenArray[2]:=oetOfficeDrawing; ChildrenArray[3]:=oetOfficePresentation; ChildrenArray[4]:=oetOfficeSpreadsheet; ChildrenArray[5]:=oetOfficeChart; ChildrenArray[6]:=oetOfficeImage; SetLength(AttsArray, 0); end; oetOfficeText : begin Namespace:=onsOffice; LocalName:='text'; SetLength(ChildrenArray, 15); ChildrenArray[0]:=oetOfficeForms; ChildrenArray[1]:=oetTextTrackedChanges; ChildrenArray[2]:=oetTextVariableDecls; ChildrenArray[3]:=oetTextSequenceDecls; ChildrenArray[4]:=oetTextUserFieldDecls; ChildrenArray[5]:=oetTextDdeConnectionDecls; ChildrenArray[6]:=oetTableCalculationSettings; ChildrenArray[7]:=oetTableContentValidations; ChildrenArray[8]:=oetTableLabelRanges; ChildrenArray[9]:=oetTextPageSequence; ChildrenArray[10]:=oetTableNamedExpressions; ChildrenArray[11]:=oetTableDatabaseRanges; ChildrenArray[12]:=oetTableDataPilotTables; ChildrenArray[13]:=oetTableConsolidation; ChildrenArray[14]:=oetTableDdeLinks; SetLength(AttsArray, 2); AttsArray[0]:=oatTextGlobal; AttsArray[1]:=oatTextUseSoftPageBreaks; end; oetTableCalculationSettings : begin Namespace:=onsTable; LocalName:='calculation-settings'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableNullDate; ChildrenArray[1]:=oetTableIteration; SetLength(AttsArray, 7); AttsArray[0]:=oatTableCaseSensitive; AttsArray[1]:=oatTablePrecisionAsShown; AttsArray[2]:=oatTableSearchCriteriaMustApplyToWholeCell; AttsArray[3]:=oatTableAutomaticFindLabels; AttsArray[4]:=oatTableUseRegularExpressions; AttsArray[5]:=oatTableUseWildcards; AttsArray[6]:=oatTableNullYear; end; oetTableNullDate : begin Namespace:=onsTable; LocalName:='null-date'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableValueType; AttsArray[1]:=oatTableDateValue; end; oetTableIteration : begin Namespace:=onsTable; LocalName:='iteration'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableStatus; AttsArray[1]:=oatTableSteps; AttsArray[2]:=oatTableMaximumDifference; end; oetTableContentValidations : begin Namespace:=onsTable; LocalName:='content-validations'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableContentValidation; SetLength(AttsArray, 0); end; oetTableContentValidation : begin Namespace:=onsTable; LocalName:='content-validation'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetTableHelpMessage; ChildrenArray[1]:=oetTableErrorMessage; ChildrenArray[2]:=oetTableErrorMacro; ChildrenArray[3]:=oetOfficeEventListeners; SetLength(AttsArray, 5); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableCondition; AttsArray[2]:=oatTableBaseCellAddress; AttsArray[3]:=oatTableAllowEmptyCell; AttsArray[4]:=oatTableDisplayList; end; oetTableHelpMessage : begin Namespace:=onsTable; LocalName:='help-message'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 2); AttsArray[0]:=oatTableTitle; AttsArray[1]:=oatTableDisplay; end; oetTableErrorMessage : begin Namespace:=onsTable; LocalName:='error-message'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 3); AttsArray[0]:=oatTableTitle; AttsArray[1]:=oatTableDisplay; AttsArray[2]:=oatTableMessageType; end; oetTableErrorMacro : begin Namespace:=onsTable; LocalName:='error-macro'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableExecute; end; oetTableLabelRanges : begin Namespace:=onsTable; LocalName:='label-ranges'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableLabelRange; SetLength(AttsArray, 0); end; oetTableLabelRange : begin Namespace:=onsTable; LocalName:='label-range'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableLabelCellRangeAddress; AttsArray[1]:=oatTableDataCellRangeAddress; AttsArray[2]:=oatTableOrientation; end; oetTextPageSequence : begin Namespace:=onsText; LocalName:='page-sequence'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextPage; SetLength(AttsArray, 0); end; oetTextPage : begin Namespace:=onsText; LocalName:='page'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTextMasterPageName; end; oetTableDatabaseRanges : begin Namespace:=onsTable; LocalName:='database-ranges'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDatabaseRange; SetLength(AttsArray, 0); end; oetTableDatabaseRange : begin Namespace:=onsTable; LocalName:='database-range'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetTableDatabaseSourceSql; ChildrenArray[1]:=oetTableDatabaseSourceQuery; ChildrenArray[2]:=oetTableDatabaseSourceTable; ChildrenArray[3]:=oetTableFilter; ChildrenArray[4]:=oetTableSort; ChildrenArray[5]:=oetTableSubtotalRules; SetLength(AttsArray, 10); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableIsSelection; AttsArray[2]:=oatTableOnUpdateKeepStyles; AttsArray[3]:=oatTableOnUpdateKeepSize; AttsArray[4]:=oatTableHasPersistentData; AttsArray[5]:=oatTableOrientation; AttsArray[6]:=oatTableContainsHeader; AttsArray[7]:=oatTableDisplayFilterButtons; AttsArray[8]:=oatTableTargetRangeAddress; AttsArray[9]:=oatTableRefreshDelay; end; oetTableDatabaseSourceSql : begin Namespace:=onsTable; LocalName:='database-source-sql'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableDatabaseName; AttsArray[1]:=oatTableSqlStatement; AttsArray[2]:=oatTableParseSqlStatement; end; oetTableDatabaseSourceQuery : begin Namespace:=onsTable; LocalName:='database-source-query'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableDatabaseName; AttsArray[1]:=oatTableQueryName; end; oetTableDatabaseSourceTable : begin Namespace:=onsTable; LocalName:='database-source-table'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableDatabaseName; AttsArray[1]:=oatTableDatabaseTableName; end; oetTableFilter : begin Namespace:=onsTable; LocalName:='filter'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableFilterCondition; ChildrenArray[1]:=oetTableFilterAnd; ChildrenArray[2]:=oetTableFilterOr; SetLength(AttsArray, 4); AttsArray[0]:=oatTableTargetRangeAddress; AttsArray[1]:=oatTableConditionSource; AttsArray[2]:=oatTableConditionSourceRangeAddress; AttsArray[3]:=oatTableDisplayDuplicates; end; oetTableFilterCondition : begin Namespace:=onsTable; LocalName:='filter-condition'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableFilterSetItem; SetLength(AttsArray, 5); AttsArray[0]:=oatTableFieldNumber; AttsArray[1]:=oatTableValue; AttsArray[2]:=oatTableOperator; AttsArray[3]:=oatTableCaseSensitive; AttsArray[4]:=oatTableDataType; end; oetTableFilterSetItem : begin Namespace:=onsTable; LocalName:='filter-set-item'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableValue; end; oetTableFilterAnd : begin Namespace:=onsTable; LocalName:='filter-and'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableFilterOr; ChildrenArray[1]:=oetTableFilterCondition; SetLength(AttsArray, 0); end; oetTableFilterOr : begin Namespace:=onsTable; LocalName:='filter-or'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableFilterCondition; SetLength(AttsArray, 0); end; oetTableSort : begin Namespace:=onsTable; LocalName:='sort'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableSortBy; SetLength(AttsArray, 9); AttsArray[0]:=oatTableBindStylesToContent; AttsArray[1]:=oatTableTargetRangeAddress; AttsArray[2]:=oatTableCaseSensitive; AttsArray[3]:=oatTableLanguage; AttsArray[4]:=oatTableCountry; AttsArray[5]:=oatTableScript; AttsArray[6]:=oatTableRfcLanguageTag; AttsArray[7]:=oatTableAlgorithm; AttsArray[8]:=oatTableEmbeddedNumberBehavior; end; oetTableSortBy : begin Namespace:=onsTable; LocalName:='sort-by'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableFieldNumber; AttsArray[1]:=oatTableDataType; AttsArray[2]:=oatTableOrder; end; oetTableSubtotalRules : begin Namespace:=onsTable; LocalName:='subtotal-rules'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableSortGroups; ChildrenArray[1]:=oetTableSubtotalRule; SetLength(AttsArray, 3); AttsArray[0]:=oatTableBindStylesToContent; AttsArray[1]:=oatTableCaseSensitive; AttsArray[2]:=oatTablePageBreaksOnGroupChange; end; oetTableSortGroups : begin Namespace:=onsTable; LocalName:='sort-groups'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableDataType; AttsArray[1]:=oatTableOrder; end; oetTableSubtotalRule : begin Namespace:=onsTable; LocalName:='subtotal-rule'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableSubtotalField; SetLength(AttsArray, 1); AttsArray[0]:=oatTableGroupByFieldNumber; end; oetTableSubtotalField : begin Namespace:=onsTable; LocalName:='subtotal-field'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableFieldNumber; AttsArray[1]:=oatTableFunction; end; oetTableDataPilotTables : begin Namespace:=onsTable; LocalName:='data-pilot-tables'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotTable; SetLength(AttsArray, 0); end; oetTableDataPilotTable : begin Namespace:=onsTable; LocalName:='data-pilot-table'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetTableDatabaseSourceSql; ChildrenArray[1]:=oetTableDatabaseSourceQuery; ChildrenArray[2]:=oetTableDatabaseSourceTable; ChildrenArray[3]:=oetTableSourceService; ChildrenArray[4]:=oetTableSourceCellRange; ChildrenArray[5]:=oetTableDataPilotField; SetLength(AttsArray, 9); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableApplicationData; AttsArray[2]:=oatTableGrandTotal; AttsArray[3]:=oatTableIgnoreEmptyRows; AttsArray[4]:=oatTableIdentifyCategories; AttsArray[5]:=oatTableTargetRangeAddress; AttsArray[6]:=oatTableButtons; AttsArray[7]:=oatTableShowFilterButton; AttsArray[8]:=oatTableDrillDownOnDoubleClick; end; oetTableSourceService : begin Namespace:=onsTable; LocalName:='source-service'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableSourceName; AttsArray[2]:=oatTableObjectName; AttsArray[3]:=oatTableUserName; AttsArray[4]:=oatTablePassword; end; oetTableSourceCellRange : begin Namespace:=onsTable; LocalName:='source-cell-range'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableFilter; SetLength(AttsArray, 1); AttsArray[0]:=oatTableCellRangeAddress; end; oetTableDataPilotField : begin Namespace:=onsTable; LocalName:='data-pilot-field'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableDataPilotLevel; ChildrenArray[1]:=oetTableDataPilotFieldReference; ChildrenArray[2]:=oetTableDataPilotGroups; SetLength(AttsArray, 7); AttsArray[0]:=oatTableSourceFieldName; AttsArray[1]:=oatTableOrientation; AttsArray[2]:=oatTableOrientation; AttsArray[3]:=oatTableSelectedPage; AttsArray[4]:=oatTableIsDataLayoutField; AttsArray[5]:=oatTableFunction; AttsArray[6]:=oatTableUsedHierarchy; end; oetTableDataPilotLevel : begin Namespace:=onsTable; LocalName:='data-pilot-level'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTableDataPilotSubtotals; ChildrenArray[1]:=oetTableDataPilotMembers; ChildrenArray[2]:=oetTableDataPilotDisplayInfo; ChildrenArray[3]:=oetTableDataPilotSortInfo; ChildrenArray[4]:=oetTableDataPilotLayoutInfo; SetLength(AttsArray, 1); AttsArray[0]:=oatTableShowEmpty; end; oetTableDataPilotSubtotals : begin Namespace:=onsTable; LocalName:='data-pilot-subtotals'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotSubtotal; SetLength(AttsArray, 0); end; oetTableDataPilotSubtotal : begin Namespace:=onsTable; LocalName:='data-pilot-subtotal'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableFunction; end; oetTableDataPilotMembers : begin Namespace:=onsTable; LocalName:='data-pilot-members'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotMember; SetLength(AttsArray, 0); end; oetTableDataPilotMember : begin Namespace:=onsTable; LocalName:='data-pilot-member'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableName; AttsArray[1]:=oatTableDisplay; AttsArray[2]:=oatTableShowDetails; end; oetTableDataPilotDisplayInfo : begin Namespace:=onsTable; LocalName:='data-pilot-display-info'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableEnabled; AttsArray[1]:=oatTableDataField; AttsArray[2]:=oatTableMemberCount; AttsArray[3]:=oatTableDisplayMemberMode; end; oetTableDataPilotSortInfo : begin Namespace:=onsTable; LocalName:='data-pilot-sort-info'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatTableSortMode; AttsArray[1]:=oatTableDataField; AttsArray[2]:=oatTableSortMode; AttsArray[3]:=oatTableOrder; end; oetTableDataPilotLayoutInfo : begin Namespace:=onsTable; LocalName:='data-pilot-layout-info'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableLayoutMode; AttsArray[1]:=oatTableAddEmptyLines; end; oetTableDataPilotFieldReference : begin Namespace:=onsTable; LocalName:='data-pilot-field-reference'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTableFieldName; AttsArray[1]:=oatTableMemberType; AttsArray[2]:=oatTableMemberName; AttsArray[3]:=oatTableMemberType; AttsArray[4]:=oatTableType; end; oetTableDataPilotGroups : begin Namespace:=onsTable; LocalName:='data-pilot-groups'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotGroup; SetLength(AttsArray, 7); AttsArray[0]:=oatTableSourceFieldName; AttsArray[1]:=oatTableDateStart; AttsArray[2]:=oatTableStart; AttsArray[3]:=oatTableDateEnd; AttsArray[4]:=oatTableEnd; AttsArray[5]:=oatTableStep; AttsArray[6]:=oatTableGroupedBy; end; oetTableDataPilotGroup : begin Namespace:=onsTable; LocalName:='data-pilot-group'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDataPilotGroupMember; SetLength(AttsArray, 1); AttsArray[0]:=oatTableName; end; oetTableDataPilotGroupMember : begin Namespace:=onsTable; LocalName:='data-pilot-group-member'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableName; end; oetTableConsolidation : begin Namespace:=onsTable; LocalName:='consolidation'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatTableFunction; AttsArray[1]:=oatTableSourceCellRangeAddresses; AttsArray[2]:=oatTableTargetCellAddress; AttsArray[3]:=oatTableUseLabels; AttsArray[4]:=oatTableLinkToSourceData; end; oetTableDdeLinks : begin Namespace:=onsTable; LocalName:='dde-links'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDdeLink; SetLength(AttsArray, 0); end; oetTableDdeLink : begin Namespace:=onsTable; LocalName:='dde-link'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetOfficeDdeSource; ChildrenArray[1]:=oetTableTable; SetLength(AttsArray, 0); end; oetOfficeDrawing : begin Namespace:=onsOffice; LocalName:='drawing'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextVariableDecls; ChildrenArray[1]:=oetTextSequenceDecls; ChildrenArray[2]:=oetTextUserFieldDecls; ChildrenArray[3]:=oetTextDdeConnectionDecls; ChildrenArray[4]:=oetDrawPage; SetLength(AttsArray, 0); end; oetDrawPage : begin Namespace:=onsDraw; LocalName:='page'; SetLength(ChildrenArray, 17); ChildrenArray[0]:=oetSvgTitle; ChildrenArray[1]:=oetSvgDesc; ChildrenArray[2]:=oetDrawLayerSet; ChildrenArray[3]:=oetOfficeForms; ChildrenArray[4]:=oetPresentationAnimations; ChildrenArray[5]:=oetAnimAnimate; ChildrenArray[6]:=oetAnimSet; ChildrenArray[7]:=oetAnimAnimatemotion; ChildrenArray[8]:=oetAnimAnimatecolor; ChildrenArray[9]:=oetAnimAnimatetransform; ChildrenArray[10]:=oetAnimTransitionfilter; ChildrenArray[11]:=oetAnimPar; ChildrenArray[12]:=oetAnimSeq; ChildrenArray[13]:=oetAnimIterate; ChildrenArray[14]:=oetAnimAudio; ChildrenArray[15]:=oetAnimCommand; ChildrenArray[16]:=oetPresentationNotes; SetLength(AttsArray, 10); AttsArray[0]:=oatPresentationUseHeaderName; AttsArray[1]:=oatPresentationUseFooterName; AttsArray[2]:=oatPresentationUseDateTimeName; AttsArray[3]:=oatXmlId; AttsArray[4]:=oatDrawName; AttsArray[5]:=oatDrawStyleName; AttsArray[6]:=oatDrawMasterPageName; AttsArray[7]:=oatPresentationPresentationPageLayoutName; AttsArray[8]:=oatDrawId; AttsArray[9]:=oatDrawNavOrder; end; oetPresentationAnimations : begin Namespace:=onsPresentation; LocalName:='animations'; SetLength(ChildrenArray, 7); ChildrenArray[0]:=oetPresentationShowShape; ChildrenArray[1]:=oetPresentationShowText; ChildrenArray[2]:=oetPresentationHideShape; ChildrenArray[3]:=oetPresentationHideText; ChildrenArray[4]:=oetPresentationDim; ChildrenArray[5]:=oetPresentationPlay; ChildrenArray[6]:=oetPresentationAnimationGroup; SetLength(AttsArray, 0); end; oetPresentationShowShape : begin Namespace:=onsPresentation; LocalName:='show-shape'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationShowText : begin Namespace:=onsPresentation; LocalName:='show-text'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationHideShape : begin Namespace:=onsPresentation; LocalName:='hide-shape'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationHideText : begin Namespace:=onsPresentation; LocalName:='hide-text'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 7); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationEffect; AttsArray[2]:=oatPresentationDirection; AttsArray[3]:=oatPresentationSpeed; AttsArray[4]:=oatPresentationDelay; AttsArray[5]:=oatPresentationStartScale; AttsArray[6]:=oatPresentationPathId; end; oetPresentationDim : begin Namespace:=onsPresentation; LocalName:='dim'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationSound; SetLength(AttsArray, 2); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatDrawColor; end; oetPresentationPlay : begin Namespace:=onsPresentation; LocalName:='play'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDrawShapeId; AttsArray[1]:=oatPresentationSpeed; end; oetPresentationAnimationGroup : begin Namespace:=onsPresentation; LocalName:='animation-group'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetOfficePresentation : begin Namespace:=onsOffice; LocalName:='presentation'; SetLength(ChildrenArray, 9); ChildrenArray[0]:=oetTextVariableDecls; ChildrenArray[1]:=oetTextSequenceDecls; ChildrenArray[2]:=oetTextUserFieldDecls; ChildrenArray[3]:=oetTextDdeConnectionDecls; ChildrenArray[4]:=oetPresentationHeaderDecl; ChildrenArray[5]:=oetPresentationFooterDecl; ChildrenArray[6]:=oetPresentationDateTimeDecl; ChildrenArray[7]:=oetDrawPage; ChildrenArray[8]:=oetPresentationSettings; SetLength(AttsArray, 0); end; oetPresentationHeaderDecl : begin Namespace:=onsPresentation; LocalName:='header-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatPresentationName; end; oetPresentationFooterDecl : begin Namespace:=onsPresentation; LocalName:='footer-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatPresentationName; end; oetPresentationDateTimeDecl : begin Namespace:=onsPresentation; LocalName:='date-time-decl'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatPresentationName; AttsArray[1]:=oatPresentationSource; AttsArray[2]:=oatStyleDataStyleName; end; oetPresentationSettings : begin Namespace:=onsPresentation; LocalName:='settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetPresentationShow; SetLength(AttsArray, 14); AttsArray[0]:=oatPresentationStartPage; AttsArray[1]:=oatPresentationShow; AttsArray[2]:=oatPresentationFullScreen; AttsArray[3]:=oatPresentationEndless; AttsArray[4]:=oatPresentationPause; AttsArray[5]:=oatPresentationShowLogo; AttsArray[6]:=oatPresentationForceManual; AttsArray[7]:=oatPresentationMouseVisible; AttsArray[8]:=oatPresentationMouseAsPen; AttsArray[9]:=oatPresentationStartWithNavigator; AttsArray[10]:=oatPresentationAnimations; AttsArray[11]:=oatPresentationTransitionOnClick; AttsArray[12]:=oatPresentationStayOnTop; AttsArray[13]:=oatPresentationShowEndOfPresentationSlide; end; oetPresentationShow : begin Namespace:=onsPresentation; LocalName:='show'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatPresentationName; AttsArray[1]:=oatPresentationPages; end; oetOfficeSpreadsheet : begin Namespace:=onsOffice; LocalName:='spreadsheet'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetTableTrackedChanges; ChildrenArray[1]:=oetTextVariableDecls; ChildrenArray[2]:=oetTextSequenceDecls; ChildrenArray[3]:=oetTextUserFieldDecls; ChildrenArray[4]:=oetTextDdeConnectionDecls; ChildrenArray[5]:=oetTableTable; SetLength(AttsArray, 3); AttsArray[0]:=oatTableStructureProtected; AttsArray[1]:=oatTableProtectionKey; AttsArray[2]:=oatTableProtectionKeyDigestAlgorithm; end; oetTableTrackedChanges : begin Namespace:=onsTable; LocalName:='tracked-changes'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetTableCellContentChange; ChildrenArray[1]:=oetTableInsertion; ChildrenArray[2]:=oetTableDeletion; ChildrenArray[3]:=oetTableMovement; SetLength(AttsArray, 1); AttsArray[0]:=oatTableTrackChanges; end; oetTableCellContentChange : begin Namespace:=onsTable; LocalName:='cell-content-change'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTableCellAddress; ChildrenArray[1]:=oetOfficeChangeInfo; ChildrenArray[2]:=oetTableDependencies; ChildrenArray[3]:=oetTableDeletions; ChildrenArray[4]:=oetTablePrevious; SetLength(AttsArray, 3); AttsArray[0]:=oatTableId; AttsArray[1]:=oatTableAcceptanceState; AttsArray[2]:=oatTableRejectingChangeId; end; oetTableCellAddress : begin Namespace:=onsTable; LocalName:='cell-address'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTableColumn; AttsArray[1]:=oatTableRow; AttsArray[2]:=oatTableTable; end; oetTableDependencies : begin Namespace:=onsTable; LocalName:='dependencies'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableDependency; SetLength(AttsArray, 0); end; oetTableDependency : begin Namespace:=onsTable; LocalName:='dependency'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTableDeletions : begin Namespace:=onsTable; LocalName:='deletions'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableCellContentDeletion; ChildrenArray[1]:=oetTableChangeDeletion; SetLength(AttsArray, 0); end; oetTableCellContentDeletion : begin Namespace:=onsTable; LocalName:='cell-content-deletion'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetTableCellAddress; ChildrenArray[1]:=oetTableChangeTrackTableCell; SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTableChangeTrackTableCell : begin Namespace:=onsTable; LocalName:='change-track-table-cell'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 20); AttsArray[0]:=oatOfficeValueType; AttsArray[1]:=oatOfficeValue; AttsArray[2]:=oatOfficeValueType; AttsArray[3]:=oatOfficeValue; AttsArray[4]:=oatOfficeValueType; AttsArray[5]:=oatOfficeValue; AttsArray[6]:=oatOfficeCurrency; AttsArray[7]:=oatOfficeValueType; AttsArray[8]:=oatOfficeDateValue; AttsArray[9]:=oatOfficeValueType; AttsArray[10]:=oatOfficeTimeValue; AttsArray[11]:=oatOfficeValueType; AttsArray[12]:=oatOfficeBooleanValue; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeStringValue; AttsArray[15]:=oatTableCellAddress; AttsArray[16]:=oatTableMatrixCovered; AttsArray[17]:=oatTableFormula; AttsArray[18]:=oatTableNumberMatrixColumnsSpanned; AttsArray[19]:=oatTableNumberMatrixRowsSpanned; end; oetTableChangeDeletion : begin Namespace:=onsTable; LocalName:='change-deletion'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTablePrevious : begin Namespace:=onsTable; LocalName:='previous'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTableChangeTrackTableCell; SetLength(AttsArray, 1); AttsArray[0]:=oatTableId; end; oetTableInsertion : begin Namespace:=onsTable; LocalName:='insertion'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetOfficeChangeInfo; ChildrenArray[1]:=oetTableDependencies; ChildrenArray[2]:=oetTableDeletions; SetLength(AttsArray, 7); AttsArray[0]:=oatTableType; AttsArray[1]:=oatTablePosition; AttsArray[2]:=oatTableCount; AttsArray[3]:=oatTableTable; AttsArray[4]:=oatTableId; AttsArray[5]:=oatTableAcceptanceState; AttsArray[6]:=oatTableRejectingChangeId; end; oetTableDeletion : begin Namespace:=onsTable; LocalName:='deletion'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetOfficeChangeInfo; ChildrenArray[1]:=oetTableDependencies; ChildrenArray[2]:=oetTableDeletions; ChildrenArray[3]:=oetTableCutOffs; SetLength(AttsArray, 7); AttsArray[0]:=oatTableType; AttsArray[1]:=oatTablePosition; AttsArray[2]:=oatTableTable; AttsArray[3]:=oatTableMultiDeletionSpanned; AttsArray[4]:=oatTableId; AttsArray[5]:=oatTableAcceptanceState; AttsArray[6]:=oatTableRejectingChangeId; end; oetTableCutOffs : begin Namespace:=onsTable; LocalName:='cut-offs'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetTableMovementCutOff; ChildrenArray[1]:=oetTableInsertionCutOff; ChildrenArray[2]:=oetTableMovementCutOff; SetLength(AttsArray, 0); end; oetTableMovementCutOff : begin Namespace:=onsTable; LocalName:='movement-cut-off'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatTablePosition; AttsArray[1]:=oatTableStartPosition; AttsArray[2]:=oatTableEndPosition; end; oetTableInsertionCutOff : begin Namespace:=onsTable; LocalName:='insertion-cut-off'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatTableId; AttsArray[1]:=oatTablePosition; end; oetTableMovement : begin Namespace:=onsTable; LocalName:='movement'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTableSourceRangeAddress; ChildrenArray[1]:=oetTableTargetRangeAddress; ChildrenArray[2]:=oetOfficeChangeInfo; ChildrenArray[3]:=oetTableDependencies; ChildrenArray[4]:=oetTableDeletions; SetLength(AttsArray, 3); AttsArray[0]:=oatTableId; AttsArray[1]:=oatTableAcceptanceState; AttsArray[2]:=oatTableRejectingChangeId; end; oetTableSourceRangeAddress : begin Namespace:=onsTable; LocalName:='source-range-address'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 9); AttsArray[0]:=oatTableColumn; AttsArray[1]:=oatTableRow; AttsArray[2]:=oatTableTable; AttsArray[3]:=oatTableStartColumn; AttsArray[4]:=oatTableStartRow; AttsArray[5]:=oatTableStartTable; AttsArray[6]:=oatTableEndColumn; AttsArray[7]:=oatTableEndRow; AttsArray[8]:=oatTableEndTable; end; oetTableTargetRangeAddress : begin Namespace:=onsTable; LocalName:='target-range-address'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetOfficeChart : begin Namespace:=onsOffice; LocalName:='chart'; SetLength(ChildrenArray, 5); ChildrenArray[0]:=oetTextVariableDecls; ChildrenArray[1]:=oetTextSequenceDecls; ChildrenArray[2]:=oetTextUserFieldDecls; ChildrenArray[3]:=oetTextDdeConnectionDecls; ChildrenArray[4]:=oetChartChart; SetLength(AttsArray, 0); end; oetChartChart : begin Namespace:=onsChart; LocalName:='chart'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetChartTitle; ChildrenArray[1]:=oetChartSubtitle; ChildrenArray[2]:=oetChartFooter; ChildrenArray[3]:=oetChartLegend; ChildrenArray[4]:=oetChartPlotArea; ChildrenArray[5]:=oetTableTable; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatSvgHeight; AttsArray[2]:=oatXmlId; AttsArray[3]:=oatChartClass; AttsArray[4]:=oatChartColumnMapping; AttsArray[5]:=oatChartRowMapping; AttsArray[6]:=oatChartStyleName; AttsArray[7]:=oatXlinkType; AttsArray[8]:=oatXlinkHref; end; oetChartTitle : begin Namespace:=onsChart; LocalName:='title'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 4); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatTableCellRange; AttsArray[3]:=oatChartStyleName; end; oetChartSubtitle : begin Namespace:=onsChart; LocalName:='subtitle'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 2); AttsArray[0]:=oatTableCellRange; AttsArray[1]:=oatChartStyleName; end; oetChartFooter : begin Namespace:=onsChart; LocalName:='footer'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 2); AttsArray[0]:=oatTableCellRange; AttsArray[1]:=oatChartStyleName; end; oetChartLegend : begin Namespace:=onsChart; LocalName:='legend'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 9); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatChartLegendPosition; AttsArray[3]:=oatChartLegendAlign; AttsArray[4]:=oatChartLegendPosition; AttsArray[5]:=oatStyleLegendExpansion; AttsArray[6]:=oatStyleLegendExpansion; AttsArray[7]:=oatStyleLegendExpansionAspectRatio; AttsArray[8]:=oatChartStyleName; end; oetChartPlotArea : begin Namespace:=onsChart; LocalName:='plot-area'; SetLength(ChildrenArray, 8); ChildrenArray[0]:=oetDr3dLight; ChildrenArray[1]:=oetChartAxis; ChildrenArray[2]:=oetChartSeries; ChildrenArray[3]:=oetChartStockGainMarker; ChildrenArray[4]:=oetChartStockLossMarker; ChildrenArray[5]:=oetChartStockRangeLine; ChildrenArray[6]:=oetChartWall; ChildrenArray[7]:=oetChartFloor; SetLength(AttsArray, 19); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatSvgWidth; AttsArray[3]:=oatSvgHeight; AttsArray[4]:=oatDr3dVrp; AttsArray[5]:=oatDr3dVpn; AttsArray[6]:=oatDr3dVup; AttsArray[7]:=oatDr3dProjection; AttsArray[8]:=oatDr3dDistance; AttsArray[9]:=oatDr3dFocalLength; AttsArray[10]:=oatDr3dShadowSlant; AttsArray[11]:=oatDr3dShadeMode; AttsArray[12]:=oatDr3dAmbientColor; AttsArray[13]:=oatDr3dLightingMode; AttsArray[14]:=oatDr3dTransform; AttsArray[15]:=oatXmlId; AttsArray[16]:=oatChartStyleName; AttsArray[17]:=oatTableCellRangeAddress; AttsArray[18]:=oatChartDataSourceHasLabels; end; oetChartAxis : begin Namespace:=onsChart; LocalName:='axis'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetChartTitle; ChildrenArray[1]:=oetChartCategories; ChildrenArray[2]:=oetChartGrid; SetLength(AttsArray, 3); AttsArray[0]:=oatChartDimension; AttsArray[1]:=oatChartName; AttsArray[2]:=oatChartStyleName; end; oetChartCategories : begin Namespace:=onsChart; LocalName:='categories'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableCellRangeAddress; end; oetChartGrid : begin Namespace:=onsChart; LocalName:='grid'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatChartClass; AttsArray[1]:=oatChartStyleName; end; oetChartSeries : begin Namespace:=onsChart; LocalName:='series'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetChartDomain; ChildrenArray[1]:=oetChartMeanValue; ChildrenArray[2]:=oetChartRegressionCurve; ChildrenArray[3]:=oetChartErrorIndicator; ChildrenArray[4]:=oetChartDataPoint; ChildrenArray[5]:=oetChartDataLabel; SetLength(AttsArray, 6); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatChartValuesCellRangeAddress; AttsArray[2]:=oatChartLabelCellAddress; AttsArray[3]:=oatChartClass; AttsArray[4]:=oatChartAttachedAxis; AttsArray[5]:=oatChartStyleName; end; oetChartDomain : begin Namespace:=onsChart; LocalName:='domain'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatTableCellRangeAddress; end; oetChartMeanValue : begin Namespace:=onsChart; LocalName:='mean-value'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartRegressionCurve : begin Namespace:=onsChart; LocalName:='regression-curve'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetChartEquation; SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartEquation : begin Namespace:=onsChart; LocalName:='equation'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 6); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatChartAutomaticContent; AttsArray[3]:=oatChartDisplayRSquare; AttsArray[4]:=oatChartDisplayEquation; AttsArray[5]:=oatChartStyleName; end; oetChartErrorIndicator : begin Namespace:=onsChart; LocalName:='error-indicator'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatChartStyleName; AttsArray[1]:=oatChartDimension; end; oetChartDataPoint : begin Namespace:=onsChart; LocalName:='data-point'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetChartDataLabel; SetLength(AttsArray, 3); AttsArray[0]:=oatXmlId; AttsArray[1]:=oatChartRepeated; AttsArray[2]:=oatChartStyleName; end; oetChartDataLabel : begin Namespace:=onsChart; LocalName:='data-label'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetTextP; SetLength(AttsArray, 3); AttsArray[0]:=oatSvgX; AttsArray[1]:=oatSvgY; AttsArray[2]:=oatChartStyleName; end; oetChartStockGainMarker : begin Namespace:=onsChart; LocalName:='stock-gain-marker'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartStockLossMarker : begin Namespace:=onsChart; LocalName:='stock-loss-marker'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartStockRangeLine : begin Namespace:=onsChart; LocalName:='stock-range-line'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatChartStyleName; end; oetChartWall : begin Namespace:=onsChart; LocalName:='wall'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatChartStyleName; end; oetChartFloor : begin Namespace:=onsChart; LocalName:='floor'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatSvgWidth; AttsArray[1]:=oatChartStyleName; end; oetOfficeImage : begin Namespace:=onsOffice; LocalName:='image'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDrawFrame; SetLength(AttsArray, 0); end; oetOfficeDatabase : begin Namespace:=onsOffice; LocalName:='database'; SetLength(ChildrenArray, 6); ChildrenArray[0]:=oetDbDataSource; ChildrenArray[1]:=oetDbForms; ChildrenArray[2]:=oetDbReports; ChildrenArray[3]:=oetDbQueries; ChildrenArray[4]:=oetDbTableRepresentations; ChildrenArray[5]:=oetDbSchemaDefinition; SetLength(AttsArray, 0); end; oetDbDataSource : begin Namespace:=onsDb; LocalName:='data-source'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbConnectionData; ChildrenArray[1]:=oetDbDriverSettings; ChildrenArray[2]:=oetDbApplicationConnectionSettings; SetLength(AttsArray, 0); end; oetDbConnectionData : begin Namespace:=onsDb; LocalName:='connection-data'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbDatabaseDescription; ChildrenArray[1]:=oetDbConnectionResource; ChildrenArray[2]:=oetDbLogin; SetLength(AttsArray, 0); end; oetDbDatabaseDescription : begin Namespace:=onsDb; LocalName:='database-description'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbFileBasedDatabase; ChildrenArray[1]:=oetDbServerDatabase; SetLength(AttsArray, 0); end; oetDbFileBasedDatabase : begin Namespace:=onsDb; LocalName:='file-based-database'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatDbMediaType; AttsArray[3]:=oatDbExtension; end; oetDbServerDatabase : begin Namespace:=onsDb; LocalName:='server-database'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 5); AttsArray[0]:=oatDbHostname; AttsArray[1]:=oatDbPort; AttsArray[2]:=oatDbLocalSocket; AttsArray[3]:=oatDbType; AttsArray[4]:=oatDbDatabaseName; end; oetDbConnectionResource : begin Namespace:=onsDb; LocalName:='connection-resource'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatXlinkActuate; end; oetDbLogin : begin Namespace:=onsDb; LocalName:='login'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDbUserName; AttsArray[1]:=oatDbUseSystemUser; AttsArray[2]:=oatDbIsPasswordRequired; AttsArray[3]:=oatDbLoginTimeout; end; oetDbDriverSettings : begin Namespace:=onsDb; LocalName:='driver-settings'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetDbAutoIncrement; ChildrenArray[1]:=oetDbDelimiter; ChildrenArray[2]:=oetDbCharacterSet; ChildrenArray[3]:=oetDbTableSettings; SetLength(AttsArray, 5); AttsArray[0]:=oatDbShowDeleted; AttsArray[1]:=oatDbIsFirstRowHeaderLine; AttsArray[2]:=oatDbSystemDriverSettings; AttsArray[3]:=oatDbBaseDn; AttsArray[4]:=oatDbParameterNameSubstitution; end; oetDbAutoIncrement : begin Namespace:=onsDb; LocalName:='auto-increment'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbAdditionalColumnStatement; AttsArray[1]:=oatDbRowRetrievingStatement; end; oetDbDelimiter : begin Namespace:=onsDb; LocalName:='delimiter'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 4); AttsArray[0]:=oatDbField; AttsArray[1]:=oatDbString; AttsArray[2]:=oatDbDecimal; AttsArray[3]:=oatDbThousand; end; oetDbCharacterSet : begin Namespace:=onsDb; LocalName:='character-set'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 1); AttsArray[0]:=oatDbEncoding; end; oetDbTableSettings : begin Namespace:=onsDb; LocalName:='table-settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableSetting; SetLength(AttsArray, 0); end; oetDbTableSetting : begin Namespace:=onsDb; LocalName:='table-setting'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbDelimiter; ChildrenArray[1]:=oetDbCharacterSet; SetLength(AttsArray, 2); AttsArray[0]:=oatDbIsFirstRowHeaderLine; AttsArray[1]:=oatDbShowDeleted; end; oetDbApplicationConnectionSettings : begin Namespace:=onsDb; LocalName:='application-connection-settings'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbTableFilter; ChildrenArray[1]:=oetDbTableTypeFilter; ChildrenArray[2]:=oetDbDataSourceSettings; SetLength(AttsArray, 8); AttsArray[0]:=oatDbIsTableNameLengthLimited; AttsArray[1]:=oatDbEnableSql92Check; AttsArray[2]:=oatDbAppendTableAliasName; AttsArray[3]:=oatDbIgnoreDriverPrivileges; AttsArray[4]:=oatDbBooleanComparisonMode; AttsArray[5]:=oatDbUseCatalog; AttsArray[6]:=oatDbMaxRowCount; AttsArray[7]:=oatDbSuppressVersionColumns; end; oetDbTableFilter : begin Namespace:=onsDb; LocalName:='table-filter'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbTableIncludeFilter; ChildrenArray[1]:=oetDbTableExcludeFilter; SetLength(AttsArray, 0); end; oetDbTableIncludeFilter : begin Namespace:=onsDb; LocalName:='table-include-filter'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableFilterPattern; SetLength(AttsArray, 0); end; oetDbTableFilterPattern : begin Namespace:=onsDb; LocalName:='table-filter-pattern'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDbTableExcludeFilter : begin Namespace:=onsDb; LocalName:='table-exclude-filter'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableFilterPattern; SetLength(AttsArray, 0); end; oetDbTableTypeFilter : begin Namespace:=onsDb; LocalName:='table-type-filter'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableType; SetLength(AttsArray, 0); end; oetDbTableType : begin Namespace:=onsDb; LocalName:='table-type'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDbDataSourceSettings : begin Namespace:=onsDb; LocalName:='data-source-settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbDataSourceSetting; SetLength(AttsArray, 0); end; oetDbDataSourceSetting : begin Namespace:=onsDb; LocalName:='data-source-setting'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbDataSourceSettingValue; SetLength(AttsArray, 3); AttsArray[0]:=oatDbDataSourceSettingIsList; AttsArray[1]:=oatDbDataSourceSettingName; AttsArray[2]:=oatDbDataSourceSettingType; end; oetDbDataSourceSettingValue : begin Namespace:=onsDb; LocalName:='data-source-setting-value'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 0); end; oetDbForms : begin Namespace:=onsDb; LocalName:='forms'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbComponent; ChildrenArray[1]:=oetDbComponentCollection; SetLength(AttsArray, 0); end; oetDbComponent : begin Namespace:=onsDb; LocalName:='component'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetMathMath; SetLength(AttsArray, 8); AttsArray[0]:=oatXlinkType; AttsArray[1]:=oatXlinkHref; AttsArray[2]:=oatXlinkShow; AttsArray[3]:=oatXlinkActuate; AttsArray[4]:=oatDbAsTemplate; AttsArray[5]:=oatDbName; AttsArray[6]:=oatDbTitle; AttsArray[7]:=oatDbDescription; end; oetDbComponentCollection : begin Namespace:=onsDb; LocalName:='component-collection'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbComponent; SetLength(AttsArray, 3); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbTitle; AttsArray[2]:=oatDbDescription; end; oetDbReports : begin Namespace:=onsDb; LocalName:='reports'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbComponent; ChildrenArray[1]:=oetDbComponentCollection; SetLength(AttsArray, 0); end; oetDbQueries : begin Namespace:=onsDb; LocalName:='queries'; SetLength(ChildrenArray, 2); ChildrenArray[0]:=oetDbQuery; ChildrenArray[1]:=oetDbQueryCollection; SetLength(AttsArray, 0); end; oetDbQuery : begin Namespace:=onsDb; LocalName:='query'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetDbOrderStatement; ChildrenArray[1]:=oetDbFilterStatement; ChildrenArray[2]:=oetDbColumns; ChildrenArray[3]:=oetDbUpdateTable; SetLength(AttsArray, 7); AttsArray[0]:=oatDbCommand; AttsArray[1]:=oatDbEscapeProcessing; AttsArray[2]:=oatDbName; AttsArray[3]:=oatDbTitle; AttsArray[4]:=oatDbDescription; AttsArray[5]:=oatDbStyleName; AttsArray[6]:=oatDbDefaultRowStyleName; end; oetDbOrderStatement : begin Namespace:=onsDb; LocalName:='order-statement'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbCommand; AttsArray[1]:=oatDbApplyCommand; end; oetDbFilterStatement : begin Namespace:=onsDb; LocalName:='filter-statement'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbCommand; AttsArray[1]:=oatDbApplyCommand; end; oetDbColumns : begin Namespace:=onsDb; LocalName:='columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbColumn; SetLength(AttsArray, 0); end; oetDbColumn : begin Namespace:=onsDb; LocalName:='column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 21); AttsArray[0]:=oatDbVisible; AttsArray[1]:=oatDbStyleName; AttsArray[2]:=oatDbDefaultCellStyleName; AttsArray[3]:=oatDbName; AttsArray[4]:=oatDbTitle; AttsArray[5]:=oatDbDescription; AttsArray[6]:=oatOfficeValueType; AttsArray[7]:=oatOfficeValue; AttsArray[8]:=oatOfficeValueType; AttsArray[9]:=oatOfficeValue; AttsArray[10]:=oatOfficeValueType; AttsArray[11]:=oatOfficeValue; AttsArray[12]:=oatOfficeCurrency; AttsArray[13]:=oatOfficeValueType; AttsArray[14]:=oatOfficeDateValue; AttsArray[15]:=oatOfficeValueType; AttsArray[16]:=oatOfficeTimeValue; AttsArray[17]:=oatOfficeValueType; AttsArray[18]:=oatOfficeBooleanValue; AttsArray[19]:=oatOfficeValueType; AttsArray[20]:=oatOfficeStringValue; end; oetDbUpdateTable : begin Namespace:=onsDb; LocalName:='update-table'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 3); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbSchemaName; end; oetDbQueryCollection : begin Namespace:=onsDb; LocalName:='query-collection'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbQuery; SetLength(AttsArray, 3); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbTitle; AttsArray[2]:=oatDbDescription; end; oetDbTableRepresentations : begin Namespace:=onsDb; LocalName:='table-representations'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableRepresentation; SetLength(AttsArray, 0); end; oetDbTableRepresentation : begin Namespace:=onsDb; LocalName:='table-representation'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbOrderStatement; ChildrenArray[1]:=oetDbFilterStatement; ChildrenArray[2]:=oetDbColumns; SetLength(AttsArray, 7); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbSchemaName; AttsArray[3]:=oatDbTitle; AttsArray[4]:=oatDbDescription; AttsArray[5]:=oatDbStyleName; AttsArray[6]:=oatDbDefaultRowStyleName; end; oetDbSchemaDefinition : begin Namespace:=onsDb; LocalName:='schema-definition'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableDefinitions; SetLength(AttsArray, 0); end; oetDbTableDefinitions : begin Namespace:=onsDb; LocalName:='table-definitions'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbTableDefinition; SetLength(AttsArray, 0); end; oetDbTableDefinition : begin Namespace:=onsDb; LocalName:='table-definition'; SetLength(ChildrenArray, 3); ChildrenArray[0]:=oetDbColumnDefinitions; ChildrenArray[1]:=oetDbKeys; ChildrenArray[2]:=oetDbIndices; SetLength(AttsArray, 4); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbSchemaName; AttsArray[3]:=oatDbType; end; oetDbColumnDefinitions : begin Namespace:=onsDb; LocalName:='column-definitions'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbColumnDefinition; SetLength(AttsArray, 0); end; oetDbColumnDefinition : begin Namespace:=onsDb; LocalName:='column-definition'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 8); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbDataType; AttsArray[2]:=oatDbTypeName; AttsArray[3]:=oatDbPrecision; AttsArray[4]:=oatDbScale; AttsArray[5]:=oatDbIsNullable; AttsArray[6]:=oatDbIsEmptyAllowed; AttsArray[7]:=oatDbIsAutoincrement; end; oetDbKeys : begin Namespace:=onsDb; LocalName:='keys'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbKey; SetLength(AttsArray, 0); end; oetDbKey : begin Namespace:=onsDb; LocalName:='key'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbKeyColumns; SetLength(AttsArray, 5); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbType; AttsArray[2]:=oatDbReferencedTableName; AttsArray[3]:=oatDbUpdateRule; AttsArray[4]:=oatDbDeleteRule; end; oetDbKeyColumns : begin Namespace:=onsDb; LocalName:='key-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbKeyColumn; SetLength(AttsArray, 0); end; oetDbKeyColumn : begin Namespace:=onsDb; LocalName:='key-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbRelatedColumnName; end; oetDbIndices : begin Namespace:=onsDb; LocalName:='indices'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbIndex; SetLength(AttsArray, 0); end; oetDbIndex : begin Namespace:=onsDb; LocalName:='index'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbIndexColumns; SetLength(AttsArray, 4); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbCatalogName; AttsArray[2]:=oatDbIsUnique; AttsArray[3]:=oatDbIsClustered; end; oetDbIndexColumns : begin Namespace:=onsDb; LocalName:='index-columns'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetDbIndexColumn; SetLength(AttsArray, 0); end; oetDbIndexColumn : begin Namespace:=onsDb; LocalName:='index-column'; SetLength(ChildrenArray, 0); SetLength(AttsArray, 2); AttsArray[0]:=oatDbName; AttsArray[1]:=oatDbIsAscending; end; oetOfficeDocumentContent : begin Namespace:=onsOffice; LocalName:='document-content'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetOfficeScripts; ChildrenArray[1]:=oetOfficeFontFaceDecls; ChildrenArray[2]:=oetOfficeAutomaticStyles; ChildrenArray[3]:=oetOfficeBody; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; oetOfficeDocumentStyles : begin Namespace:=onsOffice; LocalName:='document-styles'; SetLength(ChildrenArray, 4); ChildrenArray[0]:=oetOfficeFontFaceDecls; ChildrenArray[1]:=oetOfficeStyles; ChildrenArray[2]:=oetOfficeAutomaticStyles; ChildrenArray[3]:=oetOfficeMasterStyles; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; oetOfficeDocumentMeta : begin Namespace:=onsOffice; LocalName:='document-meta'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeMeta; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; oetOfficeDocumentSettings : begin Namespace:=onsOffice; LocalName:='document-settings'; SetLength(ChildrenArray, 1); ChildrenArray[0]:=oetOfficeSettings; SetLength(AttsArray, 2); AttsArray[0]:=oatOfficeVersion; AttsArray[1]:=oatGrddlTransformation; end; end; end; \ No newline at end of file diff --git a/odf_types.pas b/odf_types.pas index 3a2d136..a961a6d 100644 --- a/odf_types.pas +++ b/odf_types.pas @@ -29,6 +29,8 @@ You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + Additions (C) 2024 by Joe Care https://github.com/joecare99 } unit odf_types; @@ -41,7 +43,7 @@ interface uses - Classes, SysUtils, FileUtil, LazFileUtils, zipper, zstream, fgl, LazUTF8, FPCanvas, + Classes, SysUtils, FileUtil, LazFileUtils, zipper, zstream, fgl, LazUTF8, FPCanvas, Graphics, { $Define ODF_LOGGING} @@ -63,18 +65,22 @@ interface cNone = '<NONE>'; cFileContent = 'content.xml'; cFileStyles = 'styles.xml'; + cFileMeta = 'meta.xml'; + cFileSettings = 'settings.xml'; cFileMimetype = 'mimetype'; cIsoDateFormat = 'yyyy-mm-dd"T"hh:nn:ss'; //Is defined somewhere at fcl? - cMetaGenerator = 'fpOdf 0.1'; { TODO : Need to change to a proper format, + cMetaGenerator = 'fpOdf 0.2'; { TODO : Need to change to a proper format, as specified at p1-4.3.2.1 } cUrnOpenDocument = 'urn:oasis:names:tc:opendocument:xmlns:'; + cUrnDocumentFoundationExperimental = 'urn:org:documentfoundation:names:experimental:office:xmlns:'; cUrlOasis = 'http://docs.oasis-open.org/'; cUriOffice12Meta = cUrlOasis + 'ns/office/1.2/meta/'; cUriOdfMeta = cUriOffice12Meta + 'odf#'; { TODO : Check why it's not on namespace enum and array } cUrlW3 = 'http://www.w3.org/'; + cOwnerAttr = 'Owner'; //Namespaces //////////// @@ -85,7 +91,7 @@ interface onsPresentation, onsSvg, onsText, onsChart, onsTable, onsForm, onsXforms, onsDraw, onsMath, onsDr3d, onsNumber, onsAnim, onsDb, onsXlink, onsXml, onsFo, onsSmil, - onsXhtml, onsPkg, onsOf); + onsXhtml, onsPkg, onsOf,onsLoExt); TOdfNamespaces = set of TOdfNamespace; @@ -119,7 +125,8 @@ interface 'smil', 'xhtml', 'pkg', - 'of'); + 'of', + 'LoExt'); OdfNamespaceURIs: array[TOdfNamespace] of String = (cNone, cUrnOpenDocument + 'office:1.0', @@ -150,7 +157,8 @@ interface cUrnOpenDocument + 'smil-compatible:1.0', cUrlW3 + '1999/xhtml', cUriOffice12Meta + 'pkg#', - cUrnOpenDocument + 'of:1.2'); + cUrnOpenDocument + 'of:1.2', + cUrnDocumentFoundationExperimental+'loext:1.0'); function GetURI(ns: TOdfNamespace): string; function OdfGetNsUri(APrefix: string): string; @@ -300,27 +308,37 @@ TOdfElementClass = class of TOdfElement; TOdfDocument = class; { TOdfElement } - + // OdfElement: Basedefinition of all Open-Document-Elements TOdfElement = class(TDOMElement) private + // GetElementType returns the element type based on an index. class function GetElementType(AIndex: TElementType): TElementType; + protected + // GetDocument returns the TOdfDocument associated with this element. + function GetDocument: TOdfDocument; + public + // CreateDomElement creates a DOM element of the specified type. class function CreateDomElement(AType: TElementType; Doc: TXMLDocument): TDOMElement; overload; class function CreateDomElement(AType: TElementType; Doc: TXMLDocument; at: TAttributeType; AttValue: String): TDOMElement; overload; + // CreateOdfElement creates an ODF element of the specified type. class function CreateOdfElement(AType: TElementType; Doc: TXMLDocument): TOdfElement; overload; class function CreateOdfElement(AType: TElementType; AClass: TOdfElementClass; Doc: TXMLDocument): TOdfElement; overload; + // OdfGetElementType returns the ODF element type for a given DOM element. class function OdfGetElementType(e: TDOMElement): TElementType; + // SameType checks if two DOM elements have the same type. class function SameType(e1, e2: TDomElement): boolean; class function SameType(e: TDomElement; AType: TElementType): boolean; + // SetAttribute sets an attribute value for the parent element. class procedure SetAttribute(at: TAttributeType; AParent: TDOMElement; AValue: string); @@ -329,23 +347,40 @@ TOdfElement = class(TDOMElement) AParent: TDOMElement; const Values: array of string); - - function AppendOdfElement(AType: TElementType): TOdfElement; + // AppendOdfElement appends a child ODF element of the specified type. + function AppendOdfElement(AType: TElementType): TOdfElement; overload; + function AppendOdfElement(AType: TElementType;AClass: TOdfElementClass): TOdfElement; overload; + function AppendOdfElement(AType: TElementType; at: TAttributeType; + AValue: string;AClass: TOdfElementClass): TOdfElement; function AppendOdfElement(AType: TElementType; at: TAttributeType; AValue: string): TOdfElement; + + // OdfGetFirstElement returns the first child ODF element of the specified type. function OdfGetFirstElement: TOdfElement; + // Checks if the ODF element of the specified type exists. function HasOdfElement(AType: TElementType): boolean; - + // Finds and returns the first ODF element of the specified type. + function FindOdfElement(AType: TElementType): TOdfElement; + // Finds an ODF element with the given style name. function FindStyle(aName: String): TOdfElement; + // Finds an ODF element with the specified name. If 'recursive' is true, searches recursively. + function Find(aName: String;recursive:boolean=false): TOdfElement; + // Retrieves the attribute of the specified type. function GetAttribute(AType: TAttributeType): TDOMAttr; + // Retrieves the attribute value as a string. function GetAttributeString(AType: TAttributeType): String; + // Checks if the element has the specified attribute. function HasAttribute(AType: TAttributeType): boolean; + // Removes the attribute of the specified type. function RemoveAttribute(AType: TAttributeType): TDOMAttr; + // Deletes multiple attributes specified in the array. procedure DeleteAttributes(const atts: array of TAttributeType); + // Sets the value of the specified attribute. procedure SetAttribute(AType: TAttributeType; AValue: string); + // Sets multiple attributes with corresponding values. procedure SetAttributes(const atts: array of TAttributeType; const Values: array of String); - + // Sets or deletes attributes based on the specified array. procedure SetOrDeleteAttributes(const atts: array of TAttributeType; const Value: String = ''); @@ -434,6 +469,7 @@ TOdfDocument = class FXPathNsResolver: TOdfXPathNsResolver; + function GetRootChild(et: TElementType): TDOMElement; procedure InitFonts; virtual; procedure InitStyles; virtual; @@ -453,12 +489,15 @@ TOdfDocument = class function StylesUsed(AParent: TDomElement): TStrings; private + FCountry: String; + FLanguage: String; class function ParseXmlFile(AStream: TStream): TXMLDocument; class procedure ReadPackage(ADir: String; AOdf: TOdfDocument); + procedure SetCountry(const AValue: String); + procedure SetLanguage(const AValue: String); procedure SetXmlDocument(AValue: TXMLDocument); - class procedure WritePackage(DestFile: String; - AOdf: TOdfDocument; - ATempDir: string = ''); + class procedure WritePackage( + DestFile: String; AOdf: TOdfDocument; ATempDir: string = ''); public constructor Create; destructor Destroy; override; @@ -493,7 +532,8 @@ TOdfDocument = class AParentStyle: TOdfStyleStyle): TOdfStyleStyle; - function CreateSpan(AText: string; FontStyles: TOdfFontStyles): TSpan; + function CreateSpan(AText: string; FontStyles: TFontStyles): TSpan; overload; + function CreateSpan(AText: string; FontStyles: TOdfFontStyles): TSpan; overload; function SearchText(AText: string; AParent: TDOMElement; Accepted: TElementTypeArray; @@ -537,10 +577,12 @@ TOdfDocument = class //Example: 0 for AFontSize, '' for AStyleFamily and fwNone for AFontWeight function GetStyleByProperties(AFontSize: integer; AFontSizeUnit: string; AFontStyle: TOdfFontStyle; AFontWeight: TOdfFontWeight; - AFontUnderlineStyle: string): TStrings; + AFontUnderlineStyle: string): TStrings; overload; function Clone: TOdfDocument; virtual; + property Language:String read FLanguage write SetLanguage; + property Country:String read FCountry write SetCountry; property Settings: TDOMElement read FSettings write FSettings; property Scripts: TDOMElement read FScripts write FScripts; property FontFaceDecls: TDOMElement read FFontFaceDecls write FFontFaceDecls; @@ -554,7 +596,8 @@ TOdfDocument = class property RemoveTempDir: boolean read FRemoveTempDir write FRemoveTempDir; end; - + {Foreward declaration} + THyperLink=class; { TOdfContent } @@ -565,30 +608,45 @@ TOdfContent = class(TOdfElement) public //p1-6.1.1 - Procedure AppendText(aText:String); + procedure AppendText(aText: string); + function AddLineBreak: TOdfContent; + function AddNBSpace(FontStyles: TFontStyles): TOdfContent; + function AddTab(FontStyles: TFontStyles): TOdfContent; + function AddSpan(AText: string; FontStyles: TFontStyles): TSpan;overload; + function AddSpan(AText: string; aFont: TFont;const doc: TOdfDocument): TSpan; + overload; + function AddSpan(AText: string; aStyle: string): TSpan;overload; + function AddLink(AText: string; FontStyles: TFontStyles; aBMName: string + ): THyperLink; + function GetStyle:TOdfStyleStyle; function GetCharacterContent(Recursive: boolean = true): string; property TextContent read GetTextContent write OdfSetTextContent; end; - THyperLink=class; - { TOdfParagraph } + { TOdfParagraph } TOdfParagraph = class(TOdfContent) private public - function AddSpan(AText: string; FontStyles: TOdfFontStyles): TSpan;overload; - function AddSpan(AText: string; aFont: TOdfFont;const doc: TOdfDocument): TSpan; - overload; - function AddSpan(AText: string; aStyle: string): TSpan;overload; - function AddBookmark(AText: string; FontStyles: TOdfFontStyles;aBMName:string): TSpan; - function AddLink(AText: string; FontStyles: TOdfFontStyles;aBMName:string): THyperLink; + function AddBookmark(AText: string; FontStyles: TFontStyles;aBMName:string): TSpan; //p1-7.4.15 { TODO : Text input can also be included on Span, oetTextH, etc } function AddTextInput(ADescription: string = ''): TOdfElement; end; + { TOdfSection } + + TOdfSection = class(TOdfElement) + protected + property Document:TOdfDocument read GetDocument ; + public + function AddParagraph(ATextStyleName: String): TOdfParagraph; + function AddHeadline(aLevel: integer): TOdfContent; + function AddTOC(aName: string;aLevel:integer): TOdfContent; + end; + { TSpan } @@ -597,7 +655,9 @@ TSpan = class(TOdfContent) public class function CreateSpan(doc: TXMLDocument; AText: string): TSpan; + procedure SetStyle(fs: TFontStyles);overload; procedure SetStyle(fs: TOdfFontStyles);overload; + procedure SetStyle(const doc: TOdfDocument; aFont: TFont); overload; procedure SetStyle(const doc: TOdfDocument; aFont: TOdfFont); overload; procedure SetStyle(aStyleName: string);overload; end; @@ -627,6 +687,7 @@ THyperLink = class(TSpan) TOdfTextDocument = class(TOdfDocument) private + FMasterPageProp: TOdfElement; FText: TDOMElement; procedure InitXmlDocument; override; @@ -638,19 +699,26 @@ TOdfTextDocument = class(TOdfDocument) constructor Create; Procedure Clear; override; { TODO : Replace AddParagraph, param ATextSytleName, with A Style Object or interface} + function AddSection(aSectionName,ATextStyleName: String): TOdfSection; + function AddMasterStyle: TOdfStyleStyle; function AddParagraph(ATextStyleName: String): TOdfParagraph; function AddHeadline(aLevel: integer): TOdfContent; + function AddTOC(aName: string; aLevel: integer): TOdfContent; function AddAutomaticStyle:TOdfStyleStyle;overload; - function AddAutomaticStyle(aName:string):TOdfStyleStyle;overload; + function AddAutomaticStyle(aName:string;aFamily: TStyleFamilyValue=sfvText):TOdfStyleStyle;overload; function AddStyle(aName: String; aFamily: TStyleFamilyValue): TOdfStyleStyle; overload; + function AddFontFace(StyleName, SvgFontFamily, FontFamilyGeneric, + FontPitch: string):Todfelement; function SearchText(AText: string; out FoundAt: TDOMText): boolean; overload; function SearchText(AText: string; out FoundAt: TDOMText; out AParagraph: TOdfParagraph): boolean; overload; { TODO : Needed: A function that searches a Style using its name } + function SearchStyle(aStyle:string):TodfStyleStyle; property Text: TDOMElement read FText write FText; + property MasterPageProp:TOdfElement read FMasterPageProp; end; TDefaultStyle = class(TOdfElement) @@ -882,6 +950,8 @@ function OdfPrepareString(AText: UTF8String; out Segment1: UTF8String; else SpaceFound:=true; end; + else + SpaceFound:=false; end; if result = oetNone @@ -964,33 +1034,112 @@ constructor TOdfElementTypeSet.Create(EtArray: TElementTypeArray); Add(et); end; +const CSolid = 'solid'; + CAuto='auto'; + CFontColor='font-color'; + CSingle='single'; + CSimple='simple'; + CClassText='text'; + CStyleHeading='Heading'; + CStyleHeadingStb='Heading_20_'; + CStyleTextBody='Text_20_body'; + CTextBodyDis='Text body'; + CStyleStandard='Standard'; -{ TOdfParagraph } +{ TOdfSection } -function TOdfParagraph.AddSpan(AText: string; FontStyles: TOdfFontStyles - ): TSpan; +function TOdfSection.AddParagraph(ATextStyleName: String): TOdfParagraph; begin - result:=TSpan.CreateSpan(self.OwnerDocument as TXMLDocument, AText); - result.SetStyle(FontStyles); - AppendChild(result); + result:=TOdfParagraph(CreateOdfElement(oetTextP,TOdfParagraph,TxmlDocument(OwnerDocument))); + result.SetAttribute(oatTextStyleName, ATextStyleName); + AppendChild(result); end; -function TOdfParagraph.AddSpan(AText: string; aFont: TOdfFont; - const doc: TOdfDocument): TSpan; +function TOdfSection.AddHeadline(aLevel: integer): TOdfContent; +var + vStyle, lParaStyle: TOdfElement; begin - result:=TSpan.CreateSpan(self.OwnerDocument as TXMLDocument, AText); - result.SetStyle(doc,aFont); - AppendChild(result); + result:=TOdfContent(CreateOdfElement(oetTextH,TOdfContent,TxmlDocument(OwnerDocument))); + result.SetAttribute(oatTextStyleName, CStyleHeadingStb+Inttostr(aLevel)); + result.SetAttribute(oatTextOutlineLevel, Inttostr(aLevel)); + AppendChild(result); + + lParaStyle:= TOdfElement(TOdfTextDocument(Document).Styles).Find(CStyleTextBody) ; + if not assigned(lParaStyle) then + begin + vStyle:=Document.CreateOdfElement(oetStyleStyle); + with TOdfStyleStyle(vStyle) do + begin + OdfStyleName:=CStyleTextBody; + OdfStyleDisplayName:=CTextBodyDis; + SetStyleFamily(sfvParagraph); + OdfStyleParentStyleName:=CStyleStandard; + OdfStyleClass:=CClassText; + end; + TOdfTextDocument(Document).Styles.AppendChild(vStyle); + + end; + + lParaStyle:= TOdfElement(TOdfTextDocument(Document).Styles).Find(CStyleHeadingStb+Inttostr(aLevel)) ; + if not assigned(lParaStyle) then + begin + vStyle:=Document.CreateOdfElement(oetStyleStyle); + with TOdfStyleStyle(vStyle) do + begin + OdfStyleName:=CStyleHeadingStb+Inttostr(aLevel); + OdfStyleDisplayName:=CStyleHeading+' '+Inttostr(aLevel); + SetStyleFamily(sfvParagraph); + OdfStyleParentStyleName:=CStyleHeading; + OdfStyleNextStyleName:=CStyleTextBody; + OdfStyleDefaultOutlineLevel:=inttostr(aLevel); + OdfStyleClass:=CClassText; + AppendOdfElement(oetStyleTextProperties,oatFoFontSize,inttostr(156-trunc(sqrt(aLevel)*25))+'%') + .SetAttribute(oatFoFontWeight,OdfFontWeightValues[fwBold]); + end; + TOdfTextDocument(Document).Styles.AppendChild(vStyle); + + end; end; -function TOdfParagraph.AddSpan(AText: string; aStyle: string): TSpan; +function TOdfSection.AddTOC(aName: string; aLevel: integer): TOdfContent; +var + lTOCTempl, lTocEntry, l: TOdfElement; + i: Integer; begin - result:=TSpan.CreateSpan(self.OwnerDocument as TXMLDocument, AText); - result.SetStyle(aStyle); - AppendChild(result); + result:=TOdfContent(CreateOdfElement(oetTextTableOfContent,TOdfContent,TxmlDocument(OwnerDocument))); + result.SetAttribute(oatTextProtected, 'true'); + result.SetAttribute(oatTextName, aName+'1'); + AppendChild(result); + + lTOCTempl := CreateOdfElement(oetTextTableOfContentSource,TxmlDocument(OwnerDocument)); + result.AppendChild(lTOCTempl); + ltoctempl.SetAttribute(oatTextOutlineLevel,inttostr(aLevel)); + + lTocEntry := CreateOdfElement(oetTextIndexTitleTemplate,TxmlDocument(OwnerDocument)); + lTOCTempl.AppendChild(lTocEntry); + lTocEntry.SetTextContent(aName); + + for i := 1 to alevel do + begin + lTocEntry := CreateOdfElement(oetTextTableOfContentEntryTemplate,TxmlDocument(OwnerDocument)); + lTOCTempl.AppendChild(lTocEntry); + lTocEntry.SetAttribute(oatTextOutlineLevel,inttostr(i)); + + ltocEntry.AppendOdfElement(oetTextIndexEntryLinkStart); + ltocEntry.AppendOdfElement(oetTextIndexEntryChapter); + ltocEntry.AppendOdfElement(oetTextIndexEntryText); + l:= ltocEntry.AppendOdfElement(oetTextIndexEntryTabStop); + l.SetAttributes([oatStyleType,oatStyleLeaderChar], + ['right','.']); + ltocEntry.AppendOdfElement(oetTextIndexEntryPageNumber); + ltocEntry.AppendOdfElement(oetTextIndexEntryLinkEnd); + end; end; -function TOdfParagraph.AddBookmark(AText: string; FontStyles: TOdfFontStyles; + +{ TOdfParagraph } + +function TOdfParagraph.AddBookmark(AText: string; FontStyles: TFontStyles; aBMName: string): TSpan; begin result := TBookMark.CreateBookmark(self.OwnerDocument as TXMLDocument,AText,aBMName); @@ -998,14 +1147,6 @@ function TOdfParagraph.AddBookmark(AText: string; FontStyles: TOdfFontStyles; AppendChild(result); end; -function TOdfParagraph.AddLink(AText: string; FontStyles: TOdfFontStyles; - aBMName: string): THyperLink; -begin - result := THyperLink.CreateLink(self.OwnerDocument as TXMLDocument,AText,aBMName); - result.SetStyle(FontStyles); - AppendChild(result); -end; - function TOdfParagraph.AddTextInput(ADescription: string): TOdfElement; begin if ADescription='' @@ -1043,18 +1184,6 @@ procedure TBookMark.SetBookmark(aBMName: string); lBookmark.SetAttribute(oatTextName,aBMName); end; -const CSolid = 'solid'; - CAuto='auto'; - CFontColor='font-color'; - CSingle='single'; - CSimple='simple'; - CClassText='text'; - CStyleHeading='Heading'; - CStyleHeadingStb='Heading_20_'; - CStyleTextBody='Text_20_body'; - CTextBodyDis='Text body'; - CStyleStandard='Standard'; - { THyperLink } class function THyperLink.CreateLink(doc: TXMLDocument; AText, aBMName: string @@ -1063,7 +1192,8 @@ class function THyperLink.CreateLink(doc: TXMLDocument; AText, aBMName: string result:=THyperLink(CreateOdfElement(oetTextA, THyperLink, doc)); Result.SetAttribute(oatXlinkType,CSimple); Result.SetAttribute(oatXlinkHref,'#'+aBMName); - result.TextContent:=AText; + if AText<>'' then + result.TextContent:=AText; end; procedure THyperLink.SetLink(aBMName: string); @@ -1088,7 +1218,24 @@ procedure TSpan.SetStyle(fs: TOdfFontStyles); SetAttribute(oatTextStyleName,lFsName); end; +procedure TSpan.SetStyle(fs: TFontStyles); +var + lfs: TFontStyle; + lFsName: string; + lFsVal: Integer; +begin + lFsVal:=0; + for lfs in fs do + lFsVal += 1 shl ord(lfs) ; + + lFsName:='TA'+inttostr(lFsVal); + + SetAttribute(oatTextStyleName,lFsName); +end; + + procedure TSpan.SetStyle(const doc: TOdfDocument; aFont: TOdfFont); + var lStyle: TOdfStyleStyle; lStyleprop: TOdfElement; @@ -1140,6 +1287,59 @@ procedure TSpan.SetStyle(const doc: TOdfDocument; aFont: TOdfFont); SetAttribute(oatTextStyleName,lstyle.OdfStyleName); end; +procedure TSpan.SetStyle(const doc: TOdfDocument; aFont: TFont); +var + lStyle: TOdfStyleStyle; + lStyleprop: TOdfElement; + lFontdcls: TDOMNode; + lR, lG, lB: Byte; + +begin + if doc.InheritsFrom(TOdfTextDocument) then + with TOdfTextDocument(doc) do + begin + lStyle:= AddAutomaticStyle(); + lStyleprop :=CreateOdfElement(oetStyleTextProperties); + lStyle.AppendChild(lStyleprop); + + if aFont.name <> 'default' then + begin + lFontdcls := FFontFaceDecls.FindNode(afont.Name); + if not assigned(lFontdcls) then + begin + lFontdcls := CreateOdfElement(oetStyleFontFace,oatStyleName,afont.Name); + TOdfElement(lFontdcls).SetAttribute(oatSvgFontFamily,afont.Name.QuotedString('''')); + FontFaceDecls.AppendChild(lFontdcls); + end; + lStyleprop.SetAttribute(oatStyleFontName,afont.Name) ; + end; + if afont.Color <>clDefault then + begin + RedGreenBlue(afont.Color,lR,lG,lB); + lStyleprop.SetAttribute(oatFoColor,'#'+IntToHex(Integer(RGBToColor(lb,lg,lr)),6)) ; + end; + if afont.Size>0 then //Todo -ojc: Handling of negative font-sizes + lStyleprop.SetAttribute(oatFoFontSize,inttostr(afont.Size)+'pt') ; + if aFont.Bold then + lStyleprop.SetAttribute(oatFoFontWeight,OdfFontWeightValues[fwBold]); + if aFont.Italic then + lStyleprop.SetAttribute(oatFoFontStyle,OdfFontStyleValues[ofsItalic]); + if aFont.Underline then + begin + lStyleProp.SetAttribute(oatStyleTextUnderlineStyle,CSolid); + lStyleProp.SetAttribute(oatStyleTextUnderlineWidth,CAuto); + lStyleProp.SetAttribute(oatStyleTextUnderlineColor,CFontColor); + end; + if aFont.StrikeThrough then + begin + lStyleProp.SetAttribute(oatStyleTextLineThroughStyle,CSolid); + lStyleProp.SetAttribute(oatStyleTextLineThroughType,CSingle); + end; + end; + SetAttribute(oatTextStyleName,lstyle.OdfStyleName); +end; + + procedure TSpan.SetStyle(aStyleName: string); begin SetAttribute(oatTextStyleName,aStyleName); @@ -1166,7 +1366,7 @@ procedure TOdfContent.OdfSetTextContent(const AValue: DOMString); AppendText(AValue); end; -procedure TOdfContent.AppendText(aText: String); +procedure TOdfContent.AppendText(aText: string); var et: TElementType; @@ -1200,6 +1400,66 @@ procedure TOdfContent.AppendText(aText: String); until (et = oetNone) and (s=''); end; +function TOdfContent.AddLineBreak: TOdfContent; +begin + result := TOdfContent(AppendOdfElement(oetTextLineBreak,TOdfContent)); +end; + +function TOdfContent.AddNBSpace(FontStyles: TFontStyles): TOdfContent; +begin + result := AddSpan(' ',FontStyles); +end; + +function TOdfContent.AddTab(FontStyles: TFontStyles): TOdfContent; +begin + result := TOdfContent(AppendOdfElement(oetTextTab,TOdfContent)); +end; + +function TOdfContent.AddSpan(AText: string; FontStyles: TFontStyles): TSpan; +begin + result:=TSpan.CreateSpan(self.OwnerDocument as TXMLDocument, AText); + result.SetStyle(FontStyles); + AppendChild(result); +end; + +function TOdfContent.AddSpan(AText: string; aFont: TFont; + const doc: TOdfDocument): TSpan; +begin + result:=TSpan.CreateSpan(self.OwnerDocument as TXMLDocument, AText); + result.SetStyle(doc,aFont); + AppendChild(result); +end; + +function TOdfContent.AddSpan(AText: string; aStyle: string): TSpan; +begin + result:=TSpan.CreateSpan(self.OwnerDocument as TXMLDocument, AText); + result.SetStyle(aStyle); + AppendChild(result); +end; + +function TOdfContent.AddLink(AText: string; FontStyles: TFontStyles; + aBMName: string): THyperLink; +begin + if FontStyles=[] then + result := THyperLink.CreateLink(self.OwnerDocument as TXMLDocument,AText,aBMName) + else + begin + result := THyperLink.CreateLink(self.OwnerDocument as TXMLDocument,'',aBMName); + result.AddSpan(AText,FontStyles); + end; + AppendChild(result); +end; + +function TOdfContent.GetStyle: TOdfStyleStyle; +var + lattr: TDOMAttr; +begin + result := nil; + lattr := GetAttribute(oatTextStyleName); + if assigned(lattr) then + result := TOdfTextDocument(GetDocument()).SearchStyle(lattr.Value); +end; + function TOdfContent.GetCharacterContent(Recursive: boolean): string; var n: TDOMNode; @@ -1294,15 +1554,17 @@ procedure TOdfTextDocument.InitBodyContent; begin if Assigned(FText) then - FreeAndNil(FText); + try + // Prüfen warum Ftext sich ändert + // FreeAndNil(FText); + except + end; FText:=OdfGetElement(oetOfficeText, FBody); end; procedure TOdfTextDocument.GenerateAutoStyles; - - var lStyle, lStyleProp: TOdfElement; i: Integer; @@ -1333,6 +1595,16 @@ procedure TOdfTextDocument.GenerateAutoStyles; lStyleProp.SetAttribute(oatStyleTextLineThroughType,CSingle); end; end; +// Page-Layout-Style + lStyle :=CreateOdfElement(oetStylePageLayout); + FAutomaticStyles.AppendChild(lStyle); + + lStyle.SetAttribute(oatStyleName,'pm1'); + FMasterPageProp := CreateOdfElement(oetStylePageLayoutProperties); + FMasterPageProp.SetAttributes([oatFoPageWidth,oatFoPageHeight,oatStylePrintOrientation, + oatFoMarginTop,oatFoMarginBottom,oatFoMarginLeft,oatFoMarginRight], + ['21cm','29.7cm','portrait','2cm','2cm','1.5cm','1.5cm']); + lStyle.AppendChild(FMasterPageProp); end; constructor TOdfTextDocument.Create; @@ -1347,58 +1619,48 @@ procedure TOdfTextDocument.Clear; GenerateAutoStyles; end; -function TOdfTextDocument.AddParagraph(ATextStyleName: String): TOdfParagraph; +function TOdfTextDocument.AddSection(aSectionName, ATextStyleName: String + ): TOdfSection; begin - result:=TOdfParagraph(CreateOdfElement(oetTextP)); - result.SetAttribute(oatTextStyleName, ATextStyleName); - FText.AppendChild(result); + result:=TOdfSection(CreateOdfElement(oetTextSection)); + result.SetAttribute(oatTextName, aSectionName); + result.SetAttribute(oatTextStyleName, ATextStyleName); + FText.AppendChild(result); end; -function TOdfTextDocument.AddHeadline(aLevel: integer): TOdfContent; +function TOdfTextDocument.AddMasterStyle: TOdfStyleStyle; var - - vStyle, lParaStyle: TOdfElement; + l: TOdfStyleDefaultStyle; begin - result:=TOdfContent(CreateOdfElement(oetTextH)); - result.SetAttribute(oatTextStyleName, CStyleHeadingStb+Inttostr(aLevel)); - result.SetAttribute(oatTextOutlineLevel, Inttostr(aLevel)); - FText.AppendChild(result); - - lParaStyle:= TOdfElement(FStyles).FindStyle(CStyleTextBody) ; - if not assigned(lParaStyle) then + Result := TOdfStyleStyle(TOdfElement(FMasterStyles).Find('Standard')); + if not assigned(result) then begin - vStyle:=CreateOdfElement(oetStyleStyle); - with TOdfStyleStyle(vStyle) do - begin - OdfStyleName:=CStyleTextBody; - OdfStyleDisplayName:=CTextBodyDis; - SetStyleFamily(sfvParagraph); - OdfStyleParentStyleName:=CStyleStandard; - OdfStyleClass:=CClassText; - end; - FStyles.AppendChild(vStyle); - + result:=TOdfStyleStyle(CreateOdfElement(oetStyleMasterPage)); + with result do + begin + OdfStyleName:='Standard'; + OdfStyleFamily:=OdfGetStyleFamilyValue(TStyleFamilyValue.sfvParagraph); + OdfStyleClass:='text'; + SetAttribute(oatStylePageLayoutName, 'pm1'); + end; + FMasterStyles.AppendChild(result); end; +end; - lParaStyle:= TOdfElement(FStyles).FindStyle(CStyleHeadingStb+Inttostr(aLevel)) ; - if not assigned(lParaStyle) then - begin - vStyle:=CreateOdfElement(oetStyleStyle); - with TOdfStyleStyle(vStyle) do - begin - OdfStyleName:=CStyleHeadingStb+Inttostr(aLevel); - OdfStyleDisplayName:=CStyleHeading+' '+Inttostr(aLevel); - SetStyleFamily(sfvParagraph); - OdfStyleParentStyleName:=CStyleHeading; - OdfStyleNextStyleName:=CStyleTextBody; - OdfStyleDefaultOutlineLevel:=inttostr(aLevel); - OdfStyleClass:=CClassText; - AppendOdfElement(oetStyleTextProperties,oatFoFontSize,inttostr(156-trunc(sqrt(aLevel)*25))+'%') - .SetAttribute(oatFoFontWeight,OdfFontWeightValues[fwBold]); - end; - FStyles.AppendChild(vStyle); +function TOdfTextDocument.AddParagraph(ATextStyleName: String): TOdfParagraph; +begin + TOdfSection(FText).AddParagraph(ATextStyleName); +end; - end; +function TOdfTextDocument.AddHeadline(aLevel: integer): TOdfContent; + +begin + TodfSection(Ftext).AddHeadline(aLevel); +end; + +function TOdfTextDocument.AddTOC(aName: string; aLevel: integer): TOdfContent; +begin + TOdfSection(Ftext).AddTOC(aName,aLevel); end; function TOdfTextDocument.AddAutomaticStyle: TOdfStyleStyle; @@ -1406,17 +1668,29 @@ function TOdfTextDocument.AddAutomaticStyle: TOdfStyleStyle; result:=AddAutomaticStyle('TS'+inttostr(FAutomaticStyles.GetChildCount)); end; -function TOdfTextDocument.AddAutomaticStyle(aName: string): TOdfStyleStyle; +function TOdfTextDocument.AddAutomaticStyle(aName: string; + aFamily: TStyleFamilyValue): TOdfStyleStyle; begin - result:=CreateStyle(aName,sfvText); + result:=CreateStyle(aName,aFamily); FAutomaticStyles.AppendChild(result); end; function TOdfTextDocument.AddStyle(aName:String;aFamily:TStyleFamilyValue): TOdfStyleStyle; begin + Result := TOdfStyleStyle(TOdfElement(FStyles).Find(aName)); + if not assigned(result) then + begin result:=CreateStyle(aName,aFamily); FStyles.AppendChild(result); + end; +end; + +function TOdfTextDocument.AddFontFace(StyleName, SvgFontFamily, + FontFamilyGeneric, FontPitch: string): Todfelement; +begin + result:= TFontFaceDecls(FFontFaceDecls) + .AddFontFace(StyleName, SvgFontFamily, FontFamilyGeneric, FontPitch); end; @@ -1460,6 +1734,15 @@ function TOdfTextDocument.SearchText(AText: string; out FoundAt: TDOMText; end; end; +function TOdfTextDocument.SearchStyle(aStyle: string): TodfStyleStyle; +begin + Result := TOdfStyleStyle(TOdfElement(FMasterStyles).Find(aStyle,true)); + if not assigned(result) then + Result := TOdfStyleStyle(TOdfElement(FStyles).Find(aStyle,true)); + if not assigned(result) then + Result := TOdfStyleStyle(TOdfElement(FAutomaticStyles).Find(aStyle,true)); +end; + { TOdfElement } //A "reflexive" function, to allow descendants specify type by property index @@ -1490,6 +1773,7 @@ class function TOdfElement.CreateOdfElement(AType: TElementType; Doc: TXMLDocument): TOdfElement; var vQname, vUri: string; + ll: TDomElement; begin vQname:=OdfGetElementQName(AType, vUri); @@ -1497,7 +1781,13 @@ class function TOdfElement.CreateOdfElement(AType: TElementType; result:=(doc.CreateElementNS(vUri, vQname, AClass) as aclass); {$IFDEF fpodf_debug}WriteLn(result.ClassName);{$ENDIF} {$else} - result:=TOdfElement(doc.CreateElementNS(vUri, vQname)); + result := AClass.Create(doc); + ll := doc.CreateElementNS(vUri, vQname); + result.FNSI := ll.NSI; + result.NamespaceURI; + FreeAndNil(ll); + Include(Result.FFlags, nfLevel2); + Result.AttachDefaultAttrs; {$endif} end; @@ -1537,17 +1827,37 @@ class procedure TOdfElement.SetAttributes(atts: array of TAttributeType; end; end; +function TOdfElement.GetDocument: TOdfDocument; +var + lValue: PtrInt; +begin + TryStrToInt64(TDOMElement(TXMLDocument(OwnerDocument).FirstChild).GetAttribute(cOwnerAttr),lValue); + result := TOdfDocument(TObject(lValue)); +end; + function TOdfElement.AppendOdfElement(AType: TElementType): TOdfElement; begin - result:=CreateOdfElement(AType, self.OwnerDocument as TXMLDocument); - self.AppendChild(result); + result:=AppendOdfElement(AType,TOdfElement); end; -function TOdfElement.AppendOdfElement(AType: TElementType; at: TAttributeType; - AValue: string): TOdfElement; +function TOdfElement.AppendOdfElement(AType: TElementType; + AClass: TOdfElementClass): TOdfElement; begin - result:=AppendOdfElement(AType); - result.SetAttribute(at, AValue); + result:=CreateOdfElement(AType,AClass, self.OwnerDocument as TXMLDocument); + self.AppendChild(result); +end; + +function TOdfElement.AppendOdfElement(AType: TElementType; + at: TAttributeType; AValue: string): TOdfElement; +begin + result:=AppendOdfElement(AType,at,AValue,TOdfElement); +end; + +function TOdfElement.AppendOdfElement(AType: TElementType; + at: TAttributeType; AValue: string; AClass: TOdfElementClass): TOdfElement; +begin + result:=AppendOdfElement(AType,AClass); + result.SetAttribute(at, AValue); end; function TOdfElement.OdfGetFirstElement: TOdfElement; @@ -1606,6 +1916,65 @@ function TOdfElement.FindStyle(aName: String): TOdfElement; end; end; +function TOdfElement.FindOdfElement(AType: TElementType): TOdfElement; + +var + vPrefix, vLocalname, vUri: string; + n: TDOMNode; +begin + OdfElementGetNsAndName(AType, vPrefix, vLocalname, vUri); + result := Nil; + + for n in self do + if (n is TDOMElement) + then + with (n as TDOMElement) do + if (NamespaceURI = vUri) and (LocalName = vLocalname) then + begin + Result := n as TOdfElement; + break; + end; +end; + + +function TOdfElement.Find(aName: String; recursive: boolean): TOdfElement; +var + lChlds, lNext: TDOMNode; +begin + lChlds := FirstChild; + lNext:= GetNextNodeSkipChildren; + result := nil; + while assigned(lChlds) and (lChlds<>lNext) do + begin + if not (lChlds is TDOMElement) and not (lChlds is TDOMText) + then + raise Exception.Create('Unexpected Node Type: ' + lChlds.ClassName); + + if not (lChlds is TDOMText) then + begin + {for some reason lChlds.inheritsfrom(TOdfStyleStyle)=False !} + if (TOdfElement(lChlds).GetAttributeString(oatStyleName)=aName) + then + exit(TOdfElement(lChlds)); + + if (TOdfElement(lChlds).GetAttributeString(oatFoFontFamily)=aName) + then + exit(TOdfElement(lChlds)); + + {for some reason lChlds.inheritsfrom(TOdfContent)=False !} + if (TOdfElement(lChlds).GetAttributeString(oatTextStyleName)=aName) + then + exit(TOdfElement(lChlds)); + + end; + if recursive + then + lChlds:=lChlds.GetNextNode + else + lChlds:=lChlds.GetNextNodeSkipChildren; + end; +end; + function TOdfElement.GetAttribute(AType: TAttributeType): TDOMAttr; var uri, vLocalName: string; @@ -1771,7 +2140,6 @@ function TOdfDocument.StylesUsed(AParent: TDomElement): TStrings; s+='//' + AParent.TagName + '//@' + OdfGetAttributeQName(att); end; - { TODO : Maybe the correct is to search starting from BODY element } if XPathSearch(s, FXmlDocument.DocumentElement, [], StylesFound) then begin @@ -1799,10 +2167,10 @@ class function TOdfDocument.ParseXmlFile(AStream: TStream): TXMLDocument; begin try Src:=TXMLInputSource.Create(AStream); - Parser := TDOMParser.Create; Parser.Options.Namespaces:=True; Parser.Options.IgnoreComments:=True; + parser.Options.PreserveWhitespace:=true; Parser.Parse(Src, result); finally @@ -1812,8 +2180,11 @@ class function TOdfDocument.ParseXmlFile(AStream: TStream): TXMLDocument; end; function TOdfDocument.GetMimeType: TOdfMimetype; +var + s: string; begin - Result:=GetMimeType(XmlDocument); + s:=XmlDocument.DocumentElement.GetAttributeNS(GetURI(onsOffice), 'mimetype'); + result:=OdfGetMimeTypeByName(s); end; class function TOdfDocument.LoadFromFile(AFilename: string): TOdfDocument; @@ -2091,21 +2462,32 @@ class procedure TOdfDocument.ReadPackage(ADir: String; AOdf: TOdfDocument); AOdf.Manifest:=vDoc; vDoc:=nil; + DeleteDirectory(ADir, false); AOdf.InitBodyContent; end; -procedure TOdfDocument.SetXmlDocument(AValue: TXMLDocument); +procedure TOdfDocument.SetCountry(const AValue: String); begin - if Assigned(FXmlDocument) - then - begin - FreeAndNil(FXmlDocument); + if FCountry=AValue then Exit; + FCountry:=AValue; +end; - ResetRootElements; - end; +procedure TOdfDocument.SetLanguage(const AValue: String); +begin + if FLanguage=AValue then Exit; + FLanguage:=AValue; +end; - FXmlDocument:=AValue; +procedure TOdfDocument.SetXmlDocument(AValue: TXMLDocument); +begin + if assigned(FXmlDocument) then + begin + + FreeAndNil(FXmlDocument); + ResetRootElements; // to Check + end; + FXmlDocument:=AValue; end; function OdfCreateManifestRdfFile: TXMLDocument; @@ -2314,10 +2696,10 @@ class procedure TOdfDocument.WritePackage(DestFile: String; CloneElements(AOdf.XmlDocument.DocumentElement, vRoot, vChildren); - nsSet:=[onsStyle, onsFo, onsSvg]; + nsSet:=[onsStyle, onsFo, onsSvg, onsGrddl]; case f of - ofContent: nsSet:=nsSet + [onsText];//Include(nsSet, onsText); + ofContent: nsSet:=nsSet + [onsText, onsXlink];//Include(nsSet, onsText); ofMeta, ofSettings : nsSet:=[]; end; end; @@ -2351,10 +2733,10 @@ class procedure TOdfDocument.WritePackage(DestFile: String; if (f<>ofManifest) // ?? or ( (f=ofManifest) and (AOdf.Manifest=nil)) then - vDoc.Free; + vDoc.Free; end; - procedure UpdateManifest(ASubDir, AFileName: string); + procedure UpdateManifest(ASubDir, AFileName: string); var vNode: TDOMNode; vElement: TDOMElement; @@ -2445,7 +2827,6 @@ class procedure TOdfDocument.WritePackage(DestFile: String; FindClose(FileInfo); end; end; - begin if ATempDir='' then @@ -2582,7 +2963,7 @@ procedure TOdfDocument.InitStyles; oatFoFontSize, oatFoLanguage, oatFoCountry, oatStyleLetterKerning, oatFoHyphenate, oatFoHyphenationRemainCharCount, oatFoHyphenationPushCharCount], - ['true', 'Liberation Serif', '12pt', 'en', 'US', 'true', + ['true', 'Liberation Serif', '12pt', FLanguage, FCountry, 'true', 'false', '2', '2']); end; FStyles.AppendChild(vStyle); @@ -2599,13 +2980,16 @@ procedure TOdfDocument.InitStyles; procedure TOdfDocument.InitXmlDocument; var e: TOdfElement; + FOwnerAttr: TDOMAttr; begin FXmlDocument:=TXMLDocument.Create; e:=TOdfElement.CreateOdfElement(oetOfficeDocument, FXmlDocument); FXmlDocument.AppendChild(e); - + TDOMElement(e).SetAttribute(cOwnerAttr,inttostr(ptrint(self))); OdfXmlSetDefaultAtts(FXmlDocument); + OdfElementSetNamespaceAtt(FXmlDocument.DocumentElement, + [onsStyle, onsFo, onsSvg, onsText, onsGrddl, onsXlink, onsOffice]); with e do begin @@ -2633,6 +3017,8 @@ procedure TOdfDocument.FindOdfRootElements; e:=OdfGetElement(oetOfficeDocument,TDomElement( FXmlDocument)); with e do begin + TDOMElement(e).SetAttribute(cOwnerAttr,inttostr(ptrint(self))); + FMeta:=OdfGetElement(oetOfficeMeta,e); FSettings:=OdfGetElement(oetOfficeSettings,e); @@ -2670,7 +3056,8 @@ procedure TOdfDocument.ResetRootElements; constructor TOdfDocument.Create; begin inherited Create; - + FLanguage:='en'; + FCountry:='US'; FTempDir:=''; FRemoveTempDir:=true; @@ -2688,7 +3075,7 @@ destructor TOdfDocument.Destroy; if FRemoveTempDir and DirectoryExistsUTF8(FTempDir) then - RemoveDirUTF8(FTempDir); + RemoveDir(FTempDir); inherited Destroy; end; @@ -2782,15 +3169,19 @@ class function TOdfDocument.LoadFromZipFile(AFilename, TempDir: string): TOdfDoc TempDir:=IncludeTrailingPathDelimiter(TempDir); - mt:=OdfGetMimeTypeFromFile(TempDir + 'mimetype'); + mt:=OdfGetMimeTypeFromFile(TempDir + cFileMimetype); - result:=TOdfDocument.CreateDocument(mt); + case mt of + omtText: result:=TOdfTextDocument.Create; + else + result:=TOdfDocument.Create; + end; ReadPackage(TempDir, result); result.MimeType:=mt; - Result.FTempDir:=TempDir; + RemoveDir(TempDir); end; class function TOdfDocument.CreateFromXml(ADoc: TXMLDocument): TOdfDocument; @@ -2802,6 +3193,7 @@ class function TOdfDocument.CreateFromXml(ADoc: TXMLDocument): TOdfDocument; Result:=CreateDocument(mt); Result.XmlDocument:=ADoc; + Result.FindOdfRootElements; end; @@ -2821,7 +3213,7 @@ class function TOdfDocument.LoadFromSingleXml(AFilename: string result:=nil; fs:=TFileStream.Create(AFilename, fmOpenRead); try - result:=TOdfDocument.LoadFromSingleXml(fs); + result:=TOdfDocument.LoadFromSingleXml(fs); finally fs.Free; end; @@ -2831,9 +3223,7 @@ class procedure TOdfDocument.SaveToSingleXml(AOdf: TOdfDocument; AFilename: string); begin ReorderElements(AOdf); - OdfXmlSetDefaultAtts(AOdf.XmlDocument); - OdfElementSetNamespaceAtt(AOdf.XmlDocument.DocumentElement, - [onsStyle, onsFo, onsSvg]); +(* *) OdfWriteXmlToFile(AOdf.XmlDocument, AFilename); end; @@ -2889,9 +3279,11 @@ function TOdfDocument.CreateSpan(AText: string; FontStyles: TOdfFontStyles result.SetStyle(FontStyles); end; - - - +function TOdfDocument.CreateSpan(AText: string; FontStyles: TFontStyles): TSpan; +begin + result:=TSpan.CreateSpan(self.XmlDocument, AText); + result.SetStyle(FontStyles); +end; { TODO : Create a SiblingNode Parameter. If assigned the method will begin the search using it as a starting point, @@ -3526,11 +3918,11 @@ procedure OdfFileGetDetails(f: TOdfFile; out RootLocalname: string; out RootElement:=oetOfficeDocumentStyles; end; ofMeta: begin - Filename:='meta.xml'; + Filename:=cFileMeta; RootElement:=oetOfficeDocumentMeta; end; ofSettings: begin - Filename:='settings.xml'; + Filename:=cFileSettings; RootElement:=oetOfficeDocumentSettings; end; diff --git a/odf_xmlutils.pas b/odf_xmlutils.pas index a5e6808..f5cfdb7 100644 --- a/odf_xmlutils.pas +++ b/odf_xmlutils.pas @@ -29,6 +29,8 @@ You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + Additional: (C) 2024 Joe Care https://github.com/joecare99 } unit odf_xmlutils; @@ -51,16 +53,24 @@ interface ; +type TXmlWriterProc=Procedure(ADoc: TXMLDocument; AFilename: string); + TXmlStrWriterProc=Procedure(ADoc: TXMLDocument; AStream: TStream); procedure OdfWriteXmlToStream(ADoc: TXMLDocument; AStream: TStream); procedure OdfWriteXmlToFile(ADoc: TXMLDocument; AFilename: string); function OdfAttributesAsStrings(e: TDOMElement; OnlyNames: boolean = true): TStrings; +var XmlWriterProc : TXmlWriterProc; + XmlStrWriterProc : TXmlStrWriterProc; + implementation procedure OdfWriteXmlToStream(ADoc: TXMLDocument; AStream: TStream); begin + if assigned(XmlStrWriterProc) then + XmlStrWriterProc(ADoc,AStream) + else {$IfDef UseStaxWriter} XmlStreamWrite(ADoc, AStream, 'utf-8', '1.0'); {$Else} @@ -68,10 +78,14 @@ procedure OdfWriteXmlToStream(ADoc: TXMLDocument; AStream: TStream); {$EndIf} end; + procedure OdfWriteXmlToFile(ADoc: TXMLDocument; AFilename: string); var fs: TFileStream; begin + if assigned(XmlWriterProc) then + XmlWriterProc(ADoc,AFilename) + else try fs:=TFileStream.Create(AFilename, fmCreate); OdfWriteXmlToStream(ADoc, fs); diff --git a/package/fpodf.lpk b/package/fpodf.lpk index cf98da7..bb396c7 100644 --- a/package/fpodf.lpk +++ b/package/fpodf.lpk @@ -7,6 +7,7 @@ <CompilerOptions> <Version Value="11"/> <SearchPaths> + <IncludeFiles Value="../incs"/> <OtherUnitFiles Value=".."/> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> @@ -23,7 +24,7 @@ http://en.wikipedia.org/wiki/OpenDocument"/> Read the file COPYING.modifiedLGPL.txt for more informations."/> <Version Release="1"/> - <Files Count="3"> + <Files Count="11"> <Item1> <Filename Value="../odf_types.pas"/> <UnitName Value="odf_types"/> @@ -36,15 +37,50 @@ Read the file COPYING.modifiedLGPL.txt for more informations."/> <Filename Value="../odf_xmlutils.pas"/> <UnitName Value="odf_xmlutils"/> </Item3> + <Item4> + <Filename Value="../incs/Atts-Enum.inc"/> + <Type Value="Include"/> + </Item4> + <Item5> + <Filename Value="../incs/Atts-Proc-Declaration.inc"/> + <Type Value="Include"/> + </Item5> + <Item6> + <Filename Value="../incs/Atts-Proc-Implemetation.inc"/> + <Type Value="Include"/> + </Item6> + <Item7> + <Filename Value="../incs/ElementEnum.inc"/> + <Type Value="Include"/> + </Item7> + <Item8> + <Filename Value="../incs/Elements-Proc-Declaration.inc"/> + <Type Value="Include"/> + </Item8> + <Item9> + <Filename Value="../incs/proc.inc"/> + <Type Value="Include"/> + </Item9> + <Item10> + <Filename Value="../incs/styles-decl.inc"/> + <Type Value="Include"/> + </Item10> + <Item11> + <Filename Value="../incs/styles-impl.inc"/> + <Type Value="Include"/> + </Item11> </Files> <LazDoc Paths="../FPdoc"/> - <RequiredPkgs Count="2"> + <RequiredPkgs Count="3"> <Item1> - <PackageName Value="LazUtils"/> + <PackageName Value="LCLBase"/> </Item1> <Item2> - <PackageName Value="FCL"/> + <PackageName Value="LazUtils"/> </Item2> + <Item3> + <PackageName Value="FCL"/> + </Item3> </RequiredPkgs> <UsageOptions> <UnitPath Value="$(PkgOutDir)"/> diff --git a/test/ElementFunctionsTests.pas b/test/ElementFunctionsTests.pas index c507a50..e132b67 100644 --- a/test/ElementFunctionsTests.pas +++ b/test/ElementFunctionsTests.pas @@ -29,6 +29,8 @@ You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + Reworked: (C) 2024 Joe Care https://github.com/joecare99 } unit ElementFunctionsTests; @@ -38,10 +40,11 @@ interface uses - fpcunit, testregistry, testdecorator, Laz2_DOM, odf_types; + fpcunit, testregistry, testdecorator, Laz2_DOM, odf_types, SysUtils; const - cTestFile = '../OlaMundo.fodt'; + cPath = 'test'; + cTestFile = 'OlaMundo.fodt'; type @@ -57,11 +60,20 @@ TElementFunctionsTestSetup = class(TTestSetup) TElementFunctionsTests = class(TTestCase) private + FDataPath:string; + Fdoc: TOdfDocument; procedure Test_OdfGetElement_aux(Recursive: boolean); + class procedure Test2_OdfGetElement_aux(Recursive: boolean; aDoc: TOdfDocument); + protected + procedure SetUp; override; + procedure TearDown; override; published procedure Test_OdfGetElement_Default; procedure Test_OdfGetElement_Recursive; procedure Test_OdfGetElement_NonRecursive; + procedure Test2_OdfGetElement_Default; + procedure Test2_OdfGetElement_Recursive; + procedure Test2_OdfGetElement_NonRecursive; end; implementation @@ -72,8 +84,14 @@ implementation { TElementFunctionsTestSetup } procedure TElementFunctionsTestSetup.OneTimeSetup; +var I:integer; + DataPath: string; begin - doc:=TOdfDocument.LoadFromSingleXml(cTestFile); + DataPath := cPath; + for I := 0 to 2 do + if not DirectoryExists(DataPath) then + DataPath:='..' + DirectorySeparator + DataPath; + doc:=TOdfDocument.LoadFromSingleXml(DataPath +DirectorySeparator + cTestFile); end; procedure TElementFunctionsTestSetup.OneTimeTearDown; @@ -81,6 +99,23 @@ procedure TElementFunctionsTestSetup.OneTimeTearDown; doc.Free; end; +{ TElementFunctionsTests } + +procedure TElementFunctionsTests.SetUp; +var I: integer; +begin + FDataPath := cPath; + for I := 0 to 2 do + if not DirectoryExists(FDataPath) then + FDataPath:='..' + DirectorySeparator +FDataPath; + Fdoc:=TOdfDocument.LoadFromSingleXml(FDataPath +DirectorySeparator + cTestFile); +end; + +procedure TElementFunctionsTests.TearDown; +begin + Fdoc.Free; +end; + procedure TElementFunctionsTests.Test_OdfGetElement_aux(Recursive: boolean); var e: TDOMElement; @@ -107,6 +142,33 @@ procedure TElementFunctionsTests.Test_OdfGetElement_NonRecursive; Test_OdfGetElement_aux(false); end; +class procedure TElementFunctionsTests.Test2_OdfGetElement_aux( + Recursive: boolean; aDoc: TOdfDocument); +var + e: TDOMElement; +begin + e:=OdfGetElement(oetTextP, aDoc.XmlDocument.DocumentElement, Recursive); + AssertEquals(Assigned(e), Recursive); +end; + +procedure TElementFunctionsTests.Test2_OdfGetElement_Default; +var + e: TDOMElement; +begin + e:=OdfGetElement(oetTextP, Fdoc.XmlDocument.DocumentElement); + AssertEquals(Assigned(e), false); +end; + +procedure TElementFunctionsTests.Test2_OdfGetElement_Recursive; +begin + Test2_OdfGetElement_aux(true,FDoc); +end; + +procedure TElementFunctionsTests.Test2_OdfGetElement_NonRecursive; +begin + Test2_OdfGetElement_aux(false,FDoc); +end; + initialization RegisterTestDecorator(TElementFunctionsTestSetup, TElementFunctionsTests); end. diff --git a/test/fpOdfTest.lpi b/test/fpOdfTest.lpi index c62b613..58bdcce 100644 --- a/test/fpOdfTest.lpi +++ b/test/fpOdfTest.lpi @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="9"/> + <Version Value="11"/> <General> <Flags> <SaveJumpHistory Value="False"/> @@ -15,22 +15,24 @@ <i18n> <EnableI18N LFM="False"/> </i18n> - <VersionInfo> - <StringTable ProductVersion=""/> - </VersionInfo> <BuildModes Count="1"> <Item1 Name="Default" Default="True"/> </BuildModes> <PublishOptions> <Version Value="2"/> - <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/> - <ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/> </PublishOptions> <RunParams> <local> - <FormatVersion Value="1"/> <CommandLineParams Value="-a --format=plain"/> </local> + <FormatVersion Value="2"/> + <Modes Count="1"> + <Mode0 Name="default"> + <local> + <CommandLineParams Value="-a --format=plain"/> + </local> + </Mode0> + </Modes> </RunParams> <RequiredPackages Count="3"> <Item1> @@ -47,47 +49,39 @@ <Unit0> <Filename Value="fpOdfTest.lpr"/> <IsPartOfProject Value="True"/> - <UnitName Value="fpOdfTest"/> </Unit0> <Unit1> <Filename Value="TestStringPrep.pas"/> <IsPartOfProject Value="True"/> - <UnitName Value="TestStringPrep"/> </Unit1> <Unit2> <Filename Value="ElementFunctionsTests.pas"/> <IsPartOfProject Value="True"/> - <UnitName Value="ElementFunctionsTests"/> </Unit2> <Unit3> <Filename Value="CharacterContentTest.pas"/> <IsPartOfProject Value="True"/> - <UnitName Value="CharacterContentTest"/> </Unit3> <Unit4> <Filename Value="SearchTest.pas"/> <IsPartOfProject Value="True"/> - <UnitName Value="SearchTest"/> </Unit4> </Units> </ProjectOptions> <CompilerOptions> <Version Value="11"/> + <Target> + <Filename Value="../../bin/$(TargetCPU)-$(TargetOS)/$NameOnly($Project(Infofile))"/> + </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> - <UnitOutputDirectory Value="output"/> + <UnitOutputDirectory Value="../../bin/$(TargetCPU)-$(TargetOS)/units"/> </SearchPaths> <Linking> <Debugging> <UseExternalDbgSyms Value="True"/> </Debugging> </Linking> - <Other> - <CompilerMessages> - <MsgFileName Value=""/> - </CompilerMessages> - <CompilerPath Value="$(CompPath)"/> - </Other> </CompilerOptions> <Debugging> <Exceptions Count="3"> diff --git a/test/fpOdfTest.lps b/test/fpOdfTest.lps deleted file mode 100644 index a0a6c2e..0000000 --- a/test/fpOdfTest.lps +++ /dev/null @@ -1,189 +0,0 @@ -<?xml version="1.0"?> -<CONFIG> - <ProjectSession> - <Version Value="9"/> - <BuildModes Active="Default"/> - <Units Count="9"> - <Unit0> - <Filename Value="fpOdfTest.lpr"/> - <IsPartOfProject Value="True"/> - <UnitName Value="fpOdfTest"/> - <UsageCount Value="20"/> - </Unit0> - <Unit1> - <Filename Value="TestStringPrep.pas"/> - <IsPartOfProject Value="True"/> - <UnitName Value="TestStringPrep"/> - <EditorIndex Value="0"/> - <WindowIndex Value="0"/> - <TopLine Value="1"/> - <CursorPos X="60" Y="123"/> - <UsageCount Value="20"/> - <Loaded Value="True"/> - </Unit1> - <Unit2> - <Filename Value="../odf_types.pas"/> - <UnitName Value="odf_types"/> - <EditorIndex Value="3"/> - <WindowIndex Value="0"/> - <TopLine Value="1"/> - <CursorPos X="67" Y="6"/> - <UsageCount Value="10"/> - <Loaded Value="True"/> - </Unit2> - <Unit3> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/test/textprep.pas"/> - <UnitName Value="TextPrep"/> - <WindowIndex Value="0"/> - <TopLine Value="43"/> - <CursorPos X="5" Y="69"/> - <UsageCount Value="10"/> - <Bookmarks Count="1"> - <Item0 X="24" Y="64" ID="1"/> - </Bookmarks> - </Unit3> - <Unit4> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <UnitName Value="odf_types"/> - <EditorIndex Value="2"/> - <WindowIndex Value="0"/> - <TopLine Value="571"/> - <CursorPos X="53" Y="573"/> - <UsageCount Value="10"/> - <Loaded Value="True"/> - </Unit4> - <Unit5> - <Filename Value="/usr/share/lazarus/1.1-qt/components/lazutils/lazutf8.pas"/> - <UnitName Value="LazUTF8"/> - <WindowIndex Value="0"/> - <TopLine Value="22"/> - <CursorPos X="10" Y="42"/> - <UsageCount Value="10"/> - </Unit5> - <Unit6> - <Filename Value="/usr/share/fpcsrc/2.7.1/rtl/unix/sysutils.pp"/> - <UnitName Value="sysutils"/> - <WindowIndex Value="0"/> - <TopLine Value="40"/> - <CursorPos X="1" Y="1"/> - <UsageCount Value="10"/> - </Unit6> - <Unit7> - <Filename Value="/usr/share/fpcsrc/2.7.1/rtl/objpas/sysutils/sysutilh.inc"/> - <WindowIndex Value="0"/> - <TopLine Value="325"/> - <CursorPos X="1" Y="1"/> - <UsageCount Value="10"/> - </Unit7> - <Unit8> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/test/TestStringPrep.pas"/> - <UnitName Value="TestStringPrep"/> - <IsVisibleTab Value="True"/> - <EditorIndex Value="1"/> - <WindowIndex Value="0"/> - <TopLine Value="120"/> - <CursorPos X="31" Y="121"/> - <UsageCount Value="10"/> - <Loaded Value="True"/> - </Unit8> - </Units> - <General> - <ActiveWindowIndexAtStart Value="0"/> - </General> - <JumpHistory Count="16" HistoryIndex="15"> - <Position1> - <Filename Value="TestStringPrep.pas"/> - <Caret Line="30" Column="1" TopLine="31"/> - </Position1> - <Position2> - <Filename Value="TestStringPrep.pas"/> - <Caret Line="1" Column="17" TopLine="115"/> - </Position2> - <Position3> - <Filename Value="TestStringPrep.pas"/> - <Caret Line="82" Column="36" TopLine="75"/> - </Position3> - <Position4> - <Filename Value="TestStringPrep.pas"/> - <Caret Line="123" Column="28" TopLine="120"/> - </Position4> - <Position5> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/test/TestStringPrep.pas"/> - <Caret Line="123" Column="1" TopLine="117"/> - </Position5> - <Position6> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/test/TestStringPrep.pas"/> - <Caret Line="91" Column="1" TopLine="89"/> - </Position6> - <Position7> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/test/TestStringPrep.pas"/> - <Caret Line="92" Column="1" TopLine="89"/> - </Position7> - <Position8> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="549" Column="1" TopLine="544"/> - </Position8> - <Position9> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="550" Column="1" TopLine="544"/> - </Position9> - <Position10> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="551" Column="1" TopLine="544"/> - </Position10> - <Position11> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="552" Column="1" TopLine="544"/> - </Position11> - <Position12> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="553" Column="1" TopLine="544"/> - </Position12> - <Position13> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="555" Column="1" TopLine="553"/> - </Position13> - <Position14> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="557" Column="1" TopLine="553"/> - </Position14> - <Position15> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/test/TestStringPrep.pas"/> - <Caret Line="96" Column="42" TopLine="89"/> - </Position15> - <Position16> - <Filename Value="../../../../../../sdb6/projetos/odf/public_git/fpOdf/odf_types.pas"/> - <Caret Line="573" Column="53" TopLine="571"/> - </Position16> - </JumpHistory> - </ProjectSession> - <Debugging> - <BreakPoints Count="1"> - <Item1> - <Kind Value="bpkSource"/> - <WatchScope Value="wpsLocal"/> - <WatchKind Value="wpkWrite"/> - <Source Value="TestStringPrep.pas"/> - <Line Value="123"/> - </Item1> - </BreakPoints> - <Watches Count="5"> - <Item1> - <Expression Value="segment1"/> - </Item1> - <Item2> - <Expression Value="segment2"/> - </Item2> - <Item3> - <Expression Value="result"/> - </Item3> - <Item4> - <Expression Value="nospaces"/> - </Item4> - <Item5> - <Expression Value="s"/> - </Item5> - </Watches> - </Debugging> - <EditorMacros Count="0"/> -</CONFIG>