diff options
Diffstat (limited to 'sw/source/ui/utlui/navipi.cxx')
-rw-r--r-- | sw/source/ui/utlui/navipi.cxx | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/sw/source/ui/utlui/navipi.cxx b/sw/source/ui/utlui/navipi.cxx index ea43533f70d8..55276b7e33ef 100644 --- a/sw/source/ui/utlui/navipi.cxx +++ b/sw/source/ui/utlui/navipi.cxx @@ -1,7 +1,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 @@ -45,7 +45,7 @@ #include <sfx2/dispatch.hxx> #include <sfx2/dockwin.hxx> #include <vcl/toolbox.hxx> -#include <swtypes.hxx> // fuer Pathfinder +#include <swtypes.hxx> // fuer Pathfinder #include <errhdl.hxx> #include <swmodule.hxx> #ifndef _VIEW_HXX @@ -93,7 +93,7 @@ // Version fuer Konfiguration -#define NAVI_VERSION0 0 +#define NAVI_VERSION0 0 #define NAVI_VERSION1 1 #define NAVI_VERSION2 2 // bIsGlobalActive @@ -117,7 +117,7 @@ void SwNavigationPI::CleanEntry( String& rEntry ) *pStr = 0x20; } /*------------------------------------------------------------------------ - Beschreibung: Ausfuehrung der Drag-Operation + Beschreibung: Ausfuehrung der Drag-Operation mit und ohne Childs ------------------------------------------------------------------------*/ @@ -155,7 +155,7 @@ void SwNavigationPI::MoveOutline(USHORT nSource, USHORT nTarget, /*------------------------------------------------------------------------ - Beschreibung: Nach Goto einen Status Rahmenselektion aufheben + Beschreibung: Nach Goto einen Status Rahmenselektion aufheben ------------------------------------------------------------------------*/ @@ -169,7 +169,7 @@ void lcl_UnSelectFrm(SwWrtShell *pSh) } /*------------------------------------------------------------------------ - Beschreibung: Select der Documentanzeige + Beschreibung: Select der Documentanzeige ------------------------------------------------------------------------*/ @@ -198,7 +198,7 @@ IMPL_LINK( SwNavigationPI, DocListBoxSelectHdl, ListBox *, pBox ) } /*------------------------------------------------------------------------ - Beschreibung: Fuellen der ListBox fuer Outline Sicht oder Dokumente + Beschreibung: Fuellen der ListBox fuer Outline Sicht oder Dokumente Der PI wird auf volle Groesse gesetzt ------------------------------------------------------------------------*/ @@ -250,7 +250,7 @@ void SwNavigationPI::UsePage(SwWrtShell *pSh) } /*------------------------------------------------------------------------ - Beschreibung: SelectHandler der Toolboxen + Beschreibung: SelectHandler der Toolboxen ------------------------------------------------------------------------*/ @@ -393,7 +393,7 @@ IMPL_LINK( SwNavigationPI, ToolBoxSelectHdl, ToolBox *, pBox ) return TRUE; } /*------------------------------------------------------------------------ - Beschreibung: ClickHandler der Toolboxen + Beschreibung: ClickHandler der Toolboxen ------------------------------------------------------------------------*/ @@ -461,7 +461,7 @@ IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, ToolBox*, pBox ) pMenu->CheckItem( aContentTree.GetOutlineLevel() + 100 ); pMenu->SetSelectHdl(LINK(this, SwNavigationPI, MenuSelectHdl)); pBox->SetItemDown( nCurrItemId, TRUE ); - pMenu->Execute( pBox, + pMenu->Execute( pBox, pBox->GetItemRect(FN_OUTLINE_LEVEL), POPUPMENU_EXECUTE_DOWN ); pBox->SetItemDown( nCurrItemId, FALSE ); @@ -533,7 +533,7 @@ void SwNavHelpToolBox::RequestHelp( const HelpEvent& rHEvt ) } /*------------------------------------------------------------------------ - Beschreibung: Action-Handler Edit; wechselt auf die Seite, wenn + Beschreibung: Action-Handler Edit; wechselt auf die Seite, wenn nicht Gliederungssicht angeschaltet ist. ------------------------------------------------------------------------*/ @@ -553,7 +553,7 @@ IMPL_LINK( SwNavigationPI, EditAction, NumEditAction *, pEdit ) } /*------------------------------------------------------------------------ - Beschreibung: Falls die Seite eingestellt werden kann, wird hier + Beschreibung: Falls die Seite eingestellt werden kann, wird hier das Maximum gesetzt. ------------------------------------------------------------------------*/ @@ -584,7 +584,7 @@ BOOL SwNavigationPI::Close() } /*------------------------------------------------------------------------ - Beschreibung: Setzen einer automatischen Marke + Beschreibung: Setzen einer automatischen Marke ------------------------------------------------------------------------*/ @@ -609,7 +609,7 @@ void SwNavigationPI::MakeMark() // this assumes that IDocumentMarkAccess generates Names in ascending order if(vNavMarkNames.size() == MAX_MARKS) pMarkAccess->deleteMark(pMarkAccess->findMark(vNavMarkNames[nAutoMarkIdx])); - + rSh.SetBookmark(KeyCode(), ::rtl::OUString(), ::rtl::OUString(), IDocumentMarkAccess::NAVIGATOR_REMINDER); SwView::SetActMark( nAutoMarkIdx ); @@ -808,8 +808,8 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings, bPageCtrlsVisible = TRUE; -// Rectangle aFirstRect = aContentToolBox.GetItemRect(FN_SHOW_ROOT); -// USHORT nWidth = 2 * (USHORT)aFirstRect.Left(); +// Rectangle aFirstRect = aContentToolBox.GetItemRect(FN_SHOW_ROOT); +// USHORT nWidth = 2 * (USHORT)aFirstRect.Left(); //doppelte Separatoren sind nicht erlaubt, also muss //die passende Groesse anders ermittelt werden Rectangle aFirstRect = aContentToolBox.GetItemRect(FN_SELECT_FOOTNOTE); @@ -856,7 +856,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings, if( ( aTmpParentSize.Width() < aMinSize.Width() || - aTmpParentSize.Height() < aMinSize.Height() + aTmpParentSize.Height() < aMinSize.Height() ) && ((SfxDockingWindow*)pParent)->GetFloatingWindow() && @@ -869,14 +869,14 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings, WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE ); aContentTree.SetSpaceBetweenEntries(3); aContentTree.SetSelectionMode( SINGLE_SELECTION ); - aContentTree.SetDragDropMode( SV_DRAGDROP_CTRL_MOVE | + aContentTree.SetDragDropMode( SV_DRAGDROP_CTRL_MOVE | SV_DRAGDROP_CTRL_COPY | SV_DRAGDROP_ENABLE_TOP ); aContentTree.EnableAsyncDrag(TRUE); aContentTree.ShowTree(); aContentToolBox.CheckItem(FN_SHOW_CONTENT_BOX, TRUE); -// TreeListBox fuer Globaldokument +// TreeListBox fuer Globaldokument aGlobalTree.SetPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y ); aGlobalTree.SetSelectionMode( MULTIPLE_SELECTION ); aGlobalTree.SetWindowBits( WB_HASBUTTONS|WB_HASBUTTONSATROOT| @@ -884,7 +884,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings, Size aGlblSize(aGlobalToolBox.CalcWindowSizePixel()); aGlobalToolBox.SetSizePixel(aGlblSize); -// Handler +// Handler Link aLk = LINK(this, SwNavigationPI, ToolBoxSelectHdl); aContentToolBox.SetSelectHdl( aLk ); @@ -1102,7 +1102,7 @@ SfxChildAlignment eRetAlign; } /*-------------------------------------------------------------------- - Beschreibung: Benachrichtigung bei geaenderter DocInfo + Beschreibung: Benachrichtigung bei geaenderter DocInfo --------------------------------------------------------------------*/ void SwNavigationPI::Notify( SfxBroadcaster& rBrdc, const SfxHint& rHint ) @@ -1329,7 +1329,7 @@ sal_Int8 SwNavigationPI::ExecuteDrop( const ExecuteDropEvent& rEvt ) { INetURLObject aTemp( sFileName ); GraphicDescriptor aDesc( aTemp ); - if( !aDesc.Detect() ) // keine Grafiken annehmen + if( !aDesc.Detect() ) // keine Grafiken annehmen { if( STRING_NOTFOUND == sFileName.Search('#') && (!sContentFileName.Len() || sContentFileName != sFileName )) @@ -1384,7 +1384,7 @@ void SwNavigationPI::SetRegionDropMode(USHORT nNewMode) --------------------------------------------------*/ -BOOL SwNavigationPI::ToggleTree() +BOOL SwNavigationPI::ToggleTree() { BOOL bRet = TRUE; BOOL bGlobalDoc = IsGlobalDoc(); @@ -1420,7 +1420,7 @@ BOOL SwNavigationPI::ToggleTree() /*-----------------13.06.97 09:42------------------- --------------------------------------------------*/ -BOOL SwNavigationPI::IsGlobalDoc() const +BOOL SwNavigationPI::IsGlobalDoc() const { BOOL bRet = FALSE; SwView *pView = GetCreateView(); |