summaryrefslogtreecommitdiff
path: root/sw/inc/swatrset.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/swatrset.hxx')
-rw-r--r--sw/inc/swatrset.hxx53
1 files changed, 24 insertions, 29 deletions
diff --git a/sw/inc/swatrset.hxx b/sw/inc/swatrset.hxx
index cc2f1532a6fc..1e3112952eb3 100644
--- a/sw/inc/swatrset.hxx
+++ b/sw/inc/swatrset.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -64,7 +65,7 @@ class SvxCharRotateItem;
class SvxCharReliefItem;
class SvxCharHiddenItem;
-// Frame-Attribute
+// Frame attributes
class SwFmtFillOrder;
class SwFmtFrmSize;
class SvxPaperBinItem;
@@ -100,12 +101,10 @@ class SwFmtNoBalancedColumns;
class SvxFrameDirectionItem;
class SwTextGridItem;
class SwHeaderAndFooterEatSpacingItem;
-// OD 18.09.2003 #i18732#
class SwFmtFollowTextFlow;
-// OD 2004-05-05 #i28701#
class SwFmtWrapInfluenceOnObjPos;
-// Grafik-Attribute
+// Graphic attributes
class SwMirrorGrf;
class SwCropGrf;
class SwRotationGrf;
@@ -119,7 +118,7 @@ class SwInvertGrf;
class SwTransparencyGrf;
class SwDrawModeGrf;
-// Paragraph-Attribute
+// Paragraph attributes
class SvxLineSpacingItem;
class SvxAdjustItem;
class SvxFmtSplitItem;
@@ -137,20 +136,20 @@ class SvxParaVertAlignItem;
class SvxParaGridItem;
class SwParaConnectBorderItem;
-// TabellenBox-Attribute
+// TableBox attributes
class SwTblBoxNumFormat;
class SwTblBoxFormula;
class SwTblBoxValue;
class SwAttrPool : public SfxItemPool
{
- friend void _InitCore(); // fuers anlegen/zerstoeren der
- friend void _FinitCore(); // Versionsmaps
+ friend void _InitCore(); // For creating/deleting of version maps.
+ friend void _FinitCore();
static sal_uInt16* pVersionMap1;
static sal_uInt16* pVersionMap2;
static sal_uInt16* pVersionMap3;
static sal_uInt16* pVersionMap4;
- // OD 2004-01-21 #i18732# - due to extension of attribute set a new version
+ // due to extension of attribute set a new version
// map for binary filter is necessary (version map 5).
static sal_uInt16* pVersionMap5;
static sal_uInt16* pVersionMap6;
@@ -175,7 +174,7 @@ public:
class SW_DLLPUBLIC SwAttrSet : public SfxItemSet
{
- // Pointer fuers Modify-System
+ // Pointer for Modify-System
SwAttrSet *pOldSet, *pNewSet;
// Notification-Callback
@@ -192,7 +191,7 @@ public:
int Put_BC( const SfxPoolItem& rAttr, SwAttrSet* pOld, SwAttrSet* pNew );
int Put_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
- // ein Item oder einen Bereich loeschen
+ // Delete an item or a range.
sal_uInt16 ClearItem_BC( sal_uInt16 nWhich, SwAttrSet* pOld, SwAttrSet* pNew );
sal_uInt16 ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
SwAttrSet* pOld = 0, SwAttrSet* pNew = 0 );
@@ -204,28 +203,24 @@ public:
SwAttrPool* GetPool() const { return (SwAttrPool*)SfxItemSet::GetPool(); }
- // kopiere die Attribute ggfs. ueber Dokumentgrenzen
+ // Copy attributes, if necessary across documents.
void CopyToModify( SwModify& rMod ) const;
- // ----------------------------------------------------------------
- // Sonderbehandlung fuer einige Attribute
- // Setze den Modify-Pointer (alten pDefinedIn) bei folgenden Attributen:
+ // Special treatment for some attributes.
+ // Set Modify-pointer (the old pDefinedIn) at the following attributes:
// - SwFmtDropCaps
// - SwFmtPageDesc
- // (Wird beim Einfuegen in Formate/Nodes gerufen)
+ // (Is called at insert in formats/nodes.)
// Second version is for the SwAttrSet handles of SwCntntNode.
bool SetModifyAtAttr( const SwModify* pModify );
- // Das Doc wird jetzt am SwAttrPool gesetzt. Dadurch hat man es immer
- // im Zugriff.
+ // Document is set at SwAttrPool. Therefore it is always accessible.
const SwDoc *GetDoc() const { return GetPool()->GetDoc(); }
SwDoc *GetDoc() { return GetPool()->GetDoc(); }
- // GetMethoden: das Bool gibt an, ob nur im Set (sal_False) oder auch in
- // den Parents gesucht werden soll. Wird nichts gefunden,
- // wird das deflt. Attribut returnt.
- // Charakter-Attribute - impl. steht im charatr.hxx
- // AMA 12.10.94: Umstellung von SwFmt... auf Svx...
+ // Get methods: bool indicates whether to search only in Set (sal_False)
+ // or also in parents. If nothing is found then default attribute is returned.
+ // Character attributes. Implementation in charatr.hxx.
inline const SvxPostureItem &GetPosture( sal_Bool = sal_True ) const;
inline const SvxWeightItem &GetWeight( sal_Bool = sal_True ) const;
inline const SvxShadowedItem &GetShadowed( sal_Bool = sal_True ) const;
@@ -265,7 +260,7 @@ public:
inline const SvxCharReliefItem &GetCharRelief( sal_Bool = sal_True ) const;
inline const SvxCharHiddenItem &GetCharHidden( sal_Bool = sal_True ) const;
- // Frame-Attribute - impl. steht im frmatr.hxx
+ // Frame attributes. Implementation in frmatr.hxx.
inline const SwFmtFillOrder &GetFillOrder( sal_Bool = sal_True ) const;
inline const SwFmtFrmSize &GetFrmSize( sal_Bool = sal_True ) const;
inline const SvxPaperBinItem &GetPaperBin( sal_Bool = sal_True ) const;
@@ -301,12 +296,10 @@ public:
inline const SvxFrameDirectionItem &GetFrmDir( sal_Bool = sal_True ) const;
inline const SwTextGridItem &GetTextGrid( sal_Bool = sal_True ) const;
inline const SwHeaderAndFooterEatSpacingItem &GetHeaderAndFooterEatSpacing( sal_Bool = sal_True ) const;
- // OD 18.09.2003 #i18732#
inline const SwFmtFollowTextFlow &GetFollowTextFlow(sal_Bool = sal_True) const;
- // OD 2004-05-05 #i28701#
inline const SwFmtWrapInfluenceOnObjPos& GetWrapInfluenceOnObjPos(sal_Bool = sal_True) const;
- // Grafik-Attribute - impl. steht im grfatr.hxx
+ // Graphic attributes - implementation in grfatr.hxx
inline const SwMirrorGrf &GetMirrorGrf( sal_Bool = sal_True ) const;
inline const SwCropGrf &GetCropGrf( sal_Bool = sal_True ) const;
inline const SwRotationGrf &GetRotationGrf(sal_Bool = sal_True ) const;
@@ -320,7 +313,7 @@ public:
inline const SwTransparencyGrf &GetTransparencyGrf(sal_Bool = sal_True ) const;
inline const SwDrawModeGrf &GetDrawModeGrf(sal_Bool = sal_True ) const;
- // Paragraph-Attribute - impl. steht im paratr.hxx
+ // Paragraph attributes - implementation in paratr.hxx
inline const SvxLineSpacingItem &GetLineSpacing( sal_Bool = sal_True ) const;
inline const SvxAdjustItem &GetAdjust( sal_Bool = sal_True ) const;
inline const SvxFmtSplitItem &GetSplit( sal_Bool = sal_True ) const;
@@ -338,7 +331,7 @@ public:
inline const SvxParaGridItem &GetParaGrid(sal_Bool = sal_True) const;
inline const SwParaConnectBorderItem &GetParaConnectBorder(sal_Bool = sal_True ) const;
- // TabellenBox-Attribute - impl. steht im cellatr.hxx
+ // Tablebox attributes - implementation in cellatr.hxx
inline const SwTblBoxNumFormat &GetTblBoxNumFmt( sal_Bool = sal_True ) const;
inline const SwTblBoxFormula &GetTblBoxFormula( sal_Bool = sal_True ) const;
inline const SwTblBoxValue &GetTblBoxValue( sal_Bool = sal_True ) const;
@@ -351,3 +344,5 @@ SW_DLLPUBLIC long AttrSetToLineHeight( const IDocumentSettingAccess& rIDocumentS
const SwAttrSet &rSet,
const OutputDevice &rOut, sal_Int16 nScript);
#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */