summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-26 15:04:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-26 20:50:47 +0200
commit94223ae823a2e3e81da5ab0dc827c33f3a23882c (patch)
treeec252ed2442773853c4ff34012711509b3661360
parentebd37bcc22d0c70cc1e4fdd8e4f3d2f8fc256cd8 (diff)
drop unused SvLBoxColorString class
Change-Id: Id78deffe002444656588fee4252a7059989d184b Reviewed-on: https://gerrit.libreoffice.org/79631 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/svx/ctredlin.hxx17
-rw-r--r--svx/source/dialog/ctredlin.cxx26
2 files changed, 0 insertions, 43 deletions
diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx
index b7726a75763c..a9ee961c2c3b 100644
--- a/include/svx/ctredlin.hxx
+++ b/include/svx/ctredlin.hxx
@@ -58,23 +58,6 @@ public:
void* pData;
};
-/// Class for the representation of Strings depending on the font.
-class SAL_WARN_UNUSED SvLBoxColorString : public SvLBoxString
-{
-public:
- SvLBoxColorString();
- virtual ~SvLBoxColorString() override;
-
- /** Paint function of the SvLBoxColorString class.
-
- The relevant text with the selected color is drawn in the output device.
- */
- virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext,
- const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
-
- virtual std::unique_ptr<SvLBoxItem> Clone(SvLBoxItem const * pSource) const override;
-};
-
class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxRedlinTable
{
private:
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx
index 1c51696b570a..67e84c7e8b9d 100644
--- a/svx/source/dialog/ctredlin.cxx
+++ b/svx/source/dialog/ctredlin.cxx
@@ -47,32 +47,6 @@ RedlinData::~RedlinData()
{
}
-SvLBoxColorString::SvLBoxColorString()
-: SvLBoxString()
-{
-}
-
-SvLBoxColorString::~SvLBoxColorString()
-{
-}
-
-std::unique_ptr<SvLBoxItem> SvLBoxColorString::Clone(SvLBoxItem const *) const
-{
- return std::unique_ptr<SvLBoxItem>(new SvLBoxColorString);
-}
-
-void SvLBoxColorString::Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
- const SvViewDataEntry* pView, const SvTreeListEntry& rEntry)
-{
- Color aColor = rRenderContext.GetTextColor();
- if (!pView->IsSelected())
- {
- rRenderContext.SetTextColor(Color());
- }
- SvLBoxString::Paint(rPos, rDev, rRenderContext, pView, rEntry);
- rRenderContext.SetTextColor(aColor);
-}
-
SvxRedlinTable::SvxRedlinTable(std::unique_ptr<weld::TreeView> xWriterControl,
std::unique_ptr<weld::TreeView> xCalcControl)
: xSorter(new comphelper::string::NaturalStringSorter(::comphelper::getProcessComponentContext(),