diff options
authorMaxim Iorsh <>2011-10-05 22:57:27 +0200
committerJan Holesovsky <>2011-10-07 09:38:41 +0200
commit6087dc9cddde7052258996389d561f415ebee13c (patch)
parent1a08ce297711ae13ac4080d444a199ba47957c06 (diff)
filter: PDF Export UI "page range" autofocus
When the user selects "Pages" radio button in the Range section, it is very reasonable to expect that she would now want to specify the range. Thus moving the focus automatically to the page range edit box would save the user a mouse click.a Code is contributed under the LGPLv3+ / MPL.
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 67ba921c15ae..cb822195c8af 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -651,6 +651,8 @@ IMPL_LINK( ImpPDFTabGeneralPage, TogglePagesHdl, void*, EMPTYARG )
maEdPages.Enable( maRbRange.IsChecked() );
//Sym2_5805, When the control is disabled, it is also readonly. So here, it is not necessary to set it as readonly.
//maEdPages.SetReadOnly( !maRbRange.IsChecked() );
+ if ( maRbRange.IsChecked() )
+ maEdPages.GrabFocus();
return 0;