diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-10 11:17:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-10 12:25:10 +0100 |
commit | bfafc8c3a137a98ad2cd939b11161f9961bc48d7 (patch) | |
tree | f2f592c370813953e83c0f085ed428b6d67db694 /svx | |
parent | 6a84a6ed0b1d30c8feb551a3a4db5aab437a74f7 (diff) |
callcatcher: update unused code
mostly ResId using ctors left stranded post .ui conversion
Change-Id: I06689eea30ee9146ba05294f52056c0d263695f5
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 111 | ||||
-rw-r--r-- | svx/source/dialog/paraprev.cxx | 23 |
2 files changed, 0 insertions, 134 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index ba848b9f6aac..9c2178be9dde 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -752,22 +752,6 @@ void SvxRectCtl::SetCS(CTL_STYLE eNew) // Control for editing bitmaps -SvxPixelCtl::SvxPixelCtl( Window* pParent, const ResId& rResId, sal_uInt16 nNumber ) : - Control ( pParent, rResId ), - nLines ( nNumber ), - bPaintable ( sal_True ) -{ - aRectSize = GetOutputSize(); - - SetPixelColor( Color( COL_BLACK ) ); - SetBackgroundColor( Color( COL_WHITE ) ); - SetLineColor( Application::GetSettings().GetStyleSettings().GetShadowColor() ); - - nSquares = nLines * nLines; - pPixel = new sal_uInt16[ nSquares ]; - memset(pPixel, 0, nSquares * sizeof(sal_uInt16)); -} - SvxPixelCtl::SvxPixelCtl(Window* pParent, sal_uInt16 nNumber) : Control(pParent, WB_BORDER) , nLines(nNumber) @@ -1030,13 +1014,6 @@ void FillAttrLB::Fill( const XColorListRef &pColorTab ) // Fills the listbox (provisional) with strings -HatchingLB::HatchingLB( Window* pParent, ResId Id) -: ListBox( pParent, Id ), - mpList ( NULL ) -{ - SetEdgeBlending(true); -} - HatchingLB::HatchingLB( Window* pParent, WinBits nWinStyle) : ListBox( pParent, nWinStyle ), mpList ( NULL ) @@ -1136,13 +1113,6 @@ void FillAttrLB::Fill( const XHatchListRef &pList ) // Fills the listbox (provisional) with strings -GradientLB::GradientLB( Window* pParent, ResId Id) -: ListBox( pParent, Id ), - mpList(NULL) -{ - SetEdgeBlending(true); -} - GradientLB::GradientLB( Window* pParent, WinBits aWB) : ListBox( pParent, aWB ), mpList(NULL) @@ -1266,13 +1236,6 @@ void FillAttrLB::Fill( const XGradientListRef &pList ) // BitmapLB Constructor -BitmapLB::BitmapLB(Window* pParent, ResId Id) -: ListBox(pParent, Id), - maBitmapEx(), - mpList(NULL) -{ - SetEdgeBlending(true); -} BitmapLB::BitmapLB( Window* pParent, WinBits aWB) : ListBox( pParent, aWB ), maBitmapEx(), @@ -1454,13 +1417,6 @@ void FillTypeLB::Fill() SetUpdateMode( sal_True ); } -LineLB::LineLB(Window* pParent, ResId Id) -: ListBox(pParent, Id), - mbAddStandardFields(true) -{ - // No EdgeBlending for LineStyle/Dash SetEdgeBlending(true); -} - LineLB::LineLB(Window* pParent, WinBits aWB) : ListBox(pParent, aWB), mbAddStandardFields(true) @@ -1568,12 +1524,6 @@ void LineLB::Modify( const XDashEntry& rEntry, sal_uInt16 nPos, const Bitmap& rB // Fills the listbox (provisional) with strings -LineEndLB::LineEndLB( Window* pParent, ResId Id ) - : ListBox( pParent, Id ) -{ - // No EdgeBlending for LineEnds SetEdgeBlending(true); -} - LineEndLB::LineEndLB( Window* pParent, WinBits aWB ) : ListBox( pParent, aWB ) { @@ -1828,55 +1778,6 @@ void SvxPreviewBase::DataChanged(const DataChangedEvent& rDCEvt) } } -SvxXLinePreview::SvxXLinePreview( Window* pParent, const ResId& rResId ) -: SvxPreviewBase( pParent, rResId ), - mpLineObjA( 0L ), - mpLineObjB( 0L ), - mpLineObjC( 0L ), - mpGraphic( 0L ), - mbWithSymbol( sal_False ) -{ - InitSettings( sal_True, sal_True ); - - const Size aOutputSize(GetOutputSize()); - const sal_Int32 nDistance(500L); - const sal_Int32 nAvailableLength(aOutputSize.Width() - (4 * nDistance)); - - // create DrawObjectA - const sal_Int32 aYPosA(aOutputSize.Height() / 2); - const basegfx::B2DPoint aPointA1( nDistance, aYPosA); - const basegfx::B2DPoint aPointA2( aPointA1.getX() + ((nAvailableLength * 14) / 20), aYPosA ); - basegfx::B2DPolygon aPolygonA; - aPolygonA.append(aPointA1); - aPolygonA.append(aPointA2); - mpLineObjA = new SdrPathObj(OBJ_LINE, basegfx::B2DPolyPolygon(aPolygonA)); - mpLineObjA->SetModel(&getModel()); - - // create DrawObectB - const sal_Int32 aYPosB1((aOutputSize.Height() * 3) / 4); - const sal_Int32 aYPosB2((aOutputSize.Height() * 1) / 4); - const basegfx::B2DPoint aPointB1( aPointA2.getX() + nDistance, aYPosB1); - const basegfx::B2DPoint aPointB2( aPointB1.getX() + ((nAvailableLength * 2) / 20), aYPosB2 ); - const basegfx::B2DPoint aPointB3( aPointB2.getX() + ((nAvailableLength * 2) / 20), aYPosB1 ); - basegfx::B2DPolygon aPolygonB; - aPolygonB.append(aPointB1); - aPolygonB.append(aPointB2); - aPolygonB.append(aPointB3); - mpLineObjB = new SdrPathObj(OBJ_PLIN, basegfx::B2DPolyPolygon(aPolygonB)); - mpLineObjB->SetModel(&getModel()); - - // create DrawObectC - const basegfx::B2DPoint aPointC1( aPointB3.getX() + nDistance, aYPosB1); - const basegfx::B2DPoint aPointC2( aPointC1.getX() + ((nAvailableLength * 1) / 20), aYPosB2 ); - const basegfx::B2DPoint aPointC3( aPointC2.getX() + ((nAvailableLength * 1) / 20), aYPosB1 ); - basegfx::B2DPolygon aPolygonC; - aPolygonC.append(aPointC1); - aPolygonC.append(aPointC2); - aPolygonC.append(aPointC3); - mpLineObjC = new SdrPathObj(OBJ_PLIN, basegfx::B2DPolyPolygon(aPolygonC)); - mpLineObjC->SetModel(&getModel()); -} - void SvxXLinePreview::Resize() { SvxPreviewBase::Resize(); @@ -2017,18 +1918,6 @@ void SvxXLinePreview::Paint( const Rectangle& ) LocalPostPaint(); } -SvxXRectPreview::SvxXRectPreview( Window* pParent, const ResId& rResId ) -: SvxPreviewBase( pParent, rResId ), - mpRectangleObject(0) -{ - InitSettings(true, true); - - // create RectangleObject - const Rectangle aObjectSize(Point(), GetOutputSize()); - mpRectangleObject = new SdrRectObj(aObjectSize); - mpRectangleObject->SetModel(&getModel()); -} - SvxXRectPreview::SvxXRectPreview(Window* pParent) : SvxPreviewBase(pParent) , mpRectangleObject(0) diff --git a/svx/source/dialog/paraprev.cxx b/svx/source/dialog/paraprev.cxx index 8de4a379502c..adc29a3c59aa 100644 --- a/svx/source/dialog/paraprev.cxx +++ b/svx/source/dialog/paraprev.cxx @@ -23,29 +23,6 @@ // class SvxParaPrevWindow ----------------------------------------------- -SvxParaPrevWindow::SvxParaPrevWindow( Window* pParent, const ResId& rId ) : - - Window( pParent, rId ), - - nLeftMargin ( 0 ), - nRightMargin ( 0 ), - nFirstLineOfst ( 0 ), - nUpper ( 0 ), - nLower ( 0 ), - eAdjust ( SVX_ADJUST_LEFT ), - eLastLine ( SVX_ADJUST_LEFT ), - eLine ( SVX_PREV_LINESPACE_1 ), - nLineVal ( 0 ) - -{ - // Count in Twips by default - SetMapMode( MapMode( MAP_TWIP ) ); - - aSize = Size( 11905, 16837 ); - - SetBorderStyle( WINDOW_BORDER_MONO ); -} - SvxParaPrevWindow::SvxParaPrevWindow( Window* pParent, WinBits nBits) : Window( pParent, nBits), |