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
d0f20c37
Kaydet (Commit)
d0f20c37
authored
May 20, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deck, TitleBar - setup background in ApplySettings
Change-Id: I3468176b8605094887f1d81ce37ef2c47719e3e7
üst
56366b91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
15 deletions
+22
-15
Deck.cxx
sfx2/source/sidebar/Deck.cxx
+5
-4
Deck.hxx
sfx2/source/sidebar/Deck.hxx
+2
-1
TitleBar.cxx
sfx2/source/sidebar/TitleBar.cxx
+13
-10
TitleBar.hxx
sfx2/source/sidebar/TitleBar.hxx
+2
-0
No files found.
sfx2/source/sidebar/Deck.cxx
Dosyayı görüntüle @
d0f20c37
...
@@ -50,8 +50,6 @@ Deck::Deck(const DeckDescriptor& rDeckDescriptor, vcl::Window* pParentWindow,
...
@@ -50,8 +50,6 @@ Deck::Deck(const DeckDescriptor& rDeckDescriptor, vcl::Window* pParentWindow,
,
mpFiller
(
VclPtr
<
vcl
::
Window
>::
Create
(
this
))
,
mpFiller
(
VclPtr
<
vcl
::
Window
>::
Create
(
this
))
,
mpVerticalScrollBar
(
VclPtr
<
ScrollBar
>::
Create
(
this
))
,
mpVerticalScrollBar
(
VclPtr
<
ScrollBar
>::
Create
(
this
))
{
{
SetBackground
(
Wallpaper
());
mpScrollClipWindow
->
SetBackground
(
Wallpaper
());
mpScrollClipWindow
->
SetBackground
(
Wallpaper
());
mpScrollClipWindow
->
Show
();
mpScrollClipWindow
->
Show
();
...
@@ -111,10 +109,13 @@ Rectangle Deck::GetContentArea() const
...
@@ -111,10 +109,13 @@ Rectangle Deck::GetContentArea() const
aWindowSize
.
Height
()
-
1
-
Theme
::
GetInteger
(
Theme
::
Int_DeckBottomPadding
)
-
nBorderSize
);
aWindowSize
.
Height
()
-
1
-
Theme
::
GetInteger
(
Theme
::
Int_DeckBottomPadding
)
-
nBorderSize
);
}
}
void
Deck
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rUpdateArea
)
void
Deck
::
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
{
{
(
void
)
rUpdateArea
;
rRenderContext
.
SetBackground
(
Wallpaper
());
}
void
Deck
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
/*rUpdateArea*/
)
{
const
Size
aWindowSize
(
GetSizePixel
());
const
Size
aWindowSize
(
GetSizePixel
());
const
SvBorder
aPadding
(
Theme
::
GetInteger
(
Theme
::
Int_DeckLeftPadding
),
const
SvBorder
aPadding
(
Theme
::
GetInteger
(
Theme
::
Int_DeckLeftPadding
),
Theme
::
GetInteger
(
Theme
::
Int_DeckTopPadding
),
Theme
::
GetInteger
(
Theme
::
Int_DeckTopPadding
),
...
...
sfx2/source/sidebar/Deck.hxx
Dosyayı görüntüle @
d0f20c37
...
@@ -64,9 +64,10 @@ public:
...
@@ -64,9 +64,10 @@ public:
*/
*/
void
ShowPanel
(
const
Panel
&
rPanel
);
void
ShowPanel
(
const
Panel
&
rPanel
);
virtual
void
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rUpdateArea
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rUpdateArea
)
SAL_OVERRIDE
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rEvent
)
SAL_OVERRIDE
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rEvent
)
SAL_OVERRIDE
;
virtual
bool
Notify
(
NotifyEvent
&
rEvent
)
SAL_OVERRIDE
;
virtual
bool
Notify
(
NotifyEvent
&
rEvent
)
SAL_OVERRIDE
;
static
void
PrintWindowSubTree
(
vcl
::
Window
*
pRoot
,
int
nIndentation
);
static
void
PrintWindowSubTree
(
vcl
::
Window
*
pRoot
,
int
nIndentation
);
...
...
sfx2/source/sidebar/TitleBar.cxx
Dosyayı görüntüle @
d0f20c37
...
@@ -39,13 +39,12 @@ namespace sfx2 { namespace sidebar {
...
@@ -39,13 +39,12 @@ namespace sfx2 { namespace sidebar {
TitleBar
::
TitleBar
(
const
OUString
&
rsTitle
,
TitleBar
::
TitleBar
(
const
OUString
&
rsTitle
,
vcl
::
Window
*
pParentWindow
,
vcl
::
Window
*
pParentWindow
,
const
sidebar
::
Paint
&
rInitialBackgroundPaint
)
const
sidebar
::
Paint
&
rInitialBackgroundPaint
)
:
Window
(
pParentWindow
),
:
Window
(
pParentWindow
)
maToolBox
(
VclPtr
<
SidebarToolBox
>::
Create
(
this
)),
,
maToolBox
(
VclPtr
<
SidebarToolBox
>::
Create
(
this
))
msTitle
(
rsTitle
),
,
msTitle
(
rsTitle
)
maIcon
()
,
maIcon
()
,
maBackgroundPaint
(
rInitialBackgroundPaint
)
{
{
SetBackground
(
rInitialBackgroundPaint
.
GetWallpaper
());
maToolBox
->
SetSelectHdl
(
LINK
(
this
,
TitleBar
,
SelectionHandler
));
maToolBox
->
SetSelectHdl
(
LINK
(
this
,
TitleBar
,
SelectionHandler
));
}
}
...
@@ -72,6 +71,11 @@ void TitleBar::SetIcon(const Image& rIcon)
...
@@ -72,6 +71,11 @@ void TitleBar::SetIcon(const Image& rIcon)
Invalidate
();
Invalidate
();
}
}
void
TitleBar
::
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
{
rRenderContext
.
SetBackground
(
maBackgroundPaint
.
GetWallpaper
());
}
void
TitleBar
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
/*rUpdateArea*/
)
void
TitleBar
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
/*rUpdateArea*/
)
{
{
// Paint title bar background.
// Paint title bar background.
...
@@ -84,11 +88,10 @@ void TitleBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*rUpd
...
@@ -84,11 +88,10 @@ void TitleBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*rUpd
PaintFocus
(
rRenderContext
,
aTitleBox
);
PaintFocus
(
rRenderContext
,
aTitleBox
);
}
}
void
TitleBar
::
DataChanged
(
const
DataChangedEvent
&
rEvent
)
void
TitleBar
::
DataChanged
(
const
DataChangedEvent
&
/*rEvent*/
)
{
{
(
void
)
rEvent
;
maBackgroundPaint
=
GetBackgroundPaint
();
Invalidate
();
SetBackground
(
GetBackgroundPaint
().
GetWallpaper
());
}
}
void
TitleBar
::
setPosSizePixel
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt16
nFlags
)
void
TitleBar
::
setPosSizePixel
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt16
nFlags
)
...
...
sfx2/source/sidebar/TitleBar.hxx
Dosyayı görüntüle @
d0f20c37
...
@@ -38,6 +38,7 @@ public:
...
@@ -38,6 +38,7 @@ public:
void
SetTitle
(
const
::
rtl
::
OUString
&
rsTitle
);
void
SetTitle
(
const
::
rtl
::
OUString
&
rsTitle
);
void
SetIcon
(
const
Image
&
rIcon
);
void
SetIcon
(
const
Image
&
rIcon
);
virtual
void
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rUpdateArea
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rUpdateArea
)
SAL_OVERRIDE
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rEvent
)
SAL_OVERRIDE
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rEvent
)
SAL_OVERRIDE
;
virtual
void
setPosSizePixel
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt16
nFlags
=
WINDOW_POSSIZE_ALL
)
SAL_OVERRIDE
;
virtual
void
setPosSizePixel
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt16
nFlags
=
WINDOW_POSSIZE_ALL
)
SAL_OVERRIDE
;
...
@@ -65,6 +66,7 @@ protected:
...
@@ -65,6 +66,7 @@ protected:
private
:
private
:
Image
maIcon
;
Image
maIcon
;
sidebar
::
Paint
maBackgroundPaint
;
void
PaintTitle
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rTitleBox
);
void
PaintTitle
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rTitleBox
);
DECL_LINK_TYPED
(
SelectionHandler
,
ToolBox
*
,
void
);
DECL_LINK_TYPED
(
SelectionHandler
,
ToolBox
*
,
void
);
...
...
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