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
ee1bef41
Kaydet (Commit)
ee1bef41
authored
May 26, 2014
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: move Window::ImplSetFrameParent() from window.cxx to stacking.cxx
Change-Id: I41ce1398017c7c9ff7b24464250911c63b3e2c92
üst
37dd6ced
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
58 deletions
+58
-58
stacking.cxx
vcl/source/window/stacking.cxx
+18
-0
window.cxx
vcl/source/window/window.cxx
+40
-58
No files found.
vcl/source/window/stacking.cxx
Dosyayı görüntüle @
ee1bef41
...
...
@@ -1156,6 +1156,24 @@ bool Window::IsWindowOrChild( const Window* pWindow, bool bSystemWindow ) const
return
ImplIsChild
(
pWindow
,
bSystemWindow
);
}
void
Window
::
ImplSetFrameParent
(
const
Window
*
pParent
)
{
Window
*
pFrameWindow
=
ImplGetSVData
()
->
maWinData
.
mpFirstFrame
;
while
(
pFrameWindow
)
{
// search all frames that are children of this window
// and reparent them
if
(
ImplIsRealParentPath
(
pFrameWindow
)
)
{
DBG_ASSERT
(
mpWindowImpl
->
mpFrame
!=
pFrameWindow
->
mpWindowImpl
->
mpFrame
,
"SetFrameParent to own"
);
DBG_ASSERT
(
mpWindowImpl
->
mpFrame
,
"no frame"
);
SalFrame
*
pParentFrame
=
pParent
?
pParent
->
mpWindowImpl
->
mpFrame
:
NULL
;
pFrameWindow
->
mpWindowImpl
->
mpFrame
->
SetParent
(
pParentFrame
);
}
pFrameWindow
=
pFrameWindow
->
mpWindowImpl
->
mpFrameData
->
mpNextFrame
;
}
}
const
SystemEnvData
*
Window
::
GetSystemData
()
const
{
...
...
vcl/source/window/window.cxx
Dosyayı görüntüle @
ee1bef41
...
...
@@ -1127,32 +1127,6 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste
GetAccessibleParentWindow
()
->
ImplCallEventListeners
(
VCLEVENT_WINDOW_CHILDCREATED
,
this
);
}
void
Window
::
CopyDeviceArea
(
SalTwoRect
&
aPosAry
,
sal_uInt32
nFlags
)
{
if
(
aPosAry
.
mnSrcWidth
==
0
||
aPosAry
.
mnSrcHeight
==
0
||
aPosAry
.
mnDestWidth
==
0
||
aPosAry
.
mnDestHeight
==
0
)
return
;
if
(
nFlags
&
COPYAREA_WINDOWINVALIDATE
)
{
const
Rectangle
aSrcRect
(
Point
(
aPosAry
.
mnSrcX
,
aPosAry
.
mnSrcY
),
Size
(
aPosAry
.
mnSrcWidth
,
aPosAry
.
mnSrcHeight
));
ImplMoveAllInvalidateRegions
(
aSrcRect
,
aPosAry
.
mnDestX
-
aPosAry
.
mnSrcX
,
aPosAry
.
mnDestY
-
aPosAry
.
mnSrcY
,
false
);
mpGraphics
->
CopyArea
(
aPosAry
.
mnDestX
,
aPosAry
.
mnDestY
,
aPosAry
.
mnSrcX
,
aPosAry
.
mnSrcY
,
aPosAry
.
mnSrcWidth
,
aPosAry
.
mnSrcHeight
,
SAL_COPYAREA_WINDOWINVALIDATE
,
this
);
return
;
}
OutputDevice
::
CopyDeviceArea
(
aPosAry
,
nFlags
);
}
void
Window
::
ImplInitAppFontData
(
Window
*
pWindow
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
...
...
@@ -1197,6 +1171,46 @@ void Window::ImplInitAppFontData( Window* pWindow )
pSVData
->
maGDIData
.
mnAppFontX
+=
(
pSVData
->
maGDIData
.
mnAppFontX
*
pSVData
->
maAppData
.
mnDialogScaleX
)
/
100
;
}
void
Window
::
ImplInitWindowData
(
WindowType
nType
)
{
// We will eventually being removing the inheritance of OutputDevice from Window.
// It will be replaced with a composition relationship. A Window will use an OutputDevice,
// it will not *be* an OutputDevice
mpOutputDevice
=
(
OutputDevice
*
)
this
;
mpWindowImpl
=
new
WindowImpl
(
nType
);
meOutDevType
=
OUTDEV_WINDOW
;
mbEnableRTL
=
Application
::
GetSettings
().
GetLayoutRTL
();
// true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
}
void
Window
::
CopyDeviceArea
(
SalTwoRect
&
aPosAry
,
sal_uInt32
nFlags
)
{
if
(
aPosAry
.
mnSrcWidth
==
0
||
aPosAry
.
mnSrcHeight
==
0
||
aPosAry
.
mnDestWidth
==
0
||
aPosAry
.
mnDestHeight
==
0
)
return
;
if
(
nFlags
&
COPYAREA_WINDOWINVALIDATE
)
{
const
Rectangle
aSrcRect
(
Point
(
aPosAry
.
mnSrcX
,
aPosAry
.
mnSrcY
),
Size
(
aPosAry
.
mnSrcWidth
,
aPosAry
.
mnSrcHeight
));
ImplMoveAllInvalidateRegions
(
aSrcRect
,
aPosAry
.
mnDestX
-
aPosAry
.
mnSrcX
,
aPosAry
.
mnDestY
-
aPosAry
.
mnSrcY
,
false
);
mpGraphics
->
CopyArea
(
aPosAry
.
mnDestX
,
aPosAry
.
mnDestY
,
aPosAry
.
mnSrcX
,
aPosAry
.
mnSrcY
,
aPosAry
.
mnSrcWidth
,
aPosAry
.
mnSrcHeight
,
SAL_COPYAREA_WINDOWINVALIDATE
,
this
);
return
;
}
OutputDevice
::
CopyDeviceArea
(
aPosAry
,
nFlags
);
}
bool
Window
::
ImplCheckUIFont
(
const
Font
&
rFont
)
{
if
(
ImplGetSVData
()
->
maGDIData
.
mbNativeFontConfig
)
...
...
@@ -1238,20 +1252,6 @@ bool Window::ImplCheckUIFont( const Font& rFont )
return
bUIFontOk
;
}
void
Window
::
ImplInitWindowData
(
WindowType
nType
)
{
// We will eventually being removing the inheritance of OutputDevice from Window.
// It will be replaced with a composition relationship. A Window will use an OutputDevice,
// it will not *be* an OutputDevice
mpOutputDevice
=
(
OutputDevice
*
)
this
;
mpWindowImpl
=
new
WindowImpl
(
nType
);
meOutDevType
=
OUTDEV_WINDOW
;
mbEnableRTL
=
Application
::
GetSettings
().
GetLayoutRTL
();
// true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
}
bool
ImplDoTiledRendering
()
{
#if !HAVE_FEATURE_DESKTOP
...
...
@@ -1266,24 +1266,6 @@ bool ImplDoTiledRendering()
#endif
}
void
Window
::
ImplSetFrameParent
(
const
Window
*
pParent
)
{
Window
*
pFrameWindow
=
ImplGetSVData
()
->
maWinData
.
mpFirstFrame
;
while
(
pFrameWindow
)
{
// search all frames that are children of this window
// and reparent them
if
(
ImplIsRealParentPath
(
pFrameWindow
)
)
{
DBG_ASSERT
(
mpWindowImpl
->
mpFrame
!=
pFrameWindow
->
mpWindowImpl
->
mpFrame
,
"SetFrameParent to own"
);
DBG_ASSERT
(
mpWindowImpl
->
mpFrame
,
"no frame"
);
SalFrame
*
pParentFrame
=
pParent
?
pParent
->
mpWindowImpl
->
mpFrame
:
NULL
;
pFrameWindow
->
mpWindowImpl
->
mpFrame
->
SetParent
(
pParentFrame
);
}
pFrameWindow
=
pFrameWindow
->
mpWindowImpl
->
mpFrameData
->
mpNextFrame
;
}
}
ImplWinData
*
Window
::
ImplGetWinData
()
const
{
if
(
!
mpWindowImpl
->
mpWinData
)
...
...
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