Kaydet (Commit) 72778119 authored tarafından Alexander Wilms's avatar Alexander Wilms Kaydeden (comit) Philipp Riemer

Translated German comments in starmath (fdo#39468)

Change-Id: If3be0db9213c405525f01c92aa4dd039e3aa6aad
Reviewed-by: 's avatarPhilipp Riemer <ruderphilipp@gmail.com>
üst c6fdd2e4
...@@ -572,12 +572,12 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getIndexAtPoint( const awt::Point& aPoin ...@@ -572,12 +572,12 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getIndexAtPoint( const awt::Point& aPoin
if (pWin) if (pWin)
{ {
const SmNode *pTree = pWin->GetView()->GetDoc()->GetFormulaTree(); const SmNode *pTree = pWin->GetView()->GetDoc()->GetFormulaTree();
//! kann NULL sein! ZB wenn bereits beim laden des Dokuments (bevor der // can be NULL! e.g. if one clicks within the window already during loading of the
//! Parser angeworfen wurde) ins Fenster geklickt wird. // document (before the parser even started)
if (!pTree) if (!pTree)
return nRes; return nRes;
// get position relativ to formula draw position // get position relative to formula draw position
Point aPos( aPoint.X, aPoint.Y ); Point aPos( aPoint.X, aPoint.Y );
aPos = pWin->PixelToLogic( aPos ); aPos = pWin->PixelToLogic( aPos );
aPos -= pWin->GetFormulaDrawPos(); aPos -= pWin->GetFormulaDrawPos();
......
...@@ -82,8 +82,7 @@ void SmConfig::ItemSetToConfig(const SfxItemSet &rSet) ...@@ -82,8 +82,7 @@ void SmConfig::ItemSetToConfig(const SfxItemSet &rSet)
{ {
SetIgnoreSpacesRight( bVal ); SetIgnoreSpacesRight( bVal );
// (angezeigte) Formeln muessen entsprechen neu formatiert werden. // reformat (displayed) formulas accordingly
// Das erreichen wir mit:
Broadcast(SfxSimpleHint(HINT_FORMATCHANGED)); Broadcast(SfxSimpleHint(HINT_FORMATCHANGED));
} }
} }
......
This diff is collapsed.
...@@ -261,8 +261,8 @@ void SmDocShell::ArrangeFormula() ...@@ -261,8 +261,8 @@ void SmDocShell::ArrangeFormula()
if (IsFormulaArranged()) if (IsFormulaArranged())
return; return;
//! Nur f�r die Dauer der Existenz dieses Objekts sind am Drucker die // Only for the duration of the existence of this object the correct settings
//! richtigen Einstellungen garantiert. // at the printer are guaranteed!
SmPrinterAccess aPrtAcc(*this); SmPrinterAccess aPrtAcc(*this);
OutputDevice* pOutDev = aPrtAcc.GetRefDev(); OutputDevice* pOutDev = aPrtAcc.GetRefDev();
...@@ -273,7 +273,7 @@ void SmDocShell::ArrangeFormula() ...@@ -273,7 +273,7 @@ void SmDocShell::ArrangeFormula()
#endif #endif
} }
// falls n�tig ein anderes OutputDevice holen f�r das formatiert wird // if neccessary get another OutputDevice for which we format
if (!pOutDev) if (!pOutDev)
{ {
SmViewShell *pView = SmGetActiveView(); SmViewShell *pView = SmGetActiveView();
...@@ -431,12 +431,10 @@ void SmDocShell::DrawFormula(OutputDevice &rDev, Point &rPosition, bool bDrawSel ...@@ -431,12 +431,10 @@ void SmDocShell::DrawFormula(OutputDevice &rDev, Point &rPosition, bool bDrawSel
if (!IsFormulaArranged()) if (!IsFormulaArranged())
ArrangeFormula(); ArrangeFormula();
//Problem: Was passiert mit dem WYSIWYG? Wir haben waehrend wir inplace aktiv // Problem: What happens to WYSIWYG? While we're active inplace, we don't have a reference
//sind kein Referenzdevice und sind auch nicht darauf ausgerichtet. Es kann // device and aren't aligned to that either. So now there can be a difference between the
//also jetzt eine Differenz zwischen der VisArea (spricht die Groesse im Client) // VisArea (i.e. the size within the client) and the current size.
//und der jetzt vorliegenden Groese geben. // Idea: The difference could be adapted with SmNod::SetSize (no long-term solution)
//Idee: Die Differenz koennte, zumindest behelfsmaessig, mit SmNod::SetSize
//angepasst werden.
rPosition.X() += aFormat.GetDistance( DIS_LEFTSPACE ); rPosition.X() += aFormat.GetDistance( DIS_LEFTSPACE );
rPosition.Y() += aFormat.GetDistance( DIS_TOPSPACE ); rPosition.Y() += aFormat.GetDistance( DIS_TOPSPACE );
...@@ -594,11 +592,9 @@ Printer* SmDocShell::GetPrt() ...@@ -594,11 +592,9 @@ Printer* SmDocShell::GetPrt()
if ( SFX_CREATE_MODE_EMBEDDED == GetCreateMode() ) if ( SFX_CREATE_MODE_EMBEDDED == GetCreateMode() )
{ {
//Normalerweise wird der Printer vom Server besorgt. Wenn dieser aber // Normally the server provides the printer. But if it doesn't provide one (e.g. because
//keinen liefert (weil etwa noch keine connection da ist), kann es // there is no connection) it still can be the case that we know the printer because it
//dennoch sein, dass wir den Printer kennen, denn dieser wird in // has been passed on by the server in OnDocumentPrinterChanged and being kept temporarily.
//OnDocumentPrinterChanged vom Server durchgereicht und dann temporaer
//festgehalten.
Printer *pPrt = GetDocumentPrinter(); Printer *pPrt = GetDocumentPrinter();
if ( !pPrt && pTmpPrinter ) if ( !pPrt && pTmpPrinter )
pPrt = pTmpPrinter; pPrt = pTmpPrinter;
......
...@@ -432,7 +432,7 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt) ...@@ -432,7 +432,7 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt)
SmViewShell *pView = GetView(); SmViewShell *pView = GetView();
if ( pView && !pView->KeyInput(rKEvt) ) if ( pView && !pView->KeyInput(rKEvt) )
{ {
/* fuert bei F1 (Hilfe) zum Zerstoeren von this! */ // F1 (help) leads to the destruction of this
Flush(); Flush();
if ( aModifyTimer.IsActive() ) if ( aModifyTimer.IsActive() )
aModifyTimer.Stop(); aModifyTimer.Stop();
...@@ -440,8 +440,8 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt) ...@@ -440,8 +440,8 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt)
} }
else else
{ {
//SFX hat evtl. Slot an der View gecallt und dabei (wg. Hack // SFX has maybe called a slot of the view and thus (because of a hack in SFX)
//im SFX) den Focus auf die View gesetzt // set the focus to the view
SfxViewShell* pVShell = GetView(); SfxViewShell* pVShell = GetView();
if ( pVShell && pVShell->ISA(SmViewShell) && if ( pVShell && pVShell->ISA(SmViewShell) &&
((SmViewShell*)pVShell)->GetGraphicWindow().HasFocus() ) ((SmViewShell*)pVShell)->GetGraphicWindow().HasFocus() )
...@@ -562,7 +562,7 @@ Rectangle SmEditWindow::AdjustScrollBars() ...@@ -562,7 +562,7 @@ Rectangle SmEditWindow::AdjustScrollBars()
void SmEditWindow::SetScrollBarRanges() void SmEditWindow::SetScrollBarRanges()
{ {
// Extra-Methode, nicht InitScrollBars, da auch fuer EditEngine-Events. // Extra method, not InitScrollBars, since it's also being used for EditEngine events
EditEngine *pEditEngine = GetEditEngine(); EditEngine *pEditEngine = GetEditEngine();
if (pVScrollBar && pHScrollBar && pEditEngine && pEditView) if (pVScrollBar && pHScrollBar && pEditEngine && pEditView)
{ {
...@@ -623,8 +623,8 @@ void SmEditWindow::SetText(const XubString& rText) ...@@ -623,8 +623,8 @@ void SmEditWindow::SetText(const XubString& rText)
pEditEngine->SetText(rText); pEditEngine->SetText(rText);
pEditEngine->ClearModifyFlag(); pEditEngine->ClearModifyFlag();
//! Hier die Timer neu zu starten verhindert, dass die Handler fuer andere // Restarting the timer here, prevents calling the handlers for other (currently inactive)
//! (im Augenblick nicht mehr aktive) Math Tasks aufgerufen werden. // math tasks
aModifyTimer.Start(); aModifyTimer.Start();
pEditView->SetSelection(eSelection); pEditView->SetSelection(eSelection);
...@@ -712,8 +712,8 @@ void SmEditWindow::InsertCommand(sal_uInt16 nCommand) ...@@ -712,8 +712,8 @@ void SmEditWindow::InsertCommand(sal_uInt16 nCommand)
OSL_ENSURE( pEditView, "EditView missing" ); OSL_ENSURE( pEditView, "EditView missing" );
if (pEditView) if (pEditView)
{ {
//Anfang der Selektion merken und hinterher den Cursor daraufsetzen. Nur so // Remember start of the selection and move the cursor there afterwards.
//macht das SelNextMark() Sinn. // Only this way the SelNextMark() makes sense...
ESelection aSelection = pEditView->GetSelection(); ESelection aSelection = pEditView->GetSelection();
aSelection.nEndPos = aSelection.nStartPos; aSelection.nEndPos = aSelection.nStartPos;
aSelection.nEndPara = aSelection.nStartPara; aSelection.nEndPara = aSelection.nStartPara;
......
This diff is collapsed.
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