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
dbd83924
Kaydet (Commit)
dbd83924
authored
Ock 04, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Page Break, Header/Footer: fixed the line color change if config changes
üst
63ade823
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
DashedLine.cxx
sw/source/ui/docvw/DashedLine.cxx
+4
-4
HeaderFooterWin.cxx
sw/source/ui/docvw/HeaderFooterWin.cxx
+1
-2
PageBreakWin.cxx
sw/source/ui/docvw/PageBreakWin.cxx
+3
-4
DashedLine.hxx
sw/source/ui/inc/DashedLine.hxx
+2
-2
No files found.
sw/source/ui/docvw/DashedLine.cxx
Dosyayı görüntüle @
dbd83924
...
...
@@ -36,9 +36,9 @@
#include <svx/sdr/contact/objectcontacttools.hxx>
#include <vcl/svapp.hxx>
SwDashedLine
::
SwDashedLine
(
Window
*
pParent
,
const
basegfx
::
BColor
&
rColor
)
:
SwDashedLine
::
SwDashedLine
(
Window
*
pParent
,
Color
&
(
*
pColorFn
)()
)
:
FixedLine
(
pParent
,
WB_DIALOGCONTROL
|
WB_HORZ
),
m_
aColor
(
rColor
)
m_
pColorFn
(
pColorFn
)
{
}
...
...
@@ -69,7 +69,7 @@ void SwDashedLine::Paint( const Rectangle& )
const
StyleSettings
&
rSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
std
::
vector
<
double
>
aStrokePattern
;
basegfx
::
BColor
aColor
=
m_
aColor
;
basegfx
::
BColor
aColor
=
m_
pColorFn
().
getBColor
()
;
if
(
rSettings
.
GetHighContrastMode
(
)
)
{
// Only a solid line in high contrast mode
...
...
@@ -103,7 +103,7 @@ void SwDashedLine::Paint( const Rectangle& )
drawinglayer
::
primitive2d
::
PolyPolygonStrokePrimitive2D
*
pLine
=
new
drawinglayer
::
primitive2d
::
PolyPolygonStrokePrimitive2D
(
basegfx
::
B2DPolyPolygon
(
aPolygon
),
drawinglayer
::
attribute
::
LineAttribute
(
m_
aColor
),
drawinglayer
::
attribute
::
LineAttribute
(
m_
pColorFn
().
getBColor
()
),
drawinglayer
::
attribute
::
StrokeAttribute
(
aStrokePattern
)
);
aSeq
[
aSeq
.
getLength
()
-
1
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
pLine
);
...
...
sw/source/ui/docvw/HeaderFooterWin.cxx
Dosyayı görüntüle @
dbd83924
...
...
@@ -163,8 +163,7 @@ SwHeaderFooterWin::SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPag
SetMapMode
(
MapMode
(
MAP_PIXEL
)
);
// Create the line control
basegfx
::
BColor
aColor
=
SwViewOption
::
GetHeaderFooterMarkColor
().
getBColor
();
m_pLine
=
new
SwDashedLine
(
GetEditWin
(),
aColor
);
m_pLine
=
new
SwDashedLine
(
GetEditWin
(),
&
SwViewOption
::
GetHeaderFooterMarkColor
);
m_pLine
->
SetZOrder
(
this
,
WINDOW_ZORDER_BEFOR
);
// Create and set the PopupMenu
...
...
sw/source/ui/docvw/PageBreakWin.cxx
Dosyayı görüntüle @
dbd83924
...
...
@@ -120,8 +120,8 @@ namespace
SwPageBreakWin
*
m_pWin
;
public
:
SwBreakDashedLine
(
Window
*
pParent
,
const
BColor
&
rColor
,
SwPageBreakWin
*
pWin
)
:
SwDashedLine
(
pParent
,
rColor
),
SwBreakDashedLine
(
Window
*
pParent
,
Color
&
(
*
pColorFn
)()
,
SwPageBreakWin
*
pWin
)
:
SwDashedLine
(
pParent
,
pColorFn
),
m_pWin
(
pWin
)
{};
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
);
...
...
@@ -171,8 +171,7 @@ SwPageBreakWin::SwPageBreakWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm )
SetMapMode
(
MapMode
(
MAP_PIXEL
)
);
// Create the line control
BColor
aColor
=
SwViewOption
::
GetPageBreakColor
().
getBColor
();
m_pLine
=
new
SwBreakDashedLine
(
GetEditWin
(),
aColor
,
this
);
m_pLine
=
new
SwBreakDashedLine
(
GetEditWin
(),
&
SwViewOption
::
GetPageBreakColor
,
this
);
// Create the popup menu
m_pPopupMenu
=
new
PopupMenu
(
SW_RES
(
MN_PAGEBREAK_BUTTON
)
);
...
...
sw/source/ui/inc/DashedLine.hxx
Dosyayı görüntüle @
dbd83924
...
...
@@ -35,10 +35,10 @@
*/
class
SwDashedLine
:
public
FixedLine
{
basegfx
::
BColor
m_aColor
;
Color
&
(
*
m_pColorFn
)()
;
public
:
SwDashedLine
(
Window
*
pParent
,
const
basegfx
::
BColor
&
rColor
);
SwDashedLine
(
Window
*
pParent
,
Color
&
(
*
pColorFn
)()
);
~
SwDashedLine
(
);
virtual
void
Paint
(
const
Rectangle
&
rRect
);
...
...
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