summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews1.cxx
diff options
context:
space:
mode:
authorChristian Lippka <christian.lippka@sun.com>2010-03-12 20:13:16 +0100
committerChristian Lippka <christian.lippka@sun.com>2010-03-12 20:13:16 +0100
commit1c858f73a9994340b8735fdcd5cfd018115e01cd (patch)
tree6435d9ff657e86301c9ba47ff90795950b8a6595 /sd/source/ui/view/drviews1.cxx
parent9b03159e7030963753dcc7ff82f0b49207bd42b4 (diff)
parent2b800723513199616bb04c6bb377b685c4bde218 (diff)
renaissance2: merge to m73
Diffstat (limited to 'sd/source/ui/view/drviews1.cxx')
-rw-r--r--sd/source/ui/view/drviews1.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 5cbbc1a7f630..8a14a7f6bee2 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * Copyright 2008 by Sun Microsystems, Inc.
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
- * $RCSfile: drviews1.cxx,v $
- * $Revision: 1.79.34.2 $
- *
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@@ -58,7 +55,7 @@
#include <svx/fmshell.hxx>
#include <svx/globl3d.hxx>
#include <svx/fmglob.hxx>
-#include <svx/outliner.hxx>
+#include <editeng/outliner.hxx>
#include "misc.hxx"
@@ -557,7 +554,7 @@ SvxRuler* DrawViewShell::CreateHRuler (::sd::Window* pWin, BOOL bIsFirst)
UINT16 nMetric = (UINT16)GetDoc()->GetUIUnit();
if( nMetric == 0xffff )
- nMetric = (UINT16)GetModuleFieldUnit();
+ nMetric = (UINT16)GetViewShellBase().GetViewFrame()->GetDispatcher()->GetModule()->GetFieldUnit();
pRuler->SetUnit( FieldUnit( nMetric ) );
@@ -591,7 +588,7 @@ SvxRuler* DrawViewShell::CreateVRuler(::sd::Window* pWin)
UINT16 nMetric = (UINT16)GetDoc()->GetUIUnit();
if( nMetric == 0xffff )
- nMetric = (UINT16)GetModuleFieldUnit();
+ nMetric = (UINT16)GetViewShellBase().GetViewFrame()->GetDispatcher()->GetModule()->GetFieldUnit();
pRuler->SetUnit( FieldUnit( nMetric ) );