summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-05 11:50:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-05 11:50:51 +0100
commit8d98f035cf6c410d4b29bd58d86cfe86127db68b (patch)
tree9a3f7e954d562b53874b7175e2b57237daaac192
parenta4467f6997f716f580a10a9c20076391257d09f2 (diff)
loplugin:unreffun
class OptionString unused since e224c9cb929cd744674b5d4d265cfb4680c82a2b "Refactor OpenCL settings dialog" Change-Id: I14e6adebaa7ea9d4e733b65ef4ca90e6fe6dbce2
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.cxx56
1 files changed, 0 insertions, 56 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx
index da171ca8c2a7..287fccc01345 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.cxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx
@@ -35,62 +35,6 @@
namespace {
-class OptionString : public SvLBoxString
-{
- OUString maDesc;
- OUString maValue;
-public:
- OptionString(const OUString& rDesc, const OUString& rValue) :
- maDesc(rDesc), maValue(rValue) {}
-
- void SetValue(const OUString &rValue) { maValue = rValue; }
-
- virtual void Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry) SAL_OVERRIDE;
-
- virtual void InitViewData(SvTreeListBox* pView, SvTreeListEntry* pEntry, SvViewDataItem* pViewData) SAL_OVERRIDE;
-};
-
-void OptionString::InitViewData(
- SvTreeListBox* pView, SvTreeListEntry* pEntry, SvViewDataItem* pViewData)
-{
- if( !pViewData )
- pViewData = pView->GetViewDataItem( pEntry, this );
-
- OUString aDesc = maDesc + ": ";
- Size aDescSize(pView->GetTextWidth(aDesc), pView->GetTextHeight());
-
- vcl::Font aOldFont = pView->GetFont();
- vcl::Font aFont = aOldFont;
- aFont.SetWeight(WEIGHT_BOLD);
- //To not make the SvTreeListBox try and recalculate all rows, call the
- //underlying SetFont, we just want to know what size this text will be
- //and are going to reset the font to the original again afterwards
- pView->Control::SetFont(aFont);
- Size aValueSize(pView->GetTextWidth(maValue), pView->GetTextHeight());
- pView->Control::SetFont(aOldFont);
-
- pViewData->maSize = Size(aDescSize.Width() + aValueSize.Width(), std::max(aDescSize.Height(), aValueSize.Height()));
-}
-
-void OptionString::Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* /*pView*/, const SvTreeListEntry* /*pEntry*/)
-{
- Point aPos = rPos;
- OUString aDesc = maDesc + ": ";
- rDev.DrawText(aPos, aDesc);
-
- aPos.X() += rDev.GetTextWidth(aDesc);
- vcl::Font aOldFont = rDev.GetFont();
- vcl::Font aFont = aOldFont;
- aFont.SetWeight(WEIGHT_BOLD);
-
- //To not make the SvTreeListBox try and recalculate all rows, call the
- //underlying SetFont, we are going to draw this string and then going to
- //reset the font to the original again afterwards
- rDev.Control::SetFont(aFont);
- rDev.DrawText(aPos, maValue);
- rDev.Control::SetFont(aOldFont);
-}
-
formula::FormulaGrammar::AddressConvention toAddressConvention(sal_Int32 nPos)
{
switch (nPos)