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
938a070f
Kaydet (Commit)
938a070f
authored
May 23, 2014
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move lcl_createWindowInfo to correct spot in window.cxx
Change-Id: Icfcfe379db2ba8eee89314108df47bae024e060e
üst
7772b310
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
60 deletions
+60
-60
window.cxx
vcl/source/window/window.cxx
+60
-60
No files found.
vcl/source/window/window.cxx
Dosyayı görüntüle @
938a070f
...
@@ -140,6 +140,29 @@ Window::Window( Window* pParent, const ResId& rResId )
...
@@ -140,6 +140,29 @@ Window::Window( Window* pParent, const ResId& rResId )
Show
();
Show
();
}
}
#if OSL_DEBUG_LEVEL > 0
namespace
{
OString
lcl_createWindowInfo
(
const
Window
&
i_rWindow
)
{
// skip border windows, they don't carry information which helps diagnosing the problem
const
Window
*
pWindow
(
&
i_rWindow
);
while
(
pWindow
&&
(
pWindow
->
GetType
()
==
WINDOW_BORDERWINDOW
)
)
pWindow
=
pWindow
->
GetWindow
(
WINDOW_FIRSTCHILD
);
if
(
!
pWindow
)
pWindow
=
&
i_rWindow
;
OStringBuffer
aErrorString
;
aErrorString
.
append
(
' '
);
aErrorString
.
append
(
typeid
(
*
pWindow
).
name
());
aErrorString
.
append
(
" ("
);
aErrorString
.
append
(
OUStringToOString
(
pWindow
->
GetText
(),
RTL_TEXTENCODING_UTF8
));
aErrorString
.
append
(
")"
);
return
aErrorString
.
makeStringAndClear
();
}
}
#endif
Window
::~
Window
()
Window
::~
Window
()
{
{
vcl
::
LazyDeletor
<
Window
>::
Undelete
(
this
);
vcl
::
LazyDeletor
<
Window
>::
Undelete
(
this
);
...
@@ -1401,43 +1424,6 @@ sal_uInt16 Window::ImplHitTest( const Point& rFramePos )
...
@@ -1401,43 +1424,6 @@ sal_uInt16 Window::ImplHitTest( const Point& rFramePos )
return
nHitTest
;
return
nHitTest
;
}
}
bool
Window
::
ImplIsRealParentPath
(
const
Window
*
pWindow
)
const
{
pWindow
=
pWindow
->
GetParent
();
while
(
pWindow
)
{
if
(
pWindow
==
this
)
return
true
;
pWindow
=
pWindow
->
GetParent
();
}
return
false
;
}
bool
Window
::
ImplIsChild
(
const
Window
*
pWindow
,
bool
bSystemWindow
)
const
{
do
{
if
(
!
bSystemWindow
&&
pWindow
->
ImplIsOverlapWindow
()
)
break
;
pWindow
=
pWindow
->
ImplGetParent
();
if
(
pWindow
==
this
)
return
true
;
}
while
(
pWindow
);
return
false
;
}
bool
Window
::
ImplIsWindowOrChild
(
const
Window
*
pWindow
,
bool
bSystemWindow
)
const
{
if
(
this
==
pWindow
)
return
true
;
return
ImplIsChild
(
pWindow
,
bSystemWindow
);
}
int
Window
::
ImplTestMousePointerSet
()
int
Window
::
ImplTestMousePointerSet
()
{
{
// as soon as mouse is captured, switch mouse-pointer
// as soon as mouse is captured, switch mouse-pointer
...
@@ -1494,6 +1480,43 @@ PointerStyle Window::ImplGetMousePointer() const
...
@@ -1494,6 +1480,43 @@ PointerStyle Window::ImplGetMousePointer() const
return
ePointerStyle
;
return
ePointerStyle
;
}
}
bool
Window
::
ImplIsRealParentPath
(
const
Window
*
pWindow
)
const
{
pWindow
=
pWindow
->
GetParent
();
while
(
pWindow
)
{
if
(
pWindow
==
this
)
return
true
;
pWindow
=
pWindow
->
GetParent
();
}
return
false
;
}
bool
Window
::
ImplIsChild
(
const
Window
*
pWindow
,
bool
bSystemWindow
)
const
{
do
{
if
(
!
bSystemWindow
&&
pWindow
->
ImplIsOverlapWindow
()
)
break
;
pWindow
=
pWindow
->
ImplGetParent
();
if
(
pWindow
==
this
)
return
true
;
}
while
(
pWindow
);
return
false
;
}
bool
Window
::
ImplIsWindowOrChild
(
const
Window
*
pWindow
,
bool
bSystemWindow
)
const
{
if
(
this
==
pWindow
)
return
true
;
return
ImplIsChild
(
pWindow
,
bSystemWindow
);
}
void
Window
::
ImplResetReallyVisible
()
void
Window
::
ImplResetReallyVisible
()
{
{
bool
bBecameReallyInvisible
=
mpWindowImpl
->
mbReallyVisible
;
bool
bBecameReallyInvisible
=
mpWindowImpl
->
mbReallyVisible
;
...
@@ -3383,29 +3406,6 @@ void Window::ImplNewInputContext()
...
@@ -3383,29 +3406,6 @@ void Window::ImplNewInputContext()
pFocusWin
->
mpFontCache
->
Release
(
pFontEntry
);
pFocusWin
->
mpFontCache
->
Release
(
pFontEntry
);
}
}
#if OSL_DEBUG_LEVEL > 0
namespace
{
OString
lcl_createWindowInfo
(
const
Window
&
i_rWindow
)
{
// skip border windows, they don't carry information which helps diagnosing the problem
const
Window
*
pWindow
(
&
i_rWindow
);
while
(
pWindow
&&
(
pWindow
->
GetType
()
==
WINDOW_BORDERWINDOW
)
)
pWindow
=
pWindow
->
GetWindow
(
WINDOW_FIRSTCHILD
);
if
(
!
pWindow
)
pWindow
=
&
i_rWindow
;
OStringBuffer
aErrorString
;
aErrorString
.
append
(
' '
);
aErrorString
.
append
(
typeid
(
*
pWindow
).
name
());
aErrorString
.
append
(
" ("
);
aErrorString
.
append
(
OUStringToOString
(
pWindow
->
GetText
(),
RTL_TEXTENCODING_UTF8
));
aErrorString
.
append
(
")"
);
return
aErrorString
.
makeStringAndClear
();
}
}
#endif
void
Window
::
doLazyDelete
()
void
Window
::
doLazyDelete
()
{
{
SystemWindow
*
pSysWin
=
dynamic_cast
<
SystemWindow
*>
(
this
);
SystemWindow
*
pSysWin
=
dynamic_cast
<
SystemWindow
*>
(
this
);
...
...
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