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
7ed3f859
Kaydet (Commit)
7ed3f859
authored
Agu 30, 2013
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i213129 Corrected LineWidth for text commens in SW
üst
5470169b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
AnchorOverlayObject.cxx
sw/source/ui/docvw/AnchorOverlayObject.cxx
+12
-14
No files found.
sw/source/ui/docvw/AnchorOverlayObject.cxx
Dosyayı görüntüle @
7ed3f859
...
...
@@ -54,7 +54,7 @@ private:
basegfx
::
BColor
maColor
;
// discrete line width
double
mf
Logic
LineWidth
;
double
mf
Discrete
LineWidth
;
// bitfield
bool
mbShadow
:
1
;
...
...
@@ -70,7 +70,7 @@ public:
const
basegfx
::
B2DPolygon
&
rLineTop
,
AnchorState
aAnchorState
,
const
basegfx
::
BColor
&
rColor
,
double
f
Logic
LineWidth
,
double
f
Discrete
LineWidth
,
bool
bShadow
,
bool
bLineSolid
)
:
drawinglayer
::
primitive2d
::
DiscreteMetricDependentPrimitive2D
(),
...
...
@@ -79,7 +79,7 @@ public:
maLineTop
(
rLineTop
),
maAnchorState
(
aAnchorState
),
maColor
(
rColor
),
mf
LogicLineWidth
(
fLogic
LineWidth
),
mf
DiscreteLineWidth
(
fDiscrete
LineWidth
),
mbShadow
(
bShadow
),
mbLineSolid
(
bLineSolid
)
{}
...
...
@@ -90,7 +90,7 @@ public:
const
basegfx
::
B2DPolygon
&
getLineTop
()
const
{
return
maLineTop
;
}
AnchorState
getAnchorState
()
const
{
return
maAnchorState
;
}
const
basegfx
::
BColor
&
getColor
()
const
{
return
maColor
;
}
double
get
LogicLineWidth
()
const
{
return
mfLogic
LineWidth
;
}
double
get
DiscreteLineWidth
()
const
{
return
mfDiscrete
LineWidth
;
}
bool
getShadow
()
const
{
return
mbShadow
;
}
bool
getLineSolid
()
const
{
return
mbLineSolid
;
}
...
...
@@ -117,14 +117,15 @@ drawinglayer::primitive2d::Primitive2DSequence AnchorPrimitive::create2DDecompos
drawinglayer
::
primitive2d
::
appendPrimitive2DReferenceToPrimitive2DSequence
(
aRetval
,
aTriangle
);
}
// prepare view-independent LineWidth and color
const
drawinglayer
::
attribute
::
LineAttribute
aLineAttribute
(
getColor
(),
getDiscreteLineWidth
()
*
getDiscreteUnit
());
if
(
AS_ALL
==
maAnchorState
||
AS_START
==
maAnchorState
)
{
// create line start
const
drawinglayer
::
attribute
::
LineAttribute
aLineAttribute
(
getColor
(),
getLogicLineWidth
()
/
(
basegfx
::
fTools
::
equalZero
(
getDiscreteUnit
())
?
1.0
:
getDiscreteUnit
()));
if
(
getLineSolid
())
{
const
drawinglayer
::
primitive2d
::
Primitive2DReference
aSolidLine
(
...
...
@@ -203,10 +204,6 @@ drawinglayer::primitive2d::Primitive2DSequence AnchorPrimitive::create2DDecompos
{
// LineTop has to be created, too, but uses no shadow, so add after
// the other parts are created
const
drawinglayer
::
attribute
::
LineAttribute
aLineAttribute
(
getColor
(),
getLogicLineWidth
()
/
(
basegfx
::
fTools
::
equalZero
(
getDiscreteUnit
())
?
1.0
:
getDiscreteUnit
()));
const
drawinglayer
::
primitive2d
::
Primitive2DReference
aLineTop
(
new
drawinglayer
::
primitive2d
::
PolygonStrokePrimitive2D
(
getLineTop
(),
...
...
@@ -229,7 +226,7 @@ bool AnchorPrimitive::operator==( const drawinglayer::primitive2d::BasePrimitive
&&
getLineTop
()
==
rCompare
.
getLineTop
()
&&
getAnchorState
()
==
rCompare
.
getAnchorState
()
&&
getColor
()
==
rCompare
.
getColor
()
&&
get
LogicLineWidth
()
==
rCompare
.
getLogic
LineWidth
()
&&
get
DiscreteLineWidth
()
==
rCompare
.
getDiscrete
LineWidth
()
&&
getShadow
()
==
rCompare
.
getShadow
()
&&
getLineSolid
()
==
rCompare
.
getLineSolid
());
}
...
...
@@ -356,13 +353,14 @@ drawinglayer::primitive2d::Primitive2DSequence AnchorOverlayObject::createOverla
{
implEnsureGeometry
();
static
double
aDiscreteLineWidth
(
1.6
);
const
drawinglayer
::
primitive2d
::
Primitive2DReference
aReference
(
new
AnchorPrimitive
(
maTriangle
,
maLine
,
maLineTop
,
GetAnchorState
(),
getBaseColor
().
getBColor
(),
ANCHORLINE_WIDTH
*
15.0
,
ANCHORLINE_WIDTH
*
aDiscreteLineWidth
,
getShadowedEffect
(),
getLineSolid
())
);
...
...
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