Kaydet (Commit) 0696c0aa authored tarafından August Sodora's avatar August Sodora

callcatcher: Remove unused code

üst e8f980d1
......@@ -2148,14 +2148,6 @@ vcl::PDFExtOutDevData::SetOutlineItemParent(int, int)
vcl::PDFExtOutDevData::SetOutlineItemText(int, rtl::OUString const&)
vcl::PDFWriter::DrawPixel(Polygon const&, Color const*)
vcl::PDFWriterImpl::drawPolyPolygon(PolyPolygon const&, int, bool)
vcl::PrintDialog::getCopyCount()
vcl::RowOrColumn::remove(Window*)
vcl::RowOrColumn::remove(boost::shared_ptr<vcl::WindowArranger> const&)
vcl::unotools::xBitmapFromBitmap(com::sun::star::uno::Reference<com::sun::star::rendering::XGraphicDevice> const&, Bitmap const&)
vcl::unotools::xPolyPolygonFromPolyPolygon(com::sun::star::uno::Reference<com::sun::star::rendering::XGraphicDevice> const&, PolyPolygon const&)
vcl::unotools::xPolyPolygonFromPolygon(com::sun::star::uno::Reference<com::sun::star::rendering::XGraphicDevice> const&, Polygon const&)
vcl::unx::GtkPrintWrapper::print_operation_set_has_selection(_GtkPrintOperation*, int) const
vcl::unx::GtkPrintWrapper::print_operation_set_support_selection(_GtkPrintOperation*, int) const
void ScCompressedArrayIterator<int, unsigned short>::Follow<unsigned char>(ScCompressedArrayIterator<int, unsigned char> const&)
writerfilter::TagLogger::attribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rtl::OUString const&)
writerfilter::TagLogger::chars(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
......@@ -295,7 +295,6 @@ namespace vcl
virtual ~PrintDialog();
bool isPrintToFile();
int getCopyCount();
bool isCollate();
bool isSingleJobs();
......
......@@ -251,13 +251,11 @@ namespace vcl
// add a managed window at the given index
// an index smaller than zero means add the window at the end
size_t addWindow( Window*, sal_Int32 i_nExpandPrio = 0, const Size& i_rMinSize = Size(), size_t i_nIndex = ~0 );
void remove( Window* );
size_t addChild( boost::shared_ptr<WindowArranger> const &, sal_Int32 i_nExpandPrio = 0, size_t i_nIndex = ~0 );
// convenience: use for addChild( new WindowArranger( ... ) ) constructs
size_t addChild( WindowArranger* i_pNewChild, sal_Int32 i_nExpandPrio = 0, size_t i_nIndex = ~0 )
{ return addChild( boost::shared_ptr<WindowArranger>( i_pNewChild ), i_nExpandPrio, i_nIndex ); }
void remove( boost::shared_ptr<WindowArranger> const & );
long getBorderWidth() const { return m_nBorderWidth; }
};
......
......@@ -81,33 +81,9 @@ namespace vcl
{
namespace unotools
{
// Polygon conversions
// ===================================================================
/** Create an XPolyPolygon from VCL/Tools polygon
*/
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
VCL_DLLPUBLIC xPolyPolygonFromPolygon( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
const ::Polygon& inputPolygon );
/** Create an XPolyPolygon from VCL/Tools polyPolygon
*/
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
VCL_DLLPUBLIC xPolyPolygonFromPolyPolygon( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
const ::PolyPolygon& inputPolyPolygon );
// Bitmap conversions
// ===================================================================
/** Create an XBitmap from VCL Bitmap
*/
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
VCL_DLLPUBLIC xBitmapFromBitmap( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
const ::Bitmap& inputBitmap );
/** Create an XBitmap from VCL BitmapEx
*/
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
......
......@@ -79,48 +79,6 @@ namespace vcl
{
namespace unotools
{
// #i79917# removed helpers bezierSequenceFromPolygon and
// pointSequenceFromPolygon here
// Also all helpers using tools Polygon and PolyPolygon will get mapped to the
// B2DPolygon helpers for these cases, see comments with the same TaskID below.
// TODO: Remove those wrapped methods
//---------------------------------------------------------------------------------------
uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
const ::Polygon& inputPolygon )
{
RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xPolyPolygonFromPolygon()" );
// #i79917# map to basegfx
const basegfx::B2DPolygon aB2DPolygon(inputPolygon.getB2DPolygon());
return basegfx::unotools::xPolyPolygonFromB2DPolygon(xGraphicDevice, aB2DPolygon);
}
//---------------------------------------------------------------------------------------
uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
const ::PolyPolygon& inputPolyPolygon )
{
RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xPolyPolygonFromPolyPolygon()" );
// #i79917# map to basegfx
const basegfx::B2DPolyPolygon aB2DPolyPolygon(inputPolyPolygon.getB2DPolyPolygon());
return basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(xGraphicDevice, aB2DPolyPolygon);
}
//---------------------------------------------------------------------------------------
uno::Reference< rendering::XBitmap > xBitmapFromBitmap( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/,
const ::Bitmap& inputBitmap )
{
RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xBitmapFromBitmap()" );
return new vcl::unotools::VclCanvasBitmap( BitmapEx( inputBitmap ) );
}
//---------------------------------------------------------------------------------------
uno::Reference< rendering::XBitmap > xBitmapFromBitmapEx( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/,
const ::BitmapEx& inputBitmap )
{
......@@ -129,8 +87,6 @@ namespace vcl
return new vcl::unotools::VclCanvasBitmap( inputBitmap );
}
//---------------------------------------------------------------------------------------
namespace
{
inline bool operator==( const rendering::IntegerBitmapLayout& rLHS,
......
......@@ -524,38 +524,6 @@ size_t RowOrColumn::addChild( boost::shared_ptr<WindowArranger> const & i_pChild
return nIndex;
}
void RowOrColumn::remove( Window* i_pWindow )
{
if( i_pWindow )
{
for( std::vector< WindowArranger::Element >::iterator it = m_aElements.begin();
it != m_aElements.end(); ++it )
{
if( it->m_pElement == i_pWindow )
{
m_aElements.erase( it );
return;
}
}
}
}
void RowOrColumn::remove( boost::shared_ptr<WindowArranger> const & i_pChild )
{
if( i_pChild )
{
for( std::vector< WindowArranger::Element >::iterator it = m_aElements.begin();
it != m_aElements.end(); ++it )
{
if( it->m_pChild == i_pChild )
{
m_aElements.erase( it );
return;
}
}
}
}
// ----------------------------------------
// vcl::LabeledElement
//-----------------------------------------
......
......@@ -1028,11 +1028,6 @@ bool PrintDialog::isPrintToFile()
return maOptionsPage.maToFileBox.IsChecked();
}
int PrintDialog::getCopyCount()
{
return static_cast<int>(maJobPage.maCopyCountField.GetValue());
}
bool PrintDialog::isCollate()
{
return maJobPage.maCopyCountField.GetValue() > 1 ? maJobPage.maCollateBox.IsChecked() : sal_False;
......
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