Kaydet (Commit) 503cde2a authored tarafından Matthias Freund's avatar Matthias Freund Kaydeden (comit) Thomas Arnhold

Comment translation DE-EN in /sw/source/ui/web/

Translations and some cleanups...

Change-Id: I70484c2b3e1380e611ed1456a7befccafee58f37
Reviewed-on: https://gerrit.libreoffice.org/2619Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst d2157548
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "swtypes.hxx" #include "swtypes.hxx"
#include "shellio.hxx" #include "shellio.hxx"
// nur wegen des Itemtypes // just because of the itemtypes
#include "wdocsh.hxx" #include "wdocsh.hxx"
#include "web.hrc" #include "web.hrc"
......
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
#include "hintids.hxx" #include "hintids.hxx"
#include <sfx2/app.hxx> #include <sfx2/app.hxx>
#include <sfx2/objface.hxx> #include <sfx2/objface.hxx>
#include <svl/srchitem.hxx> //*** #include <svl/srchitem.hxx>
#include "swtypes.hxx" #include "swtypes.hxx"
#include "cmdid.h" #include "cmdid.h"
#include "view.hxx" #include "view.hxx"
...@@ -32,7 +31,7 @@ ...@@ -32,7 +31,7 @@
#include "web.hrc" #include "web.hrc"
// STATIC DATA ----------------------------------------------------------- // STATIC DATA
#define SwWebFrameShell #define SwWebFrameShell
#include <sfx2/msg.hxx> #include <sfx2/msg.hxx>
#include "swslots.hxx" #include "swslots.hxx"
......
...@@ -36,8 +36,7 @@ ...@@ -36,8 +36,7 @@
#include <unomid.h> #include <unomid.h>
// STATIC DATA
// STATIC DATA -----------------------------------------------------------
#define SwWebTextShell #define SwWebTextShell
#define Paragraph #define Paragraph
#define HyphenZone #define HyphenZone
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#include <barcfg.hxx> #include <barcfg.hxx>
#include <doc.hxx> #include <doc.hxx>
// EIGENTLICH nicht moeglich !! // TECHNICALLY not possible !!
#include <beziersh.hxx> #include <beziersh.hxx>
#include <drawsh.hxx> #include <drawsh.hxx>
#include <drwtxtsh.hxx> #include <drwtxtsh.hxx>
...@@ -104,15 +104,15 @@ SwWebView::~SwWebView() ...@@ -104,15 +104,15 @@ SwWebView::~SwWebView()
void SwWebView::SelectShell() void SwWebView::SelectShell()
{ {
// Entscheidung, ob UpdateTable gerufen werden muss // Decision whether UpdateTable must be called
bool bUpdateTable = false; bool bUpdateTable = false;
const SwFrmFmt* pCurTableFmt = GetWrtShell().GetTableFmt(); const SwFrmFmt* pCurTableFmt = GetWrtShell().GetTableFmt();
if(pCurTableFmt && pCurTableFmt != GetLastTblFrmFmt()) if(pCurTableFmt && pCurTableFmt != GetLastTblFrmFmt())
{ {
bUpdateTable = true; // kann erst spaeter ausgefuehrt werden bUpdateTable = true; // can only be executed later
} }
SetLastTblFrmFmt(pCurTableFmt); SetLastTblFrmFmt(pCurTableFmt);
//SEL_TBL und SEL_TBL_CELLS koennen verodert sein! //SEL_TBL and SEL_TBL_CELLS can be ored!
int nNewSelectionType = (GetWrtShell().GetSelectionType() int nNewSelectionType = (GetWrtShell().GetSelectionType()
& ~nsSelectionType::SEL_TBL_CELLS); & ~nsSelectionType::SEL_TBL_CELLS);
...@@ -122,7 +122,7 @@ void SwWebView::SelectShell() ...@@ -122,7 +122,7 @@ void SwWebView::SelectShell()
GetViewFrame()->GetBindings().InvalidateAll( sal_False ); GetViewFrame()->GetBindings().InvalidateAll( sal_False );
if ( _nSelectionType & nsSelectionType::SEL_OLE || if ( _nSelectionType & nsSelectionType::SEL_OLE ||
_nSelectionType & nsSelectionType::SEL_GRF ) _nSelectionType & nsSelectionType::SEL_GRF )
//Fuer Grafiken und OLE kann sich natuerlich das Verb aendern! //The verb may of course change for graphics and OLE!
ImpSetVerb( nNewSelectionType ); ImpSetVerb( nNewSelectionType );
} }
else else
...@@ -132,9 +132,9 @@ void SwWebView::SelectShell() ...@@ -132,9 +132,9 @@ void SwWebView::SelectShell()
if( GetCurShell() ) if( GetCurShell() )
{ {
rDispatcher.Flush(); // alle gecachten Shells wirklich loeschen rDispatcher.Flush(); // really delete all cached shells
//Zur alten Selektion merken welche Toolbar sichtbar war //Additonal to the old selection remember which toolbar was visible.
sal_Int32 nId = rDispatcher.GetObjectBarId( SFX_OBJECTBAR_OBJECT ); sal_Int32 nId = rDispatcher.GetObjectBarId( SFX_OBJECTBAR_OBJECT );
if ( nId ) if ( nId )
pBarCfg->SetTopToolbar( _nSelectionType, nId ); pBarCfg->SetTopToolbar( _nSelectionType, nId );
...@@ -269,10 +269,10 @@ void SwWebView::SelectShell() ...@@ -269,10 +269,10 @@ void SwWebView::SelectShell()
GetEditWin().SetInputContext( aCntxt ); GetEditWin().SetInputContext( aCntxt );
} }
//Zur neuen Selektion die Toolbar aktivieren, die auch beim letzten Mal //Additional to the selection enable the toolbar, which was
//aktiviert war //activated last time
//Vorher muss ein Flush() sein, betrifft aber lt. MBA nicht das UI und ist //Before must be a Flush(), but concerns according to MBA not the
//kein Performance-Problem //user interface and is not a performance issue.
// TODO/LATER: maybe now the Flush() command is superfluous?! // TODO/LATER: maybe now the Flush() command is superfluous?!
rDispatcher.Flush(); rDispatcher.Flush();
...@@ -288,11 +288,11 @@ void SwWebView::SelectShell() ...@@ -288,11 +288,11 @@ void SwWebView::SelectShell()
} }
GetViewImpl()->GetUNOObject_Impl()->NotifySelChanged(); GetViewImpl()->GetUNOObject_Impl()->NotifySelChanged();
//Guenstiger Zeitpunkt fuer die Kommunikation mit OLE-Objekten? //Opportune time for the communication with OLE objects?
if ( GetDocShell()->GetDoc()->IsOLEPrtNotifyPending() ) if ( GetDocShell()->GetDoc()->IsOLEPrtNotifyPending() )
GetDocShell()->GetDoc()->PrtOLENotify( sal_False ); GetDocShell()->GetDoc()->PrtOLENotify( sal_False );
//jetzt das Tabellen-Update //now the table update
if(bUpdateTable) if(bUpdateTable)
GetWrtShell().UpdateTable(); GetWrtShell().UpdateTable();
} }
......
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