diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-09 14:20:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-09 20:46:24 +0100 |
commit | f41e7c704898fa0e86d6d128f5bd28f37c081e92 (patch) | |
tree | 660ac1f3e0f2dcbd869c557a10ece4a5facdde94 /sw/source/ui/uiview/viewmdi.cxx | |
parent | e3cf54875031b8740b3ed76d6f530c44d2d8c44e (diff) |
convert SfxStyleDialogs to .ui
Change-Id: I32aa538026669e22e0756cd062b72e67f8d179e5
Diffstat (limited to 'sw/source/ui/uiview/viewmdi.cxx')
-rw-r--r-- | sw/source/ui/uiview/viewmdi.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx index aa6d41ce48f9..881eabf84c38 100644 --- a/sw/source/ui/uiview/viewmdi.cxx +++ b/sw/source/ui/uiview/viewmdi.cxx @@ -26,6 +26,7 @@ #include <svx/ruler.hxx> #include <editeng/lrspitem.hxx> #include <svl/srchitem.hxx> +#include <svl/stritem.hxx> #include <sfx2/request.hxx> #include <swmodule.hxx> #include <view.hxx> @@ -573,7 +574,7 @@ int SwView::KillVRuler() IMPL_LINK( SwView, ExecRulerClick, Ruler *, pRuler ) { - sal_uInt16 nDefPage = 0; + OUString sDefPage; switch( pRuler->GetClickType() ) { case RULER_TYPE_DONTKNOW: @@ -581,14 +582,14 @@ IMPL_LINK( SwView, ExecRulerClick, Ruler *, pRuler ) case RULER_TYPE_INDENT: case RULER_TYPE_MARGIN1: case RULER_TYPE_MARGIN2: - nDefPage = TP_PARA_STD; + sDefPage = "indents"; break; default: - nDefPage = TP_TABULATOR; + sDefPage = "tabs"; } - SfxUInt16Item aDefPage(SID_PARA_DLG, nDefPage); + SfxStringItem aDefPage(SID_PARA_DLG, sDefPage); GetViewFrame()->GetDispatcher()->Execute( SID_PARA_DLG, SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD, &aDefPage, 0L ); |