[Okular-devel] Review Request 123909: Added import/export of bookmarks as requested in Bug 336381 - easily transfer bookmarks between computers

Nikola Nikolic nikolicn90 at gmail.com
Mon Aug 31 20:22:06 UTC 2015



> On July 18, 2015, 9:37 p.m., Albert Astals Cid wrote:
> > part.cpp, line 2230
> > <https://git.reviewboard.kde.org/r/123909/diff/1/?file=370870#file370870line2230>
> >
> >     Have you checked what happens if the documentViewport doesn't exist? i.e. it's a page number bigger than the page coutn?

documentViewport validity and page range is checked in Okular::BookmarkManager::addBookmark.
If a page number is bigger than the page count, bookmark won't be added.


- Nikola


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123909/#review82625
-----------------------------------------------------------


On Aug. 31, 2015, 8:21 p.m., Nikola Nikolic wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123909/
> -----------------------------------------------------------
> 
> (Updated Aug. 31, 2015, 8:21 p.m.)
> 
> 
> Review request for Okular and Albert Astals Cid.
> 
> 
> Bugs: 336381
>     http://bugs.kde.org/show_bug.cgi?id=336381
> 
> 
> Repository: okular
> 
> 
> Description
> -------
> 
> Added import/export functionality with similar workflow as in File->Export As...
> Bookmarks ( only viewports and titles ) are saved in binary file with .okularbm extension.
> Import/Export is available only for currently opened document.
> I haven't used any document identification, because document name and size can change.
> 
> 
> Diffs
> -----
> 
>   part.h 9eebdb2 
>   part.cpp d461ebe 
>   part.rc 60f86e5 
> 
> Diff: https://git.reviewboard.kde.org/r/123909/diff/
> 
> 
> Testing
> -------
> 
> Tested both functionalities, it seems they work.
> This is only an idea how import/export may be implemened, any suggestions for improvement are welcome.
> P.S. Any ideas on how to identify a document properly, so I can implement Import All/Export All functionalities?
> 
> 
> Thanks,
> 
> Nikola Nikolic
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20150831/5b10ba49/attachment.html>


More information about the Okular-devel mailing list