Skip to main content

Crate odox_ui

Crate odox_ui 

Source
Expand description

The window the three odox applications are each a thin shell over.

Everything a person sees belongs here: the chrome, the document renderer, the mapping from ODF styles to what egui draws with, the font resolution and the messages. An application crate contributes its name, the format it opens, and the one view that is particular to its body — a flow, a grid, a slide.

Drawing lives here rather than in odox-core so that the library that reads OpenDocument has no window in it: it is testable headlessly, it compiles for a target with no display, and nothing about the format is decided by what egui can draw.

Re-exports§

pub use flow::Flow;
pub use flow::Pictures;
pub use i18n::mark;
pub use shapes::Canvas;
pub use shell::Product;
pub use shell::Shell;
pub use shell::Viewer;
pub use shell::run;

Modules§

flow
Drawing an ODF body: the block renderer all three applications share.
fonts
Resolving the font families a document names to faces on this machine.
format
Turning resolved ODF properties into what egui draws text with.
i18n
The messages the window draws, in the language the desktop asks for.
shapes
Drawing ODF’s shapes: what a slide is made of, and what a text document or a spreadsheet can carry in a frame.
shell
The window around a document: opening one, saying what went wrong, and the menu and keys that are the same in all three applications.
system_theme
What the desktop says about light and dark, where the window toolkit will not.