mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
move configurable to Document class
since every document type is depend on it now
This commit is contained in:
@@ -16,7 +16,6 @@ CreDocument = Document:new{
|
||||
fallback_font = "Droid Sans Fallback",
|
||||
default_css = "./data/cr3.css",
|
||||
options = CreOptions,
|
||||
configurable = Configurable,
|
||||
}
|
||||
|
||||
-- NuPogodi, 20.05.12: inspect the zipfile content
|
||||
|
||||
@@ -10,7 +10,6 @@ DjvuDocument = Document:new{
|
||||
djvulibre_cache_size = nil,
|
||||
dc_null = DrawContext.new(),
|
||||
options = KoptOptions,
|
||||
configurable = Configurable,
|
||||
koptinterface = KoptInterface,
|
||||
}
|
||||
|
||||
|
||||
@@ -60,24 +60,26 @@ Document = {
|
||||
number_of_pages = 0,
|
||||
-- if not pageable, length of the document in pixels
|
||||
doc_height = 0,
|
||||
|
||||
|
||||
-- other metadata
|
||||
title = "",
|
||||
author = "",
|
||||
date = ""
|
||||
},
|
||||
|
||||
|
||||
GAMMA_NO_GAMMA = 1.0,
|
||||
|
||||
|
||||
-- override bbox from orignal page's getUsedBBox
|
||||
bbox = {},
|
||||
|
||||
|
||||
-- flag to show whether the document was opened successfully
|
||||
is_open = false,
|
||||
error_message = nil,
|
||||
|
||||
-- flag to show that the document needs to be unlocked by a password
|
||||
is_locked = false,
|
||||
|
||||
configurable = Configurable,
|
||||
}
|
||||
|
||||
function Document:new(o)
|
||||
|
||||
@@ -10,7 +10,6 @@ PdfDocument = Document:new{
|
||||
mupdf_cache_size = 5 * 1024 * 1024,
|
||||
dc_null = DrawContext.new(),
|
||||
options = KoptOptions,
|
||||
configurable = Configurable,
|
||||
koptinterface = KoptInterface,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user