Kaydet (Commit) 44087de2 authored tarafından Philipp Riemer's avatar Philipp Riemer Kaydeden (comit) Philipp Weissenbacher

translate German comments in (and minor clean up of) sw/source/core/inc/{flowfrm,flyfrm}.hxx

üst fc1ca84b
This diff is collapsed.
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
* for a copy of the LGPLv3 License. * for a copy of the LGPLv3 License.
* *
************************************************************************/ ************************************************************************/
#ifndef SW_FLYFRM_HXX #ifndef SW_FLYFRM_HXX
#define SW_FLYFRM_HXX #define SW_FLYFRM_HXX
...@@ -46,27 +47,32 @@ class SwFmt; ...@@ -46,27 +47,32 @@ class SwFmt;
#include <anchoredobject.hxx> #include <anchoredobject.hxx>
//Sucht ausgehend von pOldAnch einen Anker fuer Absatzgebundene Rahmen. /** search an anchor for paragraph bound frames starting from pOldAnch
//Wird beim Draggen von Absatzgebundenen Objekten zur Ankeranzeige sowie
//fuer Ankerwechsel benoetigt. needed for dragging of objects bound to a paragraph for showing an anchor
//implementiert in layout/flycnt.cxx indicator as well as for changing the anchor.
implemented in layout/flycnt.cxx
*/
const SwCntntFrm *FindAnchor( const SwFrm *pOldAnch, const Point &rNew, const SwCntntFrm *FindAnchor( const SwFrm *pOldAnch, const Point &rNew,
const sal_Bool bBody = sal_False ); const sal_Bool bBody = sal_False );
// berechnet das Rechteck, in dem das Objekt bewegt bzw. resized werden darf /** calculate rectangle in that the object can be moved or rather be resized */
sal_Bool CalcClipRect( const SdrObject *pSdrObj, SwRect &rRect, sal_Bool bMove = sal_True ); sal_Bool CalcClipRect( const SdrObject *pSdrObj, SwRect &rRect, sal_Bool bMove = sal_True );
//allg. Basisklasse fuer alle Freifliegenden Rahmen /** general base class for all free-flowing frames
// #i26791# - inherit also from <SwAnchoredFlyFrm>
#i26791# - inherit also from <SwAnchoredFlyFrm>
*/
class SwFlyFrm : public SwLayoutFrm, public SwAnchoredObject class SwFlyFrm : public SwLayoutFrm, public SwAnchoredObject
{ {
//darf Locken. Definiert in frmtool.cxx // is allowed to lock, implemented in frmtool.cxx
friend void AppendObjs ( const SwSpzFrmFmts *, sal_uLong, SwFrm *, SwPageFrm * ); friend void AppendObjs ( const SwSpzFrmFmts *, sal_uLong, SwFrm *, SwPageFrm * );
friend void Notify( SwFlyFrm *, SwPageFrm *pOld, const SwRect &rOld, friend void Notify( SwFlyFrm *, SwPageFrm *pOld, const SwRect &rOld,
const SwRect* pOldPrt ); const SwRect* pOldPrt );
void InitDrawObj( sal_Bool bNotify ); //Wird von den CToren gerufen. void InitDrawObj( sal_Bool bNotify ); // these to methods are called in the
void FinitDrawObj(); //Wird vom CTor gerufen. void FinitDrawObj(); // constructors
void _UpdateAttr( const SfxPoolItem*, const SfxPoolItem*, sal_uInt8 &, void _UpdateAttr( const SfxPoolItem*, const SfxPoolItem*, sal_uInt8 &,
SwAttrSetChg *pa = 0, SwAttrSetChg *pb = 0 ); SwAttrSetChg *pa = 0, SwAttrSetChg *pb = 0 );
...@@ -77,51 +83,50 @@ class SwFlyFrm : public SwLayoutFrm, public SwAnchoredObject ...@@ -77,51 +83,50 @@ class SwFlyFrm : public SwLayoutFrm, public SwAnchoredObject
SwVirtFlyDrawObj* CreateNewRef( SwFlyDrawContact* ); SwVirtFlyDrawObj* CreateNewRef( SwFlyDrawContact* );
protected: protected:
// Predecessor/Successor for chaining with text flow
SwFlyFrm *pPrevLink, // Vorgaenger/Nachfolger fuer Verkettung mit SwFlyFrm *pPrevLink, *pNextLink;
*pNextLink; // Textfluss
// #i26791# - moved to <SwAnchoredObject>
// Point aRelPos; //Die Relative Position zum Master
private: private:
sal_Bool bLocked :1; //Cntnt-gebundene Flys muessen derart blockiert werden // It must be possible to block Cntnt-bound flys so that they will be not
//koennen, dass sie nicht Formatiert werden; :MakeAll // formatted; in this case MakeAll() returns immediately. This is necessary
//returnt dann sofort. Dies ist bei Seitenwechseln // for page changes during formattting. In addition, it is needed during
//waehrend der Formatierung notwendig. // the constructor call of the root object since otherwise the anchor will
//Auch wahrend des RootCTors ist dies notwendig da // be formatted before the root is anchored correctly to a shell and
//sonst der Anker formatiert wird obwohl die Root noch // because too much would be formatted as a result.
//nicht korrekt an der Shell haengt und weil sonst sal_Bool bLocked :1;
//initial zuviel Formatiert wuerde. // sal_True if the background of NotifyDTor needs to be notified at the end
sal_Bool bNotifyBack:1; //sal_True wenn am Ende eines MakeAll() der Background // of a MakeAll() call.
//vom NotifyDTor benachrichtigt werden muss. sal_Bool bNotifyBack :1;
protected:
sal_Bool bInvalid :1; //Pos, PrtArea od. SSize wurden Invalidiert, sie werden protected:
//gleich wieder Validiert, denn sie muessen _immer_ // Pos, PrtArea or SSize have been invalidated - they will be evaluated
//gueltig sein. Damit in LayAction korrekt gearbeitet // again immediately because they have to be valid _at all time_.
//werden kann muss hier festgehalten werden, dass sie // The invalidation is tracked here so that LayAction knows about it and
//invalidiert wurden. Ausnahmen bestaetigen die Regelt! // can handle it properly. Exceptions prove the rule.
sal_Bool bMinHeight:1; //sal_True wenn die vom Attribut vorgegebene Hoehe eine sal_Bool bInvalid :1;
//eine Minimalhoehe ist (der Frm also bei Bedarf
//darueberhinaus wachsen kann). // sal_True if the proposed height of an attribute is a minimal height
sal_Bool bHeightClipped :1; //sal_True wenn der Fly nicht die Pos/Size anhand der Attrs // (this means that the frame can grow higher if needed)
sal_Bool bWidthClipped :1; //formatieren konnte, weil z.B. nicht genug Raum vorh. sal_Bool bMinHeight :1;
//war. // sal_True if the fly frame could not format position/size based on its
sal_Bool bFormatHeightOnly :1; //Damit nach einer Anpassung der Breite // attributes, e.g. because there was not enough space.
//(CheckClip) nur das Format aufgerufen wird; sal_Bool bHeightClipped :1;
//nicht aber die Breite anhand der Attribute sal_Bool bWidthClipped :1;
//wieder bestimmt wird. // If sal_True call only the format after adjusting the width (CheckClip);
sal_Bool bInCnt :1; // FLY_AS_CHAR, anchored as character // but the width will not be re-evaluated based on the attributes.
sal_Bool bAtCnt :1; // FLY_AT_PARA, anchored at paragraph sal_Bool bFormatHeightOnly :1;
sal_Bool bLayout :1; // FLY_AT_PAGE, FLY_AT_FLY, at page or at frame
sal_Bool bAutoPosition :1; // FLY_AT_CHAR, anchored at character sal_Bool bInCnt :1; //< FLY_AS_CHAR, anchored as character
sal_Bool bNoShrink :1; // temporary forbud of shrinking to avoid loops sal_Bool bAtCnt :1; //< FLY_AT_PARA, anchored at paragraph
sal_Bool bLockDeleteContent :1; // If the flag is set, the content of the sal_Bool bLayout :1; //< FLY_AT_PAGE, FLY_AT_FLY, at page or at frame
// fly frame is not deleted if moved to sal_Bool bAutoPosition :1; //< FLY_AT_CHAR, anchored at character
// invisible layer.
sal_Bool bNoShrink :1; //< temporary forbid shrinking to avoid loops
friend class SwNoTxtFrm; // Darf NotifyBackground rufen // If sal_True, the content of the fly frame will not be deleted when it
// is moved to an invisible layer.
sal_Bool bLockDeleteContent :1;
friend class SwNoTxtFrm; // is allowed to call NotifyBackground
virtual void Format( const SwBorderAttrs *pAttrs = 0 ); virtual void Format( const SwBorderAttrs *pAttrs = 0 );
void MakePrtArea( const SwBorderAttrs &rAttrs ); void MakePrtArea( const SwBorderAttrs &rAttrs );
...@@ -157,7 +162,7 @@ public: ...@@ -157,7 +162,7 @@ public:
TYPEINFO(); TYPEINFO();
virtual ~SwFlyFrm(); virtual ~SwFlyFrm();
// erfrage vom Client Informationen // get client information
virtual sal_Bool GetInfo( SfxPoolItem& ) const; virtual sal_Bool GetInfo( SfxPoolItem& ) const;
virtual void Paint( SwRect const&, virtual void Paint( SwRect const&,
SwPrintData const*const pPrintData = NULL ) const; SwPrintData const*const pPrintData = NULL ) const;
...@@ -230,12 +235,13 @@ public: ...@@ -230,12 +235,13 @@ public:
const sal_Bool _bForPaint = sal_False ) const; const sal_Bool _bForPaint = sal_False ) const;
//Auf dieser Shell painten (PreView, Print-Flag usw. rekursiv beachten)?. // Paint on this shell (consider PreView, print flag, etc. recursively)?
static sal_Bool IsPaint( SdrObject *pObj, const ViewShell *pSh ); static sal_Bool IsPaint( SdrObject *pObj, const ViewShell *pSh );
/** SwFlyFrm::IsBackgroundTransparent /** SwFlyFrm::IsBackgroundTransparent
determines, if background of fly frame has to be drawn transparent determines if background of fly frame has to be drawn transparently
definition found in /core/layout/paintfrm.cxx definition found in /core/layout/paintfrm.cxx
@return true, if background color is transparent or a existing background @return true, if background color is transparent or a existing background
...@@ -245,7 +251,8 @@ public: ...@@ -245,7 +251,8 @@ public:
/** SwFlyFrm::IsShadowTransparent /** SwFlyFrm::IsShadowTransparent
determine, if shadow color of fly frame has to be drawn transparent determine if shadow color of fly frame has to be drawn transparently
definition found in /core/layout/paintfrm.cxx definition found in /core/layout/paintfrm.cxx
@return true, if shadow color is transparent. @return true, if shadow color is transparent.
...@@ -267,7 +274,7 @@ public: ...@@ -267,7 +274,7 @@ public:
virtual const SwRect GetObjRect() const; virtual const SwRect GetObjRect() const;
/** method to determine, if a format on the Writer fly frame is possible /** method to determine if a format on the Writer fly frame is possible
#i28701# #i28701#
refine 'IsFormatPossible'-conditions of method refine 'IsFormatPossible'-conditions of method
...@@ -288,3 +295,4 @@ public: ...@@ -288,3 +295,4 @@ public:
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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