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
2463160c
Kaydet (Commit)
2463160c
authored
May 14, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor BackingWindow to use RenderContext
Change-Id: I7061b25ca349ca9e33bf38007558ab743ac7170c
üst
6499d465
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
72 deletions
+69
-72
backingwindow.cxx
sfx2/source/dialog/backingwindow.cxx
+17
-17
backingwindow.hxx
sfx2/source/dialog/backingwindow.hxx
+52
-55
No files found.
sfx2/source/dialog/backingwindow.cxx
Dosyayı görüntüle @
2463160c
...
...
@@ -381,29 +381,29 @@ void BackingWindow::setupButton( MenuButton* pButton )
pButton
->
SetSelectHdl
(
LINK
(
this
,
BackingWindow
,
MenuSelectHdl
));
}
void
BackingWindow
::
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
void
BackingWindow
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
{
Resize
();
Wallpaper
aBack
(
svtools
::
ColorConfig
().
GetColorValue
(
::
svtools
::
APPBACKGROUND
).
nColor
);
vcl
::
Region
aClip
(
Rectangle
(
Point
(
0
,
0
),
GetOutputSizePixel
()
)
);
Wallpaper
aBack
(
svtools
::
ColorConfig
().
GetColorValue
(
::
svtools
::
APPBACKGROUND
).
nColor
);
vcl
::
Region
aClip
(
Rectangle
(
Point
(
0
,
0
),
rRenderContext
.
GetOutputSizePixel
())
);
aClip
.
Exclude
(
maStartCentButtons
);
aClip
.
Exclude
(
maStartCentButtons
);
Push
(
PushFlags
::
CLIPREGION
);
IntersectClipRegion
(
aClip
);
DrawWallpaper
(
Rectangle
(
Point
(
0
,
0
),
GetOutputSizePixel
()
),
aBack
);
Pop
();
rRenderContext
.
Push
(
PushFlags
::
CLIPREGION
);
rRenderContext
.
IntersectClipRegion
(
aClip
);
rRenderContext
.
DrawWallpaper
(
Rectangle
(
Point
(
0
,
0
),
rRenderContext
.
GetOutputSizePixel
()),
aBack
);
rRenderContext
.
Pop
();
ScopedVclPtrInstance
<
VirtualDevice
>
pVDev
(
*
this
);
pVDev
->
EnableRTL
(
IsRTLEnabled
()
);
pVDev
->
SetOutputSizePixel
(
maStartCentButtons
.
GetSize
()
);
Point
aOffset
(
Point
(
0
,
0
)
-
maStartCentButtons
.
TopLeft
());
pVDev
->
DrawWallpaper
(
Rectangle
(
aOffset
,
GetOutputSizePixel
()
),
aBack
);
ScopedVclPtrInstance
<
VirtualDevice
>
pVDev
(
rRenderContext
);
pVDev
->
EnableRTL
(
rRenderContext
.
IsRTLEnabled
()
);
pVDev
->
SetOutputSizePixel
(
maStartCentButtons
.
GetSize
()
);
Point
aOffset
(
Point
(
0
,
0
)
-
maStartCentButtons
.
TopLeft
());
pVDev
->
DrawWallpaper
(
Rectangle
(
aOffset
,
rRenderContext
.
GetOutputSizePixel
()),
aBack
);
DrawOutDev
(
maStartCentButtons
.
TopLeft
(),
maStartCentButtons
.
GetSize
(),
Point
(
0
,
0
),
maStartCentButtons
.
GetSize
(),
*
pVDev
.
get
()
);
rRenderContext
.
DrawOutDev
(
maStartCentButtons
.
TopLeft
(),
maStartCentButtons
.
GetSize
(),
Point
(
0
,
0
),
maStartCentButtons
.
GetSize
(),
*
pVDev
.
get
()
);
}
bool
BackingWindow
::
PreNotify
(
NotifyEvent
&
rNEvt
)
...
...
@@ -510,7 +510,7 @@ void BackingWindow::Resize()
VclContainer
::
setLayoutAllocation
(
*
GetWindow
(
WINDOW_FIRSTCHILD
),
maStartCentButtons
.
TopLeft
(),
maStartCentButtons
.
GetSize
());
if
(
!
IsInPaint
())
if
(
!
IsInPaint
())
Invalidate
();
}
...
...
sfx2/source/dialog/backingwindow.hxx
Dosyayı görüntüle @
2463160c
...
...
@@ -48,69 +48,66 @@
class
ToolBox
;
class
BackingWindow
:
public
vcl
::
Window
,
public
VclBuilderContainer
class
BackingWindow
:
public
vcl
::
Window
,
public
VclBuilderContainer
{
typedef
bool
(
*
selection_cmp_fn
)(
const
ThumbnailViewItem
*
,
const
ThumbnailViewItem
*
);
c
om
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxContext
;
c
om
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XDispatchProvider
>
mxDesktopDispatchProvider
;
c
om
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XFrame
>
mxFrame
;
c
om
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XDesktop2
>
mxDesktop
;
typedef
bool
(
*
selection_cmp_fn
)(
const
ThumbnailViewItem
*
,
const
ThumbnailViewItem
*
);
c
ss
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
mxContext
;
c
ss
::
uno
::
Reference
<
css
::
frame
::
XDispatchProvider
>
mxDesktopDispatchProvider
;
c
ss
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
mxFrame
;
c
ss
::
uno
::
Reference
<
css
::
frame
::
XDesktop2
>
mxDesktop
;
/** helper for drag&drop. */
c
om
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
datatransfer
::
dnd
::
XDropTargetListener
>
mxDropTargetListener
;
c
ss
::
uno
::
Reference
<
css
::
datatransfer
::
dnd
::
XDropTargetListener
>
mxDropTargetListener
;
VclPtr
<
PushButton
>
mpOpenButton
;
VclPtr
<
PushButton
>
mpRecentButton
;
VclPtr
<
MenuButton
>
mpTemplateButton
;
VclPtr
<
PushButton
>
mpOpenButton
;
VclPtr
<
PushButton
>
mpRecentButton
;
VclPtr
<
MenuButton
>
mpTemplateButton
;
VclPtr
<
FixedText
>
mpCreateLabel
;
VclPtr
<
FixedText
>
mpCreateLabel
;
VclPtr
<
PushButton
>
mpWriterAllButton
;
VclPtr
<
PushButton
>
mpCalcAllButton
;
VclPtr
<
PushButton
>
mpImpressAllButton
;
VclPtr
<
PushButton
>
mpDrawAllButton
;
VclPtr
<
PushButton
>
mpDBAllButton
;
VclPtr
<
PushButton
>
mpMathAllButton
;
VclPtr
<
PushButton
>
mpWriterAllButton
;
VclPtr
<
PushButton
>
mpCalcAllButton
;
VclPtr
<
PushButton
>
mpImpressAllButton
;
VclPtr
<
PushButton
>
mpDrawAllButton
;
VclPtr
<
PushButton
>
mpDBAllButton
;
VclPtr
<
PushButton
>
mpMathAllButton
;
VclPtr
<
PushButton
>
mpHelpButton
;
VclPtr
<
PushButton
>
mpExtensionsButton
;
VclPtr
<
PushButton
>
mpHelpButton
;
VclPtr
<
PushButton
>
mpExtensionsButton
;
VclPtr
<
VclBox
>
mpAllButtonsBox
;
VclPtr
<
VclBox
>
mpButtonsBox
;
VclPtr
<
VclBox
>
mpSmallButtonsBox
;
VclPtr
<
VclBox
>
mpThinBox1
;
VclPtr
<
VclBox
>
mpThinBox2
;
VclPtr
<
VclBox
>
mpHelpBox
;
VclPtr
<
VclBox
>
mpExtensionsBox
;
VclPtr
<
VclBox
>
mpAllButtonsBox
;
VclPtr
<
VclBox
>
mpButtonsBox
;
VclPtr
<
VclBox
>
mpSmallButtonsBox
;
VclPtr
<
VclBox
>
mpThinBox1
;
VclPtr
<
VclBox
>
mpThinBox2
;
VclPtr
<
VclBox
>
mpHelpBox
;
VclPtr
<
VclBox
>
mpExtensionsBox
;
VclPtr
<
RecentDocsView
>
mpAllRecentThumbnails
;
VclPtr
<
TemplateDefaultView
>
mpLocalView
;
bool
mbLocalViewInitialized
;
VclPtr
<
RecentDocsView
>
mpAllRecentThumbnails
;
VclPtr
<
TemplateDefaultView
>
mpLocalView
;
bool
mbLocalViewInitialized
;
std
::
vector
<
VclPtr
<
vcl
::
Window
>
>
maDndWindows
;
std
::
vector
<
VclPtr
<
vcl
::
Window
>
>
maDndWindows
;
Rectangle
maStartCentButtons
;
Rectangle
maStartCentButtons
;
bool
mbIsSaveMode
;
bool
mbInitControls
;
sal_Int32
mnHideExternalLinks
;
svt
::
AcceleratorExecute
*
mpAccExec
;
bool
mbIsSaveMode
;
bool
mbInitControls
;
sal_Int32
mnHideExternalLinks
;
svt
::
AcceleratorExecute
*
mpAccExec
;
void
setupButton
(
PushButton
*
pButton
);
void
setupButton
(
MenuButton
*
pButton
);
void
setupButton
(
PushButton
*
pButton
);
void
setupButton
(
MenuButton
*
pButton
);
//Template Manager
void
OnTemplateOpen
();
void
OnTemplateOpen
();
void
dispatchURL
(
const
OUString
&
i_rURL
,
const
OUString
&
i_rTarget
=
OUString
(
"_default"
),
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XDispatchProvider
>&
i_xProv
=
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XDispatchProvider
>
(),
const
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>&
=
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
()
);
void
dispatchURL
(
const
OUString
&
i_rURL
,
const
OUString
&
i_rTarget
=
OUString
(
"_default"
),
const
css
::
uno
::
Reference
<
css
::
frame
::
XDispatchProvider
>&
i_xProv
=
css
::
uno
::
Reference
<
css
::
frame
::
XDispatchProvider
>
(),
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
=
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
());
std
::
set
<
const
ThumbnailViewItem
*
,
selection_cmp_fn
>
maSelTemplates
;
std
::
set
<
const
ThumbnailViewItem
*
,
selection_cmp_fn
>
maSelFolders
;
std
::
set
<
const
ThumbnailViewItem
*
,
selection_cmp_fn
>
maSelTemplates
;
std
::
set
<
const
ThumbnailViewItem
*
,
selection_cmp_fn
>
maSelFolders
;
DECL_LINK
(
ClickHdl
,
Button
*
);
DECL_LINK_TYPED
(
MenuSelectHdl
,
MenuButton
*
,
void
);
...
...
@@ -123,19 +120,19 @@ class BackingWindow
void
initializeLocalView
();
public
:
BackingWindow
(
vcl
::
Window
*
pParent
);
BackingWindow
(
vcl
::
Window
*
pParent
);
virtual
~
BackingWindow
();
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Resize
()
SAL_OVERRIDE
;
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
)
SAL_OVERRIDE
;
virtual
bool
Notify
(
NotifyEvent
&
rNEvt
)
SAL_OVERRIDE
;
virtual
void
GetFocus
()
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Resize
()
SAL_OVERRIDE
;
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
)
SAL_OVERRIDE
;
virtual
bool
Notify
(
NotifyEvent
&
rNEvt
)
SAL_OVERRIDE
;
virtual
void
GetFocus
()
SAL_OVERRIDE
;
virtual
Size
GetOptimalSize
()
const
SAL_OVERRIDE
;
void
setOwningFrame
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XFrame
>&
xFrame
);
void
setOwningFrame
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
xFrame
);
void
clearRecentFileList
();
};
...
...
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