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