Skip to content

Commit

Permalink
implement resource locator
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Aug 18, 2024
1 parent e23d389 commit c490a73
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 90 deletions.
10 changes: 5 additions & 5 deletions src/odr/internal/html/document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ class TextHtmlFragment final : public abstract::HtmlFragment {
HtmlElementOptions().set_style(
translate_inner_page_style(page_layout)));

translate_children(element.children(), out, config);
translate_children(element.children(), out, config, resourceLocator);

out.write_element_end("div");
out.write_element_end("div");
} else {
out.write_element_begin("div");
translate_children(element.children(), out, config);
translate_children(element.children(), out, config, resourceLocator);
out.write_element_end("div");
}
}
Expand All @@ -71,7 +71,7 @@ class SlideHtmlFragment final : public abstract::HtmlFragment {
void
write_html_fragment(HtmlWriter &out, const HtmlConfig &config,
const HtmlResourceLocator &resourceLocator) const final {
internal::html::translate_slide(m_slide, out, config);
internal::html::translate_slide(m_slide, out, config, resourceLocator);
}

private:
Expand All @@ -89,7 +89,7 @@ class SheetHtmlFragment final : public abstract::HtmlFragment {
void
write_html_fragment(HtmlWriter &out, const HtmlConfig &config,
const HtmlResourceLocator &resourceLocator) const final {
translate_sheet(m_sheet, out, config);
translate_sheet(m_sheet, out, config, resourceLocator);
}

private:
Expand All @@ -107,7 +107,7 @@ class PageHtmlFragment final : public abstract::HtmlFragment {
void
write_html_fragment(HtmlWriter &out, const HtmlConfig &config,
const HtmlResourceLocator &resourceLocator) const final {
internal::html::translate_page(m_page, out, config);
internal::html::translate_page(m_page, out, config, resourceLocator);
}

private:
Expand Down
Loading

0 comments on commit c490a73

Please sign in to comment.