Created attachment 101949 [details]
how the page number field would look on the toolbar
It would be nice to be able to jump to a particular page while in page preview mode without have to use the mouse to scroll to the particular page. So i'd like to suggest the addition to the page preview toolbar, the page number field found in the navigator dialog.
The navigator dialog code is in:
has some code that we should prolly factor out and re-use somehow =)
In terms of adding a toolbar control with a field in it; here is an example of that:
git grep SvxColorToolBoxControl
Will show you how the Colour Toolbox controls (with their drop down) are created, registered etc.
I think it's very difficult to re-use code from void SwNavigationPI::GotoPage() in navipi.cxx because there are too many dependencies between variables and methods.
Thanks jeyli for trying. Is it easier to create a new page jump field instead?
If this bug is still open, I would like to take it up as my first bug. Any suggestions ?
Yes it is still open Rishabh. Please go for it. :D
(In reply to Rishabh from comment #5)
> If this bug is still open, I would like to take it up as my first bug. Any
> suggestions ?
Thanks, Please look at comment 2 (here too ;) ) and if you need more suggestions, go to the developer mail list or irc.
@Cor: 'needDevEval', not 'NeedsDevEval', is described as "Use when you think a bug will qualify as an easy hack and you are requesting a developer to confirm.", but a developer (meeks) has already confirmed this, so why are you replacing the whiteboard keywords?
Sorry - mistake in bulk handling!
Hi it looks like this isn't being worked on at the moment. I would like to work on it. I was wondering if someone could point me to the file(s) that contains the current page preview toolbar code. Then if they could also give me some direction on how to add things to that part of the toolbar while also giving some suggestions.. That would be wonderful.
Okay so I found the actual code for this action of setting which page you want to go to.. (sw/srouce/uibase/uiview/pview.cxx) However I can't seem to find where pressing this button calls this code. I tried to find it based on the MV_PAGE_UP case, but I could not find where the toolbar was at all. I am trying to find the location where activating this button calls the MovePage function, however I can't find that. I also can't find where I can add another button to the toolbar (probably the same place). If someone could point me in the correct direction that would be great.
I'm about to complete this issue. I've sent 4th version patch: https://gerrit.libreoffice.org/#/c/19335/4
I need help. I've defined my problem as comment in gerrit. Now i want to get aPageNum's value from SID_JUMP_TO_SPECIFIC_PAGE case to jump to page which user's want. How can i do it?
Gulsah Kose committed a patch related to this issue.
It has been pushed to "master":
tdf#80657 Adding new field to jump to specific page.
It will be available in 5.1.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillCpp TopicCleanup )