Kaydet (Commit) c54f77b7 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: update unused code

All FontSizeBoxs and SmFontPickListBoxs are now .ui loaded, .res ctors unused

Change-Id: I50aa8606fefacab0b15b6795a7ba90dff8109802
üst 79aa0c50
......@@ -469,23 +469,6 @@ Convert::Any_t Convert::toAny( const OUString& rValue,
return aIter != maMap.end() ? aIter->second.second( rValue ) : Any_t();
}
//------------------------------------------------------------------------
OUString Convert::replaceWhitespace( const OUString& _rString )
{
OUStringBuffer aBuffer( _rString );
sal_Int32 nLength = aBuffer.getLength();
const sal_Unicode* pBuffer = aBuffer.getStr();
for( sal_Int32 i = 0; i < nLength; i++ )
{
sal_Unicode c = pBuffer[i];
if( c == sal_Unicode(0x08) ||
c == sal_Unicode(0x0A) ||
c == sal_Unicode(0x0D) )
aBuffer[i] = sal_Unicode(0x20);
}
return aBuffer.makeStringAndClear();
}
//------------------------------------------------------------------------
OUString Convert::collapseWhitespace( const OUString& _rString )
{
......
......@@ -72,10 +72,6 @@ public:
/// convert XML representation to Any of given type
Any_t toAny( const OUString&, const Type_t& );
/** replace all occurrences 0x08, 0x0A, 0x0D with 0x20
*/
static OUString replaceWhitespace( const OUString& _rString );
/** replace all sequences of 0x08, 0x0A, 0x0D, 0x20 with a single 0x20.
also strip leading/trailing whitespace.
*/
......
......@@ -507,7 +507,6 @@ protected:
public:
FontSizeBox( Window* pParent, WinBits nWinStyle = 0 );
FontSizeBox( Window* pParent, const ResId& rResId );
virtual ~FontSizeBox();
void Reformat();
......
......@@ -109,8 +109,6 @@ struct HTMLOutFuncs
SvNumberFormatter& rFormatter,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
String *pNonConvertableChars = 0);
SVT_DLLPUBLIC static sal_Bool PrivateURLToInternalImg( String& rURL );
};
#endif
......
......@@ -158,8 +158,7 @@ protected:
DECL_LINK(SelectHdl, ListBox *);
public:
SmFontPickListBox(Window* pParent, const ResId& rResId);
SmFontPickListBox (Window* pParent, WinBits nBits);
SmFontPickListBox(Window* pParent, WinBits nBits);
SmFontPickListBox& operator = (const SmFontPickList& rList);
......
......@@ -187,15 +187,6 @@ IMPL_LINK( SmFontPickListBox, SelectHdl, ListBox *, /*pListBox*/ )
return 0;
}
SmFontPickListBox::SmFontPickListBox(Window* pParent, const ResId& rResId) :
SmFontPickList(4),
ListBox(pParent, rResId)
{
SetSelectHdl(LINK(this, SmFontPickListBox, SelectHdl));
}
SmFontPickListBox& SmFontPickListBox::operator=(const SmFontPickList& rList)
{
sal_uInt16 nPos;
......
......@@ -1656,14 +1656,6 @@ FontSizeBox::FontSizeBox( Window* pParent, WinBits nWinSize ) :
ImplInit();
}
// -----------------------------------------------------------------------
FontSizeBox::FontSizeBox( Window* pParent, const ResId& rResId ) :
MetricBox( pParent, rResId )
{
ImplInit();
}
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFontSizeBox(Window *pParent, VclBuilder::stringmap &rMap)
{
bool bDropdown = VclBuilder::extractDropdown(rMap);
......
......@@ -977,17 +977,4 @@ OString HTMLOutFuncs::CreateTableDataOptionsValNum(
return aStrTD.makeStringAndClear();
}
sal_Bool HTMLOutFuncs::PrivateURLToInternalImg( String& rURL )
{
if( rURL.Len() > 14UL &&
rURL.CompareToAscii( OOO_STRING_SVTOOLS_HTML_private_image, 14UL ) == COMPARE_EQUAL )
{
rURL.Erase( 0UL, 14UL );
return sal_True;
}
return sal_False;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -189,7 +189,6 @@ $(eval $(call gb_Library_add_exception_objects,svx,\
svx/source/sidebar/area/AreaTransparencyGradientPopup \
svx/source/sidebar/graphic/GraphicPropertyPanel \
svx/source/sidebar/line/LinePropertyPanel \
svx/source/sidebar/line/LineStyleValueSet \
svx/source/sidebar/line/LineWidthControl \
svx/source/sidebar/line/LineWidthValueSet \
svx/source/sidebar/line/LineWidthPopup \
......
/*
* 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 "LineStyleValueSet.hxx"
#include <i18nlangtag/mslangid.hxx>
namespace svx { namespace sidebar {
LineStyleValueSet::LineStyleValueSet (
Window* pParent,
const ResId& rResId)
: ValueSet( pParent, rResId ),
pVDev(NULL),
mbSelectFirst(true)
{
SetColCount( 1 );
}
LineStyleValueSet::~LineStyleValueSet (void)
{
delete pVDev;
}
void LineStyleValueSet::SetFirstString(XubString str)
{
strNone = str;
}
void LineStyleValueSet::UserDraw( const UserDrawEvent& rUDEvt )
{
Rectangle aRect = rUDEvt.GetRect();
OutputDevice* pDev = rUDEvt.GetDevice();
sal_uInt16 nItemId = rUDEvt.GetItemId();
long nRectHeight = aRect.GetHeight();
//Point aBLPos = aRect.TopLeft();
if(nItemId == 1)
{
Color aOldFillColor = pDev->GetFillColor();
//draw back
if( mbSelectFirst )
{
Color aBackColor(50,107,197);
Rectangle aBackRect = aRect;
aBackRect.Top() += 3;
aBackRect.Bottom() -= 2;
pDev->SetFillColor(aBackColor);
pDev->DrawRect(aBackRect);
}
else
{
pDev->SetFillColor( COL_TRANSPARENT );
pDev->DrawRect(aRect);
}
pDev->SetFillColor(aOldFillColor);
//draw text
Font aOldFont = pDev->GetFont();
Color aOldColor = pDev->GetLineColor();
Font aFont(OutputDevice::GetDefaultFont(
DEFAULTFONT_UI_SANS, MsLangId::getSystemLanguage(), DEFAULTFONT_FLAGS_ONLYONE));
Size aSize = aFont.GetSize();
aSize.Height() = nRectHeight*3/5;
if( mbSelectFirst )
aFont.SetColor(COL_WHITE);
else
//aFont.SetColor(COL_BLACK);
aFont.SetColor(GetSettings().GetStyleSettings().GetFieldTextColor()); //high contrast
aFont.SetFillColor(COL_BLUE);
aFont.SetSize( aSize );
pDev->SetFont(aFont);
// String sText("None", 9, RTL_TEXTENCODING_ASCII_US);
// Point aStart(aBLPos.X() + 8 , aBLPos.Y() + nRectHeight/6);
Rectangle aStrRect = aRect;
aStrRect.Top() += nRectHeight/6;
aStrRect.Bottom() -= nRectHeight/6;
aStrRect.Left() += 8;
pDev->DrawText(aStrRect, strNone, TEXT_DRAW_ENDELLIPSIS);
pDev->SetFont(aOldFont);
pDev->SetLineColor(aOldColor);
}
Invalidate( aRect );
}
void LineStyleValueSet::SetFirstSelect(bool bSel)
{
mbSelectFirst = bSel;
}
} } // end of namespace svx::sidebar
// eof
/*
* 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 .
*/
#ifndef SVX_SIDEBAR_LINE_STYLE_VALUE_SET_HXX
#define SVX_SIDEBAR_LINE_STYLE_VALUE_SET_HXX
#include <svtools/valueset.hxx>
namespace svx { namespace sidebar {
class LineStyleValueSet
: public ValueSet
{
public:
LineStyleValueSet (Window* pParent, const ResId& rResId);
virtual ~LineStyleValueSet (void);
void SetFirstSelect(bool bSel);
void SetFirstString(XubString str);
virtual void UserDraw( const UserDrawEvent& rUDEvt );
private:
VirtualDevice* pVDev;
bool mbSelectFirst;
XubString strNone;
};
} } // end of namespace svx::sidebar
#endif
// eof
......@@ -80,19 +80,6 @@ namespace {
}
}
SvxSBFontNameBox::SvxSBFontNameBox( Window* pParent, const ResId& rResId ) :
FontNameBox ( pParent, rResId )
, pFontList ( NULL )
, nFtCount ( 0 )
, pBindings(NULL)
{
EnableControls_Impl();
// StartListening( *SFX_APP() );
}
SvxSBFontNameBox::SvxSBFontNameBox( Window* pParent ) :
FontNameBox ( pParent, WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP|WB_DROPDOWN )
, pFontList ( NULL )
......
......@@ -22,22 +22,6 @@
#include <svtools/ctrlbox.hxx>
#include <svtools/ctrltool.hxx>
/*
#include <sfx2/sectionpage.hxx>
#include <svx/svxdllapi.h>
#include <vcl/fixed.hxx>
#include <vcl/button.hxx>
#include <svl/lstner.hxx>
#include <vcl/toolbox.hxx>
#include <svx/tbxcolorupdate.hxx>
#include <svx/svxenum.hxx>
#include <svx/fhgtitem.hxx>
#define FONT_COLOR 1
#define BACK_COLOR 2
*/
namespace svx
{
class ToolboxButtonColorUpdater;
......@@ -58,10 +42,9 @@ protected:
virtual void Select();
public:
SvxSBFontNameBox( Window* pParent, const ResId& rResId );
SvxSBFontNameBox( Window* pParent );
SvxSBFontNameBox(Window* pParent);
void FillList();
sal_uInt16 GetListCount() { return nFtCount; }
sal_uInt16 GetListCount() const { return nFtCount; }
void Clear() { FontNameBox::Clear(); nFtCount = 0; }
void Fill( const FontList* pList )
{ FontNameBox::Fill( pList );
......
......@@ -457,10 +457,6 @@ public:
static SwPaM * NewSwPaM(SwDoc & rDoc,
sal_uLong const nStartIdx, sal_uLong const nEndIdx);
// If applicable copy a local file into internet.
sal_Bool CopyLocalFileToINet( String& rFileNm );
// Stream-specific routines. Do not use in storage-writer!
// Optimizing output on stream.
......
......@@ -296,59 +296,6 @@ sal_uLong Writer::Write( SwPaM&, const uno::Reference < embed::XStorage >&, cons
return ERR_SWG_WRITE_ERROR;
}
sal_Bool Writer::CopyLocalFileToINet( String& rFileNm )
{
if( !pOrigFileName ) // can be happen, by example if we
return sal_False; // write into the clipboard
sal_Bool bRet = sal_False;
INetURLObject aFileUrl( rFileNm ), aTargetUrl( *pOrigFileName );
// this is our old without the Mail-Export
if( ! ( INET_PROT_FILE == aFileUrl.GetProtocol() &&
INET_PROT_FILE != aTargetUrl.GetProtocol() &&
INET_PROT_FTP <= aTargetUrl.GetProtocol() &&
INET_PROT_NEWS >= aTargetUrl.GetProtocol() ) )
return bRet;
if (m_pImpl->pFileNameMap)
{
// has the file been moved?
std::map<String, String>::iterator it = m_pImpl->pFileNameMap->find( rFileNm );
if ( it != m_pImpl->pFileNameMap->end() )
{
rFileNm = it->second;
return sal_True;
}
}
else
{
m_pImpl->pFileNameMap.reset( new std::map<String, String>() );
}
String aSrc = rFileNm;
String aDest = aTargetUrl.GetPartBeforeLastName();
aDest += String(aFileUrl.GetName());
SfxMedium aSrcFile( aSrc, STREAM_READ );
SfxMedium aDstFile( aDest, STREAM_WRITE | STREAM_SHARE_DENYNONE );
*aDstFile.GetOutStream() << *aSrcFile.GetInStream();
aSrcFile.Close();
aDstFile.Commit();
bRet = 0 == aDstFile.GetError();
if( bRet )
{
m_pImpl->pFileNameMap->insert( std::make_pair( aSrc, aDest ) );
rFileNm = aDest;
}
return bRet;
}
void Writer::PutNumFmtFontsInAttrPool()
{
// then there are a few fonts in the NumRules
......
......@@ -39,28 +39,30 @@ ScCellValue::hasNumeric() const
ScCellValue::hasString() const
ScCellValue::set(EditTextObject const&)
ScCellValue::set(ScFormulaCell const&)
ScColumn::InitBlockPosition(sc::ColumnBlockConstPosition&) const
ScColumn::MoveListeners(SvtBroadcaster&, int)
ScColumn::SplitFormulaCellGroup(std::pair<mdds::__mtv::iterator_base<mdds::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<52, rtl::OUString>, mdds::mtv::noncopyable_managed_element_block<53, EditTextObject>, mdds::mtv::noncopyable_managed_element_block<54, ScFormulaCell> > >::iterator_trait, mdds::__mtv::private_data_forward_update<mdds::__mtv::iterator_value_node<unsigned long, mdds::mtv::base_element_block> > >, unsigned long> const&) const
ScDBQueryDataIterator::DataAccessInternal::setPos(unsigned long)
ScDPFilteredCache::SingleFilter::getMatchValue() const
ScDPObject::ParseFilters(ScDPGetPivotDataField&, std::__debug::vector<ScDPGetPivotDataField, std::allocator<ScDPGetPivotDataField> >&, rtl::OUString const&)
ScDdeLink::GetModifiableResult()
ScDocument::GetCellCount(short, short) const
ScDocument::GetFormulaTokens(ScAddress const&) const
ScDocument::GetStringCell(ScAddress const&) const
ScDocument::IsEmptyData(short, short) const
ScDocument::SetFormulaResults(ScAddress const&, double const*, unsigned long)
ScExtIButton::GetSelected() const
ScFormulaCell::GetResultDouble() const
ScFormulaCell::HasColRowName() const
ScFormulaCell::IsSharedInvariant() const
ScFormulaCell::SetResultToken(formula::FormulaToken const*)
ScGlobal::GetStandardFormat(double, SvNumberFormatter&, unsigned long, short)
ScRangeStringConverter::GetRangeListFromString(com::sun::star::uno::Sequence<com::sun::star::table::CellRangeAddress>&, rtl::OUString const&, ScDocument const*, formula::FormulaGrammar::AddressConvention, unsigned short, unsigned short)
ScRefCellValue::commit(ScColumn&, int) const
ScUndoSetCell::ScUndoSetCell(ScDocShell*, ScAddress const&, ScCellValue const&)
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
SchXMLTools::getRegressionCurve(com::sun::star::uno::Reference<com::sun::star::chart2::XDataSeries> const&)
ServerFont::GetGlyphBitmap1(int, RawBitmap&) const
ServerFont::GetGlyphBitmap8(int, RawBitmap&) const
SfxAppMenuControl_Impl::RegisterControl(unsigned short, SfxModule*)
SfxSpecialConfigError_Impl::SfxSpecialConfigError_Impl(String const&)
SfxTemplatePanelControl::GetISfxTemplateCommon()
SfxTemplatePanelControl::SetParagraphFamily()
SmFontPickList::Contains(Font const&) const
......@@ -69,8 +71,6 @@ StatusBar::HideItems()
StatusBar::ShowItems()
SvFileStream::GetFileHandle() const
SvdProgressInfo::ReportError()
SvpSalGraphics::SvpSalGraphics()
SvpSalGraphics::setDevice(boost::shared_ptr<basebmp::BitmapDevice>&)
SvpSalInstance::PostEvent(SalFrame const*, void*, unsigned short)
SvpSalInstance::PostedEventsInQueue()
SvpSalInstance::deregisterFrame(SalFrame*)
......@@ -90,8 +90,8 @@ TextEngine::GetLeftMargin() const
ThumbnailView::DeselectItem(unsigned short)
ThumbnailView::GetItemText(unsigned short) const
ThumbnailView::SetColor(Color const&)
TkResMgr::loadImage(unsigned short)
VclMultiLineEdit::SetTextSelectable(bool)
XclExpXFBuffer::InsertWithNumFmt(ScPatternAttr const*, short, unsigned long, bool)
apitest::XCellRangesQuery::testQueryFormulaCells()
apitest::XDataPilotDescriptor::testGetHiddenFields()
apitest::XDataPilotFieldGrouping::testCreateDateGroup()
......@@ -113,14 +113,14 @@ apitest::XSheetOutline::testAutoOutline()
apitest::XSpreadsheetDocument::testGetSheets()
apitest::XText::testInsertRemoveTextContent()
basebmp::BitmapDevice::getBufferSize() const
basebmp::BitmapDevice::setDamageTracker(boost::shared_ptr<basebmp::IBitmapDeviceDamageTracker> const&)
basebmp::createBitmapDevice(basegfx::B2IVector const&, bool, int, boost::shared_array<unsigned char> const&, boost::shared_ptr<std::__debug::vector<basebmp::Color, std::allocator<basebmp::Color> > const> const&)
basebmp::createBitmapDevice(basegfx::B2IVector const&, bool, int, boost::shared_ptr<std::__debug::vector<basebmp::Color, std::allocator<basebmp::Color> > const> const&)
basebmp::createBitmapDevice(basegfx::B2IVector const&, bool, basebmp::Format, boost::shared_array<unsigned char> const&, boost::shared_ptr<std::__debug::vector<basebmp::Color, std::allocator<basebmp::Color> > const> const&)
basebmp::createBitmapDevice(basegfx::B2IVector const&, bool, basebmp::Format, boost::shared_ptr<std::__debug::vector<basebmp::Color, std::allocator<basebmp::Color> > const> const&)
basegfx::BPixel::getEmptyBPixel()
basegfx::snapToNearestMultiple(double, double)
basegfx::snapToRange(double, double, double)
basegfx::unotools::homMatrixFromMatrix(basegfx::B2DHomMatrix&, com::sun::star::geometry::Matrix2D const&)
canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const&)
chart::TrendlineResources::adjustControlSizes()
comphelper::ComponentContext::ComponentContext(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
comphelper::ComponentContext::createComponentWithArguments(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) const
comphelper::ComponentContext::getLegacyServiceFactory() const
......@@ -139,6 +139,7 @@ drawinglayer::attribute::Sdr3DLightAttribute::isDefault() const
drawinglayer::attribute::Sdr3DObjectAttribute::isDefault() const
drawinglayer::attribute::SdrFillGraphicAttribute::getLogSize() const
drawinglayer::geometry::ViewInformation2D::isDefault() const
formula::DoubleVectorRefToken::GetArrayLength() const
formula::FormulaDlg::CheckMatrix()
formula::FormulaDlg::isUserMatrix() const
framework::MenuBarManager::getComponentContext()
......@@ -200,9 +201,6 @@ svx::sidebar::ColorPanel::GetPreferredHeight(int)
svx::sidebar::ContextPanel::GetPreferredHeight(int)
svx::sidebar::GraphyicBulletsTypeMgr::GraphyicBulletsTypeMgr(unsigned short, SfxItemSet const*)
svx::sidebar::LinePropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
svx::sidebar::LineStyleValueSet::LineStyleValueSet(Window*, ResId const&)
svx::sidebar::LineStyleValueSet::SetFirstSelect(bool)
svx::sidebar::LineStyleValueSet::SetFirstString(String)
svx::sidebar::LineWidthControl::GetValueSet()
svx::sidebar::MixBulletsTypeMgr::MixBulletsTypeMgr(unsigned short, SfxItemSet const*)
svx::sidebar::NBOutlineTypeMgrFact::NBOutlineTypeMgrFact()
......@@ -214,7 +212,6 @@ svx::sidebar::ParaPropertyPanel::InitImageList(boost::scoped_ptr<ToolBox>&, Imag
svx::sidebar::ParaPropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
svx::sidebar::ParaPropertyPanel::ShowMenu()
svx::sidebar::PosSizePropertyPanel::ShowMenu()
svx::sidebar::SvxSBFontNameBox::SvxSBFontNameBox(Window*, ResId const&)
svx::sidebar::TextCharacterSpacingControl::ToGetFocus()
unoidl::UnoidlProvider::getConstant(unsigned int) const
utl::ConfigItem::getUniqueSetElementName(rtl::OUString const&, rtl::OUString&)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment