Kaydet (Commit) 61c3e678 authored tarafından Jens Carl's avatar Jens Carl Kaydeden (comit) Michael Stahl

tdf#39468 Translate German comments/terms in sw/source/filter/html/swhtml.cxx

Seventh set of translations.

Change-Id: I3bfba60d8915f450f16ac2cecf4dd608a8434e2c
Reviewed-on: https://gerrit.libreoffice.org/38487Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 0c745f84
...@@ -3235,8 +3235,7 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab, ...@@ -3235,8 +3235,7 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab,
const SwNodeIndex& nSttIdx = m_pPam->GetPoint()->nNode; const SwNodeIndex& nSttIdx = m_pPam->GetPoint()->nNode;
SwNodeIndex nEndIdx( nSttIdx ); SwNodeIndex nEndIdx( nSttIdx );
// alle noch offenen Attribute beenden und hinter der Tabelle // close all still open attributes and re-open them after the table
// neu aufspannen
HTMLAttr** pHTMLAttributes = reinterpret_cast<HTMLAttr**>(&m_aAttrTab); HTMLAttr** pHTMLAttributes = reinterpret_cast<HTMLAttr**>(&m_aAttrTab);
HTMLAttr** pSaveAttributes = reinterpret_cast<HTMLAttr**>(&rNewAttrTab); HTMLAttr** pSaveAttributes = reinterpret_cast<HTMLAttr**>(&rNewAttrTab);
bool bSetAttr = true; bool bSetAttr = true;
...@@ -3254,8 +3253,7 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab, ...@@ -3254,8 +3253,7 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab,
} }
SwContentNode* pCNd = SwNodes::GoPrevious(&nEndIdx); SwContentNode* pCNd = SwNodes::GoPrevious(&nEndIdx);
// keine Attribute setzen, wenn der PaM aus dem Content-Bereich // Don't set attributes, when the PaM was moved outside of the content area.
// herausgeschoben wurde.
bSetAttr = pCNd && nTmpIdx < nEndIdx.GetIndex(); bSetAttr = pCNd && nTmpIdx < nEndIdx.GetIndex();
nEndCnt = (bSetAttr ? pCNd->Len() : 0); nEndCnt = (bSetAttr ? pCNd->Len() : 0);
...@@ -3274,11 +3272,10 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab, ...@@ -3274,11 +3272,10 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab,
(pAttr->GetSttPara() == nEndIdx && (pAttr->GetSttPara() == nEndIdx &&
pAttr->GetSttCnt() != nEndCnt) ) ) pAttr->GetSttCnt() != nEndCnt) ) )
{ {
// das Attribut muss vor der Liste gesetzt werden. Da wir // The attribute must be set before the list. We need the
// das Original noch brauchen, weil Zeiger auf das Attribut // original and therefore we clone it, because pointer to the
// noch in den Kontexten existieren, muessen wir es clonen. // attribute exist in the other contexts. The Next-List is lost
// Die Next-Liste geht dabei verloren, aber die // in doing so, but the Previous-List is preserved.
// Previous-Liste bleibt erhalten
HTMLAttr *pSetAttr = pAttr->Clone( nEndIdx, nEndCnt ); HTMLAttr *pSetAttr = pAttr->Clone( nEndIdx, nEndCnt );
if( pNext ) if( pNext )
...@@ -3293,9 +3290,8 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab, ...@@ -3293,9 +3290,8 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab,
} }
else if( pPrev ) else if( pPrev )
{ {
// Wenn das Attribut nicht gesetzt vor der Tabelle // If the attribute doesn't need to be set before the table, then
// gesetzt werden muss, muessen der Previous-Attribute // the previous attributes must still be set.
// trotzdem gesetzt werden.
if( pNext ) if( pNext )
pNext->InsertPrev( pPrev ); pNext->InsertPrev( pPrev );
else else
...@@ -3307,8 +3303,7 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab, ...@@ -3307,8 +3303,7 @@ void SwHTMLParser::SplitAttrTab( HTMLAttrTable& rNewAttrTab,
} }
} }
// den Start des Attributs neu setzen und die Verkettungen // set the start of the attribute anew and break link
// aufbrechen
pAttr->Reset(nSttIdx, nSttCnt, pSaveAttributes); pAttr->Reset(nSttIdx, nSttCnt, pSaveAttributes);
if (*pSaveAttributes) if (*pSaveAttributes)
...@@ -3342,7 +3337,7 @@ void SwHTMLParser::RestoreAttrTab( HTMLAttrTable& rNewAttrTab ) ...@@ -3342,7 +3337,7 @@ void SwHTMLParser::RestoreAttrTab( HTMLAttrTable& rNewAttrTab )
for (auto nCnt = sizeof(HTMLAttrTable) / sizeof(HTMLAttr*); nCnt--; ++pHTMLAttributes, ++pSaveAttributes) for (auto nCnt = sizeof(HTMLAttrTable) / sizeof(HTMLAttr*); nCnt--; ++pHTMLAttributes, ++pSaveAttributes)
{ {
OSL_ENSURE(!*pHTMLAttributes, "Die Attribut-Tabelle ist nicht leer!"); OSL_ENSURE(!*pHTMLAttributes, "The attribute table is not empty!");
*pHTMLAttributes = *pSaveAttributes; *pHTMLAttributes = *pSaveAttributes;
...@@ -3350,7 +3345,7 @@ void SwHTMLParser::RestoreAttrTab( HTMLAttrTable& rNewAttrTab ) ...@@ -3350,7 +3345,7 @@ void SwHTMLParser::RestoreAttrTab( HTMLAttrTable& rNewAttrTab )
while (pAttr) while (pAttr)
{ {
OSL_ENSURE( !pAttr->GetPrev() || !pAttr->GetPrev()->ppHead, OSL_ENSURE( !pAttr->GetPrev() || !pAttr->GetPrev()->ppHead,
"Previous-Attribut hat noch einen Header" ); "Previous attribute has still a header" );
pAttr->SetHead(pHTMLAttributes); pAttr->SetHead(pHTMLAttributes);
pAttr = pAttr->GetNext(); pAttr = pAttr->GetNext();
} }
...@@ -3410,10 +3405,10 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken ) ...@@ -3410,10 +3405,10 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken )
} }
} }
// einen neuen Kontext anlegen // create a new context
HTMLAttrContext *pCntxt = new HTMLAttrContext( nToken ); HTMLAttrContext *pCntxt = new HTMLAttrContext( nToken );
// Styles parsen // parse styles
if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) ) if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) )
{ {
SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() );
...@@ -3428,7 +3423,7 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken ) ...@@ -3428,7 +3423,7 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken )
} }
} }
// den Kontext merken // save the context
PushContext( pCntxt ); PushContext( pCntxt );
} }
...@@ -3464,10 +3459,10 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken, ...@@ -3464,10 +3459,10 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken,
} }
} }
// einen neuen Kontext anlegen // create a new context
HTMLAttrContext *pCntxt = new HTMLAttrContext( nToken ); HTMLAttrContext *pCntxt = new HTMLAttrContext( nToken );
// Styles parsen // parse styles
if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) ) if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) )
{ {
SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() );
...@@ -3499,17 +3494,17 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken, ...@@ -3499,17 +3494,17 @@ void SwHTMLParser::NewStdAttr( HtmlTokenId nToken,
} }
} }
// den Kontext merken // save the context
PushContext( pCntxt ); PushContext( pCntxt );
} }
void SwHTMLParser::EndTag( HtmlTokenId nToken ) void SwHTMLParser::EndTag( HtmlTokenId nToken )
{ {
// den Kontext holen // fetch context
HTMLAttrContext *pCntxt = PopContext( getOnToken(nToken) ); HTMLAttrContext *pCntxt = PopContext( getOnToken(nToken) );
if( pCntxt ) if( pCntxt )
{ {
// und ggf. die Attribute beenden // and maybe end the attributes
EndContext( pCntxt ); EndContext( pCntxt );
delete pCntxt; delete pCntxt;
} }
...@@ -3554,10 +3549,10 @@ void SwHTMLParser::NewBasefontAttr() ...@@ -3554,10 +3549,10 @@ void SwHTMLParser::NewBasefontAttr()
if( nSize > 7 ) if( nSize > 7 )
nSize = 7; nSize = 7;
// einen neuen Kontext anlegen // create a new context
HTMLAttrContext *pCntxt = new HTMLAttrContext( HtmlTokenId::BASEFONT_ON ); HTMLAttrContext *pCntxt = new HTMLAttrContext( HtmlTokenId::BASEFONT_ON );
// Styles parsen // parse styles
if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) ) if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) )
{ {
SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() );
...@@ -3589,10 +3584,10 @@ void SwHTMLParser::NewBasefontAttr() ...@@ -3589,10 +3584,10 @@ void SwHTMLParser::NewBasefontAttr()
InsertAttr( &m_aAttrTab.pFontHeightCTL, aFontHeightCTL, pCntxt ); InsertAttr( &m_aAttrTab.pFontHeightCTL, aFontHeightCTL, pCntxt );
} }
// den Kontext merken // save the context
PushContext( pCntxt ); PushContext( pCntxt );
// die Font-Size merken // save the font size
m_aBaseFontStack.push_back( nSize ); m_aBaseFontStack.push_back( nSize );
} }
...@@ -3600,7 +3595,7 @@ void SwHTMLParser::EndBasefontAttr() ...@@ -3600,7 +3595,7 @@ void SwHTMLParser::EndBasefontAttr()
{ {
EndTag( HtmlTokenId::BASEFONT_ON ); EndTag( HtmlTokenId::BASEFONT_ON );
// Stack-Unterlauf in Tabellen vermeiden // avoid stack underflow in table
if( m_aBaseFontStack.size() > m_nBaseFontStMin ) if( m_aBaseFontStack.size() > m_nBaseFontStMin )
m_aBaseFontStack.erase( m_aBaseFontStack.begin() + m_aBaseFontStack.size() - 1 ); m_aBaseFontStack.erase( m_aBaseFontStack.begin() + m_aBaseFontStack.size() - 1 );
} }
...@@ -3758,10 +3753,10 @@ void SwHTMLParser::NewFontAttr( HtmlTokenId nToken ) ...@@ -3758,10 +3753,10 @@ void SwHTMLParser::NewFontAttr( HtmlTokenId nToken )
} }
} }
// einen neuen Kontext anlegen // create a new context
HTMLAttrContext *pCntxt = new HTMLAttrContext(nToken ); HTMLAttrContext *pCntxt = new HTMLAttrContext(nToken );
// Styles parsen // parse styles
if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) ) if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) )
{ {
SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() );
...@@ -3870,7 +3865,7 @@ void SwHTMLParser::NewPara() ...@@ -3870,7 +3865,7 @@ void SwHTMLParser::NewPara()
} }
} }
// einen neuen Kontext anlegen // create a new context
HTMLAttrContext *pCntxt = HTMLAttrContext *pCntxt =
!aClass.isEmpty() ? new HTMLAttrContext( HtmlTokenId::PARABREAK_ON, !aClass.isEmpty() ? new HTMLAttrContext( HtmlTokenId::PARABREAK_ON,
RES_POOLCOLL_TEXT, aClass ) RES_POOLCOLL_TEXT, aClass )
...@@ -4296,7 +4291,7 @@ void SwHTMLParser::NewDefList() ...@@ -4296,7 +4291,7 @@ void SwHTMLParser::NewDefList()
pCntxt->SetMargins( nLeft, nRight, nIndent ); pCntxt->SetMargins( nLeft, nRight, nIndent );
// Styles parsen // parse styles
if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) ) if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) )
{ {
SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() );
...@@ -4754,7 +4749,7 @@ void SwHTMLParser::NewCharFormat( HtmlTokenId nToken ) ...@@ -4754,7 +4749,7 @@ void SwHTMLParser::NewCharFormat( HtmlTokenId nToken )
} }
} }
// einen neuen Kontext anlegen // create a new context
HTMLAttrContext *pCntxt = new HTMLAttrContext( nToken ); HTMLAttrContext *pCntxt = new HTMLAttrContext( nToken );
// die Vorlage setzen und im Kontext merken // die Vorlage setzen und im Kontext merken
...@@ -5123,7 +5118,7 @@ void SwHTMLParser::InsertLineBreak() ...@@ -5123,7 +5118,7 @@ void SwHTMLParser::InsertLineBreak()
} // kein Text-Node } // kein Text-Node
} // kein CLEAR } // kein CLEAR
// Styles parsen // parse styles
SvxFormatBreakItem aBreakItem( SvxBreak::NONE, RES_BREAK ); SvxFormatBreakItem aBreakItem( SvxBreak::NONE, RES_BREAK );
bool bBreakItem = false; bool bBreakItem = false;
if( HasStyleOptions( aStyle, aId, aClass ) ) if( HasStyleOptions( aStyle, aId, aClass ) )
......
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