Kaydet (Commit) 603c8845 authored tarafından vsfoote's avatar vsfoote Kaydeden (comit) Jan Holesovsky

tdf#88001 -- Default document view, force single page rather than automatic

This commit changes sw default to be single page view rather than automatic
defaulting to a multi-page view and automatic fit. Also, sets status bar page
icon default to single page, and corrects lableing of view to read "multi-page"
rather than "two page".

Change-Id: I1a2f81150d7066ea56af0870e83c1e4ae66d3404
Reviewed-on: https://gerrit.libreoffice.org/14835Reviewed-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
Tested-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst 05ad682e
...@@ -1585,7 +1585,7 @@ ...@@ -1585,7 +1585,7 @@
<desc>Specifies number of columns of the view layout. 0 means the view layout is set to automatic.</desc> <desc>Specifies number of columns of the view layout. 0 means the view layout is set to automatic.</desc>
<label>View Layout Columns</label> <label>View Layout Columns</label>
</info> </info>
<value>0</value> <value>1</value>
</prop> </prop>
<prop oor:name="BookMode" oor:type="xs:boolean" oor:nillable="false"> <prop oor:name="BookMode" oor:type="xs:boolean" oor:nillable="false">
<!-- UIHints: (Status Bar) --> <!-- UIHints: (Status Bar) -->
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
// Statusbar: Word count/Viewlayout/Page count // Statusbar: Word count/Viewlayout/Page count
#define STR_WORDCOUNT_HINT (RC_UTLUI_BEGIN + 20) #define STR_WORDCOUNT_HINT (RC_UTLUI_BEGIN + 20)
#define STR_VIEWLAYOUT_ONE (RC_UTLUI_BEGIN + 21) #define STR_VIEWLAYOUT_ONE (RC_UTLUI_BEGIN + 21)
#define STR_VIEWLAYOUT_TWO (RC_UTLUI_BEGIN + 22) #define STR_VIEWLAYOUT_MULTI (RC_UTLUI_BEGIN + 22)
#define STR_VIEWLAYOUT_BOOK (RC_UTLUI_BEGIN + 23) #define STR_VIEWLAYOUT_BOOK (RC_UTLUI_BEGIN + 23)
#define STR_BOOKCTRL_HINT (RC_UTLUI_BEGIN + 24) #define STR_BOOKCTRL_HINT (RC_UTLUI_BEGIN + 24)
#define STR_BOOKCTRL_HINT_EXTENDED (RC_UTLUI_BEGIN + 25) #define STR_BOOKCTRL_HINT_EXTENDED (RC_UTLUI_BEGIN + 25)
......
...@@ -18,9 +18,9 @@ String STR_VIEWLAYOUT_ONE ...@@ -18,9 +18,9 @@ String STR_VIEWLAYOUT_ONE
Text [ en-US ] = "Single-page view"; Text [ en-US ] = "Single-page view";
}; };
String STR_VIEWLAYOUT_TWO String STR_VIEWLAYOUT_MULTI
{ {
Text [ en-US ] = "Two page view"; Text [ en-US ] = "Multiple-page view";
}; };
String STR_VIEWLAYOUT_BOOK String STR_VIEWLAYOUT_BOOK
......
...@@ -30,7 +30,7 @@ SFX_IMPL_STATUSBAR_CONTROL( SwViewLayoutControl, SvxViewLayoutItem ); ...@@ -30,7 +30,7 @@ SFX_IMPL_STATUSBAR_CONTROL( SwViewLayoutControl, SvxViewLayoutItem );
struct SwViewLayoutControl::SwViewLayoutControl_Impl struct SwViewLayoutControl::SwViewLayoutControl_Impl
{ {
sal_uInt16 mnState; // 0 = single, 1 = auto, 2 = book, 3 = none sal_uInt16 mnState; // 0 = auto, 1= single, 2 = book, 3 = none
Image maImageSingleColumn; Image maImageSingleColumn;
Image maImageSingleColumn_Active; Image maImageSingleColumn_Active;
Image maImageAutomatic; Image maImageAutomatic;
...@@ -43,7 +43,7 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, ...@@ -43,7 +43,7 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId,
SfxStatusBarControl( _nSlotId, _nId, rStatusBar ), SfxStatusBarControl( _nSlotId, _nId, rStatusBar ),
mpImpl( new SwViewLayoutControl_Impl ) mpImpl( new SwViewLayoutControl_Impl )
{ {
mpImpl->mnState = 0; mpImpl->mnState = 1;
mpImpl->maImageSingleColumn = Image( SW_RES(IMG_VIEWLAYOUT_SINGLECOLUMN) ); mpImpl->maImageSingleColumn = Image( SW_RES(IMG_VIEWLAYOUT_SINGLECOLUMN) );
mpImpl->maImageSingleColumn_Active = Image( SW_RES(IMG_VIEWLAYOUT_SINGLECOLUMN_ACTIVE) ); mpImpl->maImageSingleColumn_Active = Image( SW_RES(IMG_VIEWLAYOUT_SINGLECOLUMN_ACTIVE) );
...@@ -209,7 +209,7 @@ bool SwViewLayoutControl::MouseMove( const MouseEvent & rEvt ) ...@@ -209,7 +209,7 @@ bool SwViewLayoutControl::MouseMove( const MouseEvent & rEvt )
} }
else if ( nXDiff < nXOffset + nImageWidthSingle + nImageWidthAuto ) else if ( nXDiff < nXOffset + nImageWidthSingle + nImageWidthAuto )
{ {
GetStatusBar().SetQuickHelpText(GetId(), SW_RESSTR(STR_VIEWLAYOUT_TWO)); GetStatusBar().SetQuickHelpText(GetId(), SW_RESSTR(STR_VIEWLAYOUT_MULTI));
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment