summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview/viewtab.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/uiview/viewtab.cxx')
-rw-r--r--sw/source/ui/uiview/viewtab.cxx72
1 files changed, 36 insertions, 36 deletions
diff --git a/sw/source/ui/uiview/viewtab.cxx b/sw/source/ui/uiview/viewtab.cxx
index 4bb32d3667a9..2ac3c40a47f5 100644
--- a/sw/source/ui/uiview/viewtab.cxx
+++ b/sw/source/ui/uiview/viewtab.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,8 +60,8 @@
#include "cmdid.h"
#include "viewopt.hxx"
#include "tabcol.hxx"
-#include "frmfmt.hxx" // FrameFormat
-#include "pagedesc.hxx" // Aktuelles Seitenformat
+#include "frmfmt.hxx" // FrameFormat
+#include "pagedesc.hxx" // Aktuelles Seitenformat
#include "wview.hxx"
#include "fmtcol.hxx"
#include "section.hxx"
@@ -77,11 +77,11 @@ using namespace ::com::sun::star;
/*--------------------------------------------------------------------
- Beschreibung: Debug-Methode
+ Beschreibung: Debug-Methode
--------------------------------------------------------------------*/
/*--------------------------------------------------------------------
- Beschreibung: Columns eintueten
+ Beschreibung: Columns eintueten
--------------------------------------------------------------------*/
void lcl_FillSvxColumn(const SwFmtCol& rCol,
USHORT nTotalWidth,
@@ -122,7 +122,7 @@ void lcl_FillSvxColumn(const SwFmtCol& rCol,
}
/*--------------------------------------------------------------------
- Beschreibung: ColumnItem in ColumnInfo ueberfuehren
+ Beschreibung: ColumnItem in ColumnInfo ueberfuehren
--------------------------------------------------------------------*/
void lcl_ConvertToCols(const SvxColumnItem& rColItem,
USHORT nTotalWidth,
@@ -134,7 +134,7 @@ void lcl_ConvertToCols(const SvxColumnItem& rColItem,
if(rCols.GetNumCols() != rColItem.Count())
return;
- USHORT nLeft = 0;
+ USHORT nLeft = 0;
SwTwips nSumAll= 0; // Summiere alle Spalten und Raender auf
SwColumns& rArr = rCols.GetColumns();
@@ -147,7 +147,7 @@ void lcl_ConvertToCols(const SvxColumnItem& rColItem,
USHORT nEnd = static_cast< USHORT >(rColItem[i].nEnd);
if(nStart < nEnd)
nStart = nEnd;
- const USHORT nDiff = nStart - nEnd;
+ const USHORT nDiff = nStart - nEnd;
const USHORT nRight = nDiff / 2;
USHORT nWidth = static_cast< USHORT >(rColItem[i].nEnd - rColItem[i].nStart);
@@ -172,7 +172,7 @@ void lcl_ConvertToCols(const SvxColumnItem& rColItem,
}
/*--------------------------------------------------------------------
- Beschreibung: Tabs loeschen
+ Beschreibung: Tabs loeschen
--------------------------------------------------------------------*/
void lcl_EraseDefTabs(SvxTabStopItem& rTabStops)
{
@@ -191,7 +191,7 @@ void lcl_EraseDefTabs(SvxTabStopItem& rTabStops)
}
/*--------------------------------------------------------------------
- Beschreibung: Seitenrand umdrehen
+ Beschreibung: Seitenrand umdrehen
--------------------------------------------------------------------*/
void SwView::SwapPageMargin(const SwPageDesc& rDesc, SvxLRSpaceItem& rLRSpace)
{
@@ -207,7 +207,7 @@ void SwView::SwapPageMargin(const SwPageDesc& rDesc, SvxLRSpaceItem& rLRSpace)
}
/*--------------------------------------------------------------------
- Beschreibung: Wenn der Rahmenrand verschoben wird, sollen die
+ Beschreibung: Wenn der Rahmenrand verschoben wird, sollen die
Spaltentrenner an der gleichen absoluten Position bleiben
--------------------------------------------------------------------*/
void lcl_Scale(long& nVal, long nScale)
@@ -256,21 +256,21 @@ void ResizeFrameCols(SwFmtCol& rCol,
}
/*--------------------------------------------------------------------
- Beschreibung: Hier werden alle Aenderungen der Tableiste
+ Beschreibung: Hier werden alle Aenderungen der Tableiste
wieder in das Modell geschossen
--------------------------------------------------------------------*/
void SwView::ExecTabWin( SfxRequest& rReq )
{
- SwWrtShell &rSh = GetWrtShell();
- const USHORT nFrmType = rSh.IsObjSelected() ?
+ SwWrtShell &rSh = GetWrtShell();
+ const USHORT nFrmType = rSh.IsObjSelected() ?
FRMTYPE_DRAWOBJ :
rSh.GetFrmType(0,TRUE);
- const BOOL bFrmSelection = rSh.IsFrmSelected();
+ const BOOL bFrmSelection = rSh.IsFrmSelected();
const BOOL bBrowse = rSh.getIDocumentSettingAccess()->get(IDocumentSettingAccess::BROWSE_MODE);
- const USHORT nSlot = rReq.GetSlot();
- const USHORT nDescId = rSh.GetCurPageDesc();
+ const USHORT nSlot = rReq.GetSlot();
+ const USHORT nDescId = rSh.GetCurPageDesc();
const SwPageDesc& rDesc = rSh.GetPageDesc( nDescId );
const BOOL bVerticalWriting = rSh.IsInVerticalText();
@@ -290,7 +290,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
rSh.StartAllAction();
BOOL bSect = 0 != (nFrmType & FRMTYPE_COLSECT);
- switch ( nSlot )
+ switch ( nSlot )
{
case SID_ATTR_LONG_LRSPACE:
{
@@ -415,7 +415,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
rSh.UpdateSection(rSh.GetSectionFmtPos(*pSectFmt), aData, &aSet);
}
else
- { // Seitenraender einstellen
+ { // Seitenraender einstellen
aLR.SetLeft((USHORT)aLongLR.GetLeft());
aLR.SetRight((USHORT)aLongLR.GetRight());
SwapPageMargin( rDesc, aLR );
@@ -505,7 +505,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
rSh.UpdateSection(rSh.GetSectionFmtPos(*pSectFmt), aData, &aSet);
}
else
- { SwPageDesc aDesc( rDesc );
+ { SwPageDesc aDesc( rDesc );
if ( nFrmType & ( FRMTYPE_HEADER | FRMTYPE_FOOTER ))
{
@@ -569,7 +569,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
::MakeDefTabs( nDef, aTabStops );
SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
- if( pColl && pColl->IsAutoUpdateFmt() )
+ if( pColl && pColl->IsAutoUpdateFmt() )
{
SfxItemSet aTmp(GetPool(), RES_PARATR_TABSTOP, RES_PARATR_TABSTOP);
aTmp.Put(aTabStops);
@@ -665,7 +665,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
USHORT nDef = ::GetTabDist(rDefTabs);
::MakeDefTabs( nDef, aTabStops );
- if( pColl && pColl->IsAutoUpdateFmt())
+ if( pColl && pColl->IsAutoUpdateFmt())
{
SfxItemSet aSetTmp(GetPool(), RES_PARATR_TABSTOP, RES_PARATR_TABSTOP);
aSetTmp.Put(aTabStops);
@@ -887,20 +887,20 @@ void SwView::ExecTabWin( SfxRequest& rReq )
}
/*--------------------------------------------------------------------
- Beschreibung: Hier wird der Status der Tableiste ermittelt
+ Beschreibung: Hier wird der Status der Tableiste ermittelt
sprich alle relevanten Attribute an der CursorPos
werden der Tableiste uebermittelt
--------------------------------------------------------------------*/
void SwView::StateTabWin(SfxItemSet& rSet)
{
- SwWrtShell &rSh = GetWrtShell();
+ SwWrtShell &rSh = GetWrtShell();
const Point* pPt = IsTabColFromDoc() || IsTabRowFromDoc() ? &aTabColFromDocPos : 0;
- const USHORT nFrmType = rSh.IsObjSelected()
+ const USHORT nFrmType = rSh.IsObjSelected()
? FRMTYPE_DRAWOBJ
: rSh.GetFrmType( pPt, TRUE );
- const BOOL bFrmSelection = rSh.IsFrmSelected();
+ const BOOL bFrmSelection = rSh.IsFrmSelected();
const BOOL bBrowse = rSh.getIDocumentSettingAccess()->get(IDocumentSettingAccess::BROWSE_MODE);
// PageOffset/Begrenzer
@@ -931,7 +931,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
SwapPageMargin( rDesc, aPageLRSpace );
SfxItemSet aCoreSet( GetPool(), RES_PARATR_TABSTOP, RES_PARATR_TABSTOP,
- RES_LR_SPACE, RES_UL_SPACE, 0 );
+ RES_LR_SPACE, RES_UL_SPACE, 0 );
// --> OD 2008-01-17 #newlistlevelattrs#
// get also the list level indent values merged as LR-SPACE item, if needed.
rSh.GetCurAttr( aCoreSet, true );
@@ -1280,7 +1280,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
else if ( bHasTable )
{
SwTabCols aTabCols;
- USHORT nNum;
+ USHORT nNum;
if ( 0 != ( bSetTabColFromDoc = IsTabColFromDoc() ) )
{
rSh.GetMouseTabCols( aTabCols, aTabColFromDocPos );
@@ -1448,7 +1448,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
rSet.DisableItem(nWhich);
}
else
- { // Spalten auf der Seite
+ { // Spalten auf der Seite
const SwFrmFmt& rMaster = rDesc.GetMaster();
SwFmtCol aCol(rMaster.GetCol());
if(rFrameDir.GetValue() == FRMDIR_HORI_RIGHT_TOP)
@@ -1568,7 +1568,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
{
// PAGES01
SvxPagePosSizeItem aPagePosSize(
- Point( rPageRect.Left(), rPageRect.Top()) , nPageWidth, nPageHeight);
+ Point( rPageRect.Left(), rPageRect.Top()) , nPageWidth, nPageHeight);
rSet.Put(aPagePosSize);
break;
@@ -1700,10 +1700,10 @@ void SwView::StateTabWin(SfxItemSet& rSet)
}
}
else
- { //hier nur fuer Tabelle in mehrspaltigen Seiten und Rahmen
+ { //hier nur fuer Tabelle in mehrspaltigen Seiten und Rahmen
BOOL bSectOutTbl = (nFrmType & FRMTYPE_TABLE) ? TRUE : FALSE;
BOOL bFrame = (nFrmType & FRMTYPE_FLY_ANY) ? TRUE : FALSE;
- BOOL bColSct = (nFrmType & ( bSectOutTbl
+ BOOL bColSct = (nFrmType & ( bSectOutTbl
? FRMTYPE_COLSECTOUTTAB
: FRMTYPE_COLSECT )
) ? TRUE : FALSE;
@@ -1765,7 +1765,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
if( bFrame | bColSct )
{
aRectangle.Left() = aRect.Left() - rPageRect.Left() + nStart;
- aRectangle.Right() = nPageWidth - aRectangle.Left() - nEnd + nStart;
+ aRectangle.Right() = nPageWidth - aRectangle.Left() - nEnd + nStart;
}
else if(!bBrowse)
{
@@ -1804,9 +1804,9 @@ void SwView::StateTabWin(SfxItemSet& rSet)
BYTE nProtect = pWrtShell->IsSelObjProtected( FLYPROTECT_SIZE|FLYPROTECT_POS|FLYPROTECT_CONTENT );
SvxProtectItem aProt(SID_RULER_PROTECT);
- aProt.SetCntntProtect((nProtect & FLYPROTECT_CONTENT) != 0);
- aProt.SetSizeProtect ((nProtect & FLYPROTECT_SIZE) != 0);
- aProt.SetPosProtect ((nProtect & FLYPROTECT_POS) != 0);
+ aProt.SetCntntProtect((nProtect & FLYPROTECT_CONTENT) != 0);
+ aProt.SetSizeProtect ((nProtect & FLYPROTECT_SIZE) != 0);
+ aProt.SetPosProtect ((nProtect & FLYPROTECT_POS) != 0);
rSet.Put(aProt);
}
else