summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-31 13:42:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-08-31 16:19:37 +0200
commit5a7c684b03510b4b568b4f10b38d6c433e4a291e (patch)
treef1d20be819afcf13de76ca0e6846f7843c73ea26 /svx
parent53046ce16303824a231f106c2a747a02f7bb3bcf (diff)
drop unused SvLBoxFontString
Change-Id: Ieada5128d3a2072d5789de854baa8993a28dd182 Reviewed-on: https://gerrit.libreoffice.org/78348 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/Library_svx.mk1
-rw-r--r--svx/source/dialog/fontlb.cxx62
2 files changed, 0 insertions, 63 deletions
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk
index a3a2cec79a1d..82bc9183c6eb 100644
--- a/svx/Library_svx.mk
+++ b/svx/Library_svx.mk
@@ -125,7 +125,6 @@ $(eval $(call gb_Library_add_exception_objects,svx,\
svx/source/dialog/dlgctrl \
svx/source/dialog/docrecovery \
svx/source/dialog/fntctrl \
- svx/source/dialog/fontlb \
svx/source/dialog/fontwork \
svx/source/dialog/frmdirlbox \
svx/source/dialog/frmsel \
diff --git a/svx/source/dialog/fontlb.cxx b/svx/source/dialog/fontlb.cxx
deleted file mode 100644
index 418e6981fa0c..000000000000
--- a/svx/source/dialog/fontlb.cxx
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <svx/fontlb.hxx>
-#include <vcl/svapp.hxx>
-#include <vcl/settings.hxx>
-#include <vcl/treelistentry.hxx>
-#include <vcl/viewdataentry.hxx>
-
-SvLBoxFontString::SvLBoxFontString()
- : SvLBoxString()
-{
-}
-
-SvLBoxFontString::~SvLBoxFontString()
-{
-}
-
-std::unique_ptr<SvLBoxItem> SvLBoxFontString::Clone(SvLBoxItem const *) const
-{
- return std::unique_ptr<SvLBoxItem>(new SvLBoxFontString);
-}
-
-void SvLBoxFontString::Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
- const SvViewDataEntry* pView, const SvTreeListEntry& rEntry)
-{
- rRenderContext.Push(PushFlags::FONT);
- vcl::Font aNewFont;
- bool bSel = pView->IsSelected();
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
- aNewFont.SetColor(bSel ? rStyleSettings.GetHighlightTextColor() : rStyleSettings.GetFieldTextColor());
-
- rRenderContext.SetFont(aNewFont);
- SvLBoxString::Paint(rPos, rDev, rRenderContext, pView, rEntry);
- rRenderContext.Pop();
-}
-
-void SvLBoxFontString::InitViewData( SvTreeListBox* pView, SvTreeListEntry* pEntry, SvViewDataItem* pViewData )
-{
- vcl::Font aOldFont( pView->GetFont() );
- pView->Control::SetFont( vcl::Font() );
- SvLBoxString::InitViewData( pView, pEntry, pViewData);
- pView->Control::SetFont( aOldFont );
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */