LibreOffice Module vcl (master) 1
|
#include <dxf2mtf.hxx>
Public Member Functions | |
DXF2GDIMetaFile () | |
~DXF2GDIMetaFile () | |
bool | Convert (const DXFRepresentation &rDXF, GDIMetaFile &rMTF, sal_uInt16 nMinPercent, sal_uInt16 nMaxPercent) |
Static Private Member Functions | |
static sal_uInt64 | CountEntities (const DXFEntities &rEntities) |
Private Attributes | |
VclPtr< VirtualDevice > | pVirDev |
const DXFRepresentation * | pDXF |
bool | bStatus |
sal_uInt16 | OptPointsPerCircle |
sal_uInt16 | nMinPercent |
sal_uInt16 | nMaxPercent |
sal_uInt16 | nLastPercent |
sal_uInt16 | nMainEntitiesCount |
tools::Long | nBlockColor |
DXFLineInfo | aBlockDXFLineInfo |
tools::Long | nParentLayerColor |
DXFLineInfo | aParentLayerDXFLineInfo |
Color | aActLineColor |
Color | aActFillColor |
vcl::Font | aActFont |
const LineInfo | aDefaultLineInfo |
Definition at line 32 of file dxf2mtf.hxx.
DXF2GDIMetaFile::DXF2GDIMetaFile | ( | ) |
Definition at line 760 of file dxf2mtf.cxx.
DXF2GDIMetaFile::~DXF2GDIMetaFile | ( | ) |
Definition at line 775 of file dxf2mtf.cxx.
bool DXF2GDIMetaFile::Convert | ( | const DXFRepresentation & | rDXF, |
GDIMetaFile & | rMTF, | ||
sal_uInt16 | nMinPercent, | ||
sal_uInt16 | nMaxPercent | ||
) |
Definition at line 780 of file dxf2mtf.cxx.
References aActFillColor, aActFont, aActLineColor, aBlockDXFLineInfo, DXFRepresentation::aBoundingBox, DXFVPort::aDirection, DXFRepresentation::aEntities, aParentLayerDXFLineInfo, DXFRepresentation::aTables, DXFVPort::aTarget, DXFBoundingBox::bEmpty, bStatus, CountEntities(), VclPtr< reference_type >::Create(), VclPtr< reference_type >::disposeAndClear(), DrawEntities(), OutputDevice::EnableOutput(), DXFLineInfo::eStyle, DXFVPort::fAspectRatio, DXFVPort::fCenterX, DXFVPort::fCenterY, DXFLineInfo::fDashLen, DXFLineInfo::fDistance, DXFLineInfo::fDotLen, DXFVPort::fHeight, DXFBoundingBox::fMaxX, DXFBoundingBox::fMaxY, DXFBoundingBox::fMinX, DXFBoundingBox::fMinY, DXFBoundingBox::fMinZ, DXFVector::fx, DXFVector::fy, OutputDevice::GetFillColor(), OutputDevice::GetFont(), OutputDevice::GetLineColor(), Size::Height(), utl::ConfigManager::IsFuzzing(), LTypeToDXFLineInfo(), DXFLayer::m_sLineType, nBlockColor, DXFLayer::nColor, DXFLineInfo::nDashCount, DXFLineInfo::nDotCount, nLastPercent, nMainEntitiesCount, nMaxPercent, nMinPercent, nParentLayerColor, OptPointsPerCircle, pDXF, pVirDev, GDIMetaFile::Record(), DXFTables::SearchLayer(), DXFTables::SearchVPort(), Size::setHeight(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), Size::setWidth(), Solid, GDIMetaFile::Stop(), and Size::Width().
Referenced by ImportDxfGraphic().
Definition at line 41 of file dxf2mtf.cxx.
References DXFRepresentation::aPalette, DXFPalette::GetBlue(), DXFPalette::GetGreen(), DXFPalette::GetRed(), and pDXF.
Referenced by SetAreaAttribute(), SetFontAttribute(), and SetLineAttribute().
|
staticprivate |
Definition at line 31 of file dxf2mtf.cxx.
References DXFEntities::pFirst, and DXFBasicEntity::pSucc.
Referenced by Convert().
|
private |
Definition at line 629 of file dxf2mtf.cxx.
References DXF3DFaceEntity::aP0, DXF3DFaceEntity::aP1, DXF3DFaceEntity::aP2, DXF3DFaceEntity::aP3, DrawLine(), OutputDevice::DrawPolygon(), i, DXF3DFaceEntity::nIEFlags, pVirDev, SetLineAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 312 of file dxf2mtf.cxx.
References DXFArcEntity::aP0, basegfx::deg2rad(), OutputDevice::DrawArc(), DrawLine(), OutputDevice::DrawPolyLine(), DXFArcEntity::fEnd, DXFArcEntity::fRadius, DXFArcEntity::fStart, DXFBasicEntity::fThickness, DXFVector::fx, DXFVector::fy, i, DXFTransform::Mirror(), OptPointsPerCircle, pVirDev, SetLineAttribute(), DXFTransform::TransCircleToEllipse(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 487 of file dxf2mtf.cxx.
References DXFVector::Abs(), DXFAttribEntity::aP0, DXFTransform::CalcRotAngle(), OutputDevice::DrawText(), DXFAttribEntity::fHeight, DXFAttribEntity::fRotAngle, DXFAttribEntity::fXScale, DXFAttribEntity::m_sText, DXFAttribEntity::nAttrFlags, pDXF, pVirDev, SetFontAttribute(), DXFRepresentation::ToOUString(), DXFTransform::TransDir(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 260 of file dxf2mtf.cxx.
References DXFCircleEntity::aP0, OutputDevice::DrawEllipse(), DrawLine(), OutputDevice::DrawPolyLine(), DXFCircleEntity::fRadius, DXFBasicEntity::fThickness, DXFVector::fx, DXFVector::fy, i, OptPointsPerCircle, pVirDev, SetLineAttribute(), DXFTransform::TransCircleToEllipse(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 651 of file dxf2mtf.cxx.
References DXFBlock::aBasePoint, aBlockDXFLineInfo, DXFRepresentation::aBlocks, aParentLayerDXFLineInfo, DXFRepresentation::aTables, DrawEntities(), GetEntityColor(), GetEntityDXFLineInfo(), LTypeToDXFLineInfo(), DXFBasicEntity::m_sLayer, DXFLayer::m_sLineType, DXFDimensionEntity::m_sPseudoBlock, nBlockColor, DXFLayer::nColor, nParentLayerColor, pDXF, DXFBlocks::Search(), and DXFTables::SearchLayer().
Referenced by DrawEntities().
|
private |
Definition at line 685 of file dxf2mtf.cxx.
References bStatus, Draw3DFaceEntity(), DrawArcEntity(), DrawAttribEntity(), DrawCircleEntity(), DrawDimensionEntity(), DrawHatchEntity(), DrawInsertEntity(), DrawLineEntity(), DrawLWPolyLineEntity(), DrawPointEntity(), DrawPolyLineEntity(), DrawSolidEntity(), DrawTextEntity(), DrawTraceEntity(), DXF_3DFACE, DXF_ARC, DXF_ATTRIB, DXF_CIRCLE, DXF_DIMENSION, DXF_HATCH, DXF_INSERT, DXF_LINE, DXF_LWPOLYLINE, DXF_POINT, DXF_POLYLINE, DXF_SOLID, DXF_TEXT, DXF_TRACE, DXFEntities::mbBeingDrawn, pE, and DXFEntities::pFirst.
Referenced by Convert(), DrawDimensionEntity(), and DrawInsertEntity().
|
private |
Definition at line 574 of file dxf2mtf.cxx.
References a, DXFHatchEntity::aBoundaryPathData, DXFBoundaryPathData::aEdges, DXFBoundaryPathData::aP, DXFBoundaryPathData::bIsPolyLine, tools::PolyPolygon::Count(), OutputDevice::DrawPolyPolygon(), i, tools::PolyPolygon::Insert(), DXFEdgeType::nEdgeType, pVirDev, SetAreaAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 451 of file dxf2mtf.cxx.
References DXFBlock::aBasePoint, aBlockDXFLineInfo, DXFRepresentation::aBlocks, DXFInsertEntity::aP0, aParentLayerDXFLineInfo, DXFRepresentation::aTables, DrawEntities(), DXFInsertEntity::fRotAngle, DXFInsertEntity::fXScale, DXFInsertEntity::fYScale, DXFInsertEntity::fZScale, GetEntityColor(), GetEntityDXFLineInfo(), LTypeToDXFLineInfo(), DXFBasicEntity::m_sLayer, DXFLayer::m_sLineType, DXFInsertEntity::m_sName, nBlockColor, DXFLayer::nColor, nParentLayerColor, pDXF, DXFBlocks::Search(), and DXFTables::SearchLayer().
Referenced by DrawEntities().
Definition at line 301 of file dxf2mtf.cxx.
References GDIMetaFile::AddAction(), aDefaultLineInfo, OutputDevice::GetConnectMetaFile(), utl::ConfigManager::IsFuzzing(), and pVirDev.
Referenced by Draw3DFaceEntity(), DrawArcEntity(), DrawCircleEntity(), DrawLineEntity(), DrawPointEntity(), DrawPolyLineEntity(), DrawSolidEntity(), and DrawTraceEntity().
|
private |
Definition at line 219 of file dxf2mtf.cxx.
References DXFLineEntity::aP0, DXFLineEntity::aP1, DrawLine(), OutputDevice::DrawLine(), DXFBasicEntity::fThickness, GetEntityDXFLineInfo(), pVirDev, SetLineAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 554 of file dxf2mtf.cxx.
References DXFLWPolyLineEntity::aP, OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), i, DXFLWPolyLineEntity::nFlags, pVirDev, SetLineAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 244 of file dxf2mtf.cxx.
References DXFPointEntity::aP0, DrawLine(), OutputDevice::DrawPixel(), DXFBasicEntity::fThickness, pVirDev, SetLineAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 512 of file dxf2mtf.cxx.
References DrawLine(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), DXF_VERTEX, DXFBasicEntity::eType, DXFBasicEntity::fThickness, i, DXFPolyLineEntity::nFlags, DXFBasicEntity::pSucc, pVirDev, SetLineAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 400 of file dxf2mtf.cxx.
References DXFSolidEntity::aP0, DXFSolidEntity::aP1, DXFSolidEntity::aP2, DXFSolidEntity::aP3, DrawLine(), OutputDevice::DrawPolygon(), DXFBasicEntity::fThickness, i, pVirDev, SetAreaAttribute(), SetLineAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 429 of file dxf2mtf.cxx.
References DXFVector::Abs(), DXFTextEntity::aP0, DXFTransform::CalcRotAngle(), OutputDevice::DrawText(), DXFTextEntity::fHeight, DXFTextEntity::fRotAngle, DXFTextEntity::fXScale, DXFTextEntity::m_sText, pDXF, pVirDev, SetFontAttribute(), DXFRepresentation::ToOUString(), DXFTransform::TransDir(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 375 of file dxf2mtf.cxx.
References DXFTraceEntity::aP0, DXFTraceEntity::aP1, DXFTraceEntity::aP2, DXFTraceEntity::aP3, DrawLine(), OutputDevice::DrawPolygon(), DXFBasicEntity::fThickness, i, pVirDev, SetLineAttribute(), and DXFTransform::Transform().
Referenced by DrawEntities().
|
private |
Definition at line 49 of file dxf2mtf.cxx.
References DXFRepresentation::aTables, DXFBasicEntity::m_sLayer, nBlockColor, DXFBasicEntity::nColor, DXFLayer::nColor, nParentLayerColor, pDXF, and DXFTables::SearchLayer().
Referenced by DrawDimensionEntity(), DrawInsertEntity(), SetAreaAttribute(), SetFontAttribute(), and SetLineAttribute().
|
private |
Definition at line 114 of file dxf2mtf.cxx.
References aBlockDXFLineInfo, aParentLayerDXFLineInfo, DXFRepresentation::aTables, DXFLineInfo::eStyle, DXFLineInfo::fDashLen, DXFLineInfo::fDistance, DXFLineInfo::fDotLen, LTypeToDXFLineInfo(), DXFBasicEntity::m_sLayer, DXFBasicEntity::m_sLineType, DXFLayer::m_sLineType, DXFLineInfo::nDashCount, DXFLineInfo::nDotCount, pDXF, DXFTables::SearchLayer(), and Solid.
Referenced by DrawDimensionEntity(), DrawInsertEntity(), and DrawLineEntity().
|
private |
Definition at line 67 of file dxf2mtf.cxx.
References DXFRepresentation::aTables, Dash, DXFLineInfo::eStyle, DXFLType::fDash, DXFLineInfo::fDashLen, DXFLineInfo::fDistance, DXFLineInfo::fDotLen, DXFRepresentation::getGlobalLineTypeScale(), i, DXFLType::nDashCount, DXFLineInfo::nDashCount, DXFLineInfo::nDotCount, pDXF, DXFTables::SearchLType(), Solid, and x.
Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityDXFLineInfo().
|
private |
Definition at line 168 of file dxf2mtf.cxx.
References aActFillColor, aActLineColor, COL_TRANSPARENT(), ConvertColor(), GetEntityColor(), pVirDev, OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by DrawHatchEntity(), and DrawSolidEntity().
|
private |
Definition at line 190 of file dxf2mtf.cxx.
References aActFont, ALIGN_BASELINE, ConvertColor(), FAMILY_SWISS, GetEntityColor(), pVirDev, vcl::Font::SetAlignment(), vcl::Font::SetColor(), vcl::Font::SetFamily(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), vcl::Font::SetOrientation(), and vcl::Font::SetTransparent().
Referenced by DrawAttribEntity(), and DrawTextEntity().
|
private |
Definition at line 146 of file dxf2mtf.cxx.
References aActFillColor, aActLineColor, COL_TRANSPARENT(), ConvertColor(), GetEntityColor(), pVirDev, OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by Draw3DFaceEntity(), DrawArcEntity(), DrawCircleEntity(), DrawLineEntity(), DrawLWPolyLineEntity(), DrawPointEntity(), DrawPolyLineEntity(), DrawSolidEntity(), and DrawTraceEntity().
|
private |
Definition at line 51 of file dxf2mtf.hxx.
Referenced by Convert(), SetAreaAttribute(), and SetLineAttribute().
|
private |
Definition at line 52 of file dxf2mtf.hxx.
Referenced by Convert(), and SetFontAttribute().
|
private |
Definition at line 50 of file dxf2mtf.hxx.
Referenced by Convert(), SetAreaAttribute(), and SetLineAttribute().
|
private |
Definition at line 47 of file dxf2mtf.hxx.
Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityDXFLineInfo().
|
private |
Definition at line 53 of file dxf2mtf.hxx.
Referenced by DrawLine().
|
private |
Definition at line 49 of file dxf2mtf.hxx.
Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityDXFLineInfo().
|
private |
Definition at line 37 of file dxf2mtf.hxx.
Referenced by Convert(), and DrawEntities().
|
private |
Definition at line 46 of file dxf2mtf.hxx.
Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityColor().
|
private |
Definition at line 43 of file dxf2mtf.hxx.
Referenced by Convert().
|
private |
Definition at line 44 of file dxf2mtf.hxx.
Referenced by Convert().
|
private |
Definition at line 42 of file dxf2mtf.hxx.
Referenced by Convert().
|
private |
Definition at line 41 of file dxf2mtf.hxx.
Referenced by Convert().
|
private |
Definition at line 48 of file dxf2mtf.hxx.
Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityColor().
|
private |
Definition at line 39 of file dxf2mtf.hxx.
Referenced by Convert(), DrawArcEntity(), and DrawCircleEntity().
|
private |
Definition at line 36 of file dxf2mtf.hxx.
Referenced by Convert(), ConvertColor(), DrawAttribEntity(), DrawDimensionEntity(), DrawInsertEntity(), DrawTextEntity(), GetEntityColor(), GetEntityDXFLineInfo(), and LTypeToDXFLineInfo().
|
private |
Definition at line 35 of file dxf2mtf.hxx.
Referenced by Convert(), Draw3DFaceEntity(), DrawArcEntity(), DrawAttribEntity(), DrawCircleEntity(), DrawHatchEntity(), DrawLine(), DrawLineEntity(), DrawLWPolyLineEntity(), DrawPointEntity(), DrawPolyLineEntity(), DrawSolidEntity(), DrawTextEntity(), DrawTraceEntity(), SetAreaAttribute(), SetFontAttribute(), and SetLineAttribute().