Re: [Libreoffice] [EasyHack][Print current page] How to get the last active page number?

2011-03-30 Thread Jan Holesovsky
Hi Skyler, On 2011-03-27 at 20:33 -0700, Skyler Hawthorne wrote: > In PrintDialog::setupOptionalUI, it appears the default text for the > page range edit box is set on line 1507 ( > http://opengrok.libreoffice.org/xref/libs-gui/vcl/source/window/printdlg.cxx#1507 > > ). As a test, I commented

Re: [Libreoffice] [EasyHack][Print current page] How to get the last active page number?

2011-03-28 Thread Peter Jentsch
Hi Skyler, if you want to access the page number at the currently selected position in the document, you'll have to first get the current selection (http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Component/Controllers#XSelectionSupplier), figure if there's actually a *po

Re: [Libreoffice] [EasyHack][Print current page] How to get the last active page number?

2011-03-28 Thread Jeroen van Rijn
On Mon, Mar 28, 2011 at 05:33, Skyler Hawthorne wrote: > Hello all, > > I am working on the EasyHack "Print current page" ( > http://wiki.documentfoundation.org/Easy_Hacks#Print_current_page ), and I > need a little help. I believe I've found out how to change the default > value: > > In PrintDial

[Libreoffice] [EasyHack][Print current page] How to get the last active page number?

2011-03-27 Thread Skyler Hawthorne
Hello all, I am working on the EasyHack "Print current page" ( http://wiki.documentfoundation.org/Easy_Hacks#Print_current_page ), and I need a little help. I believe I've found out how to change the default value: In PrintDialog::setupOptionalUI, it appears the default text for the page ra