swhtml.cxx (870262e3) | swhtml.cxx (6e9cccf4) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 290 unchanged lines hidden (view full) --- 299 nContextStAttrMin( 0 ), 300 // <-- 301 nOpenParaToken( 0 ), 302 eJumpTo( JUMPTO_NONE ), 303#ifdef DBG_UTIL 304 nContinue( 0 ), 305#endif 306 eParaAdjust( SVX_ADJUST_END ), | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 290 unchanged lines hidden (view full) --- 299 nContextStAttrMin( 0 ), 300 // <-- 301 nOpenParaToken( 0 ), 302 eJumpTo( JUMPTO_NONE ), 303#ifdef DBG_UTIL 304 nContinue( 0 ), 305#endif 306 eParaAdjust( SVX_ADJUST_END ), |
307 bDocInitalized( sal_False ), | 307 bDocInitialized( sal_False ), |
308 bSetModEnabled( sal_False ), 309 bInFloatingFrame( sal_False ), 310 bInField( sal_False ), 311 bCallNextToken( sal_False ), 312 bIgnoreRawData( sal_False ), 313 bNoParSpace( sal_False ), 314 bInNoEmbed( sal_False ), 315 bInTitle( sal_False ), --- 618 unchanged lines hidden (view full) --- 934 ReleaseRef(); // ansonsten sind wir fertig! 935 } 936 break; 937 } 938} 939 940void SwHTMLParser::DocumentDetected() 941{ | 308 bSetModEnabled( sal_False ), 309 bInFloatingFrame( sal_False ), 310 bInField( sal_False ), 311 bCallNextToken( sal_False ), 312 bIgnoreRawData( sal_False ), 313 bNoParSpace( sal_False ), 314 bInNoEmbed( sal_False ), 315 bInTitle( sal_False ), --- 618 unchanged lines hidden (view full) --- 934 ReleaseRef(); // ansonsten sind wir fertig! 935 } 936 break; 937 } 938} 939 940void SwHTMLParser::DocumentDetected() 941{ |
942 ASSERT( !bDocInitalized, "DocumentDetected mehrfach aufgerufen" ); 943 bDocInitalized = sal_True; | 942 ASSERT( !bDocInitialized, "DocumentDetected mehrfach aufgerufen" ); 943 bDocInitialized = sal_True; |
944 if( IsNewDoc() ) 945 { 946 if( IsInHeader() ) 947 FinishHeader( sal_True ); 948 949 CallEndAction( sal_True, sal_True ); 950 951 pDoc->GetIDocumentUndoRedo().DoUndo(false); --- 102 unchanged lines hidden (view full) --- 1054 return; 1055 } 1056 } 1057 1058 // Wenn wir noch nicht wissen, was fuer ein Dokument wir vor uns haben, 1059 // versuchen wir das erstmal rauszufinden. Das muss fuer Controls in 1060 // Fall vor dem Einfuegen des Controls passieren, weil beim Einfuegen 1061 // bereits eine View benoetigt wird. | 944 if( IsNewDoc() ) 945 { 946 if( IsInHeader() ) 947 FinishHeader( sal_True ); 948 949 CallEndAction( sal_True, sal_True ); 950 951 pDoc->GetIDocumentUndoRedo().DoUndo(false); --- 102 unchanged lines hidden (view full) --- 1054 return; 1055 } 1056 } 1057 1058 // Wenn wir noch nicht wissen, was fuer ein Dokument wir vor uns haben, 1059 // versuchen wir das erstmal rauszufinden. Das muss fuer Controls in 1060 // Fall vor dem Einfuegen des Controls passieren, weil beim Einfuegen 1061 // bereits eine View benoetigt wird. |
1062 if( !bDocInitalized ) | 1062 if( !bDocInitialized ) |
1063 DocumentDetected(); 1064 1065 sal_Bool bGetIDOption = sal_False, bInsertUnknown = sal_False; 1066 sal_Bool bUpperSpaceSave = bUpperSpace; 1067 bUpperSpace = sal_False; 1068 1069 // Die folgenden Speziallfaelle muessen oder koennen nach der 1070 // Filter-Detection erfolgen. --- 399 unchanged lines hidden (view full) --- 1470 { 1471 bUpperSpace = bUpperSpaceSave; 1472 break; 1473 } 1474 } 1475 1476 if( aToken.Len() ) 1477 { | 1063 DocumentDetected(); 1064 1065 sal_Bool bGetIDOption = sal_False, bInsertUnknown = sal_False; 1066 sal_Bool bUpperSpaceSave = bUpperSpace; 1067 bUpperSpace = sal_False; 1068 1069 // Die folgenden Speziallfaelle muessen oder koennen nach der 1070 // Filter-Detection erfolgen. --- 399 unchanged lines hidden (view full) --- 1470 { 1471 bUpperSpace = bUpperSpaceSave; 1472 break; 1473 } 1474 } 1475 1476 if( aToken.Len() ) 1477 { |
1478 if( !bDocInitalized ) | 1478 if( !bDocInitialized ) |
1479 DocumentDetected(); 1480 pDoc->InsertString( *pPam, aToken ); 1481 1482 // wenn es noch vorlaefige Absatz-Attribute gibt, der Absatz aber 1483 // nicht leer ist, dann sind die Absatz-Attribute entgueltig. 1484 if( aParaAttrs.Count() ) 1485 aParaAttrs.Remove( 0, aParaAttrs.Count() ); 1486 --- 4035 unchanged lines hidden --- | 1479 DocumentDetected(); 1480 pDoc->InsertString( *pPam, aToken ); 1481 1482 // wenn es noch vorlaefige Absatz-Attribute gibt, der Absatz aber 1483 // nicht leer ist, dann sind die Absatz-Attribute entgueltig. 1484 if( aParaAttrs.Count() ) 1485 aParaAttrs.Remove( 0, aParaAttrs.Count() ); 1486 --- 4035 unchanged lines hidden --- |