summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx4
-rw-r--r--cui/source/tabpages/autocdlg.cxx2
-rw-r--r--dbaccess/source/ui/control/VertSplitView.cxx4
-rw-r--r--dbaccess/source/ui/dlg/adminpages.cxx2
-rw-r--r--dbaccess/source/ui/inc/TableWindow.hxx3
-rw-r--r--extensions/source/propctrlr/standardcontrol.cxx6
-rw-r--r--framework/source/helper/vclstatusindicator.cxx2
-rw-r--r--reportdesign/source/ui/dlg/CondFormat.cxx12
-rw-r--r--reportdesign/source/ui/dlg/Condition.cxx24
-rw-r--r--sc/source/ui/dbgui/csvruler.cxx4
-rw-r--r--sc/source/ui/dbgui/csvtablebox.cxx12
-rw-r--r--sc/source/ui/inc/csvruler.hxx3
-rw-r--r--sc/source/ui/navipi/navipi.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx4
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx8
-rw-r--r--sd/source/ui/dlg/navigatr.cxx4
-rw-r--r--slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl.cxx2
-rw-r--r--svtools/inc/svtools/fileview.hxx1
-rw-r--r--svtools/source/control/calendar.cxx2
-rw-r--r--svtools/source/control/filectrl.cxx4
-rw-r--r--svtools/source/control/tabbar.cxx2
-rw-r--r--svtools/source/control/valueset.cxx2
-rw-r--r--svtools/source/dialogs/wizdlg.cxx4
-rw-r--r--svtools/source/hatchwindow/hatchwindow.cxx2
-rw-r--r--svx/source/dialog/charmap.cxx2
-rw-r--r--svx/source/dialog/docrecovery.cxx2
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx2
-rw-r--r--sw/source/ui/docvw/SidebarWin.cxx14
-rw-r--r--sw/source/ui/inc/scroll.hxx1
-rw-r--r--sw/source/ui/utlui/navipi.cxx6
-rw-r--r--sw/source/ui/utlui/textcontrolcombo.cxx4
-rw-r--r--toolkit/source/awt/vclxwindow.cxx2
-rw-r--r--vcl/inc/ilstbox.hxx2
-rw-r--r--vcl/inc/vcl/combobox.hxx4
-rw-r--r--vcl/inc/vcl/dialog.hxx11
-rw-r--r--vcl/inc/vcl/dockwin.hxx4
-rw-r--r--vcl/inc/vcl/layout.hxx1
-rw-r--r--vcl/inc/vcl/lstbox.hxx4
-rw-r--r--vcl/inc/vcl/tabctrl.hxx4
-rw-r--r--vcl/inc/vcl/tabpage.hxx5
-rw-r--r--vcl/inc/vcl/window.hxx4
-rw-r--r--vcl/source/control/button.cxx6
-rw-r--r--vcl/source/control/combobox.cxx10
-rw-r--r--vcl/source/control/ilstbox.cxx4
-rw-r--r--vcl/source/control/lstbox.cxx10
-rw-r--r--vcl/source/control/tabctrl.cxx7
-rw-r--r--vcl/source/edit/vclmedit.cxx8
-rw-r--r--vcl/source/window/brdwin.cxx6
-rw-r--r--vcl/source/window/dialog.cxx19
-rw-r--r--vcl/source/window/dockmgr.cxx15
-rw-r--r--vcl/source/window/dockwin.cxx10
-rw-r--r--vcl/source/window/menu.cxx10
-rw-r--r--vcl/source/window/syswin.cxx2
-rw-r--r--vcl/source/window/tabdlg.cxx2
-rw-r--r--vcl/source/window/tabpage.cxx14
-rw-r--r--vcl/source/window/window.cxx4
-rw-r--r--vcl/source/window/window2.cxx6
57 files changed, 163 insertions, 157 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 16709ef22df2..bfb89202cbbe 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -256,7 +256,7 @@ const short HITPIX=2; //hit-tolerance in pixel
, Fraction(nScaleXNumerator,nScaleXDenominator)
, Fraction(nScaleYNumerator,nScaleYDenominator) );
m_pChartWindow->SetMapMode(aNewMapMode);
- m_pChartWindow->SetPosSizePixel( X, Y, Width, Height, Flags );
+ m_pChartWindow->setPosSizePixel( X, Y, Width, Height, Flags );
//#i75867# poor quality of ole's alternative view with 3D scenes and zoomfactors besides 100%
uno::Reference< beans::XPropertySet > xProp( m_xChartView, uno::UNO_QUERY );
@@ -285,7 +285,7 @@ const short HITPIX=2; //hit-tolerance in pixel
{
//change visarea
ChartModelHelper::setPageSize( awt::Size( aLogicSize.Width(), aLogicSize.Height() ), getModel() );
- m_pChartWindow->SetPosSizePixel( X, Y, Width, Height, Flags );
+ m_pChartWindow->setPosSizePixel( X, Y, Width, Height, Flags );
}
m_pChartWindow->Invalidate();
}
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 858a11388b20..2a3ffbdc5d36 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -155,7 +155,7 @@ OfaAutoCorrDlg::OfaAutoCorrDlg(Window* pParent, const SfxItemSet* _pSet ) :
Size aMinSize(aLanguageFT.CalcMinimumSize());
//reserve some extra space for CJK accelerators that are possible inserted
//later (like '(A)')
- aLanguageFT.SetPosSizePixel( 0, 0, aMinSize.Width() + 20, 0, WINDOW_POSSIZE_WIDTH );
+ aLanguageFT.setPosSizePixel( 0, 0, aMinSize.Width() + 20, 0, WINDOW_POSSIZE_WIDTH );
if ( bOpenSmartTagOptions )
SetCurPageId( RID_OFAPAGE_SMARTTAG_OPTIONS );
diff --git a/dbaccess/source/ui/control/VertSplitView.cxx b/dbaccess/source/ui/control/VertSplitView.cxx
index 9a377a503ac3..13e6905c7a6c 100644
--- a/dbaccess/source/ui/control/VertSplitView.cxx
+++ b/dbaccess/source/ui/control/VertSplitView.cxx
@@ -179,10 +179,10 @@ void OSplitterView::Resize()
if ( m_pRight )
{
if ( m_bVertical )
- m_pRight->SetPosSizePixel( aSplitPos.X() + aSplitSize.Width(), aPlaygroundPos.Y(),
+ m_pRight->setPosSizePixel( aSplitPos.X() + aSplitSize.Width(), aPlaygroundPos.Y(),
aPlaygroundSize.Width() - aSplitSize.Width() - aSplitPos.X(), aPlaygroundSize.Height());
else
- m_pRight->SetPosSizePixel( aSplitPos.X(), aPlaygroundPos.Y() + aSplitPos.Y() + aSplitSize.Height(),
+ m_pRight->setPosSizePixel( aSplitPos.X(), aPlaygroundPos.Y() + aSplitPos.Y() + aSplitSize.Height(),
aPlaygroundSize.Width() , aPlaygroundSize.Height() - aSplitSize.Height() - aSplitPos.Y());
}
diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx
index 0e2d480413ac..f0e4af33ac97 100644
--- a/dbaccess/source/ui/dlg/adminpages.cxx
+++ b/dbaccess/source/ui/dlg/adminpages.cxx
@@ -328,7 +328,7 @@ namespace dbaui
const Size aMinSize( io_button.CalcMinimumSize() );
if ( aMinSize.Width() > aOldSize.Width() )
{
- io_button.SetPosSizePixel(
+ io_button.setPosSizePixel(
aOldPos.X() + aOldSize.Width() - aMinSize.Width(),
0,
aMinSize.Width(),
diff --git a/dbaccess/source/ui/inc/TableWindow.hxx b/dbaccess/source/ui/inc/TableWindow.hxx
index c51fa0226fde..ecdfcae164f2 100644
--- a/dbaccess/source/ui/inc/TableWindow.hxx
+++ b/dbaccess/source/ui/inc/TableWindow.hxx
@@ -191,9 +191,6 @@ namespace dbaui
/** clears the listbox inside. Must be called be the dtor is called.
*/
void clearListBox();
-
- protected:
- using Window::SetPosSizePixel;
};
}
#endif //DBAUI_TABLEWINDOW_HXX
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 253ff93bbf28..687a49939752 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -1099,11 +1099,11 @@ namespace pcr
{
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
nSBWidth = CalcZoom( nSBWidth );
- m_pImplEdit->SetPosSizePixel( 0, 1, aOutSz.Width() - nSBWidth, aOutSz.Height()-2 );
- m_pDropdownButton->SetPosSizePixel( aOutSz.Width() - nSBWidth, 0, nSBWidth, aOutSz.Height() );
+ m_pImplEdit->setPosSizePixel( 0, 1, aOutSz.Width() - nSBWidth, aOutSz.Height()-2 );
+ m_pDropdownButton->setPosSizePixel( aOutSz.Width() - nSBWidth, 0, nSBWidth, aOutSz.Height() );
}
else
- m_pImplEdit->SetPosSizePixel( 0, 1, aOutSz.Width(), aOutSz.Height()-2 );
+ m_pImplEdit->setPosSizePixel( 0, 1, aOutSz.Width(), aOutSz.Height()-2 );
}
//------------------------------------------------------------------
diff --git a/framework/source/helper/vclstatusindicator.cxx b/framework/source/helper/vclstatusindicator.cxx
index 412eb5137a2b..ea4e5eeff60e 100644
--- a/framework/source/helper/vclstatusindicator.cxx
+++ b/framework/source/helper/vclstatusindicator.cxx
@@ -209,7 +209,7 @@ void VCLStatusIndicator::impl_recalcLayout(Window* pStatusBar ,
return;
Size aParentSize = pParentWindow->GetSizePixel();
- pStatusBar->SetPosSizePixel(0,
+ pStatusBar->setPosSizePixel(0,
0,
aParentSize.Width(),
aParentSize.Height());
diff --git a/reportdesign/source/ui/dlg/CondFormat.cxx b/reportdesign/source/ui/dlg/CondFormat.cxx
index 0942580540c1..ec341d1c1c3b 100644
--- a/reportdesign/source/ui/dlg/CondFormat.cxx
+++ b/reportdesign/source/ui/dlg/CondFormat.cxx
@@ -181,7 +181,7 @@ namespace rptui
pCon->setCondition( xCond );
m_aConditions.insert( m_aConditions.begin() + _nNewCondIndex, pCon );
- pCon->SetPosSizePixel( 0, 0, impl_getConditionWidth(), 0, WINDOW_POSSIZE_WIDTH );
+ pCon->setPosSizePixel( 0, 0, impl_getConditionWidth(), 0, WINDOW_POSSIZE_WIDTH );
}
catch( const Exception& )
{
@@ -339,7 +339,7 @@ namespace rptui
++cond
)
{
- (*cond)->SetPosSizePixel( aConditionPos.X(), aConditionPos.Y(), nConditionWidth, nConditionHeight );
+ (*cond)->setPosSizePixel( aConditionPos.X(), aConditionPos.Y(), nConditionWidth, nConditionHeight );
aConditionPos.Move( 0, nConditionHeight );
}
}
@@ -352,24 +352,24 @@ namespace rptui
impl_layoutConditions( aPos );
// scrollbar size and visibility
- m_aCondScroll.SetPosSizePixel( 0, 0, 0, aPos.Y(), WINDOW_POSSIZE_HEIGHT );
+ m_aCondScroll.setPosSizePixel( 0, 0, 0, aPos.Y(), WINDOW_POSSIZE_HEIGHT );
if ( !impl_needScrollBar() )
// normalize the position, so it can, in all situations, be used as top index
m_aCondScroll.SetThumbPos( 0 );
// the separator and the buttons below it
aPos += LogicToPixel( Point( 0 , RELATED_CONTROLS ), MAP_APPFONT );
- m_aSeparator.SetPosSizePixel( 0, aPos.Y(), 0, 0, WINDOW_POSSIZE_Y );
+ m_aSeparator.setPosSizePixel( 0, aPos.Y(), 0, 0, WINDOW_POSSIZE_Y );
aPos += LogicToPixel( Point( 0 , UNRELATED_CONTROLS ), MAP_APPFONT );
Window* pWindows[] = { &m_aPB_OK, &m_aPB_CANCEL, &m_aPB_Help };
for ( size_t i= 0; i < sizeof(pWindows)/sizeof(pWindows[0]); ++i )
{
- pWindows[i]->SetPosSizePixel( 0, aPos.Y(), 0, 0, WINDOW_POSSIZE_Y );
+ pWindows[i]->setPosSizePixel( 0, aPos.Y(), 0, 0, WINDOW_POSSIZE_Y );
}
aPos += LogicToPixel( Point( 0, BUTTON_HEIGHT + RELATED_CONTROLS ), MAP_APPFONT );
- SetPosSizePixel( 0, 0, 0, aPos.Y(), WINDOW_POSSIZE_HEIGHT );
+ setPosSizePixel( 0, 0, 0, aPos.Y(), WINDOW_POSSIZE_HEIGHT );
}
// -----------------------------------------------------------------------------
void ConditionalFormattingDialog::impl_initializeConditions()
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx
index bbe7e3b29ca2..f2883654ef63 100644
--- a/reportdesign/source/ui/dlg/Condition.cxx
+++ b/reportdesign/source/ui/dlg/Condition.cxx
@@ -297,12 +297,12 @@ Condition::Condition( Window* _pParent, IConditionalFormatAction& _rAction, ::rp
Size aRelatedControls( LogicToPixel( Size( RELATED_CONTROLS, 0 ), MAP_APPFONT ) );
Point aToolbarPos( m_aActions.GetPosPixel() );
Size aToolbarSize( m_aActions.GetSizePixel() );
- m_aPreview.SetPosSizePixel( aToolbarPos.X() + aToolbarSize.Width() + 2 * aRelatedControls.Width(),
+ m_aPreview.setPosSizePixel( aToolbarPos.X() + aToolbarSize.Width() + 2 * aRelatedControls.Width(),
0, 0, 0, WINDOW_POSSIZE_X );
// ensure the toolbar is vertically centered, relative to the preview
Size aPreviewSize( m_aPreview.GetSizePixel() );
- m_aActions.SetPosSizePixel( 0, aToolbarPos.Y() + ( aPreviewSize.Height() - aToolbarSize.Height() ) / 2, 0, 0, WINDOW_POSSIZE_Y );
+ m_aActions.setPosSizePixel( 0, aToolbarPos.Y() + ( aPreviewSize.Height() - aToolbarSize.Height() ) / 2, 0, 0, WINDOW_POSSIZE_Y );
m_pBtnUpdaterBackgroundColor = new ::svx::ToolboxButtonColorUpdater(
SID_BACKGROUND_COLOR, SID_BACKGROUND_COLOR, &m_aActions );
@@ -490,27 +490,27 @@ void Condition::impl_layoutAll()
const Point aRow3( LogicToPixel( Point( 0, ROW_3_POS ), MAP_APPFONT ) );
// resize the header line
- m_aHeader.SetPosSizePixel( 0, 0, aSize.Width() - 2 * aRelatedControls.Width(), 0, WINDOW_POSSIZE_WIDTH );
+ m_aHeader.setPosSizePixel( 0, 0, aSize.Width() - 2 * aRelatedControls.Width(), 0, WINDOW_POSSIZE_WIDTH );
// position the up/down buttons
const Size aButtonSize( LogicToPixel( Size( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ), MAP_APPFONT ) );
Point aButtonPos( aSize.Width() - aUnrelatedControls.Width() - aButtonSize.Width(), aRow1.Y() );
- m_aMoveUp.SetPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
+ m_aMoveUp.setPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
aButtonPos.Move( 0, aButtonSize.Height() + aRelatedControls.Height() );
- m_aMoveDown.SetPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
+ m_aMoveDown.setPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
// resize the preview
const long nNewPreviewRight = aButtonPos.X() - aRelatedControls.Width();
const Point aPreviewPos( m_aPreview.GetPosPixel() );
OSL_ENSURE( aPreviewPos.X() < nNewPreviewRight, "Condition::impl_layoutAll: being *that* small should not be allowed!" );
- m_aPreview.SetPosSizePixel( 0, 0, nNewPreviewRight - aPreviewPos.X(), 0, WINDOW_POSSIZE_WIDTH );
+ m_aPreview.setPosSizePixel( 0, 0, nNewPreviewRight - aPreviewPos.X(), 0, WINDOW_POSSIZE_WIDTH );
// position the add/remove buttons
aButtonPos = Point( nNewPreviewRight - aButtonSize.Width(), aRow3.Y() );
- m_aRemoveCondition.SetPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
+ m_aRemoveCondition.setPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
aButtonPos.Move( -( aButtonSize.Width() + aRelatedControls.Width() ), 0 );
- m_aAddCondition.SetPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
+ m_aAddCondition.setPosSizePixel( aButtonPos.X(), aButtonPos.Y(), aButtonSize.Width(), aButtonSize.Height() );
// layout the operands input controls
impl_layoutOperands();
@@ -551,7 +551,7 @@ void Condition::impl_layoutOperands()
const Rectangle aCondTypeRect( m_aConditionType.GetPosPixel(), m_aConditionType.GetSizePixel() );
const Point aOpListPos( aCondTypeRect.Right() + aRelatedControls.Width(), aCondTypeRect.Top() );
const Size aOpListSize( LogicToPixel( Size( COND_OP_WIDTH, 60 ), MAP_APPFONT ) );
- m_aOperationList.SetPosSizePixel( aOpListPos.X(), aOpListPos.Y(),aOpListSize.Width(), aOpListSize.Height() );
+ m_aOperationList.setPosSizePixel( aOpListPos.X(), aOpListPos.Y(),aOpListSize.Width(), aOpListSize.Height() );
m_aOperationList.Show( !bIsExpression );
// the LHS input field
@@ -561,19 +561,19 @@ void Condition::impl_layoutOperands()
Size aLHSSize( LogicToPixel( Size( EDIT_WIDTH, EDIT_HEIGHT ), MAP_APPFONT ) );
if ( !bHaveRHS )
aLHSSize.Width() = aPreviewRect.Right() - aLHSPos.X();
- m_aCondLHS.SetPosSizePixel( aLHSPos.X(), aLHSPos.Y(), aLHSSize.Width(), aLHSSize.Height() );
+ m_aCondLHS.setPosSizePixel( aLHSPos.X(), aLHSPos.Y(), aLHSSize.Width(), aLHSSize.Height() );
if ( bHaveRHS )
{
// the "and" text being the glue between LHS and RHS
const Point aOpGluePos( aLHSPos.X() + aLHSSize.Width() + aRelatedControls.Width(), aLHSPos.Y() );
const Size aOpGlueSize( m_aOperandGlue.GetTextWidth( m_aOperandGlue.GetText() ) + aRelatedControls.Width(), aLHSSize.Height() );
- m_aOperandGlue.SetPosSizePixel( aOpGluePos.X(), aOpGluePos.Y(), aOpGlueSize.Width(), aOpGlueSize.Height() );
+ m_aOperandGlue.setPosSizePixel( aOpGluePos.X(), aOpGluePos.Y(), aOpGlueSize.Width(), aOpGlueSize.Height() );
// the RHS input field
const Point aRHSPos( aOpGluePos.X() + aOpGlueSize.Width() + aRelatedControls.Width(), aOpGluePos.Y() );
const Size aRHSSize( aPreviewRect.Right() - aRHSPos.X(), aLHSSize.Height() );
- m_aCondRHS.SetPosSizePixel( aRHSPos.X(), aRHSPos.Y(), aRHSSize.Width(), aRHSSize.Height() );
+ m_aCondRHS.setPosSizePixel( aRHSPos.X(), aRHSPos.Y(), aRHSSize.Width(), aRHSSize.Height() );
}
m_aOperandGlue.Show( bHaveRHS );
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx
index 2032cd446220..90c40438fa70 100644
--- a/sc/source/ui/dbgui/csvruler.cxx
+++ b/sc/source/ui/dbgui/csvruler.cxx
@@ -124,12 +124,12 @@ ScCsvRuler::~ScCsvRuler()
// common ruler handling ------------------------------------------------------
-void ScCsvRuler::SetPosSizePixel(
+void ScCsvRuler::setPosSizePixel(
long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags )
{
if( nFlags & WINDOW_POSSIZE_HEIGHT )
nHeight = GetTextHeight() + mnSplitSize + 2;
- ScCsvControl::SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ ScCsvControl::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
void ScCsvRuler::ApplyLayout( const ScCsvLayoutData& rOldData )
diff --git a/sc/source/ui/dbgui/csvtablebox.cxx b/sc/source/ui/dbgui/csvtablebox.cxx
index 389ec74f895f..d43a8ed3b875 100644
--- a/sc/source/ui/dbgui/csvtablebox.cxx
+++ b/sc/source/ui/dbgui/csvtablebox.cxx
@@ -127,29 +127,29 @@ void ScCsvTableBox::InitControls()
if( mbFixedMode )
{
// ruler sets height internally
- maRuler.SetPosSizePixel( 0, 0, nDataWidth, 0 );
+ maRuler.setPosSizePixel( 0, 0, nDataWidth, 0 );
sal_Int32 nY = maRuler.GetSizePixel().Height();
maData.mnWinHeight -= nY;
- maGrid.SetPosSizePixel( 0, nY, nDataWidth, maData.mnWinHeight );
+ maGrid.setPosSizePixel( 0, nY, nDataWidth, maData.mnWinHeight );
}
else
- maGrid.SetPosSizePixel( 0, 0, nDataWidth, nDataHeight );
+ maGrid.setPosSizePixel( 0, 0, nDataWidth, nDataHeight );
maGrid.Show();
maRuler.Show( mbFixedMode );
// scrollbars always visible
- maHScroll.SetPosSizePixel( 0, nDataHeight, nDataWidth, nScrollBarSize );
+ maHScroll.setPosSizePixel( 0, nDataHeight, nDataWidth, nScrollBarSize );
InitHScrollBar();
maHScroll.Show();
// scrollbars always visible
- maVScroll.SetPosSizePixel( nDataWidth, 0, nScrollBarSize, nDataHeight );
+ maVScroll.setPosSizePixel( nDataWidth, 0, nScrollBarSize, nDataHeight );
InitVScrollBar();
maVScroll.Show();
bool bScrBox = maHScroll.IsVisible() && maVScroll.IsVisible();
if( bScrBox )
- maScrollBox.SetPosSizePixel( nDataWidth, nDataHeight, nScrollBarSize, nScrollBarSize );
+ maScrollBox.setPosSizePixel( nDataWidth, nDataHeight, nScrollBarSize, nScrollBarSize );
maScrollBox.Show( bScrBox );
// let the controls self-adjust to visible area
diff --git a/sc/source/ui/inc/csvruler.hxx b/sc/source/ui/inc/csvruler.hxx
index 2a73bea43c59..dcd2faf8e732 100644
--- a/sc/source/ui/inc/csvruler.hxx
+++ b/sc/source/ui/inc/csvruler.hxx
@@ -64,9 +64,8 @@ public:
// common ruler handling --------------------------------------------------
public:
- using Window::SetPosSizePixel;
/** Sets position and size of the ruler. The height is calculated internally. */
- virtual void SetPosSizePixel(
+ virtual void setPosSizePixel(
long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 794ba05448a2..41bb0eda8e24 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -672,7 +672,7 @@ ScNavigatorDlg::ScNavigatorDlg( SfxBindings* pB, SfxChildWindowContext* pCW, Win
long nListboxYPos =
Max( aTbxCmd.GetPosPixel().Y() + aTbxCmd.GetSizePixel().Height(),
aEdRow.GetPosPixel().Y() + aEdRow.GetSizePixel().Height() ) + 4;
- aLbEntries.SetPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y);
+ aLbEntries.setPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y);
nBorderOffset = aLbEntries.GetPosPixel().X();
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 5db3c269a050..2041e3733eda 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -415,8 +415,8 @@ void DropdownMenuBox::Resize()
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
nSBWidth = CalcZoom( nSBWidth );
- mpSubControl->SetPosSizePixel( 0, 1, aOutSz.Width() - nSBWidth, aOutSz.Height()-2 );
- mpDropdownButton->SetPosSizePixel( aOutSz.Width() - nSBWidth, 0, nSBWidth, aOutSz.Height() );
+ mpSubControl->setPosSizePixel( 0, 1, aOutSz.Width() - nSBWidth, aOutSz.Height()-2 );
+ mpDropdownButton->setPosSizePixel( aOutSz.Width() - nSBWidth, 0, nSBWidth, aOutSz.Height() );
}
// --------------------------------------------------------------------
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
index 7604ca4348ec..fea2e8f69aee 100644
--- a/sd/source/ui/annotations/annotationwindow.cxx
+++ b/sd/source/ui/annotations/annotationwindow.cxx
@@ -414,12 +414,12 @@ void AnnotationWindow::DoResize()
mpVScrollbar->Hide();
}
- mpTextWindow->SetPosSizePixel(0,0,aWidth, aHeight);
+ mpTextWindow->setPosSizePixel(0,0,aWidth, aHeight);
if( mbReadonly )
- mpMeta->SetPosSizePixel(0,aHeight,GetSizePixel().Width(),POSTIT_META_HEIGHT);
+ mpMeta->setPosSizePixel(0,aHeight,GetSizePixel().Width(),POSTIT_META_HEIGHT);
else
- mpMeta->SetPosSizePixel(0,aHeight,GetSizePixel().Width()-METABUTTON_AREA_WIDTH,POSTIT_META_HEIGHT);
+ mpMeta->setPosSizePixel(0,aHeight,GetSizePixel().Width()-METABUTTON_AREA_WIDTH,POSTIT_META_HEIGHT);
mpOutliner->SetPaperSize( PixelToLogic( Size(aWidth,aHeight) ) ) ;
mpOutlinerView->SetOutputArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) );
@@ -427,7 +427,7 @@ void AnnotationWindow::DoResize()
{ // if we do not have a scrollbar anymore, we want to see the complete text
mpOutlinerView->SetVisArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) );
}
- mpVScrollbar->SetPosSizePixel( 0 + aWidth, 0, GetScrollbarWidth(), aHeight );
+ mpVScrollbar->setPosSizePixel( 0 + aWidth, 0, GetScrollbarWidth(), aHeight );
mpVScrollbar->SetVisibleSize( PixelToLogic(Size(0,aHeight)).Height() );
mpVScrollbar->SetPageSize( PixelToLogic(Size(0,aHeight)).Height() * 8 / 10 );
mpVScrollbar->SetLineSize( mpOutliner->GetTextHeight() / 10 );
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index cda0fbd31a7c..e25fb1da37a0 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -110,7 +110,7 @@ SdNavigatorWin::SdNavigatorWin(
// TreeListBox
// set position below toolbox
long nListboxYPos = maToolbox.GetPosPixel().Y() + maToolbox.GetSizePixel().Height() + 4;
- maTlbObjects.SetPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
+ maTlbObjects.setPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
maTlbObjects.SetDoubleClickHdl( LINK( this, SdNavigatorWin, ClickObjectHdl ) );
maTlbObjects.SetSelectionMode( SINGLE_SELECTION );
// set focus to listbox, otherwise it is in the toolbox which is only useful
@@ -121,7 +121,7 @@ SdNavigatorWin::SdNavigatorWin(
maLbDocs.SetSelectHdl( LINK( this, SdNavigatorWin, SelectDocumentHdl ) );
// set position below treelistbox
nListboxYPos = maTlbObjects.GetPosPixel().Y() + maTlbObjects.GetSizePixel().Height() + 4;
- maLbDocs.SetPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
+ maLbDocs.setPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
// set min outputsize after all sizes are known
long nFullHeight = nListboxYPos + maLbDocs.GetSizePixel().Height() + 4;
diff --git a/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl.cxx b/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl.cxx
index 93bc99dbc927..fec30579bb16 100644
--- a/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl.cxx
+++ b/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl.cxx
@@ -619,7 +619,7 @@ bool OGLTransitionerImpl::initWindowFromSlideShowView( const Reference< presenta
return false;
awt::Rectangle aCanvasArea = mxView->getCanvasArea();
- pWindow->SetPosSizePixel(aCanvasArea.X, aCanvasArea.Y, aCanvasArea.Width, aCanvasArea.Height);
+ pWindow->setPosSizePixel(aCanvasArea.X, aCanvasArea.Y, aCanvasArea.Width, aCanvasArea.Height);
GLWin.Width = aCanvasArea.Width;
GLWin.Height = aCanvasArea.Height;
SAL_INFO("slideshow.opengl", "canvas area: " << aCanvasArea.X << "," << aCanvasArea.Y << " - " << aCanvasArea.Width << "x" << aCanvasArea.Height);
diff --git a/svtools/inc/svtools/fileview.hxx b/svtools/inc/svtools/fileview.hxx
index 4778bd9a6e0f..00e8cd99273e 100644
--- a/svtools/inc/svtools/fileview.hxx
+++ b/svtools/inc/svtools/fileview.hxx
@@ -103,7 +103,6 @@ public:
void SetHelpId( const rtl::OString& rHelpId );
const rtl::OString& GetHelpId( ) const;
void SetSizePixel( const Size& rNewSize );
- using Window::SetPosSizePixel;
virtual void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize );
void SetSortColumn( sal_Bool bValue ) { bSortColumn = bValue; }
sal_Bool GetSortColumn() { return bSortColumn; }
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index c985e6406767..c5a7514e6cf0 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -2381,7 +2381,7 @@ void ImplCFieldFloatWin::ArrangeButtons()
mpFixedLine->Show();
}
long nLineWidth = aOutSize.Width()-(CALFIELD_BORDERLINE_X*2);
- mpFixedLine->SetPosSizePixel( (aOutSize.Width()-nLineWidth)/2, aOutSize.Height()+((CALFIELD_BORDER_YTOP-2)/2),
+ mpFixedLine->setPosSizePixel( (aOutSize.Width()-nLineWidth)/2, aOutSize.Height()+((CALFIELD_BORDER_YTOP-2)/2),
nLineWidth, 2, WINDOW_POSSIZE_POSSIZE );
aOutSize.Height() += nBtnHeight + (CALFIELD_BORDER_Y*2) + CALFIELD_BORDER_YTOP;
SetOutputSizePixel( aOutSize );
diff --git a/svtools/source/control/filectrl.cxx b/svtools/source/control/filectrl.cxx
index 5af9c8037f35..734b6842f374 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -172,8 +172,8 @@ void FileControl::Resize()
}
long nButtonWidth = nButtonTextWidth+ButtonBorder;
- maEdit.SetPosSizePixel( 0, 0, aOutSz.Width()-nButtonWidth, aOutSz.Height() );
- maButton.SetPosSizePixel( aOutSz.Width()-nButtonWidth, 0, nButtonWidth, aOutSz.Height() );
+ maEdit.setPosSizePixel( 0, 0, aOutSz.Width()-nButtonWidth, aOutSz.Height() );
+ maButton.setPosSizePixel( aOutSz.Width()-nButtonWidth, 0, nButtonWidth, aOutSz.Height() );
mnInternalFlags &= ~FILECTRL_INRESIZE; //InResize = sal_False
}
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index c09656386208..0cbaa997536e 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -2334,7 +2334,7 @@ sal_Bool TabBar::StartEditMode( sal_uInt16 nPageId )
nWidth = aRect.GetWidth();
}
mpEdit->SetText( GetPageText( mnEditId ) );
- mpEdit->SetPosSizePixel( nX, aRect.Top()+mnOffY+1, nWidth, aRect.GetHeight()-3 );
+ mpEdit->setPosSizePixel( nX, aRect.Top()+mnOffY+1, nWidth, aRect.GetHeight()-3 );
Font aFont = GetPointFont();
Color aForegroundColor;
Color aBackgroundColor;
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 95d5e6b6d889..f8327bbf2bda 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -215,7 +215,7 @@ void ValueSet::ImplInitScrollBar()
{
// adapt the width because of the changed settings
long nScrBarWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
- mpScrBar->SetPosSizePixel( 0, 0, nScrBarWidth, 0, WINDOW_POSSIZE_WIDTH );
+ mpScrBar->setPosSizePixel( 0, 0, nScrBarWidth, 0, WINDOW_POSSIZE_WIDTH );
}
}
}
diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx
index 66e7c73e9b19..82ded06268bb 100644
--- a/svtools/source/dialogs/wizdlg.cxx
+++ b/svtools/source/dialogs/wizdlg.cxx
@@ -184,7 +184,7 @@ void WizardDialog::ImplPosCtrls()
if ( mpFixedLine && mpFixedLine->IsVisible() )
{
nOffY -= mpFixedLine->GetSizePixel().Height();
- mpFixedLine->SetPosSizePixel( 0, nOffY, aDlgSize.Width(), 0,
+ mpFixedLine->setPosSizePixel( 0, nOffY, aDlgSize.Width(), 0,
WINDOW_POSSIZE_POS | WINDOW_POSSIZE_WIDTH );
}
@@ -233,7 +233,7 @@ void WizardDialog::ImplPosCtrls()
nViewHeight = nDlgHeight-(WIZARDDIALOG_VIEW_DLGOFFSET_Y*2);
nViewPosFlags |= WINDOW_POSSIZE_HEIGHT;
}
- mpViewWindow->SetPosSizePixel( nViewOffX, nViewOffY,
+ mpViewWindow->setPosSizePixel( nViewOffX, nViewOffY,
nViewWidth, nViewHeight,
nViewPosFlags );
}
diff --git a/svtools/source/hatchwindow/hatchwindow.cxx b/svtools/source/hatchwindow/hatchwindow.cxx
index 4f24e4e2e6c8..fd026b7eba8b 100644
--- a/svtools/source/hatchwindow/hatchwindow.cxx
+++ b/svtools/source/hatchwindow/hatchwindow.cxx
@@ -64,7 +64,7 @@ void VCLXHatchWindow::initializeWindow( const uno::Reference< awt::XWindowPeer >
throw lang::IllegalArgumentException(); // TODO
pHatchWindow = new SvResizeWindow( pParent, this );
- pHatchWindow->SetPosSizePixel( aBounds.X, aBounds.Y, aBounds.Width, aBounds.Height );
+ pHatchWindow->setPosSizePixel( aBounds.X, aBounds.Y, aBounds.Width, aBounds.Height );
aHatchBorderSize = aSize;
pHatchWindow->SetHatchBorderPixel( Size( aSize.Width, aSize.Height ) );
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 4ba87f375966..409d5cba61af 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -494,7 +494,7 @@ void SvxShowCharSet::SetFont( const Font& rFont )
if( bNeedVscroll)
{
- aVscrollSB.SetPosSizePixel( nX * COLUMN_COUNT, 0, SBWIDTH, nY * ROW_COUNT );
+ aVscrollSB.setPosSizePixel( nX * COLUMN_COUNT, 0, SBWIDTH, nY * ROW_COUNT );
aVscrollSB.SetRangeMin( 0 );
int nLastRow = (maFontCharMap.GetCharCount() - 1 + COLUMN_COUNT) / COLUMN_COUNT;
aVscrollSB.SetRangeMax( nLastRow );
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index 4c6cf8413ed8..59126ffc1643 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -631,7 +631,7 @@ PluginProgressWindow::PluginProgressWindow( Window*
Show();
Size aParentSize = pParent->GetSizePixel();
// align the progressbar to its parent
- SetPosSizePixel( -9, 0, aParentSize.Width() + 15, aParentSize.Height() - 4 );
+ setPosSizePixel( -9, 0, aParentSize.Width() + 15, aParentSize.Height() - 4 );
}
//===============================================
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index a3809b7ab8b2..67e67aa12d9c 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1326,7 +1326,7 @@ SvxLineWindow_Impl::SvxLineWindow_Impl( sal_uInt16 nId, const Reference< XFrame
{
}
- m_aLineStyleLb.SetPosSizePixel( 2, 2, 110, 140 );
+ m_aLineStyleLb.setPosSizePixel( 2, 2, 110, 140 );
SetOutputSizePixel( Size( 114, 144 ) );
m_aLineStyleLb.SetSourceUnit( FUNIT_TWIP );
diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx
index a0362c11f8e2..d59dd6f759bb 100644
--- a/sw/source/ui/docvw/SidebarWin.cxx
+++ b/sw/source/ui/docvw/SidebarWin.cxx
@@ -599,11 +599,11 @@ void SwSidebarWin::DoResize()
{
const Size aSizeOfMetadataControls( GetSizePixel().Width() - GetMetaButtonAreaWidth(),
GetMetaHeight()/2 );
- mpMetadataAuthor->SetPosSizePixel( 0,
+ mpMetadataAuthor->setPosSizePixel( 0,
aHeight,
aSizeOfMetadataControls.Width(),
aSizeOfMetadataControls.Height() );
- mpMetadataDate->SetPosSizePixel( 0,
+ mpMetadataDate->setPosSizePixel( 0,
aHeight + aSizeOfMetadataControls.Height(),
aSizeOfMetadataControls.Width(),
aSizeOfMetadataControls.Height() );
@@ -618,15 +618,15 @@ void SwSidebarWin::DoResize()
if (!Application::GetSettings().GetLayoutRTL())
{
- mpSidebarTxtControl->SetPosSizePixel(0, 0, aWidth, aHeight);
- mpVScrollbar->SetPosSizePixel( aWidth, 0, GetScrollbarWidth(), aHeight);
+ mpSidebarTxtControl->setPosSizePixel(0, 0, aWidth, aHeight);
+ mpVScrollbar->setPosSizePixel( aWidth, 0, GetScrollbarWidth(), aHeight);
}
else
{
- mpSidebarTxtControl->SetPosSizePixel( ( (aTextHeight > aHeight) && !IsPreview()
+ mpSidebarTxtControl->setPosSizePixel( ( (aTextHeight > aHeight) && !IsPreview()
? GetScrollbarWidth() : 0 ) , 0,
aWidth, aHeight);
- mpVScrollbar->SetPosSizePixel( 0, 0, GetScrollbarWidth(), aHeight);
+ mpVScrollbar->setPosSizePixel( 0, 0, GetScrollbarWidth(), aHeight);
}
mpVScrollbar->SetVisibleSize( PixelToLogic(Size(0,aHeight)).Height() );
@@ -660,7 +660,7 @@ void SwSidebarWin::DoResize()
{
const Rectangle aRectMetaButtonPixel( LogicToPixel( aRectMetaButton ) );
- mpMenuButton->SetPosSizePixel( aRectMetaButtonPixel.Left(),
+ mpMenuButton->setPosSizePixel( aRectMetaButtonPixel.Left(),
aRectMetaButtonPixel.Top(),
aRectMetaButtonPixel.GetWidth(),
aRectMetaButtonPixel.GetHeight() );
diff --git a/sw/source/ui/inc/scroll.hxx b/sw/source/ui/inc/scroll.hxx
index 2bc813af7269..c73f9f762f21 100644
--- a/sw/source/ui/inc/scroll.hxx
+++ b/sw/source/ui/inc/scroll.hxx
@@ -40,7 +40,6 @@ class SwScrollbar: public ScrollBar
void AutoShow();
using Window::Hide;
- using Window::SetPosSizePixel;
using Window::IsVisible;
public:
diff --git a/sw/source/ui/utlui/navipi.cxx b/sw/source/ui/utlui/navipi.cxx
index d04e6a5778cb..1847ae927fd1 100644
--- a/sw/source/ui/utlui/navipi.cxx
+++ b/sw/source/ui/utlui/navipi.cxx
@@ -677,7 +677,7 @@ void SwNavigationPI::Resize()
// GlobalTree faengt weiter oben an und reicht bis ganz unten
aNewSize.Height() += (nDist + nDocLBIniHeight + aPos.Y() - aGlobalTree.GetPosPixel().Y());
aGlobalTree.SetSizePixel(aNewSize);
- aDocListBox.SetPosSizePixel( aLBPos.X(), aLBPos.Y(),
+ aDocListBox.setPosSizePixel( aLBPos.X(), aLBPos.Y(),
aDocLBSz.Width(), aDocLBSz.Height(),
WINDOW_POSSIZE_X|WINDOW_POSSIZE_Y|WINDOW_POSSIZE_WIDTH);
@@ -795,7 +795,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings,
)
((SfxDockingWindow*)pParent)->SetOutputSizePixel(aMinSize);
- aContentTree.SetPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
+ aContentTree.setPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
aContentTree.SetStyle( aContentTree.GetStyle()|WB_HASBUTTONS|WB_HASBUTTONSATROOT|
WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE );
aContentTree.SetSpaceBetweenEntries(3);
@@ -808,7 +808,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings,
aContentToolBox.CheckItem(FN_SHOW_CONTENT_BOX, sal_True);
// TreeListBox fuer Globaldokument
- aGlobalTree.SetPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
+ aGlobalTree.setPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y );
aGlobalTree.SetSelectionMode( MULTIPLE_SELECTION );
aGlobalTree.SetStyle( aGlobalTree.GetStyle()|WB_HASBUTTONS|WB_HASBUTTONSATROOT|
WB_CLIPCHILDREN|WB_HSCROLL );
diff --git a/sw/source/ui/utlui/textcontrolcombo.cxx b/sw/source/ui/utlui/textcontrolcombo.cxx
index 3293b2587b55..7b2de851c976 100644
--- a/sw/source/ui/utlui/textcontrolcombo.cxx
+++ b/sw/source/ui/utlui/textcontrolcombo.cxx
@@ -75,7 +75,7 @@ void TextControlCombo::Arrange( FixedText& _rFTcomplete, sal_Bool /*bShow*/ )
long nWidth = GetTextWidth( aTxtBefore );
mrFTbefore.SetText( aTxtBefore );
- mrFTbefore.SetPosSizePixel( nX, nYFT, nWidth, nTextHeight );
+ mrFTbefore.setPosSizePixel( nX, nYFT, nWidth, nTextHeight );
nX += nWidth;
nX += aMetricVals.Width();
@@ -84,7 +84,7 @@ void TextControlCombo::Arrange( FixedText& _rFTcomplete, sal_Bool /*bShow*/ )
nX += mrCtrl.GetSizePixel().Width();
nX += aMetricVals.Width();
mrFTafter.SetText( aTxtAfter );
- mrFTafter.SetPosSizePixel( nX, nYFT, GetTextWidth( aTxtAfter ), nTextHeight );
+ mrFTafter.setPosSizePixel( nX, nYFT, GetTextWidth( aTxtAfter ), nTextHeight );
_rFTcomplete.Hide();
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index ef78d265ef40..9d7cb73078c8 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -1011,7 +1011,7 @@ void VCLXWindow::setPosSize( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int3
if( Window::GetDockingManager()->IsDockable( GetWindow() ) )
Window::GetDockingManager()->SetPosSizePixel( GetWindow() , X, Y, Width, Height, Flags );
else
- GetWindow()->SetPosSizePixel( X, Y, Width, Height, Flags );
+ GetWindow()->setPosSizePixel( X, Y, Width, Height, Flags );
}
}
diff --git a/vcl/inc/ilstbox.hxx b/vcl/inc/ilstbox.hxx
index 3743a3c7309d..5cd3a973c0ba 100644
--- a/vcl/inc/ilstbox.hxx
+++ b/vcl/inc/ilstbox.hxx
@@ -556,7 +556,7 @@ public:
Size CalcFloatSize();
void StartFloat( sal_Bool bStartTracking );
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void setPosSizePixel( long nX, long nY,
long nWidth, long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{ FloatingWindow::SetPosSizePixel( rNewPos, rNewSize ); }
diff --git a/vcl/inc/vcl/combobox.hxx b/vcl/inc/vcl/combobox.hxx
index 85d4e20cc71a..78fd8a83c12e 100644
--- a/vcl/inc/vcl/combobox.hxx
+++ b/vcl/inc/vcl/combobox.hxx
@@ -105,11 +105,11 @@ public:
virtual const Wallpaper& GetDisplayBackground() const;
- virtual void SetPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
+ virtual void setPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{ Edit::SetPosSizePixel( rNewPos, rNewSize ); }
void SetDropDownSizePixel( const Size& rNewSize )
- { if( IsDropDownBox() ) SetPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(), WINDOW_POSSIZE_SIZE | WINDOW_POSSIZE_DROPDOWN ); }
+ { if( IsDropDownBox() ) setPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(), WINDOW_POSSIZE_SIZE | WINDOW_POSSIZE_DROPDOWN ); }
Rectangle GetDropDownPosSizePixel() const;
diff --git a/vcl/inc/vcl/dialog.hxx b/vcl/inc/vcl/dialog.hxx
index 70a43c3a6c2d..20ffd5550039 100644
--- a/vcl/inc/vcl/dialog.hxx
+++ b/vcl/inc/vcl/dialog.hxx
@@ -58,7 +58,6 @@ private:
sal_Bool mbOldSaveBack;
sal_Bool mbInClose;
sal_Bool mbModalMode;
- int m_nBorderWidth;
Timer maLayoutTimer;
SAL_DLLPRIVATE void ImplInitDialogData();
@@ -103,16 +102,6 @@ public:
void setInitialLayoutSize();
virtual bool set_property(const rtl::OString &rKey, const rtl::OString &rValue);
- void set_border_width(int nBorderWidth)
- {
- m_nBorderWidth = nBorderWidth;
- }
- int get_border_width() const
- {
- return m_nBorderWidth;
- }
-
-
virtual sal_Bool Close();
virtual short Execute();
diff --git a/vcl/inc/vcl/dockwin.hxx b/vcl/inc/vcl/dockwin.hxx
index 7726e9fb70c9..5b16b84fe033 100644
--- a/vcl/inc/vcl/dockwin.hxx
+++ b/vcl/inc/vcl/dockwin.hxx
@@ -183,7 +183,7 @@ public:
void SetFloatStyle( WinBits nWinStyle );
WinBits GetFloatStyle() const;
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
void SetPosSizePixel( const Point& rNewPos,
@@ -340,7 +340,7 @@ public:
void SetFloatStyle( WinBits nWinStyle );
WinBits GetFloatStyle() const;
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
void SetPosSizePixel( const Point& rNewPos,
diff --git a/vcl/inc/vcl/layout.hxx b/vcl/inc/vcl/layout.hxx
index 1d1653aeb71f..9c89ce98efd0 100644
--- a/vcl/inc/vcl/layout.hxx
+++ b/vcl/inc/vcl/layout.hxx
@@ -38,7 +38,6 @@ class VCL_DLLPUBLIC VclContainer : public Window
public:
VclContainer(Window *pParent);
virtual Size GetOptimalSize(WindowSizeType eType) const;
- using Window::SetPosSizePixel;
virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize);
virtual void SetPosPixel(const Point& rAllocPos);
virtual void SetSizePixel(const Size& rAllocation);
diff --git a/vcl/inc/vcl/lstbox.hxx b/vcl/inc/vcl/lstbox.hxx
index ba5ef311d6b9..314f8d78a3a9 100644
--- a/vcl/inc/vcl/lstbox.hxx
+++ b/vcl/inc/vcl/lstbox.hxx
@@ -101,12 +101,12 @@ public:
virtual const Wallpaper& GetDisplayBackground() const;
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void setPosSizePixel( long nX, long nY,
long nWidth, long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{ Control::SetPosSizePixel( rNewPos, rNewSize ); }
void SetDropDownSizePixel( const Size& rNewSize )
- { if( IsDropDownBox() ) SetPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(), WINDOW_POSSIZE_SIZE | WINDOW_POSSIZE_DROPDOWN ); }
+ { if( IsDropDownBox() ) setPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(), WINDOW_POSSIZE_SIZE | WINDOW_POSSIZE_DROPDOWN ); }
Rectangle GetDropDownPosSizePixel() const;
diff --git a/vcl/inc/vcl/tabctrl.hxx b/vcl/inc/vcl/tabctrl.hxx
index cc3d78b1124e..c10f0361e126 100644
--- a/vcl/inc/vcl/tabctrl.hxx
+++ b/vcl/inc/vcl/tabctrl.hxx
@@ -197,9 +197,9 @@ public:
// rename nOldId to nNewId);
void ReassignPageId(sal_uInt16 nOldId, sal_uInt16 nNewId);
- using Control::SetPosSizePixel;
- virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize);
+ virtual void SetPosPixel(const Point& rPos);
virtual void SetSizePixel(const Size& rNewSize);
+ virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize);
Size calculateRequisition() const;
void setAllocation(const Size &rAllocation);
diff --git a/vcl/inc/vcl/tabpage.hxx b/vcl/inc/vcl/tabpage.hxx
index ceac5014bc0d..088ef0472c08 100644
--- a/vcl/inc/vcl/tabpage.hxx
+++ b/vcl/inc/vcl/tabpage.hxx
@@ -62,9 +62,10 @@ public:
virtual void ActivatePage();
virtual void DeactivatePage();
- //To-Do, inherit from VclContainer
- using Window::SetPosSizePixel;
+ //To-Do, consider inheriting from VclContainer
virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize);
+ virtual void SetPosPixel(const Point& rNewPos);
+ virtual void SetSizePixel(const Size& rNewSize);
virtual Size GetOptimalSize(WindowSizeType eType) const;
};
diff --git a/vcl/inc/vcl/window.hxx b/vcl/inc/vcl/window.hxx
index d5924d0da759..0de41b613404 100644
--- a/vcl/inc/vcl/window.hxx
+++ b/vcl/inc/vcl/window.hxx
@@ -155,7 +155,7 @@ namespace svt { class PopupWindowControllerImpl; }
#define WINDOW_PREVTOPWINDOWSIBLING ((sal_uInt16)15)
#define WINDOW_NEXTTOPWINDOWSIBLING ((sal_uInt16)16)
-// Flags for SetPosSizePixel()
+// Flags for setPosSizePixel()
#define WINDOW_POSSIZE_X ((sal_uInt16)0x0001)
#define WINDOW_POSSIZE_Y ((sal_uInt16)0x0002)
#define WINDOW_POSSIZE_WIDTH ((sal_uInt16)0x0004)
@@ -841,7 +841,7 @@ public:
void EnableAlwaysOnTop( sal_Bool bEnable = sal_True );
sal_Bool IsAlwaysOnTopEnabled() const;
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
virtual void SetPosPixel( const Point& rNewPos );
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 3fa3b9571ee9..af949745b91c 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1173,7 +1173,7 @@ void PushButton::ImplSetDefButton( sal_Bool bSet )
ImplGetButtonState() &= ~BUTTON_DRAW_DEFAULT;
}
if( bSetPos )
- SetPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), WINDOW_POSSIZE_ALL );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), WINDOW_POSSIZE_ALL );
Invalidate();
}
@@ -3708,7 +3708,7 @@ void CheckBox::GetFocus()
aPos.Move(-1,-1);
aSize.Height() += 2;
aSize.Width() += 2;
- SetPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), WINDOW_POSSIZE_ALL );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), WINDOW_POSSIZE_ALL );
ImplDrawCheckBox();
}
else
@@ -3740,7 +3740,7 @@ void CheckBox::LoseFocus()
aPos.Move(1,1);
aSize.Height() -= 2;
aSize.Width() -= 2;
- SetPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), WINDOW_POSSIZE_ALL );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), WINDOW_POSSIZE_ALL );
ImplDrawCheckBox();
}
}
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index c7e96c7dc8e9..6801ecca6077 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -575,7 +575,7 @@ sal_uInt16 ComboBox::GetDropDownLineCount() const
// -----------------------------------------------------------------------
-void ComboBox::SetPosSizePixel( long nX, long nY, long nWidth, long nHeight,
+void ComboBox::setPosSizePixel( long nX, long nY, long nWidth, long nHeight,
sal_uInt16 nFlags )
{
if( IsDropDownBox() && ( nFlags & WINDOW_POSSIZE_SIZE ) )
@@ -591,7 +591,7 @@ void ComboBox::SetPosSizePixel( long nX, long nY, long nWidth, long nHeight,
nHeight = mnDDHeight;
}
- Edit::SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ Edit::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
// -----------------------------------------------------------------------
@@ -621,7 +621,7 @@ void ComboBox::Resize()
aPoint = pBorder->ScreenToOutputPixel( OutputToScreenPixel( aPoint ) );
aContent.Move(-aPoint.X(), -aPoint.Y());
- mpBtn->SetPosSizePixel( aContent.Left(), nTop, aContent.getWidth(), (nBottom-nTop) );
+ mpBtn->setPosSizePixel( aContent.Left(), nTop, aContent.getWidth(), (nBottom-nTop) );
// adjust the size of the edit field
if ( GetNativeControlRegion(CTRL_COMBOBOX, PART_SUB_EDIT,
@@ -645,13 +645,13 @@ void ComboBox::Resize()
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
nSBWidth = CalcZoom( nSBWidth );
mpSubEdit->SetPosSizePixel( Point( 0, 0 ), Size( aOutSz.Width() - nSBWidth, aOutSz.Height() ) );
- mpBtn->SetPosSizePixel( aOutSz.Width() - nSBWidth, nTop, nSBWidth, (nBottom-nTop) );
+ mpBtn->setPosSizePixel( aOutSz.Width() - nSBWidth, nTop, nSBWidth, (nBottom-nTop) );
}
}
else
{
mpSubEdit->SetSizePixel( Size( aOutSz.Width(), mnDDHeight ) );
- mpImplLB->SetPosSizePixel( 0, mnDDHeight, aOutSz.Width(), aOutSz.Height() - mnDDHeight );
+ mpImplLB->setPosSizePixel( 0, mnDDHeight, aOutSz.Width(), aOutSz.Height() - mnDDHeight );
if ( GetText().Len() )
ImplUpdateFloatSelection();
}
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 425fcddfd80b..1d0c14688c06 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -3141,9 +3141,9 @@ long ImplListBoxFloatingWindow::PreNotify( NotifyEvent& rNEvt )
// -----------------------------------------------------------------------
-void ImplListBoxFloatingWindow::SetPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags )
+void ImplListBoxFloatingWindow::setPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags )
{
- FloatingWindow::SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ FloatingWindow::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
// Fix #60890# ( MBA ): um auch im aufgeklappten Zustand der Listbox die Gr"o\se einfach zu einen
// Aufruf von Resize() "andern zu k"onnen, wird die Position hier ggf. angepa\t
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index 24771322a1e4..5dbef4aeefce 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -652,7 +652,7 @@ sal_uInt16 ListBox::GetDropDownLineCount() const
// -----------------------------------------------------------------------
-void ListBox::SetPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags )
+void ListBox::setPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags )
{
if( IsDropDownBox() && ( nFlags & WINDOW_POSSIZE_SIZE ) )
{
@@ -667,7 +667,7 @@ void ListBox::SetPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_
nHeight = mnDDHeight;
}
- Control::SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ Control::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
// -----------------------------------------------------------------------
@@ -700,7 +700,7 @@ void ListBox::Resize()
// use the themes drop down size for the button
aOutSz.Width() = aContent.Left();
- mpBtn->SetPosSizePixel( aContent.Left(), nTop, aContent.Right(), (nBottom-nTop) );
+ mpBtn->setPosSizePixel( aContent.Left(), nTop, aContent.Right(), (nBottom-nTop) );
// adjust the size of the edit field
if ( GetNativeControlRegion( CTRL_LISTBOX, PART_SUB_EDIT,
@@ -729,8 +729,8 @@ void ListBox::Resize()
else
{
nSBWidth = CalcZoom( nSBWidth );
- mpImplWin->SetPosSizePixel( 0, 0, aOutSz.Width() - nSBWidth, aOutSz.Height() );
- mpBtn->SetPosSizePixel( aOutSz.Width() - nSBWidth, 0, nSBWidth, aOutSz.Height() );
+ mpImplWin->setPosSizePixel( 0, 0, aOutSz.Width() - nSBWidth, aOutSz.Height() );
+ mpBtn->setPosSizePixel( aOutSz.Width() - nSBWidth, 0, nSBWidth, aOutSz.Height() );
}
}
else
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 46bfbbd1d4bb..2f21d3fe2dcb 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1304,6 +1304,13 @@ void TabControl::SetSizePixel(const Size& rNewSize)
setAllocation(rNewSize);
}
+void TabControl::SetPosPixel(const Point& rPos)
+{
+ Window::SetPosPixel(rPos);
+ if (mbLayoutDirty)
+ setAllocation(GetOutputSizePixel());
+}
+
void TabControl::Resize()
{
setAllocation(Control::GetOutputSizePixel());
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index 677962c93742..6680eea97e2f 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -438,22 +438,22 @@ void ImpSvMEdit::Resize()
if ( !mpHScrollBar )
mpTextWindow->GetTextEngine()->SetMaxTextWidth( aSz.Width() );
else
- mpHScrollBar->SetPosSizePixel( 0, aEditSize.Height()-nSBWidth, aSz.Width(), nSBWidth );
+ mpHScrollBar->setPosSizePixel( 0, aEditSize.Height()-nSBWidth, aSz.Width(), nSBWidth );
Point aTextWindowPos( maTextWindowOffset );
if ( mpVScrollBar )
{
if( Application::GetSettings().GetLayoutRTL() )
{
- mpVScrollBar->SetPosSizePixel( 0, 0, nSBWidth, aSz.Height() );
+ mpVScrollBar->setPosSizePixel( 0, 0, nSBWidth, aSz.Height() );
aTextWindowPos.X() += nSBWidth;
}
else
- mpVScrollBar->SetPosSizePixel( aEditSize.Width()-nSBWidth, 0, nSBWidth, aSz.Height() );
+ mpVScrollBar->setPosSizePixel( aEditSize.Width()-nSBWidth, 0, nSBWidth, aSz.Height() );
}
if ( mpScrollBox )
- mpScrollBox->SetPosSizePixel( aSz.Width(), aSz.Height(), nSBWidth, nSBWidth );
+ mpScrollBox->setPosSizePixel( aSz.Width(), aSz.Height(), nSBWidth, nSBWidth );
Size aTextWindowSize( aSz );
aTextWindowSize.Width() -= maTextWindowOffset.X();
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 6d05ba906783..d78a25d76c15 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -904,10 +904,10 @@ sal_Bool ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const T
{
// no move (only resize) if position did not change
if( aOldPos != aNewRect.TopLeft() )
- pBorderWindow->SetPosSizePixel( aNewRect.Left(), aNewRect.Top(),
+ pBorderWindow->setPosSizePixel( aNewRect.Left(), aNewRect.Top(),
aNewRect.GetWidth(), aNewRect.GetHeight(), WINDOW_POSSIZE_POSSIZE );
else
- pBorderWindow->SetPosSizePixel( aNewRect.Left(), aNewRect.Top(),
+ pBorderWindow->setPosSizePixel( aNewRect.Left(), aNewRect.Top(),
aNewRect.GetWidth(), aNewRect.GetHeight(), WINDOW_POSSIZE_SIZE );
pBorderWindow->ImplUpdateAll();
@@ -2049,7 +2049,7 @@ void ImplBorderWindow::Resize()
nMenuHeight = mnOrgMenuHeight;
}
mpBorderView->GetBorder( nLeftBorder, nTopBorder, nRightBorder, nBottomBorder );
- mpMenuBarWindow->SetPosSizePixel( nLeftBorder,
+ mpMenuBarWindow->setPosSizePixel( nLeftBorder,
nTopBorder,
aSize.Width()-nLeftBorder-nRightBorder,
nMenuHeight,
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 422ddce7fbea..2db5186d39b0 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -354,7 +354,6 @@ void Dialog::ImplInitDialogData()
mbInClose = sal_False;
mbModalMode = sal_False;
mnMousePositioned = 0;
- m_nBorderWidth = 0;
mpDialogImpl = new DialogImpl;
//To-Do, reuse maResizeTimer
@@ -1160,7 +1159,7 @@ void Dialog::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal
{
ImplBorderWindow aImplWin( this, WB_BORDER|WB_STDWORK, BORDERWINDOW_STYLE_OVERLAP );
aImplWin.SetText( GetText() );
- aImplWin.SetPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
+ aImplWin.setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
aImplWin.SetDisplayActive( sal_True );
aImplWin.InitView();
@@ -1184,23 +1183,27 @@ Size Dialog::GetOptimalSize(WindowSizeType eType) const
Size aSize = GetWindow(WINDOW_FIRSTCHILD)->GetOptimalSize(eType);
+ sal_Int32 nBorderWidth = get_border_width();
+
aSize.Height() += mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder
- + 2*m_nBorderWidth;
+ + 2*nBorderWidth;
aSize.Width() += mpWindowImpl->mnTopBorder + mpWindowImpl->mnBottomBorder
- + 2*m_nBorderWidth;
+ + 2*nBorderWidth;
return Window::CalcWindowSize(aSize);
}
void Dialog::setPosSizeOnContainee(Size aSize, VclContainer &rBox)
{
+ sal_Int32 nBorderWidth = get_border_width();
+
aSize.Width() -= mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder
- + 2 * m_nBorderWidth;
+ + 2 * nBorderWidth;
aSize.Height() -= mpWindowImpl->mnTopBorder + mpWindowImpl->mnBottomBorder
- + 2 * m_nBorderWidth;
+ + 2 * nBorderWidth;
- Point aPos(mpWindowImpl->mnLeftBorder + m_nBorderWidth,
- mpWindowImpl->mnTopBorder + m_nBorderWidth);
+ Point aPos(mpWindowImpl->mnLeftBorder + nBorderWidth,
+ mpWindowImpl->mnTopBorder + nBorderWidth);
rBox.SetPosSizePixel(aPos, aSize);
}
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index 2fd719393555..ac7ed59ddbda 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -82,8 +82,7 @@ public:
virtual void PopupModeEnd();
virtual void Resizing( Size& rSize );
virtual sal_Bool Close();
- using Window::SetPosSizePixel;
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
@@ -286,11 +285,11 @@ void ImplDockFloatWin2::Resize()
}
}
-void ImplDockFloatWin2::SetPosSizePixel( long nX, long nY,
+void ImplDockFloatWin2::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags )
{
- FloatingWindow::SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ FloatingWindow::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
// -----------------------------------------------------------------------
@@ -491,7 +490,7 @@ void DockingManager::SetPosSizePixel( Window *pWindow, long nX, long nY,
{
ImplDockingWindowWrapper* pWrapper = GetDockingWindowWrapper( pWindow );
if( pWrapper )
- pWrapper->SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ pWrapper->setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
Rectangle DockingManager::GetPosSizePixel( const Window *pWindow )
@@ -1436,14 +1435,14 @@ WinBits ImplDockingWindowWrapper::GetFloatStyle() const
// -----------------------------------------------------------------------
-void ImplDockingWindowWrapper::SetPosSizePixel( long nX, long nY,
+void ImplDockingWindowWrapper::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags )
{
if ( mpFloatWin )
- mpFloatWin->SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ mpFloatWin->setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
else
- GetWindow()->SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ GetWindow()->setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index ada554629edd..51eeefd4d5dc 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -919,7 +919,7 @@ WinBits DockingWindow::GetFloatStyle() const
// -----------------------------------------------------------------------
-void DockingWindow::SetPosSizePixel( long nX, long nY,
+void DockingWindow::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
sal_uInt16 nFlags )
{
@@ -927,16 +927,16 @@ void DockingWindow::SetPosSizePixel( long nX, long nY,
if( pWrapper )
{
if ( pWrapper->mpFloatWin )
- pWrapper->mpFloatWin->SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ pWrapper->mpFloatWin->setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
else
- Window::SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ Window::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
return;
}
if ( mpFloatWin )
- mpFloatWin->SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ mpFloatWin->setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
else
- Window::SetPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
+ Window::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 6cf756b17cef..c8f2e9718d51 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -3309,7 +3309,7 @@ Window* MenuBar::ImplCreate( Window* pParent, Window* pWindow, MenuBar* pMenu )
( pMenu->ImplGetSalMenu() && pMenu->ImplGetSalMenu()->VisibleMenuBar() ) )
nHeight = 0;
- pWindow->SetPosSizePixel( 0, 0, 0, nHeight, WINDOW_POSSIZE_HEIGHT );
+ pWindow->setPosSizePixel( 0, 0, 0, nHeight, WINDOW_POSSIZE_HEIGHT );
return pWindow;
}
@@ -5800,19 +5800,19 @@ void MenuBarWindow::Resize()
Size aTbxSize( aCloser.CalcWindowSizePixel() );
nX -= aTbxSize.Width();
long nTbxY = (aOutSz.Height() - aTbxSize.Height())/2;
- aCloser.SetPosSizePixel( nX, nTbxY, aTbxSize.Width(), aTbxSize.Height() );
+ aCloser.setPosSizePixel( nX, nTbxY, aTbxSize.Width(), aTbxSize.Height() );
nX -= 3;
aCloser.Show();
}
if ( aFloatBtn.IsVisible() )
{
nX -= n;
- aFloatBtn.SetPosSizePixel( nX, nY, n, n );
+ aFloatBtn.setPosSizePixel( nX, nY, n, n );
}
if ( aHideBtn.IsVisible() )
{
nX -= n;
- aHideBtn.SetPosSizePixel( nX, nY, n, n );
+ aHideBtn.setPosSizePixel( nX, nY, n, n );
}
aFloatBtn.SetSymbol( SYMBOL_FLOAT );
@@ -5882,7 +5882,7 @@ void MenuBarWindow::ImplLayoutChanged()
( pMenu->ImplGetSalMenu() && pMenu->ImplGetSalMenu()->VisibleMenuBar() ) )
nHeight = 0;
- SetPosSizePixel( 0, 0, 0, nHeight, WINDOW_POSSIZE_HEIGHT );
+ setPosSizePixel( 0, 0, 0, nHeight, WINDOW_POSSIZE_HEIGHT );
GetParent()->Resize();
Invalidate();
Resize();
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index ac6a28d78b48..c7d584a055f5 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -801,7 +801,7 @@ void SystemWindow::SetWindowStateData( const WindowStateData& rData )
nY = 0;
if( nY + nHeight > (long) rGeom.nHeight )
nY = rGeom.nHeight - nHeight;
- SetPosSizePixel( nX, nY, nWidth, nHeight, nPosSize );
+ setPosSizePixel( nX, nY, nWidth, nHeight, nPosSize );
maOrgSize = Size( nWidth, nHeight );
// 91625 - ignore Minimize
diff --git a/vcl/source/window/tabdlg.cxx b/vcl/source/window/tabdlg.cxx
index 6a04f6e5de76..e2efaea235b1 100644
--- a/vcl/source/window/tabdlg.cxx
+++ b/vcl/source/window/tabdlg.cxx
@@ -149,7 +149,7 @@ void TabDialog::ImplPosControls()
nBtnEx = aViewSize.Width()+IMPL_DIALOG_OFFSET;
}
- mpViewWindow->SetPosSizePixel( nViewOffX, nViewOffY,
+ mpViewWindow->setPosSizePixel( nViewOffX, nViewOffY,
nViewWidth, nViewHeight,
nViewPosFlags );
}
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index c9f5ffff0270..d3395fd3dd8a 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -237,4 +237,18 @@ void TabPage::SetPosSizePixel(const Point& rAllocPos, const Size& rAllocation)
GetWindow(WINDOW_FIRSTCHILD)->SetPosSizePixel(Point(0, 0), rAllocation);
}
+void TabPage::SetSizePixel(const Size& rAllocation)
+{
+ Window::SetSizePixel(rAllocation);
+ if (isLayoutEnabled())
+ GetWindow(WINDOW_FIRSTCHILD)->SetPosSizePixel(Point(0, 0), rAllocation);
+}
+
+void TabPage::SetPosPixel(const Point& rAllocPos)
+{
+ Window::SetPosPixel(rAllocPos);
+ if (isLayoutEnabled())
+ GetWindow(WINDOW_FIRSTCHILD)->SetPosSizePixel(Point(0, 0), GetOutputSizePixel());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index f00cbea70c23..556cfa777708 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -5510,7 +5510,7 @@ void Window::SetBorderStyle( sal_uInt16 nBorderStyle )
// set us to the position and size of our previous border
Point aBorderPos( pBorderWin->GetPosPixel() );
Size aBorderSize( pBorderWin->GetSizePixel() );
- SetPosSizePixel( aBorderPos.X(), aBorderPos.Y(), aBorderSize.Width(), aBorderSize.Height() );
+ setPosSizePixel( aBorderPos.X(), aBorderPos.Y(), aBorderSize.Width(), aBorderSize.Height() );
// release border window
delete pBorderWin;
@@ -7066,7 +7066,7 @@ void Window::EnableAlwaysOnTop( sal_Bool bEnable )
// -----------------------------------------------------------------------
-void Window::SetPosSizePixel( long nX, long nY,
+void Window::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight, sal_uInt16 nFlags )
{
DBG_CHKTHIS( Window, ImplDbgCheckWindow );
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 71a627c46e85..9ceed891a7d0 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -1719,18 +1719,18 @@ VCLXWindow* Window::GetWindowPeer() const
void Window::SetPosPixel( const Point& rNewPos )
{
- SetPosSizePixel( rNewPos.X(), rNewPos.Y(), 0, 0, WINDOW_POSSIZE_POS );
+ setPosSizePixel( rNewPos.X(), rNewPos.Y(), 0, 0, WINDOW_POSSIZE_POS );
}
void Window::SetSizePixel( const Size& rNewSize )
{
- SetPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(),
+ setPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(),
WINDOW_POSSIZE_SIZE );
}
void Window::SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{
- SetPosSizePixel( rNewPos.X(), rNewPos.Y(),
+ setPosSizePixel( rNewPos.X(), rNewPos.Y(),
rNewSize.Width(), rNewSize.Height(),
WINDOW_POSSIZE_POSSIZE );
}