From f5535454836914b590e7fd68c0a3ccab489d18dd Mon Sep 17 00:00:00 2001 From: poire-z Date: Fri, 6 May 2022 14:38:04 +0200 Subject: [PATCH] bump crengine: support for inline margin/border/padding Includes: - lvtext: tweak object flags implementation - lvtext: rename LTEXT_WORD_IS_OBJECT to LTEXT_WORD_IS_IMAGE - lvtext: add LTEXT_OBJECT_IS_EMBEDDED_BLOCK - Text: support for inline margin/border/padding - PageMap: allow building synthetic pages numbers cre: add synthetic page map functions (not yet used) --- base | 2 +- frontend/document/credocument.lua | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/base b/base index 095b0281c..fae267c3b 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 095b0281ccfd77b38d6291827bf32a1d5237531e +Subproject commit fae267c3b98e4ba5f36eba40b9f5e21a12125ccf diff --git a/frontend/document/credocument.lua b/frontend/document/credocument.lua index 68fef05c3..3293fb9f5 100644 --- a/frontend/document/credocument.lua +++ b/frontend/document/credocument.lua @@ -1287,6 +1287,14 @@ function CreDocument:buildAlternativeToc() self._document:buildAlternativeToc() end +function CreDocument:buildSyntheticPageMapIfNoneDocumentProvided(chars_per_synthetic_page) + self._document:buildSyntheticPageMapIfNoneDocumentProvided(chars_per_synthetic_page or 1024) +end + +function CreDocument:isPageMapSynthetic() + return self._document:isPageMapSynthetic() +end + function CreDocument:hasPageMap() return self._document:hasPageMap() end