summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/ndnotxt.cxx22
1 files changed, 7 insertions, 15 deletions
diff --git a/sw/source/core/docnode/ndnotxt.cxx b/sw/source/core/docnode/ndnotxt.cxx
index 9b9f6cd78a21..fd3a0695483e 100644
--- a/sw/source/core/docnode/ndnotxt.cxx
+++ b/sw/source/core/docnode/ndnotxt.cxx
@@ -38,7 +38,7 @@
#include <ndgrf.hxx>
#include <ndole.hxx>
#include <ndindex.hxx>
-#include <hints.hxx> // fuer SwFmtChg
+#include <hints.hxx>
#include <istyleaccess.hxx>
#include <SwStyleNameMapper.hxx>
@@ -54,23 +54,21 @@ SwNoTxtNode::SwNoTxtNode( const SwNodeIndex & rWhere,
bContourMapModeValid( sal_True ),
bPixelContour( sal_False )
{
- // soll eine Harte-Attributierung gesetzt werden?
+ // Should this set a hard attribute?
if( pAutoAttr )
SetAttr( *pAutoAttr );
}
-
SwNoTxtNode::~SwNoTxtNode()
{
delete pContour;
}
-
-// erzeugt fuer alle Ableitungen einen AttrSet mit Bereichen
-// fuer Frame- und Grafik-Attributen
+/// Creates an AttrSet for all derivations with ranges for frame-
+/// and graphics-attributes.
void SwNoTxtNode::NewAttrSet( SwAttrPool& rPool )
{
- OSL_ENSURE( !mpAttrSet.get(), "AttrSet ist doch gesetzt" );
+ OSL_ENSURE( !mpAttrSet.get(), "AttrSet is already set" );
SwAttrSet aNewAttrSet( rPool, aNoTxtNodeSetRange );
// put names of parent style and conditional style:
@@ -84,22 +82,18 @@ void SwNoTxtNode::NewAttrSet( SwAttrPool& rPool )
mpAttrSet = GetDoc()->GetIStyleAccess().getAutomaticStyle( aNewAttrSet, IStyleAccess::AUTO_STYLE_NOTXT );
}
-// Dummies fuer das Laden/Speichern von persistenten Daten
-// bei Grafiken und OLE-Objekten
-
-
+/// Dummies for loading/saving of persistent data
+/// when working with graphics and OLE objects
sal_Bool SwNoTxtNode::RestorePersistentData()
{
return sal_True;
}
-
sal_Bool SwNoTxtNode::SavePersistentData()
{
return sal_True;
}
-
void SwNoTxtNode::SetContour( const PolyPolygon *pPoly, sal_Bool bAutomatic )
{
delete pContour;
@@ -112,7 +106,6 @@ void SwNoTxtNode::SetContour( const PolyPolygon *pPoly, sal_Bool bAutomatic )
bPixelContour = sal_False;
}
-
void SwNoTxtNode::CreateContour()
{
OSL_ENSURE( !pContour, "Contour available." );
@@ -262,7 +255,6 @@ sal_Bool SwNoTxtNode::IsPixelContour() const
return bRet;
}
-
Graphic SwNoTxtNode::GetGraphic() const
{
Graphic aRet;