Kaydet (Commit) e8dbf684 authored tarafından Elton Chung's avatar Elton Chung Kaydeden (comit) Tor Lillqvist

Remove unused code

üst bd205223
...@@ -316,9 +316,6 @@ namespace basegfx ...@@ -316,9 +316,6 @@ namespace basegfx
// distort polygon. rOriginal describes the original range, where the given points describe the distorted corresponding points. // distort polygon. rOriginal describes the original range, where the given points describe the distorted corresponding points.
BASEGFX_DLLPUBLIC B2DPolygon distort(const B2DPolygon& rCandidate, const B2DRange& rOriginal, const B2DPoint& rTopLeft, const B2DPoint& rTopRight, const B2DPoint& rBottomLeft, const B2DPoint& rBottomRight); BASEGFX_DLLPUBLIC B2DPolygon distort(const B2DPolygon& rCandidate, const B2DRange& rOriginal, const B2DPoint& rTopLeft, const B2DPoint& rTopRight, const B2DPoint& rBottomLeft, const B2DPoint& rBottomRight);
// rotate polygon around given point with given angle.
BASEGFX_DLLPUBLIC B2DPolygon rotateAroundPoint(const B2DPolygon& rCandidate, const B2DPoint& rCenter, double fAngle);
// expand all segments (which are not yet) to curve segments. This is done with setting the control // expand all segments (which are not yet) to curve segments. This is done with setting the control
// vectors on the 1/3 resp. 2/3 distances on each segment. // vectors on the 1/3 resp. 2/3 distances on each segment.
BASEGFX_DLLPUBLIC B2DPolygon expandToCurve(const B2DPolygon& rCandidate); BASEGFX_DLLPUBLIC B2DPolygon expandToCurve(const B2DPolygon& rCandidate);
...@@ -327,9 +324,6 @@ namespace basegfx ...@@ -327,9 +324,6 @@ namespace basegfx
// vectors on the 1/3 resp. 2/3 distances. The return value describes if a change took place. // vectors on the 1/3 resp. 2/3 distances. The return value describes if a change took place.
BASEGFX_DLLPUBLIC bool expandToCurveInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex); BASEGFX_DLLPUBLIC bool expandToCurveInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex);
// set continuity for the whole curve. If not a curve, nothing will change. Non-curve points are not changed, too.
B2DPolygon setContinuity(const B2DPolygon& rCandidate, B2VectorContinuity eContinuity);
// set continuity for given index. If not a curve, nothing will change. Non-curve points are not changed, too. // set continuity for given index. If not a curve, nothing will change. Non-curve points are not changed, too.
// The return value describes if a change took place. // The return value describes if a change took place.
BASEGFX_DLLPUBLIC bool setContinuityInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity); BASEGFX_DLLPUBLIC bool setContinuityInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity);
......
...@@ -52,13 +52,6 @@ namespace basegfx ...@@ -52,13 +52,6 @@ namespace basegfx
B3DORIENTATION_Z // Z-Axis B3DORIENTATION_Z // Z-Axis
}; };
// Clip given 3D polygon against a plane orthogonal to X,Y or Z axis. The plane is defined using the
// enum ePlaneOrthogonal which names the vector orthogonal to the plane, the fPlaneOffset gives the distance
// of the plane from the center (0.0).
// The value bClipPositive defines on which side the return value will be (true -> on positive side of plane).
// The switch bStroke decides if the polygon is interpreted as area (false) or strokes (true).
BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolyPolygonOnOrthogonalPlane(const B3DPolyPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke);
// version for Polygons // version for Polygons
BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolygonOnOrthogonalPlane(const B3DPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke); BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolygonOnOrthogonalPlane(const B3DPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke);
......
...@@ -76,9 +76,6 @@ namespace basegfx ...@@ -76,9 +76,6 @@ namespace basegfx
// get area of polygon // get area of polygon
BASEGFX_DLLPUBLIC double getArea(const ::basegfx::B3DPolygon& rCandidate); BASEGFX_DLLPUBLIC double getArea(const ::basegfx::B3DPolygon& rCandidate);
// get length of polygon edge from point nIndex to nIndex + 1
BASEGFX_DLLPUBLIC double getEdgeLength(const B3DPolygon& rCandidate, sal_uInt32 nIndex);
// get length of polygon // get length of polygon
BASEGFX_DLLPUBLIC double getLength(const B3DPolygon& rCandidate); BASEGFX_DLLPUBLIC double getLength(const B3DPolygon& rCandidate);
......
...@@ -2549,21 +2549,6 @@ namespace basegfx ...@@ -2549,21 +2549,6 @@ namespace basegfx
} }
} }
B2DPolygon rotateAroundPoint(const B2DPolygon& rCandidate, const B2DPoint& rCenter, double fAngle)
{
const sal_uInt32 nPointCount(rCandidate.count());
B2DPolygon aRetval(rCandidate);
if(nPointCount)
{
const B2DHomMatrix aMatrix(basegfx::tools::createRotateAroundPoint(rCenter, fAngle));
aRetval.transform(aMatrix);
}
return aRetval;
}
B2DPolygon expandToCurve(const B2DPolygon& rCandidate) B2DPolygon expandToCurve(const B2DPolygon& rCandidate)
{ {
B2DPolygon aRetval(rCandidate); B2DPolygon aRetval(rCandidate);
...@@ -2618,18 +2603,6 @@ namespace basegfx ...@@ -2618,18 +2603,6 @@ namespace basegfx
return bRetval; return bRetval;
} }
B2DPolygon setContinuity(const B2DPolygon& rCandidate, B2VectorContinuity eContinuity)
{
B2DPolygon aRetval(rCandidate);
for(sal_uInt32 a(0L); a < rCandidate.count(); a++)
{
setContinuityInPoint(aRetval, a, eContinuity);
}
return aRetval;
}
bool setContinuityInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity) bool setContinuityInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity)
{ {
OSL_ENSURE(nIndex < rCandidate.count(), "setContinuityInPoint: Access to polygon out of range (!)"); OSL_ENSURE(nIndex < rCandidate.count(), "setContinuityInPoint: Access to polygon out of range (!)");
......
...@@ -294,18 +294,6 @@ namespace basegfx ...@@ -294,18 +294,6 @@ namespace basegfx
return aRetval; return aRetval;
} }
B3DPolyPolygon clipPolyPolygonOnOrthogonalPlane(const B3DPolyPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke)
{
B3DPolyPolygon aRetval;
for(sal_uInt32 a(0L); a < rCandidate.count(); a++)
{
aRetval.append(clipPolygonOnOrthogonalPlane(rCandidate.getB3DPolygon(a), ePlaneOrthogonal, bClipPositive, fPlaneOffset, bStroke));
}
return aRetval;
}
} // end of namespace tools } // end of namespace tools
} // end of namespace basegfx } // end of namespace basegfx
......
...@@ -153,27 +153,6 @@ namespace basegfx ...@@ -153,27 +153,6 @@ namespace basegfx
return fRetval; return fRetval;
} }
double getEdgeLength(const B3DPolygon& rCandidate, sal_uInt32 nIndex)
{
OSL_ENSURE(nIndex < rCandidate.count(), "getEdgeLength: Access to polygon out of range (!)");
double fRetval(0.0);
const sal_uInt32 nPointCount(rCandidate.count());
if(nIndex < nPointCount)
{
if(rCandidate.isClosed() || ((nIndex + 1L) != nPointCount))
{
const sal_uInt32 nNextIndex(getIndexOfSuccessor(nIndex, rCandidate));
const B3DPoint aCurrentPoint(rCandidate.getB3DPoint(nIndex));
const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex));
const B3DVector aVector(aNextPoint - aCurrentPoint);
fRetval = aVector.getLength();
}
}
return fRetval;
}
double getLength(const B3DPolygon& rCandidate) double getLength(const B3DPolygon& rCandidate)
{ {
double fRetval(0.0); double fRetval(0.0);
......
...@@ -224,23 +224,6 @@ public: ...@@ -224,23 +224,6 @@ public:
// In:- optional - check the contents of Xtransferable // In:- optional - check the contents of Xtransferable
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >* pxTransferable = NULL ); const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >* pxTransferable = NULL );
// same for XTransferable interface
static sal_uInt16 GetExchangeAction(
// XTransferable
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable,
// Ziel der Aktion (EXCHG_DEST_*)
sal_uInt16 nDestination,
// Aktionen, die Quelle unterstuetzt (EXCHG_SOURCE_...)
sal_uInt16 nSourceOptions,
// vom Anwender gewaehlte Aktion (EXCHG_IN_*, EXCHG_INOUT_*)
sal_uInt16 nUserAction,
// In:- Out: Zu benutzendes Format
sal_uLong& rFormat,
// In:- Out: Default-Action (EXCHG_IN_*, EXCHG_INOUT_*)
sal_uInt16& rDefaultAction,
// In:- optional - check only for this specific format
sal_uLong nOnlyTestFormat = 0 );
static sal_uInt16 IsChart( const SvGlobalName& rName ); static sal_uInt16 IsChart( const SvGlobalName& rName );
static sal_uInt16 IsMath( const SvGlobalName& rName ); static sal_uInt16 IsMath( const SvGlobalName& rName );
}; };
......
...@@ -1548,63 +1548,6 @@ sal_uInt16 SotExchange::GetExchangeAction( const DataFlavorExVector& rDataFlavor ...@@ -1548,63 +1548,6 @@ sal_uInt16 SotExchange::GetExchangeAction( const DataFlavorExVector& rDataFlavor
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
sal_uInt16 SotExchange::GetExchangeAction(
const Reference< XTransferable >& rxTransferable,
sal_uInt16 nDestination, sal_uInt16 nSourceOptions,
sal_uInt16 nUserAction, sal_uLong& rFormat,
sal_uInt16& rDefaultAction, sal_uLong nOnlyTestFormat )
{
DataFlavorExVector aVector;
if( rxTransferable.is() )
{
try
{
const Sequence< DataFlavor > aFlavors( rxTransferable->getTransferDataFlavors() );
for( sal_Int32 i = 0; i < aFlavors.getLength(); i++ )
{
DataFlavorEx aFlavorEx;
const DataFlavor& rFlavor = aFlavors[ i ];
aFlavorEx.MimeType = rFlavor.MimeType;
aFlavorEx.HumanPresentableName = rFlavor.HumanPresentableName;
aFlavorEx.DataType = rFlavor.DataType;
aFlavorEx.mnSotId = SotExchange::RegisterFormat( rFlavor );
aVector.push_back( aFlavorEx );
if( ( SOT_FORMATSTR_ID_BMP == aFlavorEx.mnSotId ) &&
!IsFormatSupported( aVector, SOT_FORMAT_BITMAP ) )
{
if( SotExchange::GetFormatDataFlavor( SOT_FORMAT_BITMAP, aFlavorEx ) )
{
aFlavorEx.mnSotId = SOT_FORMAT_BITMAP;
aVector.push_back( aFlavorEx );
}
}
else if( ( ( SOT_FORMATSTR_ID_WMF == aFlavorEx.mnSotId ) ||
( SOT_FORMATSTR_ID_EMF == aFlavorEx.mnSotId ) ) &&
!IsFormatSupported( aVector, SOT_FORMAT_GDIMETAFILE ) )
{
if( SotExchange::GetFormatDataFlavor( SOT_FORMAT_GDIMETAFILE, aFlavorEx ) )
{
aFlavorEx.mnSotId = SOT_FORMAT_GDIMETAFILE;
aVector.push_back( aFlavorEx );
}
}
}
}
catch( const ::com::sun::star::uno::Exception& )
{
}
}
return( SotExchange::GetExchangeAction( aVector, nDestination, nSourceOptions,
nUserAction, rFormat, rDefaultAction,
nOnlyTestFormat, &rxTransferable ) );
}
sal_uInt16 SotExchange::IsChart( const SvGlobalName& rName ) sal_uInt16 SotExchange::IsChart( const SvGlobalName& rName )
{ {
sal_uInt16 nRet=0; sal_uInt16 nRet=0;
......
...@@ -163,7 +163,6 @@ SortedPositions::Remove(unsigned short, unsigned short) ...@@ -163,7 +163,6 @@ SortedPositions::Remove(unsigned short, unsigned short)
SortedPositions_SAR::Replace(unsigned int const&, unsigned short) SortedPositions_SAR::Replace(unsigned int const&, unsigned short)
SortedPositions_SAR::Replace(unsigned int const*, unsigned short, unsigned short) SortedPositions_SAR::Replace(unsigned int const*, unsigned short, unsigned short)
SortedPositions_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned int const&, void*), void*) SortedPositions_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned int const&, void*), void*)
SotExchange::GetExchangeAction(com::sun::star::uno::Reference<com::sun::star::datatransfer::XTransferable> const&, unsigned short, unsigned short, unsigned short, unsigned long&, unsigned short&, unsigned long)
SotStorage::GetProperty(String const&, String const&, com::sun::star::uno::Any&) SotStorage::GetProperty(String const&, String const&, com::sun::star::uno::Any&)
SpanStyleManager::get(WPXString const&) const SpanStyleManager::get(WPXString const&) const
SpinButton::SpinButton(Window*, ResId const&) SpinButton::SpinButton(Window*, ResId const&)
...@@ -504,13 +503,9 @@ _ZSortFlys_SAR::Replace(_ZSortFly const&, unsigned short) ...@@ -504,13 +503,9 @@ _ZSortFlys_SAR::Replace(_ZSortFly const&, unsigned short)
_ZSortFlys_SAR::Replace(_ZSortFly const*, unsigned short, unsigned short) _ZSortFlys_SAR::Replace(_ZSortFly const*, unsigned short, unsigned short)
_ZSortFlys_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_ZSortFly const&, void*), void*) _ZSortFlys_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_ZSortFly const&, void*), void*)
basebmp::debugDump(boost::shared_ptr<basebmp::BitmapDevice> const&, std::basic_ostream<char, std::char_traits<char> >&) basebmp::debugDump(boost::shared_ptr<basebmp::BitmapDevice> const&, std::basic_ostream<char, std::char_traits<char> >&)
basegfx::tools::clipPolyPolygonOnOrthogonalPlane(basegfx::B3DPolyPolygon const&, basegfx::tools::B3DOrientation, bool, double, bool)
basegfx::tools::equal(basegfx::B2DPolyPolygon const&, basegfx::B2DPolyPolygon const&, double const&) basegfx::tools::equal(basegfx::B2DPolyPolygon const&, basegfx::B2DPolyPolygon const&, double const&)
basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&, double const&) basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&, double const&)
basegfx::tools::getEdgeLength(basegfx::B3DPolygon const&, unsigned int)
basegfx::tools::getSignedArea(basegfx::B3DPolygon const&) basegfx::tools::getSignedArea(basegfx::B3DPolygon const&)
basegfx::tools::rotateAroundPoint(basegfx::B2DPolygon const&, basegfx::B2DPoint const&, double)
basegfx::tools::setContinuity(basegfx::B2DPolygon const&, basegfx::B2VectorContinuity)
basic::ScriptExtensionIterator::implGetScriptPackageFromPackage(com::sun::star::uno::Reference<com::sun::star::deployment::XPackage>, bool&) basic::ScriptExtensionIterator::implGetScriptPackageFromPackage(com::sun::star::uno::Reference<com::sun::star::deployment::XPackage>, bool&)
basic::vba::getCurrentDirectory(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&) basic::vba::getCurrentDirectory(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&)
binfilter::B3dEdgeEntryBucketMemArr::Insert(binfilter::B3dEdgeEntryBucketMemArr const*, unsigned short, unsigned short, unsigned short) binfilter::B3dEdgeEntryBucketMemArr::Insert(binfilter::B3dEdgeEntryBucketMemArr const*, unsigned short, unsigned short, unsigned short)
......
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