# euro-office/core architecture

> Architecture diagram of the GitHub repository euro-office/core, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/euro-office/core
- Repository: https://github.com/euro-office/core

## Overview

This repository is the Core of an office-document conversion product, supporting conversion among DOC/DOCX, ODT, RTF, TXT, PDF, HTML, EPUB, XPS, DjVu, spreadsheet, and presentation formats. The principal workflow is a conversion request entering the x2t converter, being interpreted or emitted by format-specific subsystems, and producing a converted document. The README establishes the product capability, but the excerpts show only selected implementation details; therefore, most cross-subsystem links are dashed and unverified rather than asserted as call paths.

Main entry points: [`X2tConverter/src/main.cpp`](https://github.com/euro-office/core/blob/main/X2tConverter/src/main.cpp) (x2t converter), [`OOXML/Binary/Presentation/imagemanager.cpp`](https://github.com/euro-office/core/blob/main/OOXML/Binary/Presentation/imagemanager.cpp) (Presentation media), [`RtfFile/Format/ConvertationManager.cpp`](https://github.com/euro-office/core/blob/main/RtfFile/Format/ConvertationManager.cpp) (RTF conversion), [`OOXML/PPTXFormat/App.cpp`](https://github.com/euro-office/core/blob/main/OOXML/PPTXFormat/App.cpp) (PPTX formats)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Conversion entry"]
  node_x2t["x2t converter<br/>[main.cpp]"]
end

subgraph group_formats["Document formats"]
  node_rtfmanager["RTF conversion"]
  node_docxstyle["DOCX paragraph styles"]
  node_ooxmlapp["OOXML document formats<br/>[App.cpp]"]
  node_pptxapp["PPTX formats<br/>[App.cpp]"]
  node_xlsbquery["XLSB query tables"]
  node_odf["ODF conversion<br/>[main.cpp]"]
  node_legacydoc["Binary DOC parsing"]
end

subgraph group_render["Rendering and media"]
  node_pdf["PDF processing"]
  node_djvu["DjVu processing<br/>[GIFFManager.cpp]"]
  node_imagecodec["JPEG 2000 codec<br/>[opj_engine.cpp]"]
  node_pptmedia["Presentation media<br/>[imagemanager.cpp]"]
  node_fonts["Font shaping<br/>[LayoutEngine.cpp]"]
end

subgraph group_support["Shared support"]
  node_compound[("Compound-file storage<br/>[cfstorage.cpp]")]
  node_filetransfer["File transport<br/>[FileTransporter.h]"]
  node_officeutils["Office utilities<br/>[OfficeUtils.h]"]
end

node_client(("Conversion client"))

node_client -.->|"requests conversion"| node_x2t
node_x2t -.->|"dispatches formats"| node_rtfmanager
node_x2t -.->|"dispatches formats"| node_ooxmlapp
node_x2t -.->|"dispatches formats"| node_pptxapp
node_x2t -.->|"dispatches formats"| node_xlsbquery
node_x2t -.->|"dispatches formats"| node_odf
node_x2t -.->|"dispatches formats"| node_legacydoc
node_x2t -.->|"dispatches formats"| node_pdf
node_x2t -.->|"dispatches formats"| node_djvu
node_x2t -.->|"uses styles"| node_docxstyle
node_rtfmanager -.->|"produces documents"| node_docxstyle
node_pptxapp -.->|"uses media manager"| node_pptmedia
node_pptmedia -->|"downloads media"| node_filetransfer
node_pptmedia -->|"decompresses data"| node_officeutils
node_legacydoc -.->|"reads storage"| node_compound
node_pdf -.->|"shapes glyphs"| node_fonts
node_imagecodec -.->|"handles images"| node_pptmedia

click node_x2t "https://github.com/euro-office/core/blob/main/X2tConverter/src/main.cpp"
click node_rtfmanager "https://github.com/euro-office/core/blob/main/RtfFile/Format/ConvertationManager.cpp"
click node_docxstyle "https://github.com/euro-office/core/blob/main/DocxRenderer/src/logic/managers/ParagraphStyleManager.cpp"
click node_ooxmlapp "https://github.com/euro-office/core/blob/main/OOXML/DocxFormat/App.cpp"
click node_pptxapp "https://github.com/euro-office/core/blob/main/OOXML/PPTXFormat/App.cpp"
click node_xlsbquery "https://github.com/euro-office/core/blob/main/OOXML/XlsbFormat/QueryTableStream.cpp"
click node_odf "https://github.com/euro-office/core/blob/main/OdfFile/Reader/Converter/StarMath2OOXML/TestEQNtoOOXML/main.cpp"
click node_legacydoc "https://github.com/euro-office/core/blob/main/MsBinaryFile/DocFile/StructuredStorageReader.cpp"
click node_pdf "https://github.com/euro-office/core/blob/main/PdfFile/lib/splash/SplashFontEngine.cc"
click node_djvu "https://github.com/euro-office/core/blob/main/DjVuFile/libdjvu/GIFFManager.cpp"
click node_imagecodec "https://github.com/euro-office/core/blob/main/DesktopEditor/raster/Jp2/openjpeg/opj_engine.cpp"
click node_pptmedia "https://github.com/euro-office/core/blob/main/OOXML/Binary/Presentation/imagemanager.cpp"
click node_fonts "https://github.com/euro-office/core/blob/main/UnicodeConverter/icubuilds-mac/icu/icu/layout/LayoutEngine.cpp"
click node_compound "https://github.com/euro-office/core/blob/main/Common/cfcpp/cfstorage.cpp"
click node_filetransfer "https://github.com/euro-office/core/blob/main/Common/Network/FileTransporter/include/FileTransporter.h"
click node_officeutils "https://github.com/euro-office/core/blob/main/OfficeUtils/src/OfficeUtils.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_x2t,node_client toneBlue
class node_rtfmanager,node_docxstyle,node_ooxmlapp,node_pptxapp,node_xlsbquery,node_odf,node_legacydoc toneAmber
class node_pdf,node_djvu,node_imagecodec,node_pptmedia,node_fonts toneMint
class node_compound,node_filetransfer,node_officeutils toneRose
```

## Components

### Conversion entry

- [x2t converter](https://github.com/euro-office/core/blob/main/X2tConverter/src/main.cpp): `X2tConverter/src/main.cpp`

### Document formats

- [RTF conversion](https://github.com/euro-office/core/blob/main/RtfFile/Format/ConvertationManager.cpp): `RtfFile/Format/ConvertationManager.cpp`
- [DOCX paragraph styles](https://github.com/euro-office/core/blob/main/DocxRenderer/src/logic/managers/ParagraphStyleManager.cpp): `DocxRenderer/src/logic/managers/ParagraphStyleManager.cpp`
- [OOXML document formats](https://github.com/euro-office/core/blob/main/OOXML/DocxFormat/App.cpp): `OOXML/DocxFormat/App.cpp`
- [PPTX formats](https://github.com/euro-office/core/blob/main/OOXML/PPTXFormat/App.cpp): `OOXML/PPTXFormat/App.cpp`
- [XLSB query tables](https://github.com/euro-office/core/blob/main/OOXML/XlsbFormat/QueryTableStream.cpp): `OOXML/XlsbFormat/QueryTableStream.cpp`
- [ODF conversion](https://github.com/euro-office/core/blob/main/OdfFile/Reader/Converter/StarMath2OOXML/TestEQNtoOOXML/main.cpp): `OdfFile/Reader/Converter/StarMath2OOXML/TestEQNtoOOXML/main.cpp`
- [Binary DOC parsing](https://github.com/euro-office/core/blob/main/MsBinaryFile/DocFile/StructuredStorageReader.cpp): `MsBinaryFile/DocFile/StructuredStorageReader.cpp`

### Rendering and media

- [PDF processing](https://github.com/euro-office/core/blob/main/PdfFile/lib/splash/SplashFontEngine.cc): `PdfFile/lib/splash/SplashFontEngine.cc`
- [DjVu processing](https://github.com/euro-office/core/blob/main/DjVuFile/libdjvu/GIFFManager.cpp): `DjVuFile/libdjvu/GIFFManager.cpp`
- [JPEG 2000 codec](https://github.com/euro-office/core/blob/main/DesktopEditor/raster/Jp2/openjpeg/opj_engine.cpp): `DesktopEditor/raster/Jp2/openjpeg/opj_engine.cpp`
- [Presentation media](https://github.com/euro-office/core/blob/main/OOXML/Binary/Presentation/imagemanager.cpp): `OOXML/Binary/Presentation/imagemanager.cpp`
- [Font shaping](https://github.com/euro-office/core/blob/main/UnicodeConverter/icubuilds-mac/icu/icu/layout/LayoutEngine.cpp): `UnicodeConverter/icubuilds-mac/icu/icu/layout/LayoutEngine.cpp`

### Shared support

- [Compound-file storage](https://github.com/euro-office/core/blob/main/Common/cfcpp/cfstorage.cpp): `Common/cfcpp/cfstorage.cpp`
- [File transport](https://github.com/euro-office/core/blob/main/Common/Network/FileTransporter/include/FileTransporter.h): `Common/Network/FileTransporter/include/FileTransporter.h`
- [Office utilities](https://github.com/euro-office/core/blob/main/OfficeUtils/src/OfficeUtils.h): `OfficeUtils/src/OfficeUtils.h`

### Other components

- **Conversion client**

## Connections

- Conversion client → x2t converter: requests conversion
- x2t converter → RTF conversion: dispatches formats
- x2t converter → OOXML document formats: dispatches formats
- x2t converter → PPTX formats: dispatches formats
- x2t converter → XLSB query tables: dispatches formats
- x2t converter → ODF conversion: dispatches formats
- x2t converter → Binary DOC parsing: dispatches formats
- x2t converter → PDF processing: dispatches formats
- x2t converter → DjVu processing: dispatches formats
- x2t converter → DOCX paragraph styles: uses styles
- RTF conversion → DOCX paragraph styles: produces documents
- PPTX formats → Presentation media: uses media manager
- Presentation media → File transport: downloads media (evidence: `OOXML/Binary/Presentation/imagemanager.cpp`)
- Presentation media → Office utilities: decompresses data (evidence: `OOXML/Binary/Presentation/imagemanager.cpp`)
- Binary DOC parsing → Compound-file storage: reads storage
- PDF processing → Font shaping: shapes glyphs
- JPEG 2000 codec → Presentation media: handles images
