mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add goto link function for CreDocument
This commit is contained in:
@@ -202,6 +202,10 @@ function CreDocument:getCurrentPos()
|
||||
return self._document:getCurrentPos()
|
||||
end
|
||||
|
||||
function CreDocument:getPageLinks()
|
||||
return self._document:getPageLinks()
|
||||
end
|
||||
|
||||
function Document:gotoPos(pos)
|
||||
DEBUG("CreDocument: goto position", pos)
|
||||
self._document:gotoPos(pos)
|
||||
@@ -212,6 +216,21 @@ function CreDocument:gotoPage(page)
|
||||
self._document:gotoPage(page)
|
||||
end
|
||||
|
||||
function CreDocument:gotoLink(link)
|
||||
DEBUG("CreDocument: goto link", link)
|
||||
self._document:gotoLink(link)
|
||||
end
|
||||
|
||||
function CreDocument:goBack()
|
||||
DEBUG("CreDocument: go back")
|
||||
self._document:goBack()
|
||||
end
|
||||
|
||||
function CreDocument:goForward(link)
|
||||
DEBUG("CreDocument: go forward")
|
||||
self._document:goForward()
|
||||
end
|
||||
|
||||
function CreDocument:getCurrentPage()
|
||||
return self._document:getCurrentPage()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user