Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
44087de2
Kaydet (Commit)
44087de2
authored
Haz 13, 2012
tarafından
Philipp Riemer
Kaydeden (comit)
Philipp Weissenbacher
Haz 13, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
translate German comments in (and minor clean up of) sw/source/core/inc/{flowfrm,flyfrm}.hxx
üst
fc1ca84b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
109 deletions
+121
-109
flowfrm.hxx
sw/source/core/inc/flowfrm.hxx
+56
-52
flyfrm.hxx
sw/source/core/inc/flyfrm.hxx
+65
-57
No files found.
sw/source/core/inc/flowfrm.hxx
Dosyayı görüntüle @
44087de2
...
@@ -25,29 +25,10 @@
...
@@ -25,29 +25,10 @@
* for a copy of the LGPLv3 License.
* for a copy of the LGPLv3 License.
*
*
************************************************************************/
************************************************************************/
#ifndef _FLOWFRM_HXX
#ifndef _FLOWFRM_HXX
#define _FLOWFRM_HXX
#define _FLOWFRM_HXX
//Der FlowFrm gibt die Funktionalitaet fuer alle Frms vor, die fliessen und
//die sich aufspalten koennen (wie CntntFrm oder TabFrm).
//Teile der Funktionalitaet sind im FlowFrm implementiert, andere Teile werden
//von den spezifischen Frms implementiert.
//Der FlowFrm ist kein eigenstaender Frm, es kann also auch niemals eine
//eigenstaendige Instanz vom FlowFrm existieren.
//Der FlowFrm ist nicht einmal ein echter Frm. Die naheliegende Implementierung
//waere ein FlowFrm der virtual vom SwFrm abgeleitet ist und direkt auf den
//eigenen Instanzdaten arbeitet. Abgeleitete Klassen muessten sich
//vom FlowFrm und (ueber mehrere Basisklassen weil der Klassenbaum sich direkt
//vom SwFrm zu SwCntntFrm und zum SwLayoutFrm spaltet) virtual vom SwFrm
//ableiten.
//Leider entstehen dadurch - neben Problemen mit Compilern und Debuggern -
//erhebliche zusaetzliche Kosten, die wir uns heutzutage IMHO nicht erlauben
//koennen.
//Ich greife deshalb auf eine andere Technik zurueck: Der FlowFrm hat eine
//Referenz auf den SwFrm - der er genau betrachtet selbst ist - und ist mit
//diesem befreundet. So kann der FlowFrm anstelle des this-Pointer mit der
//Referenz auf den SwFrm arbeiten.
class
SwPageFrm
;
class
SwPageFrm
;
class
SwRect
;
class
SwRect
;
class
SwBorderAttrs
;
class
SwBorderAttrs
;
...
@@ -58,10 +39,32 @@ class SwObjectFormatterTxtFrm;
...
@@ -58,10 +39,32 @@ class SwObjectFormatterTxtFrm;
void
MakeFrms
(
SwDoc
*
,
const
SwNodeIndex
&
,
const
SwNodeIndex
&
);
void
MakeFrms
(
SwDoc
*
,
const
SwNodeIndex
&
,
const
SwNodeIndex
&
);
/// Base class for frames that are allowed at page breaks and shall continue on the next page, e.g. paragraphs, tables.
/** Base class that provides the general functionalities for frames that are
allowed at page breaks (flow) and shall continue on the next page (can be
split), e.g. paragraphs (CntntFrm) or tables (TabFrm).
Some parts of these functionalities are implemented in FlowFrm while the
specific ones are done in the corresponding Frm classes. The FlowFrm has to
be seen as a base class. As such it is no Frm by itself and thus no direct
instances of FlowFrm can exist.
Actually it is not even a real Frm. The obvious implementation would be a
FlowFrm that is virtually inherited from SwFrm and that works with its own
member data. Further classes would need to inherit from FlowFrm and (via
multiple base classes since the class tree splits exactly at the branch
from SwFrm to SwCntntFrm and SwLayoutFrm) also virtually from SwFrm as
well. Unfortunately, this leads - besides problems with compilers and
debugging programs - to high additional costs, that we IMHO are not able to
afford nowadays.
Hence, we use another technique: A FlowFrm keeps a reference to a SwFrm
- which it is actually itself - and they are friends. As a result, the
FlowFrm can work with the reference to the SwFrm instead of working with
its own this-pointer.
*/
class
SwFlowFrm
class
SwFlowFrm
{
{
//
PrepareMake darf Locken/Unlocken (Robustheit
)
//
PrepareMake is allowed to lock/unlock (robustness
)
friend
inline
void
PrepareLock
(
SwFlowFrm
*
);
friend
inline
void
PrepareLock
(
SwFlowFrm
*
);
friend
inline
void
PrepareUnlock
(
SwFlowFrm
*
);
friend
inline
void
PrepareUnlock
(
SwFlowFrm
*
);
friend
inline
void
TableSplitRecalcLock
(
SwFlowFrm
*
);
friend
inline
void
TableSplitRecalcLock
(
SwFlowFrm
*
);
...
@@ -69,7 +72,7 @@ class SwFlowFrm
...
@@ -69,7 +72,7 @@ class SwFlowFrm
// #i44049#
// #i44049#
friend
class
SwObjectFormatterTxtFrm
;
friend
class
SwObjectFormatterTxtFrm
;
//
TblSel darf das Follow-Bit zuruecksetzen.
//
TblSel is allowed to reset the follow-bit
friend
inline
void
UnsetFollow
(
SwFlowFrm
*
pFlow
);
friend
inline
void
UnsetFollow
(
SwFlowFrm
*
pFlow
);
friend
void
MakeFrms
(
SwDoc
*
,
const
SwNodeIndex
&
,
const
SwNodeIndex
&
);
friend
void
MakeFrms
(
SwDoc
*
,
const
SwNodeIndex
&
,
const
SwNodeIndex
&
);
...
@@ -78,13 +81,16 @@ class SwFlowFrm
...
@@ -78,13 +81,16 @@ class SwFlowFrm
SwFrm
&
rThis
;
SwFrm
&
rThis
;
//
Hilfsfunktionen fue
r MoveSubTree()
//
helper methods fo
r MoveSubTree()
static
SwLayoutFrm
*
CutTree
(
SwFrm
*
);
static
SwLayoutFrm
*
CutTree
(
SwFrm
*
);
static
sal_Bool
PasteTree
(
SwFrm
*
,
SwLayoutFrm
*
,
SwFrm
*
,
SwFrm
*
);
static
sal_Bool
PasteTree
(
SwFrm
*
,
SwLayoutFrm
*
,
SwFrm
*
,
SwFrm
*
);
//Wird fuer das Zusammenspiel von _GetPrevxxx und MoveBwd gebraucht, damit
/** indicates that a backward move was done over multiple pages
//mehrere Blaetter gleichzeitig uebersprungen werden koennen.
//Wird auch vom MoveBwd des TabFrm ausgewertet!
Needed for the interaction of _GetPrevxxx and MoveBwd so that multiple
pages can be skipped at the same time. In addition, it is evaluated by
the MoveBwd() method in TabFrm.
*/
static
sal_Bool
bMoveBwdJump
;
static
sal_Bool
bMoveBwdJump
;
/** helper method to determine previous frame for calculation of the
/** helper method to determine previous frame for calculation of the
...
@@ -114,25 +120,26 @@ class SwFlowFrm
...
@@ -114,25 +120,26 @@ class SwFlowFrm
const
SwTwips
_nUpperSpaceWithoutGrid
)
const
;
const
SwTwips
_nUpperSpaceWithoutGrid
)
const
;
protected
:
protected
:
SwFlowFrm
*
m_pFollow
;
SwFlowFrm
*
m_pFollow
;
SwFlowFrm
*
m_pPrecede
;
SwFlowFrm
*
m_pPrecede
;
sal_Bool
bLockJoin
:
1
;
//
Join (und damit deleten) verboten wenn sal_True
!
sal_Bool
bLockJoin
:
1
;
//
if sal_True than joins (and thus deletes) are prohibited
!
sal_Bool
bUndersized
:
1
;
//
wir sind kleiner als gewuenscht
sal_Bool
bUndersized
:
1
;
//
I am smaller than needed
sal_Bool
bFlyLock
:
1
;
//
S
top positioning of at-character flyframes
sal_Bool
bFlyLock
:
1
;
//
s
top positioning of at-character flyframes
//
Prueft ob Vorwaertsfluss noch Sinn macht Endloswanderschaften (unterbinden)
//
checks if forward flow makes sense to prevent infinite moves
inline
sal_Bool
IsFwdMoveAllowed
();
inline
sal_Bool
IsFwdMoveAllowed
();
// #i44049# - method <CalcCntnt(..)> has to check this property.
// #i44049# - method <CalcCntnt(..)> has to check this property.
friend
void
CalcCntnt
(
SwLayoutFrm
*
pLay
,
bool
bNoColl
,
bool
bNoCalcFollow
);
friend
void
CalcCntnt
(
SwLayoutFrm
*
pLay
,
bool
bNoColl
,
bool
bNoCalcFollow
);
sal_Bool
IsKeepFwdMoveAllowed
();
//Wie oben, Move fuer Keep.
sal_Bool
IsKeepFwdMoveAllowed
();
// like above, forward flow for Keep.
/** method to determine overlapping of an object that requests floating
//Prueft ob ein Obj das Umlauf wuenscht ueberlappt.
0: no overlapping
//eine Null bedeutet, kein Objekt ueberlappt,
1: objects that are anchored at the FlowFrm overlap
// 1 heisst, Objekte, die am FlowFrm selbst verankert sind, ueberlappen
2: objects that are anchored somewhere else overlap
// 2 heisst, Objekte, die woanders verankert sind, ueberlappen
3: both types of objects overlap
// 3 heistt, beiderlei verankerte Objekte ueberlappen
*/
sal_uInt8
BwdMoveNecessary
(
const
SwPageFrm
*
pPage
,
const
SwRect
&
rRect
);
sal_uInt8
BwdMoveNecessary
(
const
SwPageFrm
*
pPage
,
const
SwRect
&
rRect
);
void
LockJoin
()
{
bLockJoin
=
sal_True
;
}
void
LockJoin
()
{
bLockJoin
=
sal_True
;
}
...
@@ -140,8 +147,8 @@ protected:
...
@@ -140,8 +147,8 @@ protected:
sal_Bool
CheckMoveFwd
(
bool
&
rbMakePage
,
sal_Bool
bKeep
,
sal_Bool
bMovedBwd
);
sal_Bool
CheckMoveFwd
(
bool
&
rbMakePage
,
sal_Bool
bKeep
,
sal_Bool
bMovedBwd
);
sal_Bool
MoveFwd
(
sal_Bool
bMakePage
,
sal_Bool
bPageBreak
,
sal_Bool
bMoveAlways
=
sal_False
);
sal_Bool
MoveFwd
(
sal_Bool
bMakePage
,
sal_Bool
bPageBreak
,
sal_Bool
bMoveAlways
=
sal_False
);
virtual
sal_Bool
ShouldBwdMoved
(
SwLayoutFrm
*
pNewUpper
,
sal_Bool
bHead
,
sal_Bool
&
rReformat
)
=
0
;
sal_Bool
MoveBwd
(
sal_Bool
&
rbReformat
);
sal_Bool
MoveBwd
(
sal_Bool
&
rbReformat
);
virtual
sal_Bool
ShouldBwdMoved
(
SwLayoutFrm
*
pNewUpper
,
sal_Bool
bHead
,
sal_Bool
&
rReformat
)
=
0
;
public
:
public
:
SwFlowFrm
(
SwFrm
&
rFrm
);
SwFlowFrm
(
SwFrm
&
rFrm
);
...
@@ -158,28 +165,26 @@ public:
...
@@ -158,28 +165,26 @@ public:
sal_Bool
IsPrevObjMove
()
const
;
sal_Bool
IsPrevObjMove
()
const
;
//Die Kette mit minimalen Operationen und Benachrichtigungen unter den
/** hook tree onto new parent with minimal operations and notifications */
//neuen Parent Moven.
void
MoveSubTree
(
SwLayoutFrm
*
pParent
,
SwFrm
*
pSibling
=
0
);
void
MoveSubTree
(
SwLayoutFrm
*
pParent
,
SwFrm
*
pSibling
=
0
);
sal_Bool
HasFollow
()
const
{
return
m_pFollow
?
sal_True
:
sal_False
;
}
sal_Bool
HasFollow
()
const
{
return
m_pFollow
?
sal_True
:
sal_False
;
}
sal_Bool
IsFollow
()
const
{
return
0
!=
m_pPrecede
;
}
sal_Bool
IsFollow
()
const
{
return
0
!=
m_pPrecede
;
}
sal_Bool
IsAnFollow
(
const
SwFlowFrm
*
pFlow
)
const
;
const
SwFlowFrm
*
GetFollow
()
const
{
return
m_pFollow
;
}
const
SwFlowFrm
*
GetFollow
()
const
{
return
m_pFollow
;
}
SwFlowFrm
*
GetFollow
()
{
return
m_pFollow
;
}
SwFlowFrm
*
GetFollow
()
{
return
m_pFollow
;
}
sal_Bool
IsAnFollow
(
const
SwFlowFrm
*
pFlow
)
const
;
void
SetFollow
(
SwFlowFrm
*
const
pFollow
);
void
SetFollow
(
SwFlowFrm
*
const
pFollow
);
const
SwFlowFrm
*
GetPrecede
()
const
{
return
m_pPrecede
;
}
const
SwFlowFrm
*
GetPrecede
()
const
{
return
m_pPrecede
;
}
SwFlowFrm
*
GetPrecede
()
{
return
m_pPrecede
;
}
SwFlowFrm
*
GetPrecede
()
{
return
m_pPrecede
;
}
sal_Bool
IsJoinLocked
()
const
{
return
bLockJoin
;
}
sal_Bool
IsJoinLocked
()
const
{
return
bLockJoin
;
}
sal_Bool
IsAnyJoinLocked
()
const
{
return
bLockJoin
||
HasLockedFollow
();
}
sal_Bool
IsAnyJoinLocked
()
const
{
return
bLockJoin
||
HasLockedFollow
();
}
sal_Bool
IsPageBreak
(
sal_Bool
bAct
)
const
;
sal_Bool
IsPageBreak
(
sal_Bool
bAct
)
const
;
sal_Bool
IsColBreak
(
sal_Bool
bAct
)
const
;
sal_Bool
IsColBreak
(
sal_Bool
bAct
)
const
;
/
/Ist ein Keep zu beruecksichtigen (Breaks!)
/
** method to determine if a Keep needs to be considered (Breaks!) */
sal_Bool
IsKeep
(
const
SwAttrSet
&
rAttrs
,
bool
bBreakCheck
=
false
)
const
;
sal_Bool
IsKeep
(
const
SwAttrSet
&
rAttrs
,
bool
bBreakCheck
=
false
)
const
;
sal_Bool
HasLockedFollow
()
const
;
sal_Bool
HasLockedFollow
()
const
;
...
@@ -188,9 +193,10 @@ public:
...
@@ -188,9 +193,10 @@ public:
/** method to determine the upper space hold by the frame
/** method to determine the upper space hold by the frame
#i11860# - add 3rd parameter <_bConsiderGrid> to get
#i11860#
the upper space with and without considering the page grid
(default value: <sal_True>)
@param _bConsiderGrid
optional input parameter - consider the page grid while calculating?
*/
*/
SwTwips
CalcUpperSpace
(
const
SwBorderAttrs
*
pAttrs
=
NULL
,
SwTwips
CalcUpperSpace
(
const
SwBorderAttrs
*
pAttrs
=
NULL
,
const
SwFrm
*
pPr
=
NULL
,
const
SwFrm
*
pPr
=
NULL
,
...
@@ -204,8 +210,7 @@ public:
...
@@ -204,8 +210,7 @@ public:
*/
*/
SwTwips
GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid
()
const
;
SwTwips
GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid
()
const
;
/** calculation of lower space
/** calculation of lower space */
*/
SwTwips
CalcLowerSpace
(
const
SwBorderAttrs
*
_pAttrs
=
0L
)
const
;
SwTwips
CalcLowerSpace
(
const
SwBorderAttrs
*
_pAttrs
=
0L
)
const
;
/** calculation of the additional space to be considered, if flow frame
/** calculation of the additional space to be considered, if flow frame
...
@@ -228,8 +233,8 @@ public:
...
@@ -228,8 +233,8 @@ public:
void
SetFlyLock
(
sal_Bool
bNew
){
bFlyLock
=
bNew
;
}
void
SetFlyLock
(
sal_Bool
bNew
){
bFlyLock
=
bNew
;
}
sal_Bool
IsFlyLock
()
const
{
return
bFlyLock
;
}
sal_Bool
IsFlyLock
()
const
{
return
bFlyLock
;
}
//
casten einen Frm auf einen FlowFrm - wenns denn einer ist, sonst 0
//
Casting of a Frm into a FlowFrm (if it is one, otherwise 0)
//
Diese Methoden muessen fuer neue Ableitungen geaendert werden
!
//
These methods need to be customized in subclasses
!
static
SwFlowFrm
*
CastFlowFrm
(
SwFrm
*
pFrm
);
static
SwFlowFrm
*
CastFlowFrm
(
SwFrm
*
pFrm
);
static
const
SwFlowFrm
*
CastFlowFrm
(
const
SwFrm
*
pFrm
);
static
const
SwFlowFrm
*
CastFlowFrm
(
const
SwFrm
*
pFrm
);
};
};
...
@@ -238,7 +243,6 @@ inline sal_Bool SwFlowFrm::IsFwdMoveAllowed()
...
@@ -238,7 +243,6 @@ inline sal_Bool SwFlowFrm::IsFwdMoveAllowed()
{
{
return
rThis
.
GetIndPrev
()
!=
0
;
return
rThis
.
GetIndPrev
()
!=
0
;
}
}
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/inc/flyfrm.hxx
Dosyayı görüntüle @
44087de2
...
@@ -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 Informatione
n
// get client informatio
n
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: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment