INTEGRATION: CWS ab33 (1.42.4); FILE MERGED

2007/01/10 16:34:48 ab 1.42.4.1: #i69280# Removed warnings
This commit is contained in:
Vladimir Glazounov
2007-01-16 15:34:25 +00:00
parent 0fb0c48ffe
commit 8f5a66e469

View File

@@ -4,9 +4,9 @@
* *
* $RCSfile: dlged.cxx,v $ * $RCSfile: dlged.cxx,v $
* *
* $Revision: 1.42 $ * $Revision: 1.43 $
* *
* last change: $Author: hr $ $Date: 2007-01-02 15:50:54 $ * last change: $Author: vg $ $Date: 2007-01-16 16:34:25 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
@@ -342,13 +342,13 @@ Reference< awt::XControlContainer > DlgEditor::GetWindowControlContainer()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void DlgEditor::SetWindow( Window* pWindow ) void DlgEditor::SetWindow( Window* pWindow_ )
{ {
DlgEditor::pWindow = pWindow; DlgEditor::pWindow = pWindow_;
pWindow->SetMapMode( MapMode( MAP_100TH_MM ) ); pWindow_->SetMapMode( MapMode( MAP_100TH_MM ) );
pDlgEdPage->SetSize( pWindow->PixelToLogic( Size( DLGED_PAGE_WIDTH_MIN, DLGED_PAGE_HEIGHT_MIN ) ) ); pDlgEdPage->SetSize( pWindow_->PixelToLogic( Size( DLGED_PAGE_WIDTH_MIN, DLGED_PAGE_HEIGHT_MIN ) ) );
pDlgEdView = new DlgEdView( pDlgEdModel, pWindow, this ); pDlgEdView = new DlgEdView( pDlgEdModel, pWindow_, this );
pDlgEdView->ShowSdrPage(pDlgEdView->GetModel()->GetPage(0)); pDlgEdView->ShowSdrPage(pDlgEdView->GetModel()->GetPage(0));
pDlgEdView->SetLayerVisible( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "HiddenLayer" ) ), FALSE ); pDlgEdView->SetLayerVisible( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "HiddenLayer" ) ), FALSE );
pDlgEdView->SetMoveSnapOnlyTopLeft( TRUE ); pDlgEdView->SetMoveSnapOnlyTopLeft( TRUE );
@@ -403,7 +403,7 @@ void DlgEditor::InitScrollBars()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void DlgEditor::DoScroll( ScrollBar* pActScroll ) void DlgEditor::DoScroll( ScrollBar* )
{ {
if( !pHScroll || !pVScroll ) if( !pHScroll || !pVScroll )
return; return;
@@ -616,9 +616,9 @@ IMPL_LINK( DlgEditor, PaintTimeout, Timer *, EMPTYARG )
Size aSize = pWindow->PixelToLogic( Size( 400, 300 ) ); Size aSize = pWindow->PixelToLogic( Size( 400, 300 ) );
// align with grid // align with grid
Size aGridSize(long(pDlgEdView->GetSnapGridWidthX()), long(pDlgEdView->GetSnapGridWidthY())); Size aGridSize_(long(pDlgEdView->GetSnapGridWidthX()), long(pDlgEdView->GetSnapGridWidthY()));
aSize.Width() -= aSize.Width() % aGridSize.Width(); aSize.Width() -= aSize.Width() % aGridSize_.Width();
aSize.Height() -= aSize.Height() % aGridSize.Height(); aSize.Height() -= aSize.Height() % aGridSize_.Height();
Point aPos; Point aPos;
Size aOutSize = pWindow->GetOutputSize(); Size aOutSize = pWindow->GetOutputSize();
@@ -626,16 +626,16 @@ IMPL_LINK( DlgEditor, PaintTimeout, Timer *, EMPTYARG )
aPos.Y() = (aOutSize.Height()>>1) - (aSize.Height()>>1); aPos.Y() = (aOutSize.Height()>>1) - (aSize.Height()>>1);
// align with grid // align with grid
aPos.X() -= aPos.X() % aGridSize.Width(); aPos.X() -= aPos.X() % aGridSize_.Width();
aPos.Y() -= aPos.Y() % aGridSize.Height(); aPos.Y() -= aPos.Y() % aGridSize_.Height();
// don't put in the corner // don't put in the corner
Point aMinPos = pWindow->PixelToLogic( Point( 30, 20 ) ); Point aMinPos = pWindow->PixelToLogic( Point( 30, 20 ) );
if( (aPos.X() < aMinPos.X()) || (aPos.Y() < aMinPos.Y()) ) if( (aPos.X() < aMinPos.X()) || (aPos.Y() < aMinPos.Y()) )
{ {
aPos = aMinPos; aPos = aMinPos;
aPos.X() -= aPos.X() % aGridSize.Width(); aPos.X() -= aPos.X() % aGridSize_.Width();
aPos.Y() -= aPos.Y() % aGridSize.Height(); aPos.Y() -= aPos.Y() % aGridSize_.Height();
} }
// set dialog position and size // set dialog position and size
@@ -954,9 +954,9 @@ void DlgEditor::Paste()
// set tabindex // set tabindex
Reference< container::XNameAccess > xNA( m_xUnoControlDialogModel , UNO_QUERY ); Reference< container::XNameAccess > xNA( m_xUnoControlDialogModel , UNO_QUERY );
Sequence< OUString > aNames = xNA->getElementNames(); Sequence< OUString > aNames_ = xNA->getElementNames();
Any aTabIndex; Any aTabIndex;
aTabIndex <<= (sal_Int16) aNames.getLength(); aTabIndex <<= (sal_Int16) aNames_.getLength();
xPSet->setPropertyValue( DLGED_PROP_TABINDEX, aTabIndex ); xPSet->setPropertyValue( DLGED_PROP_TABINDEX, aTabIndex );
// insert control model in editor dialog model // insert control model in editor dialog model