LibreOffice Module filter (master) 1
|
#include <msdffimp.hxx>
Public Member Functions | |
DffPropertyReader (const SvxMSDffManager &rManager) | |
~DffPropertyReader () | |
DffPropertyReader & | operator= (DffPropertyReader const &)=delete |
DffPropertyReader (DffPropertyReader const &)=delete | |
void | ReadPropSet (SvStream &rIn, SvxMSDffClientData *pClientData) const |
void | SetDefaultPropSet (SvStream &rIn, sal_uInt32 nOffDgg) const |
void | ApplyAttributes (SvStream &rIn, SfxItemSet &rSet) const |
void | ApplyAttributes (SvStream &rIn, SfxItemSet &rSet, DffObjData const &rObjData) const |
void | ImportGradientColor (SfxItemSet &aSet, sal_uInt32 eMSO_FillType, double dTrans, double dBackTrans) const |
Public Member Functions inherited from DffPropSet | |
DffPropSet () | |
~DffPropSet () | |
bool | IsProperty (sal_uInt32 nRecType) const |
bool | IsHardAttribute (sal_uInt32 nId) const |
sal_uInt32 | GetPropertyValue (sal_uInt32 nId, sal_uInt32 nDefault) const |
bool | GetPropertyBool (sal_uInt32 nId) const |
Returns a boolean property by its real identifier. More... | |
OUString | GetPropertyString (sal_uInt32 nId, SvStream &rStrm) const |
Returns a string property. More... | |
bool | SeekToContent (sal_uInt32 nRecType, SvStream &rSt) const |
void | InitializePropSet (sal_uInt16 nPropSetType) const |
Static Public Member Functions | |
static Degree100 | Fix16ToAngle (sal_Int32 nAngle) |
Static Public Member Functions inherited from DffPropSet | |
static sal_uLong | SanitizeEndPos (SvStream &rIn, sal_uLong nEndRecPos) |
Public Attributes | |
Degree100 | mnFix16Angle |
bool | mbRotateGranientFillWithAngle |
Private Member Functions | |
void | ApplyCustomShapeTextAttributes (SfxItemSet &rSet) const |
void | CheckAndCorrectExcelTextRotation (SvStream &rIn, SfxItemSet &rSet, DffObjData const &rObjData) const |
void | ApplyCustomShapeGeometryAttributes (SvStream &rIn, SfxItemSet &rSet, const DffObjData &rObjData) const |
void | ApplyLineAttributes (SfxItemSet &rSet, const MSO_SPT eShapeType) const |
void | ApplyFillAttributes (SvStream &rIn, SfxItemSet &rSet, const DffObjData &rObjData) const |
Private Attributes | |
const SvxMSDffManager & | rManager |
std::unique_ptr< DffPropSet > | pDefaultPropSet |
Definition at line 82 of file msdffimp.hxx.
|
explicit |
Definition at line 250 of file msdffimp.cxx.
References DFF_msofbtOPT, and DffPropSet::InitializePropSet().
DffPropertyReader::~DffPropertyReader | ( | ) |
Definition at line 411 of file msdffimp.cxx.
|
delete |
void DffPropertyReader::ApplyAttributes | ( | SvStream & | rIn, |
SfxItemSet & | rSet | ||
) | const |
Definition at line 2619 of file msdffimp.cxx.
References ApplyAttributes(), and rSet.
Referenced by ApplyAttributes(), SdrPowerPointImport::ImportPageBackgroundObject(), SvxMSDffManager::ImportShape(), SvxMSDffManager::ProcessObj(), and SdrEscherImport::ProcessObj().
void DffPropertyReader::ApplyAttributes | ( | SvStream & | rIn, |
SfxItemSet & | rSet, | ||
DffObjData const & | rObjData | ||
) | const |
Definition at line 2626 of file msdffimp.cxx.
References ApplyCustomShapeGeometryAttributes(), ApplyCustomShapeTextAttributes(), ApplyFillAttributes(), ApplyLineAttributes(), bHasShadow, CheckAndCorrectExcelTextRotation(), DFF_Prop_fFilled, DFF_Prop_fillColor, DFF_Prop_fillType, DFF_Prop_fLine, DFF_Prop_fNoFillHitTest, DFF_Prop_fNoLineDrawDash, DFF_Prop_fshadowObscured, DFF_Prop_gtextFStrikethrough, DFF_Prop_gtextSize, DFF_Prop_pVertices, DFF_Prop_shadowColor, DFF_Prop_shadowOffsetX, DFF_Prop_shadowOffsetY, DFF_Prop_shadowOpacity, DFF_Prop_shadowType, EE_CHAR_FONTHEIGHT(), EE_CHAR_ITALIC(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), DffObjData::eShapeType, FlipV, DffPropSet::GetPropertyValue(), SdrModel::GetScaleUnit(), SvxMSDffManager::GetSvxMSDffSettings(), IsCustomShapeFilledByDefault(), IsCustomShapeStrokedByDefault(), DffPropSet::IsHardAttribute(), DffPropSet::IsProperty(), ITALIC_NONE, ITALIC_NORMAL, LINESTYLE_NONE, LINESTYLE_SINGLE, makeSdrShadowColorItem(), makeSdrShadowItem(), makeSdrShadowTransparenceItem(), makeSdrShadowXDistItem(), makeSdrShadowYDistItem(), mnFix16Angle, SvxMSDffManager::MSO_CLR_ToColor(), mso_fillPattern, mso_fillPicture, mso_fillShade, mso_fillShadeCenter, mso_fillShadeScale, mso_fillShadeShape, mso_fillShadeTitle, mso_fillSolid, mso_fillTexture, mso_shadowOffset, mso_sptNil, mso_sptPictureFrame, DffObjData::nSpFlags, SvxMSDffManager::pSdrModel, SfxItemSet::Put(), rManager, rSet, SvxMSDffManager::ScaleEmu(), SvxMSDffManager::ScalePt(), STRIKEOUT_NONE, STRIKEOUT_SINGLE, SVXMSDFF_SETTINGS_IMPORT_EXCEL, WEIGHT_BOLD, and WEIGHT_NORMAL.
|
private |
Definition at line 1604 of file msdffimp.cxx.
References aMap, aSegments, comphelper::containerToSequence(), DFF_Prop_adjust10Value, DFF_Prop_adjustValue, DFF_Prop_c3DAmbientIntensity, DFF_Prop_c3DDiffuseAmt, DFF_Prop_c3DExtrudeBackward, DFF_Prop_c3DExtrudeForward, DFF_Prop_c3DExtrusionColor, DFF_Prop_c3DFillIntensity, DFF_Prop_c3DFillX, DFF_Prop_c3DFillY, DFF_Prop_c3DFillZ, DFF_Prop_c3DKeyIntensity, DFF_Prop_c3DKeyX, DFF_Prop_c3DKeyY, DFF_Prop_c3DKeyZ, DFF_Prop_c3DOriginX, DFF_Prop_c3DOriginY, DFF_Prop_c3DRenderMode, DFF_Prop_c3DRotationCenterX, DFF_Prop_c3DRotationCenterY, DFF_Prop_c3DRotationCenterZ, DFF_Prop_c3DShininess, DFF_Prop_c3DSkewAmount, DFF_Prop_c3DSkewAngle, DFF_Prop_c3DSpecularAmt, DFF_Prop_c3DTolerance, DFF_Prop_c3DXRotationAngle, DFF_Prop_c3DXViewpoint, DFF_Prop_c3DYRotationAngle, DFF_Prop_c3DYViewpoint, DFF_Prop_c3DZViewpoint, DFF_Prop_cdirFont, DFF_Prop_connectorPoints, DFF_Prop_connectorType, DFF_Prop_f3DOK, DFF_Prop_fc3DFillHarsh, DFF_Prop_fc3DLightFace, DFF_Prop_fFillOK, DFF_Prop_fFillShadeShapeOK, DFF_Prop_fGtextOK, DFF_Prop_geoBottom, DFF_Prop_geoLeft, DFF_Prop_geoRight, DFF_Prop_geoTop, DFF_Prop_gtextFStretch, DFF_Prop_gtextFStrikethrough, DFF_Prop_Handles, DFF_Prop_pFormulas, DFF_Prop_pSegmentInfo, DFF_Prop_pVertices, DFF_Prop_stretchPointX, DFF_Prop_stretchPointY, DFF_Prop_textRectangles, DFF_Prop_txflTextFlow, DffObjData::eShapeType, EnhancedCustomShapeTypeNames::Get(), GetCustomShapeContent(), EnhancedCustomShape2d::GetEquation(), DffPropSet::GetPropertyValue(), gentoken::i, DffPropSet::IsHardAttribute(), DffPropSet::IsProperty(), mso_cdir0, mso_cdir180, mso_cdir270, mso_cdir90, SvxMSDffManager::MSO_CLR_ToColor(), mso_sptArc, mso_sptTextArchDownCurve, mso_sptTextArchUpCurve, mso_sptTextButtonCurve, mso_sptTextCircleCurve, mso_txflBtoT, mso_txflTtoBA, mso_Wireframe, mso_CustomShape::nHandles, nValue, pData, mso_CustomShape::pHandles, SfxItemSet::Put(), SvStream::ReadInt16(), SvStream::ReadInt32(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), SvStream::remainingSize(), rManager, rSet, SAL_WARN, DffPropSet::SeekToContent(), EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter(), EnhancedCustomShape2d::SetEnhancedCustomShapeParameter(), and UNKNOWN.
Referenced by ApplyAttributes().
|
private |
Definition at line 1474 of file msdffimp.cxx.
References DFF_Prop_anchorText, DFF_Prop_cdirFont, DFF_Prop_dxTextLeft, DFF_Prop_dxTextRight, DFF_Prop_dyTextBottom, DFF_Prop_dyTextTop, DFF_Prop_FitTextToShape, DFF_Prop_txflTextFlow, DFF_Prop_WrapText, EE_PARA_WRITINGDIR(), DffPropSet::GetPropertyValue(), DffPropSet::IsProperty(), makeSdrTextAutoGrowHeightItem(), makeSdrTextLeftDistItem(), makeSdrTextLowerDistItem(), makeSdrTextRightDistItem(), makeSdrTextUpperDistItem(), makeSdrTextWordWrapItem(), mso_anchorBottom, mso_anchorBottomBaseline, mso_anchorBottomCentered, mso_anchorBottomCenteredBaseline, mso_anchorMiddle, mso_anchorMiddleCentered, mso_anchorTop, mso_anchorTopBaseline, mso_anchorTopCentered, mso_anchorTopCenteredBaseline, mso_cdir0, mso_txflTtoBA, mso_txflTtoBN, mso_txflVertN, mso_wrapNone, mso_wrapSquare, SfxItemSet::Put(), rSet, SDRTEXTHORZADJUST_CENTER, SDRTEXTHORZADJUST_LEFT, SDRTEXTHORZADJUST_RIGHT, SDRTEXTVERTADJUST_BOTTOM, SDRTEXTVERTADJUST_CENTER, and SDRTEXTVERTADJUST_TOP.
Referenced by ApplyAttributes().
|
private |
Definition at line 1326 of file msdffimp.cxx.
References DffObjData::aBoundRect, ApplyRectangularGradientAsBitmap(), COL_WHITE(), vcl::bitmap::CreateFromData(), DFF_Prop_fFilled, DFF_Prop_fillBackColor, DFF_Prop_fillBackOpacity, DFF_Prop_fillBlip, DFF_Prop_fillColor, DFF_Prop_fillHeight, DFF_Prop_fillOpacity, DFF_Prop_fillType, DFF_Prop_fillWidth, DFF_Prop_fNoFillHitTest, DffObjData::eShapeType, BitmapEx::GetBitmap(), Graphic::GetBitmapEx(), SvxMSDffManager::GetBLIPDirect(), Bitmap::getPixelFormat(), DffPropSet::GetPropertyValue(), GetShadeColors(), Bitmap::GetSizePixel(), Size::Height(), vcl::bitmap::RawBitmap::Height(), ImportGradientColor(), IsCustomShapeFilledByDefault(), tools::Rectangle::IsEmpty(), DffPropSet::IsHardAttribute(), DffPropSet::IsProperty(), mnFix16Angle, SvxMSDffManager::MSO_CLR_ToColor(), mso_fillPattern, mso_fillPicture, mso_fillShade, mso_fillShadeCenter, mso_fillShadeScale, mso_fillShadeShape, mso_fillShadeTitle, mso_fillSolid, mso_fillTexture, vcl::N8_BPP, SfxItemSet::Put(), rManager, rSet, DffPropSet::SeekToContent(), vcl::bitmap::RawBitmap::SetPixel(), Size::Width(), vcl::bitmap::RawBitmap::Width(), x, and y.
Referenced by ApplyAttributes().
|
private |
Definition at line 917 of file msdffimp.cxx.
References DFF_Prop_fLine, DFF_Prop_fNoLineDrawDash, DFF_Prop_lineColor, DFF_Prop_lineDashing, DFF_Prop_lineEndArrowhead, DFF_Prop_lineEndArrowLength, DFF_Prop_lineEndArrowWidth, DFF_Prop_lineEndCapStyle, DFF_Prop_lineJoinStyle, DFF_Prop_lineOpacity, DFF_Prop_lineStartArrowhead, DFF_Prop_lineStartArrowLength, DFF_Prop_lineStartArrowWidth, DFF_Prop_lineWidth, GetLineArrow(), GetPropertyValue(), IsCustomShapeStrokedByDefault(), mso_lineDashDotDotSys, mso_lineDashDotGEL, mso_lineDashDotSys, mso_lineDashGEL, mso_lineDashSys, mso_lineDotGEL, mso_lineDotSys, mso_lineEndCapFlat, mso_lineEndCapRound, mso_lineEndCapSquare, mso_lineJoinBevel, mso_lineJoinMiter, mso_lineJoinRound, mso_lineLongDashDotDotGEL, mso_lineLongDashDotGEL, mso_lineLongDashGEL, mso_lineMediumLenArrow, mso_lineMediumWidthArrow, mso_lineSolid, mso_sptMin, nLineWidth, SfxItemSet::Put(), and rSet.
Referenced by ApplyAttributes().
|
private |
Definition at line 2754 of file msdffimp.cxx.
References aSeq, DffObjData::bOpt2, DffObjData::bRotateTextWithShape, DFF_Prop_metroBlob, FlipV, SfxItemSet::Get(), SdrCustomShapeGeometryItem::GetPropertyValueByName(), comphelper::OStorageHelper::GetStorageOfFormatFromInputStream(), mnFix16Angle, DffObjData::nSpFlags, OFOPXML_STORAGE_FORMAT_STRING, SvxMSDffManager::pSecPropSet, SfxItemSet::Put(), SvStream::ReadBytes(), rManager, rSet, SDRATTR_CUSTOMSHAPE_GEOMETRY(), SdrCustomShapeGeometryItem::SetPropertyValue(), toDegrees(), and u.
Referenced by ApplyAttributes().
|
static |
Definition at line 400 of file msdffimp.cxx.
References NormAngle36000().
Referenced by ImportGradientColor(), and SdrPowerPointImport::ImportPageBackgroundObject().
void DffPropertyReader::ImportGradientColor | ( | SfxItemSet & | aSet, |
sal_uInt32 | eMSO_FillType, | ||
double | dTrans, | ||
double | dBackTrans | ||
) | const |
Definition at line 2844 of file msdffimp.cxx.
References COL_WHITE(), DFF_Prop_fillAngle, DFF_Prop_fillBackColor, DFF_Prop_fillColor, DFF_Prop_fillFocus, DFF_Prop_fillToBottom, DFF_Prop_fillToRight, DFF_Prop_Rotation, Fix16ToAngle(), Color::getBColor(), DffPropSet::GetPropertyValue(), mbRotateGranientFillWithAngle, SvxMSDffManager::MSO_CLR_ToColor(), mso_fillShadeCenter, mso_fillShadeShape, SfxItemSet::Put(), rManager, o3tl::saturating_toggle_sign(), basegfx::BGradient::SetEndIntens(), and basegfx::BGradient::SetStartIntens().
Referenced by ApplyFillAttributes().
|
delete |
void DffPropertyReader::ReadPropSet | ( | SvStream & | rIn, |
SvxMSDffClientData * | pClientData | ||
) | const |
Definition at line 280 of file msdffimp.cxx.
References utl::UcbStreamHelper::CreateStream(), DFF_msofbtOPT, DFF_Prop_adjust10Value, DFF_Prop_adjustValue, DFF_Prop_hspMaster, DFF_Prop_pVertices, DFF_Prop_Rotation, GetPropertyValue(), DffRecordHeader::GetRecEndFilePos(), gentoken::i, ReadDffPropSet(), ReadDffRecordHeader(), SvxMSDffManager::SeekToRec(), and STREAM_SEEK_TO_END.
Referenced by ApplyRectangularGradientAsBitmap(), SvxMSDffManager::ImportShape(), and SdrEscherImport::ProcessObj().
void DffPropertyReader::SetDefaultPropSet | ( | SvStream & | rIn, |
sal_uInt32 | nOffDgg | ||
) | const |
Definition at line 258 of file msdffimp.cxx.
References checkSeek(), DFF_msofbtDggContainer, DFF_msofbtOPT, DffRecordHeader::GetRecEndFilePos(), DffRecordHeader::nRecType, pDefaultPropSet, DffPropSet::ReadDffPropSet, ReadDffRecordHeader(), SvStream::Seek(), SvxMSDffManager::SeekToRec(), and SvStream::Tell().
Referenced by SvxMSDffManager::InitSvxMSDffManager(), and SvxMSDffManager::SvxMSDffManager().
bool DffPropertyReader::mbRotateGranientFillWithAngle |
Definition at line 97 of file msdffimp.hxx.
Referenced by ImportGradientColor(), and SvxMSDffManager::ImportShape().
Degree100 DffPropertyReader::mnFix16Angle |
Definition at line 96 of file msdffimp.hxx.
Referenced by ApplyAttributes(), ApplyFillAttributes(), CheckAndCorrectExcelTextRotation(), SvxMSDffManager::ImportGroup(), SdrPowerPointImport::ImportPageBackgroundObject(), SvxMSDffManager::ImportShape(), SvxMSDffManager::ProcessObj(), and SdrEscherImport::ProcessObj().
|
private |
Definition at line 85 of file msdffimp.hxx.
Referenced by SetDefaultPropSet().
|
private |
Definition at line 84 of file msdffimp.hxx.
Referenced by ApplyAttributes(), ApplyCustomShapeGeometryAttributes(), ApplyFillAttributes(), CheckAndCorrectExcelTextRotation(), and ImportGradientColor().