summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-19 08:20:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-19 13:20:19 +0100
commitea3edee44ad4796f6fc68190b7d03f8c8917c313 (patch)
treed06599d0b748b0572145a5708180f3e5bdbeddc8 /chart2
parent1399a51fd6c2644dd1dc2c79d3448deeacbb2c9d (diff)
callcatcher: update unused code
ResId loaders begining to melt away Change-Id: Ied10d95f6561f24b2305d202847b7e7c39eb63c3
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/res_Trendline.cxx54
-rw-r--r--chart2/source/controller/dialogs/res_Trendline.hxx2
-rw-r--r--chart2/source/controller/dialogs/tp_SeriesToAxis.cxx11
3 files changed, 0 insertions, 67 deletions
diff --git a/chart2/source/controller/dialogs/res_Trendline.cxx b/chart2/source/controller/dialogs/res_Trendline.cxx
index 62c61aea5be3..f3dde064dcd1 100644
--- a/chart2/source/controller/dialogs/res_Trendline.cxx
+++ b/chart2/source/controller/dialogs/res_Trendline.cxx
@@ -113,60 +113,6 @@ TrendlineResources::TrendlineResources( Window * pParent, const SfxItemSet& rInA
TrendlineResources::~TrendlineResources()
{}
-long TrendlineResources::adjustControlSizes()
-{
- // calculate right edge
- std::vector< long > aControlRightEdges;
- aControlRightEdges.push_back( lcl_getRightEdge( m_aRBLinear ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aRBLogarithmic ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aRBExponential ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aRBPower ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aRBPolynomial ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aRBMovingAverage ));
-
- aControlRightEdges.push_back( lcl_getRightEdge( m_aNF_Degree ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aNF_Period ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aNF_ExtrapolateForward ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aNF_ExtrapolateBackward ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aNF_InterceptValue ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aCB_SetIntercept ));
-
- aControlRightEdges.push_back( lcl_getRightEdge( m_aCBShowEquation ));
- aControlRightEdges.push_back( lcl_getRightEdge( m_aCBShowCorrelationCoeff ));
-
- lcl_AdjustControlSize( m_aRBLinear );
- lcl_AdjustControlSize( m_aRBLogarithmic );
- lcl_AdjustControlSize( m_aRBExponential );
- lcl_AdjustControlSize( m_aRBPower );
- lcl_AdjustControlSize( m_aRBPolynomial );
- lcl_AdjustControlSize( m_aRBMovingAverage );
-
- lcl_AdjustControlSize( m_aNF_Degree );
- lcl_AdjustControlSize( m_aNF_Period );
- lcl_AdjustControlSize( m_aNF_ExtrapolateForward );
- lcl_AdjustControlSize( m_aNF_ExtrapolateBackward );
- lcl_AdjustControlSize( m_aNF_InterceptValue );
- lcl_AdjustControlSize( m_aCB_SetIntercept );
-
- lcl_AdjustControlSize( m_aCBShowEquation );
- lcl_AdjustControlSize( m_aCBShowCorrelationCoeff );
-
- // Note: FixedLine has no CalcMinimumSize, workaround: use a FixedText
- FixedText aDummyTextCtrl( m_aFLType.GetParent());
- aDummyTextCtrl.SetText( m_aFLType.GetText());
- aControlRightEdges.push_back( lcl_getRightEdge( aDummyTextCtrl ));
- aDummyTextCtrl.SetText( m_aFLEquation.GetText());
- aControlRightEdges.push_back( lcl_getRightEdge( aDummyTextCtrl ));
-
- long nRightEdgeOfControls = *(::std::max_element( aControlRightEdges.begin(), aControlRightEdges.end()));
- // leave some more space after the longest text
- nRightEdgeOfControls += m_aFLType.LogicToPixel( Size( 6, 0 ), MapMode( MAP_APPFONT )).getWidth();
-
- lcl_AdjustControlSize( m_aFLType, nRightEdgeOfControls );
- lcl_AdjustControlSize( m_aFLEquation, nRightEdgeOfControls );
-
- return nRightEdgeOfControls;
-}
IMPL_LINK( TrendlineResources, SelectTrendLine, RadioButton *, pRadioButton )
{
diff --git a/chart2/source/controller/dialogs/res_Trendline.hxx b/chart2/source/controller/dialogs/res_Trendline.hxx
index 359286284253..669b804bad2d 100644
--- a/chart2/source/controller/dialogs/res_Trendline.hxx
+++ b/chart2/source/controller/dialogs/res_Trendline.hxx
@@ -40,8 +40,6 @@ public:
void FillValueSets();
- long adjustControlSizes();
-
private:
FixedLine m_aFLType;
diff --git a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
index fab77a2a41cc..64596c6a4f82 100644
--- a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
+++ b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
@@ -233,17 +233,6 @@ void SchOptionTabPage::Init( bool bProvidesSecondaryYAxis, bool bProvidesOverlap
AdaptControlPositionsAndVisibility();
}
-void lcl_offsetControl(Control& rCtrl, long nXOffset, long nYOffset )
-{
- Point aPos = rCtrl.GetPosPixel();
- rCtrl.SetPosPixel( Point(aPos.getX() + nXOffset, aPos.getY() + nYOffset) );
-}
-
-void lcl_optimzeRadioButtonSize( RadioButton& rCtrl )
-{
- rCtrl.SetSizePixel( rCtrl.CalcMinimumSize() );
-}
-
void SchOptionTabPage::AdaptControlPositionsAndVisibility()
{
m_pGrpAxis->Show(m_bProvidesSecondaryYAxis);