diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-01-17 11:41:00 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-01-17 11:41:00 +0100 |
commit | 3d6bed44c8ca414f60c03223482b9f7b94d56c14 (patch) | |
tree | 9b015da930eaf9856b5f05707245327185fff884 /sd/source/ui/table | |
parent | a4babcc4a08648e99d988fca640ab555da10048c (diff) |
removetooltypes01: #i112600# Remove tools types from sd
Diffstat (limited to 'sd/source/ui/table')
-rwxr-xr-x | sd/source/ui/table/TableDesignPane.cxx | 32 | ||||
-rwxr-xr-x | sd/source/ui/table/tablefunction.cxx | 2 | ||||
-rwxr-xr-x | sd/source/ui/table/tableobjectbar.cxx | 6 |
3 files changed, 20 insertions, 20 deletions
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index cdba12e9887e..61e164fd5d06 100755 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -127,7 +127,7 @@ TableDesignPane::TableDesignPane( ::Window* pParent, ViewShellBase& rBase, bool pValueSet->SetSelectHdl (LINK(this, TableDesignPane, implValueSetHdl)); mxControls[FL_STYLE_OPTIONS].reset( new FixedLine( pControlParent, SdResId( FL_STYLE_OPTIONS + 1 ) ) ); - USHORT i; + sal_uInt16 i; for( i = CB_HEADER_ROW; i <= CB_BANDED_COLUMNS; ++i ) { CheckBox *pCheckBox = new CheckBox( pControlParent, SdResId( i+1 ) ); @@ -388,7 +388,7 @@ void TableDesignPane::updateLayout() Size aSize( mxControls[nId]->GetSizePixel() ); aSize.Width() = aPaneSize.Width() - aOffset.X() - mxControls[nId]->GetPosPixel().X(); mxControls[nId]->SetSizePixel( aSize ); - mxControls[nId]->SetPaintTransparent(TRUE); + mxControls[nId]->SetPaintTransparent(sal_True); mxControls[nId]->SetBackground(); } aValueSetSize = Size( pValueSet->GetSizePixel().Width(), nStylesHeight - mxControls[FL_TABLE_STYLES]->GetSizePixel().Height() - mnOrgOffsetY[FL_TABLE_STYLES] ); @@ -419,10 +419,10 @@ void TableDesignPane::updateLayout() int nVisibleRowCount = (aValueSetSize.Height()+2) / aItemSize.Height(); - pValueSet->SetLineCount ( (nRowCount < nVisibleRowCount) ? (USHORT)nRowCount : 0 ); + pValueSet->SetLineCount ( (nRowCount < nVisibleRowCount) ? (sal_uInt16)nRowCount : 0 ); - pValueSet->SetColCount ((USHORT)nColumnCount); - pValueSet->SetLineCount ((USHORT)nRowCount); + pValueSet->SetColCount ((sal_uInt16)nColumnCount); + pValueSet->SetLineCount ((sal_uInt16)nRowCount); if( !mbModal ) { @@ -476,7 +476,7 @@ void TableDesignPane::updateControls() const bool bHasTable = mxSelectedTable.is(); const OUString* pPropNames = getPropertyNames(); - for( USHORT i = CB_HEADER_ROW; i <= CB_BANDED_COLUMNS; ++i ) + for( sal_uInt16 i = CB_HEADER_ROW; i <= CB_BANDED_COLUMNS; ++i ) { sal_Bool bUse = gDefaults[i-CB_HEADER_ROW]; if( bHasTable ) try @@ -487,15 +487,15 @@ void TableDesignPane::updateControls() { DBG_ERROR("sd::TableDesignPane::updateControls(), exception caught!"); } - static_cast< CheckBox* >( mxControls[i].get() )->Check( bUse ? TRUE : FALSE ); - mxControls[i]->Enable(bHasTable ? TRUE : FALSE ); + static_cast< CheckBox* >( mxControls[i].get() )->Check( bUse ? sal_True : sal_False ); + mxControls[i]->Enable(bHasTable ? sal_True : sal_False ); } FillDesignPreviewControl(); updateLayout(); - USHORT nSelection = 0; + sal_uInt16 nSelection = 0; if( mxSelectedTable.is() ) { Reference< XNamed > xNamed( mxSelectedTable->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "TableTemplate" ) ) ), UNO_QUERY ); @@ -511,7 +511,7 @@ void TableDesignPane::updateControls() { if( aNames[nIndex] == sStyleName ) { - nSelection = (USHORT)nIndex+1; + nSelection = (sal_uInt16)nIndex+1; break; } } @@ -809,7 +809,7 @@ const Bitmap CreateDesignPreview( const Reference< XIndexAccess >& xTableStyle, sal_Int32* pDiff = &border_diffs[0]; // draw top border - for( USHORT nLine = 0; nLine < 4; ++nLine ) + for( sal_uInt16 nLine = 0; nLine < 4; ++nLine ) { const SvxBorderLine* pBorderLine = xCellInfo->maBorder.GetLine(nLine); if( !pBorderLine || ((pBorderLine->GetOutWidth() == 0) && (pBorderLine->GetInWidth()==0)) ) @@ -823,7 +823,7 @@ const Bitmap CreateDesignPreview( const Reference< XIndexAccess >& xTableStyle, boost::shared_ptr< CellInfo > xBorderInfo( aMatrix[nBorderCol][nBorderRow] ); if( xBorderInfo.get() ) { - const USHORT nOtherLine = nLine ^ 1; + const sal_uInt16 nOtherLine = nLine ^ 1; const SvxBorderLine* pBorderLine2 = xBorderInfo->maBorder.GetLine(nOtherLine^1); if( pBorderLine2 && pBorderLine2->HasPriority(*pBorderLine) ) continue; // other border line wins @@ -853,7 +853,7 @@ void TableDesignPane::FillDesignPreviewControl() { ValueSet* pValueSet = static_cast< ValueSet* >( mxControls[CT_TABLE_STYLES].get() ); - USHORT nSelectedItem = pValueSet->GetSelectItemId(); + sal_uInt16 nSelectedItem = pValueSet->GetSelectItemId(); pValueSet->Clear(); try { @@ -883,7 +883,7 @@ void TableDesignPane::FillDesignPreviewControl() { Reference< XIndexAccess > xTableStyle( mxTableFamily->getByIndex( nIndex ), UNO_QUERY ); if( xTableStyle.is() ) - pValueSet->InsertItem( sal::static_int_cast<USHORT>( nIndex + 1 ), Image( CreateDesignPreview( xTableStyle, aSettings, bIsPageDark ) ) ); + pValueSet->InsertItem( sal::static_int_cast<sal_uInt16>( nIndex + 1 ), Image( CreateDesignPreview( xTableStyle, aSettings, bIsPageDark ) ) ); } catch( Exception& ) { @@ -925,9 +925,9 @@ short TableDesignDialog::Execute() if( mpDesignPane->isOptionsChanged() ) mpDesignPane->ApplyOptions(); - return TRUE; + return sal_True; } - return FALSE; + return sal_False; } // ==================================================================== diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx index b30e259e049a..957c9da398c6 100755 --- a/sd/source/ui/table/tablefunction.cxx +++ b/sd/source/ui/table/tablefunction.cxx @@ -186,7 +186,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq) } if( pPickObj ) - mpView->ReplaceObjectAtView(pPickObj, *pPV, pObj, TRUE ); + mpView->ReplaceObjectAtView(pPickObj, *pPV, pObj, sal_True ); else mpView->InsertObjectAtView(pObj, *pPV, SDRINSERT_SETDEFLAYER); diff --git a/sd/source/ui/table/tableobjectbar.cxx b/sd/source/ui/table/tableobjectbar.cxx index 854009b00c7e..7f3ac63d0192 100755 --- a/sd/source/ui/table/tableobjectbar.cxx +++ b/sd/source/ui/table/tableobjectbar.cxx @@ -157,7 +157,7 @@ void TableObjectBar::Execute( SfxRequest& rReq ) SfxBindings* pBindings = &mpViewSh->GetViewFrame()->GetBindings(); rtl::Reference< sdr::SelectionController > xController( mpView->getSelectionController() ); - ULONG nSlotId = rReq.GetSlot(); + sal_uLong nSlotId = rReq.GetSlot(); if( xController.is() ) { switch( nSlotId ) @@ -175,10 +175,10 @@ void TableObjectBar::Execute( SfxRequest& rReq ) else nSlotId = SID_TABLE_INSERT_COL; - rReq.AppendItem( SfxInt16Item( (USHORT)nSlotId, (sal_uInt16)pDlg->getInsertCount() ) ); + rReq.AppendItem( SfxInt16Item( (sal_uInt16)nSlotId, (sal_uInt16)pDlg->getInsertCount() ) ); rReq.AppendItem( SfxBoolItem( SID_TABLE_PARAM_INSERT_AFTER, !pDlg->isInsertBefore() ) ); - rReq.SetSlot( (USHORT)nSlotId ); + rReq.SetSlot( (sal_uInt16)nSlotId ); } } } |