summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-21 15:52:27 +0200
committerJan Holesovsky <kendy@collabora.com>2015-05-29 20:16:52 +0200
commita5e58e66d82a63d99ced4ed8a42c38ed6179aa6c (patch)
tree234325db56cadde360176607258cdf98d2db7826 /svx
parentcfd5cbae2871e45c60d3df24e954708d2f0d4b94 (diff)
convert WINDOW constants for GetWindow() methods to scoped enum
Change-Id: I0c7c6d095732704eb4ab48f1277a0592b1c7fa33 Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/datanavi.cxx4
-rw-r--r--svx/source/sidebar/PanelLayout.cxx6
-rw-r--r--svx/source/svdraw/sdrpaintwindow.cxx4
3 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 2e70850ffa6b..ca3acd9f2a9e 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -2066,7 +2066,7 @@ namespace svxform
void DataNavigatorWindow::Resize()
{
- vcl::Window *pChild = GetWindow(WINDOW_FIRSTCHILD);
+ vcl::Window *pChild = GetWindow(GetWindowType::FirstChild);
if (!pChild)
return;
VclContainer::setLayoutAllocation(*pChild, Point(0,0), GetSizePixel());
@@ -2074,7 +2074,7 @@ namespace svxform
Size DataNavigatorWindow::GetOptimalSize() const
{
- const vcl::Window *pChild = GetWindow(WINDOW_FIRSTCHILD);
+ const vcl::Window *pChild = GetWindow(GetWindowType::FirstChild);
if (!pChild)
return Window::GetOptimalSize();
return VclContainer::getLayoutRequisition(*pChild);
diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx
index 2535f9b3f00a..1b5173d31e99 100644
--- a/svx/source/sidebar/PanelLayout.cxx
+++ b/svx/source/sidebar/PanelLayout.cxx
@@ -40,7 +40,7 @@ void PanelLayout::dispose()
Size PanelLayout::GetOptimalSize() const
{
if (isLayoutEnabled(this))
- return VclContainer::getLayoutRequisition(*GetWindow(WINDOW_FIRSTCHILD));
+ return VclContainer::getLayoutRequisition(*GetWindow(GetWindowType::FirstChild));
return Control::GetOptimalSize();
}
@@ -64,7 +64,7 @@ void PanelLayout::queue_resize(StateChangedType /*eReason*/)
IMPL_LINK_NOARG_TYPED( PanelLayout, ImplHandlePanelLayoutTimerHdl, Idle*, void )
{
- vcl::Window *pChild = GetWindow(WINDOW_FIRSTCHILD);
+ vcl::Window *pChild = GetWindow(GetWindowType::FirstChild);
assert(pChild);
VclContainer::setLayoutAllocation(*pChild, Point(0, 0), GetSizePixel());
}
@@ -75,7 +75,7 @@ void PanelLayout::setPosSizePixel(long nX, long nY, long nWidth, long nHeight, s
bool bCanHandleSmallerHeight = false;
bool bIsLayoutEnabled = isLayoutEnabled(this);
- vcl::Window *pChild = GetWindow(WINDOW_FIRSTCHILD);
+ vcl::Window *pChild = GetWindow(GetWindowType::FirstChild);
if (bIsLayoutEnabled && pChild->GetType() == WINDOW_SCROLLWINDOW)
{
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx
index b31308d62d25..e75acd8655ea 100644
--- a/svx/source/svdraw/sdrpaintwindow.cxx
+++ b/svx/source/svdraw/sdrpaintwindow.cxx
@@ -78,7 +78,7 @@ void PaintTransparentChildren(vcl::Window & rWindow, Rectangle const& rPixelRect
void CandidateMgr::PaintTransparentChildren(vcl::Window & rWindow, Rectangle const& rPixelRect)
{
- vcl::Window * pCandidate = rWindow.GetWindow( WINDOW_FIRSTCHILD );
+ vcl::Window * pCandidate = rWindow.GetWindow( GetWindowType::FirstChild );
while (pCandidate)
{
if (pCandidate->IsPaintTransparent())
@@ -93,7 +93,7 @@ void CandidateMgr::PaintTransparentChildren(vcl::Window & rWindow, Rectangle con
pCandidate->AddEventListener(LINK(this, CandidateMgr, WindowEventListener));
}
}
- pCandidate = pCandidate->GetWindow( WINDOW_NEXT );
+ pCandidate = pCandidate->GetWindow( GetWindowType::Next );
}
for (auto aI = m_aCandidates.begin(); aI != m_aCandidates.end(); ++aI)