Kaydet (Commit) cfeed230 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Avoid rulers in non-DESKTOP environment

Another simple first step.

Change-Id: If683004cbb1ffac01e90b9b27e81c033d5b0e529
üst 2a5073d9
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <config_features.h>
#include <string>
#include <stdlib.h>
......@@ -960,11 +961,12 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
m_bVScrollbarEnabled = aUsrPref.IsViewVScrollBar();
m_bHScrollbarEnabled = aUsrPref.IsViewHScrollBar();
m_pHScrollbar->SetAuto(bBrowse);
#if HAVE_FEATURE_DESKTOP
if( aUsrPref.IsViewHRuler() )
CreateTab();
if( aUsrPref.IsViewVRuler() )
CreateVRuler();
#endif
m_pWrtShell->SetUIOptions( aUsrPref );
m_pWrtShell->SetReadOnlyAvailable( aUsrPref.IsCursorInProtectedArea() );
m_pWrtShell->ApplyAccessiblityOptions(SW_MOD()->GetAccessibilityOptions());
......
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