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
0617f87c
Kaydet (Commit)
0617f87c
authored
May 11, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor Ruler to use RenderContext
Change-Id: Ic4c57e161419a9b185b2c5ee8e8b79d3da9e4a7e
üst
71c56174
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
20 deletions
+25
-20
tabstpge.cxx
cui/source/tabpages/tabstpge.cxx
+6
-6
ruler.hxx
include/svtools/ruler.hxx
+18
-13
ruler.cxx
svtools/source/control/ruler.cxx
+0
-0
svxruler.cxx
svx/source/dialog/svxruler.cxx
+1
-1
No files found.
cui/source/tabpages/tabstpge.cxx
Dosyayı görüntüle @
0617f87c
...
...
@@ -85,14 +85,14 @@ void FillUpWithDefTabs_Impl( long nDefDist, SvxTabStopItem& rTabs )
// class TabWin_Impl -----------------------------------------------------
void
TabWin_Impl
::
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
void
TabWin_Impl
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
{
// Paint tabulators
Point
aPnt
;
Size
aSize
=
GetOutputSizePixel
();
aPnt
.
X
()
=
aSize
.
Width
()
/
2
;
aPnt
.
Y
()
=
aSize
.
Height
()
/
2
;
Ruler
::
DrawTab
(
this
,
GetSettings
().
GetStyleSettings
().
GetFontColor
(),
aPnt
,
nTabStyle
);
Point
aP
oi
nt
;
Size
aSize
=
rRenderContext
.
GetOutputSizePixel
();
aP
oi
nt
.
X
()
=
aSize
.
Width
()
/
2
;
aP
oi
nt
.
Y
()
=
aSize
.
Height
()
/
2
;
Ruler
::
DrawTab
(
rRenderContext
,
rRenderContext
.
GetSettings
().
GetStyleSettings
().
GetFontColor
(),
aPoint
,
nTabStyle
);
}
// class SvxTabulatorTabPage ---------------------------------------------
...
...
include/svtools/ruler.hxx
Dosyayı görüntüle @
0617f87c
...
...
@@ -667,22 +667,27 @@ private:
SVT_DLLPRIVATE
void
ImplVDrawRect
(
long
nX1
,
long
nY1
,
long
nX2
,
long
nY2
);
SVT_DLLPRIVATE
void
ImplVDrawText
(
long
nX
,
long
nY
,
const
OUString
&
rText
,
long
nMin
=
LONG_MIN
,
long
nMax
=
LONG_MAX
);
SVT_DLLPRIVATE
void
ImplDrawTicks
(
long
nMin
,
long
nMax
,
long
nStart
,
long
nVirTop
,
long
nVirBottom
);
SVT_DLLPRIVATE
void
ImplDrawBorders
(
long
nMin
,
long
nMax
,
long
nVirTop
,
long
nVirBottom
);
SVT_DLLPRIVATE
void
ImplDrawIndent
(
const
Polygon
&
rPoly
,
sal_uInt16
nStyle
,
bool
bIsHit
=
false
);
SVT_DLLPRIVATE
void
ImplDrawIndents
(
long
nMin
,
long
nMax
,
long
nVirTop
,
long
nVirBottom
);
SVT_DLLPRIVATE
void
ImplDrawTab
(
OutputDevice
*
pDevice
,
const
Point
&
rPos
,
sal_uInt16
nStyle
);
SVT_DLLPRIVATE
void
ImplDrawTabs
(
long
nMin
,
long
nMax
,
long
nVirTop
,
long
nVirBottom
);
SVT_DLLPRIVATE
void
ImplDrawTicks
(
vcl
::
RenderContext
&
rRenderContext
,
long
nMin
,
long
nMax
,
long
nStart
,
long
nVirTop
,
long
nVirBottom
);
SVT_DLLPRIVATE
void
ImplDrawBorders
(
vcl
::
RenderContext
&
rRenderContext
,
long
nMin
,
long
nMax
,
long
nVirTop
,
long
nVirBottom
);
SVT_DLLPRIVATE
void
ImplDrawIndent
(
vcl
::
RenderContext
&
rRenderContext
,
const
Polygon
&
rPoly
,
sal_uInt16
nStyle
,
bool
bIsHit
=
false
);
SVT_DLLPRIVATE
void
ImplDrawIndents
(
vcl
::
RenderContext
&
rRenderContext
,
long
nMin
,
long
nMax
,
long
nVirTop
,
long
nVirBottom
);
SVT_DLLPRIVATE
void
ImplDrawTab
(
vcl
::
RenderContext
&
rRenderContext
,
const
Point
&
rPos
,
sal_uInt16
nStyle
);
SVT_DLLPRIVATE
void
ImplDrawTabs
(
vcl
::
RenderContext
&
rRenderContext
,
long
nMin
,
long
nMax
,
long
nVirTop
,
long
nVirBottom
);
using
Window
::
ImplInit
;
SVT_DLLPRIVATE
void
ImplInit
(
WinBits
nWinBits
);
SVT_DLLPRIVATE
void
ImplInitSettings
(
bool
bFont
,
bool
bForeground
,
bool
bBackground
);
SVT_DLLPRIVATE
void
ImplCalc
();
SVT_DLLPRIVATE
void
ImplFormat
();
SVT_DLLPRIVATE
void
ImplFormat
(
vcl
::
RenderContext
&
rRenderContext
);
SVT_DLLPRIVATE
void
ImplInitExtraField
(
bool
bUpdate
);
SVT_DLLPRIVATE
void
ImplInvertLines
(
bool
bErase
=
false
);
SVT_DLLPRIVATE
void
ImplDraw
();
SVT_DLLPRIVATE
void
ImplDrawExtra
(
bool
bPaint
=
false
);
SVT_DLLPRIVATE
void
ImplInvertLines
(
vcl
::
RenderContext
&
rRenderContext
,
bool
bErase
=
false
);
SVT_DLLPRIVATE
void
ImplDraw
(
vcl
::
RenderContext
&
rRenderContext
);
SVT_DLLPRIVATE
void
ImplDrawExtra
(
vcl
::
RenderContext
&
rRenderContext
,
bool
bPaint
=
false
);
SVT_DLLPRIVATE
void
ImplUpdate
(
bool
bMustCalc
=
false
);
using
Window
::
ImplHitTest
;
...
...
@@ -713,7 +718,7 @@ public:
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
virtual
void
Tracking
(
const
TrackingEvent
&
rTEvt
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Resize
()
SAL_OVERRIDE
;
virtual
void
StateChanged
(
StateChangedType
nStateChange
)
SAL_OVERRIDE
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rDCEvt
)
SAL_OVERRIDE
;
...
...
@@ -791,8 +796,8 @@ public:
sal_uInt32
GetTabCount
()
const
;
const
RulerTab
*
GetTabs
()
const
;
static
void
DrawTab
(
OutputDevice
*
pDevice
,
const
Color
&
rFillColor
,
const
Point
&
rPos
,
sal_uInt16
nStyle
);
static
void
DrawTab
(
vcl
::
RenderContext
&
rRenderContext
,
const
Color
&
rFillColor
,
const
Point
&
rPos
,
sal_uInt16
nStyle
);
void
SetStyle
(
WinBits
nStyle
);
WinBits
GetStyle
()
const
{
return
mnWinStyle
;
}
...
...
svtools/source/control/ruler.cxx
Dosyayı görüntüle @
0617f87c
This diff is collapsed.
Click to expand it.
svx/source/dialog/svxruler.cxx
Dosyayı görüntüle @
0617f87c
...
...
@@ -3475,7 +3475,7 @@ void SvxRuler::Command( const CommandEvent& rCommandEvent )
{
sal_uInt16
nStyle
=
bRTL
?
i
|
RULER_TAB_RTL
:
i
;
nStyle
|=
static_cast
<
sal_uInt16
>
(
bHorz
?
WB_HORZ
:
WB_VERT
);
DrawTab
(
pDev
,
aFillColor
,
aPt
,
nStyle
);
DrawTab
(
*
pDev
,
aFillColor
,
aPt
,
nStyle
);
aMenu
.
InsertItem
(
i
+
1
,
ResId
(
RID_SVXSTR_RULER_START
+
i
,
DIALOG_MGR
()).
toString
(),
Image
(
pDev
->
GetBitmap
(
Point
(),
aSz
),
Color
(
COL_WHITE
)));
...
...
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