summaryrefslogtreecommitdiff
path: root/vcl/source/control/fixed.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-23 11:20:40 +0200
committerNoel Grandin <noel@peralex.com>2014-09-23 14:11:39 +0300
commit827c46e7d75000cb03b0ce21759f9d0825f0c096 (patch)
tree3a84ccc45d54607c61328b18f58f914c1d6ec240 /vcl/source/control/fixed.cxx
parent7cbbefae224ab85343accb42b03f9431ec693a83 (diff)
fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
Diffstat (limited to 'vcl/source/control/fixed.cxx')
-rw-r--r--vcl/source/control/fixed.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 8d6cb0f8c9a6..beaa5b835aa7 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -80,7 +80,7 @@ static Point ImplCalcPos( WinBits nStyle, const Point& rPos,
return aPos;
}
-void FixedText::ImplInit( Window* pParent, WinBits nStyle )
+void FixedText::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
nStyle = ImplInitStyle( nStyle );
Control::ImplInit( pParent, nStyle, NULL );
@@ -111,7 +111,7 @@ void FixedText::ImplInitSettings( bool bFont,
if ( bBackground )
{
- Window* pParent = GetParent();
+ vcl::Window* pParent = GetParent();
if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
{
EnableChildTransparentMode( true );
@@ -133,7 +133,7 @@ void FixedText::ImplInitSettings( bool bFont,
}
}
-FixedText::FixedText( Window* pParent, WinBits nStyle )
+FixedText::FixedText( vcl::Window* pParent, WinBits nStyle )
: Control(WINDOW_FIXEDTEXT)
, m_nMaxWidthChars(-1)
, m_nMinWidthChars(-1)
@@ -142,7 +142,7 @@ FixedText::FixedText( Window* pParent, WinBits nStyle )
ImplInit( pParent, nStyle );
}
-FixedText::FixedText( Window* pParent, const ResId& rResId )
+FixedText::FixedText( vcl::Window* pParent, const ResId& rResId )
: Control(WINDOW_FIXEDTEXT)
, m_nMaxWidthChars(-1)
, m_nMinWidthChars(-1)
@@ -435,21 +435,21 @@ bool FixedText::set_property(const OString &rKey, const OString &rValue)
return true;
}
-Window* FixedText::getAccessibleRelationLabelFor() const
+vcl::Window* FixedText::getAccessibleRelationLabelFor() const
{
- Window *pWindow = Control::getAccessibleRelationLabelFor();
+ vcl::Window *pWindow = Control::getAccessibleRelationLabelFor();
if (pWindow)
return pWindow;
return get_mnemonic_widget();
}
-void FixedText::set_mnemonic_widget(Window *pWindow)
+void FixedText::set_mnemonic_widget(vcl::Window *pWindow)
{
if (pWindow == m_pMnemonicWindow)
return;
if (m_pMnemonicWindow)
{
- Window *pTempReEntryGuard = m_pMnemonicWindow;
+ vcl::Window *pTempReEntryGuard = m_pMnemonicWindow;
m_pMnemonicWindow = NULL;
pTempReEntryGuard->remove_mnemonic_label(this);
}
@@ -463,7 +463,7 @@ FixedText::~FixedText()
set_mnemonic_widget(NULL);
}
-SelectableFixedText::SelectableFixedText(Window* pParent, WinBits nStyle)
+SelectableFixedText::SelectableFixedText(vcl::Window* pParent, WinBits nStyle)
: Edit(pParent, nStyle)
{
// no border
@@ -483,7 +483,7 @@ void SelectableFixedText::LoseFocus()
Invalidate();
}
-void FixedLine::ImplInit( Window* pParent, WinBits nStyle )
+void FixedLine::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
nStyle = ImplInitStyle( nStyle );
Control::ImplInit( pParent, nStyle, NULL );
@@ -514,7 +514,7 @@ void FixedLine::ImplInitSettings( bool bFont,
if ( bBackground )
{
- Window* pParent = GetParent();
+ vcl::Window* pParent = GetParent();
if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
{
EnableChildTransparentMode( true );
@@ -609,14 +609,14 @@ void FixedLine::ImplDraw( bool bLayout )
}
}
-FixedLine::FixedLine( Window* pParent, WinBits nStyle ) :
+FixedLine::FixedLine( vcl::Window* pParent, WinBits nStyle ) :
Control( WINDOW_FIXEDLINE )
{
ImplInit( pParent, nStyle );
SetSizePixel( Size( 2, 2 ) );
}
-FixedLine::FixedLine( Window* pParent, const ResId& rResId ) :
+FixedLine::FixedLine( vcl::Window* pParent, const ResId& rResId ) :
Control( WINDOW_FIXEDLINE )
{
rResId.SetRT( RSC_FIXEDLINE );
@@ -705,7 +705,7 @@ Size FixedLine::GetOptimalSize() const
return CalcWindowSize( FixedText::CalcMinimumTextSize ( this, 0x7fffffff ) );
}
-void FixedBitmap::ImplInit( Window* pParent, WinBits nStyle )
+void FixedBitmap::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
nStyle = ImplInitStyle( nStyle );
Control::ImplInit( pParent, nStyle, NULL );
@@ -721,7 +721,7 @@ WinBits FixedBitmap::ImplInitStyle( WinBits nStyle )
void FixedBitmap::ImplInitSettings()
{
- Window* pParent = GetParent();
+ vcl::Window* pParent = GetParent();
if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
{
EnableChildTransparentMode( true );
@@ -742,7 +742,7 @@ void FixedBitmap::ImplInitSettings()
}
}
-FixedBitmap::FixedBitmap( Window* pParent, WinBits nStyle ) :
+FixedBitmap::FixedBitmap( vcl::Window* pParent, WinBits nStyle ) :
Control( WINDOW_FIXEDBITMAP )
{
ImplInit( pParent, nStyle );
@@ -846,7 +846,7 @@ void FixedBitmap::SetBitmap( const Bitmap& rBitmap )
queue_resize();
}
-void FixedImage::ImplInit( Window* pParent, WinBits nStyle )
+void FixedImage::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
nStyle = ImplInitStyle( nStyle );
mbInUserDraw = false;
@@ -863,7 +863,7 @@ WinBits FixedImage::ImplInitStyle( WinBits nStyle )
void FixedImage::ImplInitSettings()
{
- Window* pParent = GetParent();
+ vcl::Window* pParent = GetParent();
if ( pParent && pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
{
EnableChildTransparentMode( true );
@@ -897,13 +897,13 @@ void FixedImage::ImplLoadRes( const ResId& rResId )
}
}
-FixedImage::FixedImage( Window* pParent, WinBits nStyle ) :
+FixedImage::FixedImage( vcl::Window* pParent, WinBits nStyle ) :
Control( WINDOW_FIXEDIMAGE )
{
ImplInit( pParent, nStyle );
}
-FixedImage::FixedImage( Window* pParent, const ResId& rResId ) :
+FixedImage::FixedImage( vcl::Window* pParent, const ResId& rResId ) :
Control( WINDOW_FIXEDIMAGE )
{
rResId.SetRT( RSC_FIXEDIMAGE );