LibreOffice Module filter (master) 1
|
abstract base class for Escher imports More...
#include <msdffimp.hxx>
Public Member Functions | |
Color | MSO_TEXT_CLR_ToColor (sal_uInt32 nColorCode) const |
Color | MSO_CLR_ToColor (sal_uInt32 nColorCode, sal_uInt16 nContextProperty=DFF_Prop_lineColor) const |
virtual bool | SeekToShape (SvStream &rSt, SvxMSDffClientData *pClientData, sal_uInt32 nId) const |
bool | SeekToRec2 (sal_uInt16 nRecId1, sal_uInt16 nRecId2, sal_uLong nMaxFilePos) const |
SvxMSDffManager (SvStream &rStCtrl, OUString aBaseURL, sal_uInt32 nOffsDgg, SvStream *pStData, SdrModel *pSdrModel_, tools::Long nApplicationScale, Color mnDefaultColor_, SvStream *pStData2_=nullptr, bool bSkipImages=false) | |
constructor More... | |
SvxMSDffManager (SvStream &rStCtrl, OUString aBaseURL) | |
void | InitSvxMSDffManager (sal_uInt32 nOffsDgg_, SvStream *pStData_, sal_uInt32 nSvxMSDffOLEConvFlags) |
void | SetDgContainer (SvStream &rSt) |
virtual | ~SvxMSDffManager () |
sal_uInt32 | GetSvxMSDffSettings () const |
void | SetSvxMSDffSettings (sal_uInt32 nSettings) |
void | SetModel (SdrModel *pModel, tools::Long nApplicationScale) |
SdrModel * | GetModel () const |
void | Scale (sal_Int32 &rVal) const |
void | Scale (Point &rPos) const |
void | Scale (Size &rSiz) const |
void | ScaleEmu (sal_Int32 &rVal) const |
sal_uInt32 | ScalePt (sal_uInt32 nPt) const |
sal_Int32 | ScalePoint (sal_Int32 nVal) const |
bool | GetBLIP (sal_uLong nIdx, Graphic &rData, tools::Rectangle *pVisArea=nullptr) |
Request for a specific BLIP. More... | |
bool | GetShape (sal_uLong nId, rtl::Reference< SdrObject > &rpData, SvxMSDffImportData &rData) |
rtl::Reference< SdrObject > | ImportObj (SvStream &rSt, SvxMSDffClientData &rData, tools::Rectangle &rClientRect, const tools::Rectangle &rGlobalChildRect, int nCalledByGroup, sal_Int32 *pShapeId) |
rtl::Reference< SdrObject > | ImportGroup (const DffRecordHeader &rHd, SvStream &rSt, SvxMSDffClientData &rData, tools::Rectangle &rClientRect, const tools::Rectangle &rGlobalChildRect, int nCalledByGroup, sal_Int32 *pShapeId) |
rtl::Reference< SdrObject > | ImportShape (const DffRecordHeader &rHd, SvStream &rSt, SvxMSDffClientData &rData, tools::Rectangle &rClientRect, const tools::Rectangle &rGlobalChildRect, int nCalledByGroup, sal_Int32 *pShapeId) |
tools::Rectangle | GetGlobalChildAnchor (const DffRecordHeader &rHd, SvStream &rSt, tools::Rectangle &aClientRect) |
void | GetGroupAnchors (const DffRecordHeader &rHd, SvStream &rSt, tools::Rectangle &rGroupClientAnchor, tools::Rectangle &rGroupChildAnchor, const tools::Rectangle &rClientRect, const tools::Rectangle &rGlobalChildRect) |
const SvxMSDffShapeInfos_ById * | GetShapeInfos () const |
const SvxMSDffShapeOrders * | GetShapeOrders () const |
void | StoreShapeOrder (sal_uLong nId, sal_uLong nTxBx, SdrObject *pObject, SwFlyFrameFormat *pFly=nullptr) const |
void | ExchangeInShapeOrder (SdrObject const *pOldObject, sal_uLong nTxBx, SdrObject *pObject) const |
void | RemoveFromShapeOrder (SdrObject const *pObject) const |
void | insertShapeId (sal_Int32 nShapeId, SdrObject *pShape) |
void | removeShapeId (SdrObject const *pShape) |
SdrObject * | getShapeForId (sal_Int32 nShapeId) |
Public Member Functions inherited from DffPropertyReader | |
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 bool | SeekToRec (SvStream &rSt, sal_uInt16 nRecId, sal_uLong nMaxFilePos, DffRecordHeader *pRecHd=nullptr, sal_uLong nSkipCount=0) |
static OUString | MSDFFReadZString (SvStream &rIn, sal_uInt32 nMaxLen, bool bUniCode) |
static bool | ReadCommonRecordHeader (SvStream &rSt, sal_uInt8 &rVer, sal_uInt16 &rInst, sal_uInt16 &rFbt, sal_uInt32 &rLength) |
static bool | MakeContentStream (SotStorage *pStor, const GDIMetaFile &) |
static void | ReadObjText (SvStream &rStream, SdrObject *pObj) |
static bool | ConvertToOle2 (SvStream &rStm, sal_uInt32 nLen, const GDIMetaFile *, const tools::SvRef< SotStorage > &rDest) |
static bool | GetBLIPDirect (SvStream &rBLIPStream, Graphic &rData, tools::Rectangle *pVisArea=nullptr) |
read a BLIP out of an already positioned stream More... | |
static rtl::Reference< SdrOle2Obj > | CreateSdrOLEFromStorage (SdrModel &rSdrModel, const OUString &rStorageName, tools::SvRef< SotStorage > const &rSrcStorage, const css::uno::Reference< css::embed::XStorage > &xDestStg, const Graphic &rGraf, const tools::Rectangle &rBoundRect, const tools::Rectangle &rVisArea, SvStream *pDataStrrm, ErrCode &rError, sal_uInt32 nConvertFlags, sal_Int64 nAspect, OUString const &rBaseURL) |
static void | SolveSolver (const SvxMSDffSolverContainer &rSolver) |
Create connections between shapes. More... | |
static bool | SetPropValue (const css::uno::Any &rAny, const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const OUString &rPropertyName) |
static OUString | GetFilterNameFromClassID (const SvGlobalName &aGlobName) |
Determines an ODF filter name (if there is one) for aGlobName. More... | |
static void | ExtractOwnStream (SotStorage &rSrcStg, SvMemoryStream &rMemStream) |
Extracts ODF data from rSrcStg. More... | |
Static Public Member Functions inherited from DffPropertyReader | |
static Degree100 | Fix16ToAngle (sal_Int32 nAngle) |
Static Public Member Functions inherited from DffPropSet | |
static sal_uLong | SanitizeEndPos (SvStream &rIn, sal_uLong nEndRecPos) |
Public Attributes | |
std::unique_ptr< DffPropertyReader > | pSecPropSet |
std::unordered_map< sal_uInt32, Graphic > | aEscherBlipCache |
DffRecordManager | maShapeRecords |
Color | mnDefaultColor |
bool | mbSkipImages |
Public Attributes inherited from DffPropertyReader | |
Degree100 | mnFix16Angle |
bool | mbRotateGranientFillWithAngle |
Protected Types | |
typedef std::map< sal_uInt32, sal_uInt64 > | OffsetMap |
Protected Member Functions | |
void | GetCtrlData (sal_uInt32 nOffsDgg) |
void | GetDrawingGroupContainerData (SvStream &rSt, sal_uInt32 nLenDgg) |
void | GetDrawingContainerData (SvStream &rSt, sal_uInt32 nLenDg, sal_uInt16 nDrawingContainerId) |
bool | GetShapeGroupContainerData (SvStream &rSt, sal_uInt32 nLenShapeGroupCont, bool bPatriarch, sal_uInt16 nDrawingContainerId) |
bool | GetShapeContainerData (SvStream &rSt, sal_uInt32 nLenShapeCont, sal_uInt64 nPosGroup, sal_uInt16 nDrawingContainerId) |
rtl::Reference< SdrObject > | ImportGraphic (SvStream &, SfxItemSet &, const DffObjData &) |
virtual rtl::Reference< SdrObject > | ImportOLE (sal_uInt32 nOLEId, const Graphic &rGraf, const tools::Rectangle &rBoundRect, const tools::Rectangle &rVisArea, const int _nCalledByGroup) const |
virtual void | ProcessClientAnchor2 (SvStream &rStData, DffRecordHeader &rHd, DffObjData &) |
virtual rtl::Reference< SdrObject > | ProcessObj (SvStream &rSt, DffObjData &rData, SvxMSDffClientData &rClientData, tools::Rectangle &rTextRect, SdrObject *pObj) |
void | NotifyFreeObj (SvxMSDffClientData &rData, SdrObject *pObj) |
void | FreeObj (SvxMSDffClientData &rData, SdrObject *pObj) |
virtual SdrObject * | FinalizeObj (DffObjData &rData, SdrObject *pObj) |
Object finalization, used by the Excel filter to correctly compute the object anchoring after nested objects have been imported. More... | |
virtual bool | GetColorFromPalette (sal_uInt16 nNum, Color &rColor) const |
virtual bool | GetOLEStorageName (sal_uInt32 nOLEId, OUString &rStorageName, tools::SvRef< SotStorage > &rSrcStorage, css::uno::Reference< css::embed::XStorage > &xDestStg) const |
virtual bool | ShapeHasText (sal_uLong nShapeId, sal_uLong nFilePos) const |
Prevent that (rounded) rectangles with wrapped text will always be converted into SdrRectObj( SdrObjKind::Text ). More... | |
Static Protected Member Functions | |
static css::uno::Reference< css::embed::XEmbeddedObject > | CheckForConvertToSOObj (sal_uInt32 nConvertFlags, SotStorage &rSrcStg, const css::uno::Reference< css::embed::XStorage > &xDestStg, const Graphic &rGrf, const tools::Rectangle &rVisArea, OUString const &rBaseURL) |
static void | ProcessClientAnchor (SvStream &rStData, sal_uInt32 nDatLen, std::unique_ptr< char[]> &rpBuff, sal_uInt32 &rBuffLen) |
static void | ProcessClientData (SvStream &rStData, sal_uInt32 nDatLen, std::unique_ptr< char[]> &rpBuff, sal_uInt32 &rBuffLen) |
static void | ReadObjText (const OUString &rText, SdrObject *pObj) |
Protected Attributes | |
OUString | maBaseURL |
sal_uInt32 | mnIdClusters |
std::vector< FIDCL > | maFidcls |
OffsetMap | maDgOffsetTable |
array of fileoffsets More... | |
std::vector< std::pair< DffObjData, std::shared_ptr< DffRecordHeader > > > | maPendingGroupData |
When importing Excel files, cell anchor computations for non-page-anchored groups must be done after all nested groups have been processed; for each open group, the pending data is stored here. More... | |
SvStream & | rStCtrl |
SvStream * | pStData |
SvStream * | pStData2 |
SdrModel * | pSdrModel |
tools::Long | nMapMul |
tools::Long | nMapDiv |
tools::Long | nMapXOfs |
tools::Long | nMapYOfs |
tools::Long | nEmuMul |
tools::Long | nEmuDiv |
tools::Long | nPntMul |
tools::Long | nPntDiv |
bool | bNeedMap |
sal_Int32 | nMinAllowedVal |
sal_Int32 | nMaxAllowedVal |
sal_uInt32 | nSvxMSDffSettings |
sal_uInt32 | nSvxMSDffOLEConvFlags |
SvxMSDffShapeIdContainer | maShapeIdContainer |
stores a reference to an imported SdrObject with its shape id if it has one More... | |
Private Member Functions | |
void | CheckTxBxStoryChain () |
void | GetFidclData (sal_uInt32 nOffsDgg) |
Private Attributes | |
std::unique_ptr< SvxMSDffBLIPInfos > | m_pBLIPInfos |
std::unique_ptr< SvxMSDffShapeInfos_ByTxBxComp > | m_xShapeInfosByTxBxComp |
std::unique_ptr< SvxMSDffShapeInfos_ById > | m_xShapeInfosById |
SvxMSDffShapeOrders | m_aShapeOrders |
sal_uInt32 | nOffsDgg |
sal_uInt16 | nBLIPCount |
ShapeFlag | nGroupShapeFlags |
Friends | |
class | DffPropertyReader |
abstract base class for Escher imports
Purpose: access to objects in Drawing File Format
Note: The method ProcessUserDefinedRecord() has to be implemented in the inheriting class(es) that is/are eventually used for PowerPoint, Word, or Excel importing.
Status: Currently only access to BLIPs (will be extended later)
Definition at line 414 of file msdffimp.hxx.
|
protected |
Definition at line 428 of file msdffimp.hxx.
SvxMSDffManager::SvxMSDffManager | ( | SvStream & | rStCtrl, |
OUString | aBaseURL, | ||
sal_uInt32 | nOffsDgg, | ||
SvStream * | pStData, | ||
SdrModel * | pSdrModel_, | ||
tools::Long | nApplicationScale, | ||
Color | mnDefaultColor_, | ||
SvStream * | pStData2_ = nullptr , |
||
bool | bSkipImages = false |
||
) |
constructor
sets nBLIPCount
rStCtrl | Management stream with containers, FBSE objects and shapes (mandatory; stream needs to be open already) |
rBaseURL | ??? |
nOffsDgg | offset in rStrCtrl; beginning of the drawing group container |
pStData | data stream in that the BLIPs are stored (if NULL it is assumed that all BLIPs are also in the rStCtrl; stream needs to be open already) |
pSdrModel_ | ??? (can be empty during Ctor call but needs to be set via SetModel() later in that case!) |
nApplicationScale | ??? |
mnDefaultColor_ | ??? |
nDefaultFontHeight_ | ??? |
pStData2_ | ??? |
bSkipImages | skipping images for text extraction/indexing |
Definition at line 5759 of file msdffimp.cxx.
References CheckTxBxStoryChain(), GetCtrlData(), nOffsDgg, NONE, pStData, rStCtrl, SvStream::Seek(), DffPropertyReader::SetDefaultPropSet(), SetModel(), and SvStream::Tell().
SvxMSDffManager::SvxMSDffManager | ( | SvStream & | rStCtrl, |
OUString | aBaseURL | ||
) |
Definition at line 5810 of file msdffimp.cxx.
References NONE, and SetModel().
|
virtual |
Definition at line 5830 of file msdffimp.cxx.
|
staticprotected |
Definition at line 7115 of file msdffimp.cxx.
References aArr, aName, tools::SvRef< typename T >::clear(), SvFileStream::Close(), SotStorage::CopyTo(), ExtractOwnStream(), tools::SvRef< typename T >::get(), SotStorage::GetClassName(), SfxFilterMatcher::GetFilter4EA(), GetFilterNameFromClassID(), GetInternalServerName_Impl(), tools::Rectangle::GetSize(), SfxFilter::GetTypeFromStorage(), Size::Height(), comphelper::EmbeddedObjectContainer::InsertEmbeddedObject(), tools::Rectangle::IsEmpty(), utl::ConfigManager::IsFuzzing(), lcl_GetPrefSize(), OutputDevice::LogicToLogic(), MSO_EQUATION2_CLASSID, MSO_EQUATION3_CLASSID, MSO_EXCEL5_CLASSID, MSO_EXCEL8_CHART_CLASSID, MSO_EXCEL8_CLASSID, MSO_OLE_Obj, MSO_PPT8_CLASSID, MSO_PPT8_SLIDE_CLASSID, MSO_WW8_CLASSID, n1, n2, n3, nMSOleObjCntr, OLE_EXCEL_2_STARCALC, OLE_MATHTYPE_2_STARMATH, OLE_POWERPOINT_2_STARIMPRESS, OLE_WINWORD_2_STARWRITER, pName, VCLUnoHelper::UnoEmbed2VCLMapUnit(), Size::Width(), SvStream::WriteStream(), and xStream.
Referenced by CreateSdrOLEFromStorage(), and SdrPowerPointImport::ImportOLE().
|
private |
Definition at line 5923 of file msdffimp.cxx.
References m_xShapeInfosById, and m_xShapeInfosByTxBxComp.
Referenced by InitSvxMSDffManager(), and SvxMSDffManager().
|
static |
Definition at line 6942 of file msdffimp.cxx.
References aClsIDs, ERRCODE_NONE, tools::SvRef< typename T >::get(), Graphic::GetGDIMetaFile(), Graphic::GetType(), SvStream::good(), GraphicConverter::Import(), tools::SvRef< typename T >::is(), MakeContentStream(), nPos, nType, pData, SvStream::ReadBytes(), SvStream::ReadUInt32(), SotExchange::RegisterFormatName(), SvStream::Seek(), SvStream::SeekRel(), and SvStream::Tell().
Referenced by CreateSdrOLEFromStorage().
|
static |
Definition at line 7294 of file msdffimp.cxx.
References aURL, CheckForConvertToSOObj(), ConvertToOle2(), ERRCODE_NONE, tools::SvRef< typename T >::get(), comphelper::EmbeddedObjectContainer::GetEmbeddedObject(), SvStream::GetError(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), Size::Height(), tools::SvRef< typename T >::is(), tools::Rectangle::IsEmpty(), lcl_GetPrefSize(), MSO_OLE_Obj, nMSOleObjCntr, SotStorage::OpenOLEStorage(), SvStream::ReadUInt32(), svt::EmbeddedObjectRef::SetGraphic(), VCLUnoHelper::UnoEmbed2VCLMapUnit(), Size::Width(), and INetURLObject::WithCharset.
Referenced by ImportOLE().
void SvxMSDffManager::ExchangeInShapeOrder | ( | SdrObject const * | pOldObject, |
sal_uLong | nTxBx, | ||
SdrObject * | pObject | ||
) | const |
Definition at line 5727 of file msdffimp.cxx.
References m_aShapeOrders, and pObject.
|
static |
Extracts ODF data from rSrcStg.
Definition at line 7108 of file msdffimp.cxx.
References SotStorage::OpenSotStream().
Referenced by CheckForConvertToSOObj().
|
protectedvirtual |
Object finalization, used by the Excel filter to correctly compute the object anchoring after nested objects have been imported.
Definition at line 5704 of file msdffimp.cxx.
Referenced by ImportGroup(), and ImportShape().
|
protected |
Definition at line 5181 of file msdffimp.cxx.
References NotifyFreeObj().
Referenced by ImportGroup().
bool SvxMSDffManager::GetBLIP | ( | sal_uLong | nIdx, |
Graphic & | rData, | ||
tools::Rectangle * | pVisArea = nullptr |
||
) |
Request for a specific BLIP.
Access to a BLIP at runtime (if the Blip-Number is already known)
[in] | nIdx | number of the requested BLIP (mandatory) |
[out] | rData | already converted data (insert directly as graphics into our documents) |
pVisArea | ??? |
Definition at line 6430 of file msdffimp.cxx.
References aEscherBlipCache, checkSeek(), GetBLIPDirect(), SvStream::GetError(), Graphic::GetType(), m_pBLIPInfos, pStData, pStData2, SvStream::ResetError(), rStCtrl, SvStream::Seek(), and SvStream::Tell().
Referenced by PPTPortionObj::ApplyTo(), and ImportGraphic().
|
static |
read a BLIP out of an already positioned stream
[in] | rBLIPStream | already positioned stream (mandatory) |
[out] | rData | already converted data (insert directly as graphics into our documents) |
pVisArea | ??? |
Definition at line 6514 of file msdffimp.cxx.
References aData, aURL, ZCodec::BeginCompression(), utl::UcbStreamHelper::CreateStream(), ZCodec::Decompress(), DIB, EMF, ZCodec::EndCompression(), ERRCODE_GRFILTER_OPENERROR, ERRCODE_IO_PENDING, ERRCODE_NONE, Application::GetAppFileName(), SvStream::GetError(), Graphic::GetGDIMetaFile(), GraphicFilter::GetGraphicFilter(), Size::getHeight(), GDIMetaFile::GetPrefSize(), Graphic::GetType(), Size::getWidth(), Size::Height(), GraphicFilter::ImportGraphic(), GraphicFilter::ImportUnloadedGraphic(), Graphic::IsNone(), nLength, INetURLObject::NONE, PICT, PNG, SvStream::ReadBytes(), ReadCommonRecordHeader(), ReadDIB(), SvStream::ReadInt32(), SvStream::ResetError(), SAL_INFO, GDIMetaFile::Scale(), SvStream::Seek(), SvStream::SeekRel(), Size::setHeight(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), Size::setWidth(), STREAM_SEEK_TO_BEGIN, SvStream::Tell(), u, Size::Width(), and WMF.
Referenced by DffPropertyReader::ApplyFillAttributes(), GetBLIP(), ImportGraphic(), and PPTExtParaProv::PPTExtParaProv().
|
protectedvirtual |
Reimplemented in SdrEscherImport, and SdrPowerPointImport.
Definition at line 3412 of file msdffimp.cxx.
References COL_WHITE().
Referenced by MSO_CLR_ToColor().
|
protected |
Definition at line 5983 of file msdffimp.cxx.
References checkSeek(), DFF_COMMON_RECORD_HEADER_SIZE, DFF_msofbtDgContainer, DFF_msofbtDggContainer, ERRCODE_NONE, GetDrawingContainerData(), GetDrawingGroupContainerData(), SvStream::GetError(), nLength, nPos, ReadCommonRecordHeader(), rStCtrl, SvStream::Seek(), and SvStream::TellEnd().
Referenced by InitSvxMSDffManager(), and SvxMSDffManager().
|
protected |
Definition at line 6124 of file msdffimp.cxx.
References checkSeek(), DFF_COMMON_RECORD_HEADER_SIZE, DFF_msofbtSpContainer, DFF_msofbtSpgrContainer, GetShapeContainerData(), GetShapeGroupContainerData(), nLength, ReadCommonRecordHeader(), and SvStream::Tell().
Referenced by GetCtrlData().
|
protected |
Definition at line 6036 of file msdffimp.cxx.
References checkSeek(), DFF_COMMON_RECORD_HEADER_SIZE, DFF_msofbtBSE, DFF_msofbtBstoreContainer, ERRCODE_NONE, SvStream::GetError(), m_pBLIPInfos, nBLIPCount, nLength, ReadCommonRecordHeader(), SvStream::ReadUInt32(), SvStream::SeekRel(), and SvStream::Tell().
Referenced by GetCtrlData().
|
private |
< number of SPIDs used so far
Definition at line 5876 of file msdffimp.cxx.
References DFF_msofbtDgg, DffRecordHeader::GetRecEndFilePos(), gentoken::i, maFidcls, mnIdClusters, DffRecordHeader::nRecLen, ReadDffRecordHeader(), SvStream::ReadUInt32(), SvStream::remainingSize(), rStCtrl, SAL_WARN_IF, SvStream::Seek(), DffRecordHeader::SeekToContent(), SeekToRec(), and SvStream::Tell().
Referenced by InitSvxMSDffManager().
|
static |
Determines an ODF filter name (if there is one) for aGlobName.
Definition at line 7067 of file msdffimp.cxx.
References SO3_SC_OLE_EMBED_CLASSID_60, SO3_SC_OLE_EMBED_CLASSID_8, SO3_SCH_OLE_EMBED_CLASSID_60, SO3_SCH_OLE_EMBED_CLASSID_8, SO3_SDRAW_OLE_EMBED_CLASSID_60, SO3_SDRAW_OLE_EMBED_CLASSID_8, SO3_SIMPRESS_OLE_EMBED_CLASSID_60, SO3_SIMPRESS_OLE_EMBED_CLASSID_8, SO3_SM_OLE_EMBED_CLASSID_60, SO3_SM_OLE_EMBED_CLASSID_8, SO3_SW_OLE_EMBED_CLASSID_60, and SO3_SW_OLE_EMBED_CLASSID_8.
Referenced by CheckForConvertToSOObj().
tools::Rectangle SvxMSDffManager::GetGlobalChildAnchor | ( | const DffRecordHeader & | rHd, |
SvStream & | rSt, | ||
tools::Rectangle & | aClientRect | ||
) |
Definition at line 4996 of file msdffimp.cxx.
References DFF_msofbtChildAnchor, DFF_msofbtClientAnchor, DFF_msofbtSpContainer, DFF_msofbtSpgrContainer, ERRCODE_NONE, SvStream::GetError(), DffRecordHeader::GetRecEndFilePos(), GetSvxMSDffSettings(), SvStream::good(), DffRecordHeader::nRecLen, DffRecordHeader::nRecType, ReadDffRecordHeader(), SvStream::ReadInt16(), SvStream::ReadInt32(), Scale(), DffRecordHeader::SeekToContent(), DffRecordHeader::SeekToEndOfRecord(), SVXMSDFF_SETTINGS_IMPORT_PPT, gentoken::t, SvStream::Tell(), u, and tools::Rectangle::Union().
Referenced by ImportGroup().
void SvxMSDffManager::GetGroupAnchors | ( | const DffRecordHeader & | rHd, |
SvStream & | rSt, | ||
tools::Rectangle & | rGroupClientAnchor, | ||
tools::Rectangle & | rGroupChildAnchor, | ||
const tools::Rectangle & | rClientRect, | ||
const tools::Rectangle & | rGlobalChildRect | ||
) |
Definition at line 5077 of file msdffimp.cxx.
References DFF_msofbtChildAnchor, DFF_msofbtSpContainer, DFF_msofbtSpgrContainer, tools::Rectangle::GetHeight(), DffRecordHeader::GetRecEndFilePos(), tools::Rectangle::GetWidth(), SvStream::good(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), DffRecordHeader::nRecType, ReadDffRecordHeader(), SvStream::ReadInt32(), o3tl::saturating_sub(), Scale(), DffRecordHeader::SeekToContent(), DffRecordHeader::SeekToEndOfRecord(), SvStream::Tell(), tools::Rectangle::Top(), u, and tools::Rectangle::Union().
Referenced by ImportGroup().
|
inline |
Definition at line 636 of file msdffimp.hxx.
Referenced by ImportOLE().
|
protectedvirtual |
Definition at line 6762 of file msdffimp.cxx.
Referenced by ImportOLE().
bool SvxMSDffManager::GetShape | ( | sal_uLong | nId, |
rtl::Reference< SdrObject > & | rpData, | ||
SvxMSDffImportData & | rData | ||
) |
Definition at line 6394 of file msdffimp.cxx.
References SvxMSDffImportData::aParentRect, SvStream::GetError(), ImportObj(), m_xShapeInfosById, nId, pStData, SvStream::ResetError(), rStCtrl, SvStream::Seek(), and SvStream::Tell().
|
protected |
Definition at line 6204 of file msdffimp.cxx.
References SvxMSDffShapeInfo::bReplaceByFly, checkSeek(), DBG_ASSERT, DFF_COMMON_RECORD_HEADER_SIZE, DFF_msofbtClientTextbox, DFF_msofbtOPT, DFF_msofbtSp, DFF_Prop_cdirFont, DFF_Prop_fc3DLightFace, DFF_Prop_gtextFStrikethrough, DFF_Prop_Rotation, DFF_Prop_txflTextFlow, DFF_Prop_WrapText, GetSvxMSDffSettings(), SvStream::good(), m_aShapeOrders, m_xShapeInfosByTxBxComp, mso_sptNil, mso_sptRectangle, mso_sptRoundRectangle, mso_sptTextBox, mso_sptTextSimple, mso_txflHorzN, mso_txflTtoBA, nLength, SvxMSDffShapeInfo::nShapeId, SvxMSDffShapeInfo::nTxBxComp, ReadCommonRecordHeader(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), SAL_WARN, SvStream::Seek(), SvStream::SeekRel(), SVXMSDFF_SETTINGS_IMPORT_EXCEL, SVXMSDFF_SETTINGS_IMPORT_PPT, and SvStream::Tell().
Referenced by GetDrawingContainerData(), and GetShapeGroupContainerData().
SdrObject * SvxMSDffManager::getShapeForId | ( | sal_Int32 | nShapeId | ) |
Definition at line 7629 of file msdffimp.cxx.
References maShapeIdContainer.
|
protected |
Definition at line 6161 of file msdffimp.cxx.
References checkSeek(), DFF_COMMON_RECORD_HEADER_SIZE, DFF_msofbtSpContainer, DFF_msofbtSpgrContainer, GetShapeContainerData(), GetShapeGroupContainerData(), nLength, ReadCommonRecordHeader(), SvStream::Seek(), and SvStream::Tell().
Referenced by GetDrawingContainerData(), and GetShapeGroupContainerData().
|
inline |
Definition at line 701 of file msdffimp.hxx.
|
inline |
Definition at line 704 of file msdffimp.hxx.
|
inline |
Definition at line 625 of file msdffimp.hxx.
Referenced by DffPropertyReader::ApplyAttributes(), GetGlobalChildAnchor(), GetShapeContainerData(), ImportGraphic(), and ImportShape().
|
protected |
Definition at line 3860 of file msdffimp.cxx.
References DffObjData::aBoundRect, BitmapEx::Adjust(), GDIMetaFile::Adjust(), aURL, BitmapEx::CombineMaskOr(), BitmapEx::Convert(), GDIMetaFile::Convert(), DFF_msofbtBSE, DFF_Prop_pib, DFF_Prop_pibFlags, DFF_Prop_pibName, DFF_Prop_pictureActive, DFF_Prop_pictureBrightness, DFF_Prop_pictureContrast, DFF_Prop_pictureGamma, DFF_Prop_pictureId, DFF_Prop_pictureTransparent, ERRCODE_NONE, Graphic::GetBitmapEx(), GetBLIP(), GetBLIPDirect(), SvStream::GetError(), Graphic::GetGDIMetaFile(), INetURLObject::GetMainURL(), INetURLObject::GetNewAbsURL(), DffPropSet::GetPropertyValue(), INetURLObject::GetProtocol(), GetSvxMSDffSettings(), Graphic::GetType(), ImportOLE(), tools::Rectangle::IsEmpty(), DffPropSet::IsProperty(), lcl_ApplyCropping(), maBaseURL, MSDFFReadZString(), mso_blipflagComment, mso_blipflagDefault, mso_blipflagDoNotSave, mso_blipflagLinkToFile, mso_blipflagType, MSO_CLR_ToColor(), DffObjData::nCalledByGroup, DffRecordHeader::nRecLen, DffRecordHeader::nRecType, DffObjData::nSpFlags, OLEShape, pSdrModel, SfxItemSet::Put(), ReadDffRecordHeader(), rSet, DffObjData::rSpHd, SAL_WARN, SvStream::SeekRel(), DffPropSet::SeekToContent(), DffRecordHeader::SeekToEndOfRecord(), Graphic::setOriginURL(), SVXMSDFF_SETTINGS_CROP_BITMAPS, and INetURLObject::ToIUri.
Referenced by ImportShape().
rtl::Reference< SdrObject > SvxMSDffManager::ImportGroup | ( | const DffRecordHeader & | rHd, |
SvStream & | rSt, | ||
SvxMSDffClientData & | rData, | ||
tools::Rectangle & | rClientRect, | ||
const tools::Rectangle & | rGlobalChildRect, | ||
int | nCalledByGroup, | ||
sal_Int32 * | pShapeId | ||
) |
Definition at line 4136 of file msdffimp.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::Center(), DFF_msofbtSpContainer, DFF_msofbtSpgrContainer, FinalizeObj(), FlipH, FlipV, FreeObj(), GetGlobalChildAnchor(), GetGroupAnchors(), tools::Rectangle::GetHeight(), DffRecordHeader::GetRecEndFilePos(), SdrObjGroup::GetSubList(), tools::Rectangle::GetWidth(), SvStream::good(), ImportGroup(), ImportObj(), ImportShape(), insertShapeId(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), o3tl::make_unsigned(), maPendingGroupData, DffPropertyReader::mnFix16Angle, SdrObjList::NbcInsertObject(), nGroupShapeFlags, DffRecordHeader::nRecType, ReadDffRecordHeader(), tools::Rectangle::Right(), DffRecordHeader::SeekToBegOfRecord(), DffRecordHeader::SeekToContent(), DffRecordHeader::SeekToEndOfRecord(), SvStream::Tell(), tools::Rectangle::Top(), Point::X(), and Point::Y().
Referenced by ImportGroup(), and ImportObj().
rtl::Reference< SdrObject > SvxMSDffManager::ImportObj | ( | SvStream & | rSt, |
SvxMSDffClientData & | rData, | ||
tools::Rectangle & | rClientRect, | ||
const tools::Rectangle & | rGlobalChildRect, | ||
int | nCalledByGroup, | ||
sal_Int32 * | pShapeId | ||
) |
Definition at line 4118 of file msdffimp.cxx.
References DFF_msofbtSpContainer, DFF_msofbtSpgrContainer, ImportGroup(), ImportShape(), DffRecordHeader::nRecType, ReadDffRecordHeader(), and DffRecordHeader::SeekToBegOfRecord().
Referenced by GetShape(), ImportGroup(), and SdrPowerPointImport::ImportPage().
|
protectedvirtual |
Reimplemented in SdrPowerPointImport.
Definition at line 6773 of file msdffimp.cxx.
References CreateSdrOLEFromStorage(), ERRCODE_NONE, GetModel(), GetOLEStorageName(), maBaseURL, nSvxMSDffOLEConvFlags, and pStData.
Referenced by ImportGraphic().
rtl::Reference< SdrObject > SvxMSDffManager::ImportShape | ( | const DffRecordHeader & | rHd, |
SvStream & | rSt, | ||
SvxMSDffClientData & | rData, | ||
tools::Rectangle & | rClientRect, | ||
const tools::Rectangle & | rGlobalChildRect, | ||
int | nCalledByGroup, | ||
sal_Int32 * | pShapeId | ||
) |
Definition at line 4262 of file msdffimp.cxx.
References a, DffObjData::aBoundRect, DffObjData::aChildAnchor, basegfx::B2DPolygon::append(), DffPropertyReader::ApplyAttributes(), Background, DffObjData::bChildAnchor, DffObjData::bClientAnchor, DffObjData::bOpt, DffObjData::bOpt2, tools::Rectangle::Bottom(), BottomRight, tools::Rectangle::BottomRight(), DffObjData::bRotateTextWithShape, DffObjData::bShapeType, bVisible, tools::Rectangle::Center(), o3tl::checked_sub(), SdrCustomShapeGeometryItem::ClearPropertyValue(), DffRecordManager::Consume(), VclPtr< class reference_type >::Create(), basegfx::utils::createPolygonFromEllipseSegment(), DffRecordManager::Current(), basegfx::deg2rad(), DFF_msofbtChildAnchor, DFF_msofbtClientAnchor, DFF_msofbtOPT, DFF_msofbtSp, DFF_msofbtUDefProp, DFF_Prop_cxstyle, DFF_Prop_fc3DLightFace, DFF_Prop_fPrint, DFF_Prop_gtextAlign, DFF_Prop_gtextFBold, DFF_Prop_gtextFItalic, DFF_Prop_gtextFont, DFF_Prop_gtextFStrikethrough, DFF_Prop_gtextSpacing, DFF_Prop_gtextUNICODE, DFF_Prop_pib, DFF_Prop_pibFlags, DFF_Prop_pibName, DFF_Prop_pVertices, DFF_Prop_wzDescription, DFF_Prop_wzName, DffPropertyReader, EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_FONTWIDTH(), EE_CHAR_ITALIC(), EE_CHAR_KERNING(), EE_CHAR_WEIGHT(), EE_PARA_WRITINGDIR(), DffObjData::eShapeType, FinalizeObj(), First, FlipH, FlipV, basegfx::B2DPolygon::getB2DRange(), basegfx::B2DRange::getCenter(), GetCustomShapeContent(), GetDefaultFonts(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), tools::Rectangle::GetHeight(), SdrModel::GetItemPool(), SdrObjCustomShape::GetLineGeometry(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), SdrObject::GetMergedItem(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), DffPropSet::GetPropertyString(), DffPropSet::GetPropertyValue(), SdrCustomShapeGeometryItem::GetPropertyValueByName(), GetSvxMSDffSettings(), EnhancedCustomShape2d::GetTextRect(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), tools::Rectangle::GetWidth(), SvStream::good(), Group, gtextFBestFit, gtextFShrinkFit, gtextFStretch, gentoken::i, ImportGraphic(), DffPropSet::InitializePropSet(), tools::Rectangle::IsEmpty(), DffPropSet::IsHardAttribute(), DffPropSet::IsProperty(), ITALIC_NONE, ITALIC_NORMAL, tools::Rectangle::Left(), o3tl::make_unsigned(), makeSdrTextAutoGrowHeightItem(), makeSdrTextAutoGrowWidthItem(), maPendingGroupData, maShapeRecords, DffPropertyReader::mbRotateGranientFillWithAngle, mbSkipImages, DffPropertyReader::mnFix16Angle, tools::Rectangle::Move(), MSDFFReadZString(), mso_alignTextCenter, mso_alignTextInvalid, mso_alignTextLeft, mso_alignTextLetterJust, mso_alignTextRight, mso_alignTextStretch, mso_alignTextWordJust, mso_cxstyleBent, mso_cxstyleCurved, mso_cxstyleStraight, mso_sptArc, mso_sptCurvedConnector5, mso_sptLine, mso_sptNil, mso_sptStraightConnector1, mso_sptTextPlainText, n, nGroupShapeFlags, NONE, NormAngle360(), DffRecordHeader::nRecInstance, DffRecordHeader::nRecLen, DffObjData::nShapeId, DffObjData::nSpFlags, PITCH_DONTKNOW, ProcessClientAnchor2(), ProcessObj(), pSdrModel, pSecPropSet, SfxItemSet::Put(), SvStream::ReadInt32(), ReadObjText(), DffPropertyReader::ReadPropSet(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), tools::Rectangle::Right(), RotatePoint(), DffObjData::rSpHd, Scale(), SDRATTR_CUSTOMSHAPE_GEOMETRY(), SDRTEXTHORZADJUST_BLOCK, SDRTEXTHORZADJUST_CENTER, SDRTEXTHORZADJUST_LEFT, SDRTEXTHORZADJUST_RIGHT, SEEK_FROM_CURRENT_AND_RESTART, DffRecordHeader::SeekToBegOfRecord(), DffPropSet::SeekToContent(), DffRecordManager::SeekToContent(), EnhancedCustomShape2d::SetEnhancedCustomShapeParameter(), vcl::Font::SetFamilyName(), vcl::Font::SetFontSize(), tools::Rectangle::setHeight(), SdrCustomShapeGeometryItem::SetPropertyValue(), Point::setX(), Point::setY(), SVXMSDFF_SETTINGS_IMPORT_EXCEL, SVXMSDFF_SETTINGS_IMPORT_PPT, tools::Rectangle::Top(), TopLeft, tools::Rectangle::TopLeft(), toRadians(), u, use_gtextFBestFit, use_gtextFShrinkFit, use_gtextFStretch, WEIGHT_BOLD, WEIGHT_NORMAL, Point::X(), and Point::Y().
Referenced by ImportGroup(), and ImportObj().
void SvxMSDffManager::InitSvxMSDffManager | ( | sal_uInt32 | nOffsDgg_, |
SvStream * | pStData_, | ||
sal_uInt32 | nSvxMSDffOLEConvFlags | ||
) |
Definition at line 5834 of file msdffimp.cxx.
References CheckTxBxStoryChain(), GetCtrlData(), GetFidclData(), nOffsDgg, nSvxMSDffOLEConvFlags, pStData, rStCtrl, SvStream::Seek(), DffPropertyReader::SetDefaultPropSet(), and SvStream::Tell().
void SvxMSDffManager::insertShapeId | ( | sal_Int32 | nShapeId, |
SdrObject * | pShape | ||
) |
Definition at line 7616 of file msdffimp.cxx.
References maShapeIdContainer.
Referenced by ImportGroup(), and SdrPowerPointImport::ImportPage().
|
static |
Definition at line 6801 of file msdffimp.cxx.
References ASPECT_CONTENT, ERRCODE_NONE, GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), SotStorage::GetVersion(), OutputDevice::LogicToLogic(), SotStorage::OpenSotStream(), Impl_OlePres::SetAdviseFlags(), Impl_OlePres::SetAspect(), Impl_OlePres::SetMtf(), Impl_OlePres::SetSize(), SVEXT_PERSIST_STREAM, and Impl_OlePres::Write().
Referenced by ConvertToOle2().
|
static |
Definition at line 3768 of file msdffimp.cxx.
References read_uInt16s_ToOUString(), read_uInt8s_ToOUString(), and comphelper::string::stripEnd().
Referenced by ImportComment10(), ImportGraphic(), SdrEscherImport::ImportHeaderFooterContainer(), ImportShape(), ReadObjText(), and SdrEscherImport::ReadString().
Color SvxMSDffManager::MSO_CLR_ToColor | ( | sal_uInt32 | nColorCode, |
sal_uInt16 | nContextProperty = DFF_Prop_lineColor |
||
) | const |
Definition at line 3444 of file msdffimp.cxx.
References COL_BLACK(), COL_WHITE(), DFF_Prop_fillBackColor, DFF_Prop_fillColor, DFF_Prop_fNoLineDrawDash, DFF_Prop_lineBackColor, DFF_Prop_lineColor, DFF_Prop_pictureTransparent, DFF_Prop_shadowColor, Color::GetBlue(), StyleSettings::GetButtonTextColor(), GetColorFromPalette(), StyleSettings::GetDeactiveColor(), StyleSettings::GetFaceColor(), Color::GetGreen(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), StyleSettings::GetLabelTextColor(), Color::GetLuminance(), StyleSettings::GetMenuColor(), StyleSettings::GetMenuTextColor(), DffPropSet::GetPropertyValue(), Color::GetRed(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), StyleSettings::GetWindowTextColor(), mnDefaultColor, MSO_CLR_ToColor(), mso_colorFillBackColor, mso_colorFillColor, mso_colorFillThenLine, mso_colorIndexMask, mso_colorLineBackColor, mso_colorLineColor, mso_colorLineOrFillColor, mso_colorShadowColor, mso_colorThis, mso_syscolor3DLight, mso_syscolorActiveCaption, mso_syscolorButtonFace, mso_syscolorButtonHighlight, mso_syscolorButtonShadow, mso_syscolorButtonText, mso_syscolorCaptionText, mso_syscolorGrayText, mso_syscolorHighlight, mso_syscolorHighlightText, mso_syscolorInactiveCaption, mso_syscolorInactiveCaptionText, mso_syscolorInfoBackground, mso_syscolorInfoText, mso_syscolorMenu, mso_syscolorMenuText, mso_syscolorScrollbar, mso_syscolorWindow, mso_syscolorWindowFrame, mso_syscolorWindowText, Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by DffPropertyReader::ApplyAttributes(), DffPropertyReader::ApplyCustomShapeGeometryAttributes(), DffPropertyReader::ApplyFillAttributes(), PPTPortionObj::ApplyTo(), GetShadeColors(), DffPropertyReader::ImportGradientColor(), ImportGraphic(), SdrPowerPointImport::ImportPageBackgroundObject(), MSO_CLR_ToColor(), MSO_TEXT_CLR_ToColor(), and SdrEscherImport::RecolorGraphic().
Color SvxMSDffManager::MSO_TEXT_CLR_ToColor | ( | sal_uInt32 | nColorCode | ) | const |
Definition at line 3427 of file msdffimp.cxx.
References MSO_CLR_ToColor().
Referenced by PPTPortionObj::ApplyTo(), PPTParagraphObj::ApplyTo(), and PPTNumberFormatCreator::ImplGetNumberFormat().
|
protected |
Definition at line 5168 of file msdffimp.cxx.
References SdrObjList::GetObj(), SdrObjList::GetObjCount(), gentoken::i, SvxMSDffClientData::NotifyFreeObj(), and NotifyFreeObj().
Referenced by FreeObj(), and NotifyFreeObj().
|
staticprotected |
Definition at line 6734 of file msdffimp.cxx.
References SvStream::ReadBytes(), and SvStream::remainingSize().
Referenced by ProcessObj().
|
protectedvirtual |
Reimplemented in SdrEscherImport.
Definition at line 6757 of file msdffimp.cxx.
Referenced by ImportShape().
|
staticprotected |
Definition at line 6745 of file msdffimp.cxx.
References SvStream::ReadBytes(), and SvStream::remainingSize().
Referenced by ProcessObj().
|
protectedvirtual |
Reimplemented in SdrEscherImport.
Definition at line 5186 of file msdffimp.cxx.
References a, DffObjData::aBoundRect, tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), Point::AdjustX(), Point::AdjustY(), DffPropertyReader::ApplyAttributes(), SvxMSDffImportRec::aTextId, DffObjData::bClientAnchor, DffObjData::bClientData, SvxMSDffImportRec::bDrawHell, SvxMSDffImportRec::bHFlip, SvxMSDffImportRec::bHidden, tools::Rectangle::Bottom(), SvxMSDffImportRec::bReplaceByFly, SvxMSDffShapeInfo::bReplaceByFly, SvxMSDffImportRec::bVFlip, tools::Rectangle::Center(), DffRecordManager::Current(), DFF_msofbtClientAnchor, DFF_msofbtClientData, DFF_msofbtUDefProp, DFF_Prop_anchorText, DFF_Prop_cropFromBottom, DFF_Prop_cropFromLeft, DFF_Prop_cropFromRight, DFF_Prop_cropFromTop, DFF_Prop_dxTextLeft, DFF_Prop_dxTextRight, DFF_Prop_dxWrapDistLeft, DFF_Prop_dxWrapDistRight, DFF_Prop_dyTextBottom, DFF_Prop_dyTextTop, DFF_Prop_dyWrapDistBottom, DFF_Prop_dyWrapDistTop, DFF_Prop_FitTextToShape, DFF_Prop_fNoLineDrawDash, DFF_Prop_fPrint, DFF_Prop_hspNext, DFF_Prop_lineDashing, DFF_Prop_lineStyle, DFF_Prop_lTxid, DFF_Prop_pWrapPolygonVertices, DFF_Prop_txflTextFlow, DFF_Prop_WrapText, SvxMSDffImportRec::eLineDashing, SvxMSDffImportRec::eLineStyle, SvxMSDffImportRec::eShapeType, DffObjData::eShapeType, FlipH, FlipV, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), tools::Rectangle::GetHeight(), SdrModel::GetItemPool(), SfxItemSet::GetItemState(), DffPropSet::GetPropertyValue(), DffRecordHeader::GetRecBegFilePos(), tools::Rectangle::GetWidth(), SvStream::good(), Group, gentoken::i, SvxMSDffImportData::insert(), tools::Rectangle::IsEmpty(), SvxMSDffImportRec::isHorizontalRule, DffPropSet::IsProperty(), tools::Rectangle::Left(), m_xShapeInfosById, makeSdrTextAutoGrowHeightItem(), makeSdrTextAutoGrowWidthItem(), makeSdrTextContourFrameItem(), makeSdrTextLeftDistItem(), makeSdrTextLowerDistItem(), makeSdrTextMinFrameHeightItem(), makeSdrTextMinFrameWidthItem(), makeSdrTextRightDistItem(), makeSdrTextUpperDistItem(), maShapeRecords, mnDefaultColor, DffPropertyReader::mnFix16Angle, mso_anchorBottom, mso_anchorBottomCentered, mso_anchorMiddle, mso_anchorMiddleCentered, mso_anchorTop, mso_anchorTopCentered, mso_lineSimple, mso_lineSolid, MSO_LineStyle_NONE, mso_sptRectangle, mso_sptTextBox, mso_sptTextSimple, mso_txflBtoT, mso_txflHorzA, mso_txflHorzN, mso_txflTtoBA, mso_txflTtoBN, mso_txflVertN, mso_wrapByPoints, mso_wrapNone, mso_wrapSquare, DffObjData::nCalledByGroup, SvxMSDffImportRec::nClientAnchorLen, SvxMSDffImportRec::nClientDataLen, SvxMSDffImportRec::nCropFromBottom, SvxMSDffImportRec::nCropFromLeft, SvxMSDffImportRec::nCropFromRight, SvxMSDffImportRec::nCropFromTop, SvxMSDffImportRec::nDxTextLeft, SvxMSDffImportRec::nDxTextRight, SvxMSDffImportRec::nDxWrapDistLeft, SvxMSDffImportRec::nDxWrapDistRight, SvxMSDffImportRec::nDyTextBottom, SvxMSDffImportRec::nDyTextTop, SvxMSDffImportRec::nDyWrapDistBottom, SvxMSDffImportRec::nDyWrapDistTop, SvxMSDffImportRec::nGroupShapeBooleanProperties, SvxMSDffImportRec::nNextShapeId, DffRecordHeader::nRecLen, MSDffTxId::nSequence, SvxMSDffImportRec::nShapeId, DffObjData::nShapeId, DffObjData::nSpFlags, MSDffTxId::nTxBxS, SvxMSDffImportRec::nXAlign, SvxMSDffImportRec::nXRelTo, SvxMSDffImportRec::nYAlign, SvxMSDffImportRec::nYRelTo, SvxMSDffImportRec::pClientAnchorBuffer, SvxMSDffImportRec::pClientDataBuffer, SvxMSDffImportRec::pObj, ProcessClientAnchor(), ProcessClientData(), pSdrModel, SfxItemSet::Put(), SvxMSDffImportRec::pWrapPolygon, SvStream::ReadInt16(), SvStream::ReadInt32(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), SvxMSDffImportRec::relativeHorizontalWidth, SvStream::remainingSize(), tools::Rectangle::Right(), DffObjData::rSpHd, ScaleEmu(), SDRTEXTHORZADJUST_CENTER, SDRTEXTVERTADJUST_BOTTOM, SDRTEXTVERTADJUST_CENTER, SDRTEXTVERTADJUST_TOP, SEEK_FROM_CURRENT_AND_RESTART, DffPropSet::SeekToContent(), DffRecordManager::SeekToContent(), tools::Rectangle::SetBottom(), tools::Rectangle::SetRight(), ShapeHasText(), StoreShapeOrder(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), toRadians(), and XATTR_FILLCOLOR().
Referenced by ImportShape().
|
static |
Definition at line 6720 of file msdffimp.cxx.
References SvStream::good(), nMaxLegalDffRecordLength, SvStream::ReadUInt16(), and SvStream::ReadUInt32().
Referenced by GetBLIPDirect(), GetCtrlData(), GetDrawingContainerData(), GetDrawingGroupContainerData(), GetShapeContainerData(), and GetShapeGroupContainerData().
|
staticprotected |
Definition at line 3705 of file msdffimp.cxx.
References DynCastSdrTextObj(), EE_PARA_BULLETSTATE(), SdrObject::GetStyleSheet(), SdrTextObj::ImpGetDrawOutliner(), SdrTextObj::IsVerticalWriting(), ESelection::nStartPos, SfxItemSet::Put(), SdrObject::SetOutlinerParaObject(), and SdrObject::SetStyleSheet().
Referenced by ImportShape(), and ReadObjText().
Definition at line 3669 of file msdffimp.cxx.
References aStr, DFF_msofbtClientTextbox, DFF_PST_TextBytesAtom, DFF_PST_TextCharsAtom, DffRecordHeader::GetRecEndFilePos(), SvStream::good(), MSDFFReadZString(), DffRecordHeader::nRecLen, DffRecordHeader::nRecType, ReadDffRecordHeader(), ReadObjText(), DffRecordHeader::SeekToEndOfRecord(), and SvStream::Tell().
void SvxMSDffManager::RemoveFromShapeOrder | ( | SdrObject const * | pObject | ) | const |
Definition at line 5743 of file msdffimp.cxx.
References m_aShapeOrders, and pObject.
void SvxMSDffManager::removeShapeId | ( | SdrObject const * | pShape | ) |
Definition at line 7621 of file msdffimp.cxx.
References maShapeIdContainer.
Referenced by SdrPowerPointImport::CreateTable().
void SvxMSDffManager::Scale | ( | Point & | rPos | ) | const |
Definition at line 3178 of file msdffimp.cxx.
References Point::AdjustX(), Point::AdjustY(), BigMulDiv(), bNeedMap, nMapDiv, nMapMul, nMapXOfs, nMapYOfs, Point::setX(), Point::setY(), Point::X(), and Point::Y().
void SvxMSDffManager::Scale | ( | sal_Int32 & | rVal | ) | const |
Definition at line 3157 of file msdffimp.cxx.
References BigMulDiv(), bNeedMap, nMapDiv, nMapMul, nMaxAllowedVal, nMinAllowedVal, SAL_MAX_INT32, and SAL_WARN.
Referenced by GetGlobalChildAnchor(), GetGroupAnchors(), SdrPowerPointImport::GetPageSize(), ImportComment10(), ImportShape(), and SdrEscherImport::ProcessClientAnchor2().
void SvxMSDffManager::Scale | ( | Size & | rSiz | ) | const |
Definition at line 3189 of file msdffimp.cxx.
References BigMulDiv(), bNeedMap, Size::Height(), nMapDiv, nMapMul, Size::setHeight(), Size::setWidth(), and Size::Width().
void SvxMSDffManager::ScaleEmu | ( | sal_Int32 & | rVal | ) | const |
Definition at line 3198 of file msdffimp.cxx.
References BigMulDiv(), nEmuDiv, and nEmuMul.
Referenced by DffPropertyReader::ApplyAttributes(), ProcessObj(), and SdrEscherImport::ProcessObj().
sal_Int32 SvxMSDffManager::ScalePoint | ( | sal_Int32 | nVal | ) | const |
Definition at line 3213 of file msdffimp.cxx.
References BigMulDiv(), nPntDiv, and nPntMul.
Referenced by PPTPortionObj::ApplyTo(), and PPTParagraphObj::ApplyTo().
sal_uInt32 SvxMSDffManager::ScalePt | ( | sal_uInt32 | nPt | ) | const |
Definition at line 3203 of file msdffimp.cxx.
References BigMulDiv(), Fraction::GetDenominator(), GetMapFactor(), Fraction::GetNumerator(), SdrModel::GetScaleUnit(), pSdrModel, and X.
Referenced by DffPropertyReader::ApplyAttributes().
|
static |
Definition at line 3335 of file msdffimp.cxx.
References SvStream::good(), nMaxLegalDffRecordLength, DffRecordHeader::nRecLen, DffRecordHeader::nRecType, ReadDffRecordHeader(), SvStream::Seek(), DffRecordHeader::SeekToBegOfRecord(), DffRecordHeader::SeekToEndOfRecord(), and SvStream::Tell().
Referenced by GetFidclData(), SdrPowerPointImport::ImportPage(), SdrPowerPointImport::ImportPageBackgroundObject(), PPTTextObj::PPTTextObj(), PPTTextRulerInterpreter::PPTTextRulerInterpreter(), SdrPowerPointImport::ReadFontCollection(), PPTStyleTextPropReader::ReadParaProps(), DffPropertyReader::ReadPropSet(), SdrPowerPointImport::SdrPowerPointImport(), SdrPowerPointImport::SeekOle(), SdrPowerPointImport::SeekToContentOfProgTag(), SeekToShape(), DffPropertyReader::SetDefaultPropSet(), and SetDgContainer().
bool SvxMSDffManager::SeekToRec2 | ( | sal_uInt16 | nRecId1, |
sal_uInt16 | nRecId2, | ||
sal_uLong | nMaxFilePos | ||
) | const |
Definition at line 3379 of file msdffimp.cxx.
References SvStream::good(), DffRecordHeader::nRecType, ReadDffRecordHeader(), rStCtrl, SvStream::Seek(), DffRecordHeader::SeekToBegOfRecord(), DffRecordHeader::SeekToEndOfRecord(), and SvStream::Tell().
Referenced by PPTTextObj::PPTTextObj().
|
virtual |
Reimplemented in SdrEscherImport, and SdrPowerPointImport.
Definition at line 3280 of file msdffimp.cxx.
References DFF_msofbtSp, DFF_msofbtSpContainer, DffRecordHeader::GetRecEndFilePos(), SvStream::good(), maDgOffsetTable, maFidcls, mnIdClusters, nId, DffRecordHeader::nRecType, DffRecordHeader::nRecVer, ReadDffRecordHeader(), SvStream::ReadUInt32(), SvStream::Seek(), DffRecordHeader::SeekToBegOfRecord(), DffRecordHeader::SeekToEndOfRecord(), SeekToRec(), and SvStream::Tell().
Referenced by SdrPowerPointImport::SeekToShape().
void SvxMSDffManager::SetDgContainer | ( | SvStream & | rSt | ) |
Definition at line 5858 of file msdffimp.cxx.
References DFF_msofbtDg, DffRecordHeader::GetRecEndFilePos(), maDgOffsetTable, DffRecordHeader::nRecInstance, ReadDffRecordHeader(), SvStream::Seek(), SeekToRec(), and SvStream::Tell().
Referenced by SdrPowerPointImport::SdrPowerPointImport().
void SvxMSDffManager::SetModel | ( | SdrModel * | pModel, |
tools::Long | nApplicationScale | ||
) |
Definition at line 3218 of file msdffimp.cxx.
References bNeedMap, Fraction::GetDenominator(), GetMapFactor(), Fraction::GetNumerator(), SdrModel::GetScaleUnit(), nEmuDiv, nEmuMul, nMapDiv, nMapMul, nMapXOfs, nMapYOfs, nMaxAllowedVal, nMinAllowedVal, nPntDiv, nPntMul, pSdrModel, SAL_MAX_INT32, SAL_MIN_INT32, X, and FrPair::X().
Referenced by SvxMSDffManager().
|
static |
Definition at line 7485 of file msdffimp.cxx.
|
inline |
Definition at line 626 of file msdffimp.hxx.
|
protectedvirtual |
Prevent that (rounded) rectangles with wrapped text will always be converted into SdrRectObj( SdrObjKind::Text ).
Definition at line 6767 of file msdffimp.cxx.
Referenced by ProcessObj().
|
static |
Create connections between shapes.
This method should be called after a page is imported.
rSolver | contains necessary data that is collected during the import of each shape |
Definition at line 461 of file msdffimp.cxx.
References SvxMSDffSolverContainer::aCList, gentoken::i, SvxMSDffConnectorRule::ncptiA, SvxMSDffConnectorRule::nSpFlagsA, SvxMSDffConnectorRule::pAObj, SvxMSDffConnectorRule::pBObj, and SvxMSDffConnectorRule::pCObj.
Referenced by SdrPowerPointImport::ImportPage().
void SvxMSDffManager::StoreShapeOrder | ( | sal_uLong | nId, |
sal_uLong | nTxBx, | ||
SdrObject * | pObject, | ||
SwFlyFrameFormat * | pFly = nullptr |
||
) | const |
Definition at line 5710 of file msdffimp.cxx.
References m_aShapeOrders, nId, and pObject.
Referenced by ProcessObj().
|
friend |
Definition at line 442 of file msdffimp.hxx.
Referenced by ImportShape().
std::unordered_map<sal_uInt32, Graphic> SvxMSDffManager::aEscherBlipCache |
Definition at line 551 of file msdffimp.hxx.
Referenced by GetBLIP().
|
protected |
Definition at line 457 of file msdffimp.hxx.
Referenced by Scale(), and SetModel().
|
private |
Definition at line 419 of file msdffimp.hxx.
Referenced by ExchangeInShapeOrder(), GetShapeContainerData(), RemoveFromShapeOrder(), and StoreShapeOrder().
|
private |
Definition at line 416 of file msdffimp.hxx.
Referenced by GetBLIP(), and GetDrawingGroupContainerData().
|
private |
Definition at line 418 of file msdffimp.hxx.
Referenced by CheckTxBxStoryChain(), GetShape(), and ProcessObj().
|
private |
Definition at line 417 of file msdffimp.hxx.
Referenced by CheckTxBxStoryChain(), and GetShapeContainerData().
|
protected |
Definition at line 430 of file msdffimp.hxx.
Referenced by ImportGraphic(), ImportOLE(), and SdrPowerPointImport::ImportOLE().
|
protected |
array of fileoffsets
Definition at line 433 of file msdffimp.hxx.
Referenced by SeekToShape(), and SetDgContainer().
|
protected |
Definition at line 432 of file msdffimp.hxx.
Referenced by GetFidclData(), SdrEscherImport::ProcessObj(), and SeekToShape().
|
protected |
When importing Excel files, cell anchor computations for non-page-anchored groups must be done after all nested groups have been processed; for each open group, the pending data is stored here.
The storage also holds a shared_ptr to the DffObjData ow DffRecordHeader to avoid it going out of scope except when needed
Definition at line 440 of file msdffimp.hxx.
Referenced by ImportGroup(), and ImportShape().
|
protected |
stores a reference to an imported SdrObject with its shape id if it has one
Definition at line 465 of file msdffimp.hxx.
Referenced by getShapeForId(), insertShapeId(), and removeShapeId().
DffRecordManager SvxMSDffManager::maShapeRecords |
Definition at line 553 of file msdffimp.hxx.
Referenced by SdrPowerPointImport::ImportOLE(), ImportShape(), PPTTextObj::PPTTextObj(), ProcessObj(), SdrEscherImport::ProcessObj(), and SdrPowerPointImport::SeekToShape().
bool SvxMSDffManager::mbSkipImages |
Definition at line 556 of file msdffimp.hxx.
Referenced by ImportShape().
Color SvxMSDffManager::mnDefaultColor |
Definition at line 554 of file msdffimp.hxx.
Referenced by MSO_CLR_ToColor(), and ProcessObj().
|
protected |
Definition at line 431 of file msdffimp.hxx.
Referenced by GetFidclData(), SdrEscherImport::ProcessObj(), and SeekToShape().
|
private |
Definition at line 421 of file msdffimp.hxx.
Referenced by GetDrawingGroupContainerData().
|
protected |
Definition at line 454 of file msdffimp.hxx.
Referenced by ScaleEmu(), and SetModel().
|
protected |
Definition at line 453 of file msdffimp.hxx.
Referenced by ScaleEmu(), and SetModel().
|
private |
Definition at line 422 of file msdffimp.hxx.
Referenced by ImportGroup(), and ImportShape().
|
protected |
Definition at line 450 of file msdffimp.hxx.
Referenced by SdrPowerPointImport::GetPageSize(), Scale(), and SetModel().
|
protected |
Definition at line 449 of file msdffimp.hxx.
Referenced by SdrPowerPointImport::GetPageSize(), Scale(), and SetModel().
|
protected |
Definition at line 451 of file msdffimp.hxx.
Referenced by Scale(), and SetModel().
|
protected |
Definition at line 452 of file msdffimp.hxx.
Referenced by Scale(), and SetModel().
|
protected |
Definition at line 459 of file msdffimp.hxx.
Referenced by Scale(), and SetModel().
|
protected |
Definition at line 458 of file msdffimp.hxx.
Referenced by Scale(), and SetModel().
|
private |
Definition at line 420 of file msdffimp.hxx.
Referenced by InitSvxMSDffManager(), and SvxMSDffManager().
|
protected |
Definition at line 456 of file msdffimp.hxx.
Referenced by ScalePoint(), and SetModel().
|
protected |
Definition at line 455 of file msdffimp.hxx.
Referenced by ScalePoint(), and SetModel().
|
protected |
Definition at line 461 of file msdffimp.hxx.
Referenced by ImportOLE(), SdrPowerPointImport::ImportOLE(), and InitSvxMSDffManager().
|
protected |
Definition at line 460 of file msdffimp.hxx.
|
protected |
Definition at line 447 of file msdffimp.hxx.
Referenced by DffPropertyReader::ApplyAttributes(), SdrPowerPointImport::CreateTable(), SdrPowerPointImport::GetPageSize(), ImportGraphic(), SdrPowerPointImport::ImportOLE(), SdrPowerPointImport::ImportPageBackgroundObject(), ImportShape(), SdrPowerPointImport::MakeBlankPage(), ProcessObj(), SdrEscherImport::ProcessObj(), ScalePt(), and SetModel().
std::unique_ptr<DffPropertyReader> SvxMSDffManager::pSecPropSet |
Definition at line 550 of file msdffimp.hxx.
Referenced by DffPropertyReader::CheckAndCorrectExcelTextRotation(), and ImportShape().
|
protected |
Definition at line 445 of file msdffimp.hxx.
Referenced by GetBLIP(), GetShape(), ImportOLE(), InitSvxMSDffManager(), and SvxMSDffManager().
|
protected |
Definition at line 446 of file msdffimp.hxx.
Referenced by GetBLIP().
|
protected |
Definition at line 444 of file msdffimp.hxx.
Referenced by GetBLIP(), GetCtrlData(), GetFidclData(), GetShape(), SdrPowerPointImport::ImportExOleObjStg(), SdrEscherImport::ImportHeaderFooterContainer(), SdrPowerPointImport::ImportOLE(), SdrPowerPointImport::ImportPage(), SdrPowerPointImport::ImportPageBackgroundObject(), InitSvxMSDffManager(), SdrPowerPointImport::ReadFontCollection(), SdrEscherImport::ReadString(), SdrPowerPointImport::SdrPowerPointImport(), SdrPowerPointImport::SeekOle(), SdrPowerPointImport::SeekToCurrentPage(), SdrPowerPointImport::SeekToDocument(), SeekToRec2(), and SvxMSDffManager().