add floating punctuation option for crereader

Luckily after disabling floating punctuation left/right margin
are able to be same now (with large enough margins, should be
more than 1em). So I also changed the default page margins for
crereader and removed the dirty hack.
This commit is contained in:
chrox
2014-01-03 01:59:40 +08:00
parent f1b5c439dd
commit 210293b561
3 changed files with 25 additions and 3 deletions

View File

@@ -273,6 +273,10 @@ function CreDocument:setPageMargins(left, top, right, bottom)
self._document:setIntProperty("crengine.page.margin.bottom", bottom)
end
function CreDocument:setFloatingPunctuation(enabled)
self._document:setIntProperty("crengine.style.floating.punctuation.enabled", enabled)
end
function CreDocument:setVisiblePageCount(new_count)
self._document:setVisiblePageCount(new_count)
end