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
32eed8ac
Kaydet (Commit)
32eed8ac
authored
Mar 14, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleanup in txtfly.cxx and translated comments to english there
üst
b1c472c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
7 deletions
+32
-7
itrform2.cxx
sw/source/core/text/itrform2.cxx
+0
-0
itrform2.hxx
sw/source/core/text/itrform2.hxx
+32
-7
txtfly.cxx
sw/source/core/text/txtfly.cxx
+0
-0
txtfly.hxx
sw/source/core/text/txtfly.hxx
+0
-0
No files found.
sw/source/core/text/itrform2.cxx
Dosyayı görüntüle @
32eed8ac
This diff is collapsed.
Click to expand it.
sw/source/core/text/itrform2.hxx
Dosyayı görüntüle @
32eed8ac
...
@@ -40,9 +40,6 @@ class SwExpandPortion;
...
@@ -40,9 +40,6 @@ class SwExpandPortion;
class
SwMultiPortion
;
class
SwMultiPortion
;
class
SwFtnPortion
;
class
SwFtnPortion
;
/*************************************************************************
* class SwTxtFormatter
*************************************************************************/
class
SwTxtFormatter
:
public
SwTxtPainter
class
SwTxtFormatter
:
public
SwTxtPainter
{
{
...
@@ -69,6 +66,10 @@ class SwTxtFormatter : public SwTxtPainter
...
@@ -69,6 +66,10 @@ class SwTxtFormatter : public SwTxtPainter
SwExpandPortion
*
NewFldPortion
(
SwTxtFormatInfo
&
rInf
,
SwExpandPortion
*
NewFldPortion
(
SwTxtFormatInfo
&
rInf
,
const
SwTxtAttr
*
pHt
)
const
;
const
SwTxtAttr
*
pHt
)
const
;
SwFtnPortion
*
NewFtnPortion
(
SwTxtFormatInfo
&
rInf
,
SwTxtAttr
*
pHt
);
SwFtnPortion
*
NewFtnPortion
(
SwTxtFormatInfo
&
rInf
,
SwTxtAttr
*
pHt
);
/**
Sets a new portion for an object anchored as character
*/
SwFlyCntPortion
*
NewFlyCntPortion
(
SwTxtFormatInfo
&
rInf
,
SwFlyCntPortion
*
NewFlyCntPortion
(
SwTxtFormatInfo
&
rInf
,
SwTxtAttr
*
pHt
)
const
;
SwTxtAttr
*
pHt
)
const
;
SwLinePortion
*
WhichFirstPortion
(
SwTxtFormatInfo
&
rInf
);
SwLinePortion
*
WhichFirstPortion
(
SwTxtFormatInfo
&
rInf
);
...
@@ -77,9 +78,18 @@ class SwTxtFormatter : public SwTxtPainter
...
@@ -77,9 +78,18 @@ class SwTxtFormatter : public SwTxtPainter
// Das Herzstueck der Formatierung
// Das Herzstueck der Formatierung
void
BuildPortions
(
SwTxtFormatInfo
&
rInf
);
void
BuildPortions
(
SwTxtFormatInfo
&
rInf
);
sal_Bool
BuildMultiPortion
(
SwTxtFormatInfo
&
rInf
,
SwMultiPortion
&
rMulti
);
sal_Bool
BuildMultiPortion
(
SwTxtFormatInfo
&
rInf
,
SwMultiPortion
&
rMulti
);
// Berechnung des emulierten rechten Rands
/**
Calculation of the emulated right side.
Determines the next object, that reaches into the rest of the line and
constructs the appropriate FlyPortion.
SwTxtFly::GetFrm(const SwRect&, sal_Bool) will be needed for this.
The right edge can be shortened by flys
*/
void
CalcFlyWidth
(
SwTxtFormatInfo
&
rInf
);
void
CalcFlyWidth
(
SwTxtFormatInfo
&
rInf
);
// wird von SwTxtFormatter wegen UpdatePos ueberladen
// wird von SwTxtFormatter wegen UpdatePos ueberladen
...
@@ -103,14 +113,29 @@ class SwTxtFormatter : public SwTxtPainter
...
@@ -103,14 +113,29 @@ class SwTxtFormatter : public SwTxtPainter
// wird von FormatLine gerufen.
// wird von FormatLine gerufen.
void
FormatReset
(
SwTxtFormatInfo
&
rInf
);
void
FormatReset
(
SwTxtFormatInfo
&
rInf
);
// durch das Adjustment aendert sich die Position der Portions
/**
The position of the portions changes with the adjustment.
This method updates the reference point of the anchored as character objects,
for example after adjustment change (right alignment, justified, etc.)
Mainly to correct the X position.
*/
void
UpdatePos
(
SwLineLayout
*
pCurr
,
Point
aStart
,
xub_StrLen
nStartIdx
,
void
UpdatePos
(
SwLineLayout
*
pCurr
,
Point
aStart
,
xub_StrLen
nStartIdx
,
sal_Bool
bAllWays
=
sal_False
)
const
;
sal_Bool
bAllWays
=
sal_False
)
const
;
// Setze alle FlyInCntFrms auf die uebergebene BaseLine
/**
Set all anchored as character objects to the passed BaseLine
(in Y direction).
*/
void
AlignFlyInCntBase
(
long
nBaseLine
)
const
;
void
AlignFlyInCntBase
(
long
nBaseLine
)
const
;
// Unterlaufbedingungen bei Flys
/**
This is called after the real height of the line has been calculated
Therefore it is possible, that more flys from below intersect with the
line, or that flys from above do not intersect with the line anymore.
We check this and return true, meaning that the line has to be
formatted again.
*/
sal_Bool
ChkFlyUnderflow
(
SwTxtFormatInfo
&
rInf
)
const
;
sal_Bool
ChkFlyUnderflow
(
SwTxtFormatInfo
&
rInf
)
const
;
// Portion einfuegen.
// Portion einfuegen.
...
...
sw/source/core/text/txtfly.cxx
Dosyayı görüntüle @
32eed8ac
This diff is collapsed.
Click to expand it.
sw/source/core/text/txtfly.hxx
Dosyayı görüntüle @
32eed8ac
This diff is collapsed.
Click to expand it.
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