29const sal_uInt16 DFF_ID_BSE = 0xF007;
30const sal_uInt16 DFF_ID_BSTORECONTAINER = 0xF001;
31const sal_uInt16 DFF_ID_CHILDANCHOR = 0xF00F;
32const sal_uInt16 DFF_ID_CLIENTANCHOR = 0xF010;
33const sal_uInt16 DFF_ID_DG = 0xF008;
34const sal_uInt16 DFF_ID_DGG = 0xF006;
35const sal_uInt16 DFF_ID_OPT = 0xF00B;
36const sal_uInt16 DFF_ID_OPT2 = 0xF121;
37const sal_uInt16 DFF_ID_OPT3 = 0xF122;
38const sal_uInt16 DFF_ID_SP = 0xF00A;
39const sal_uInt16 DFF_ID_SPGR = 0xF009;
40const sal_uInt16 DFF_ID_SPLITMENUCOLORS = 0xF11E;
42const sal_uInt16 DFF_OPT_IDMASK = 0x3FFF;
43const sal_uInt16 DFF_OPT_COMPLEX = 0x8000;
53 return !rBaseStrm.
isEof();
58 const char* pcListName =
"DFF-RECORD-INST";
61 case DFF_ID_BSE: pcListName =
"DFFBSE-RECORD-INST";
break;
62 case DFF_ID_BSTORECONTAINER: pcListName =
"DFFBSTORECONT-RECORD-INST";
break;
63 case DFF_ID_DG: pcListName =
"DFFDG-RECORD-INST";
break;
64 case DFF_ID_OPT: pcListName =
"DFFOPT-RECORD-INST";
break;
65 case DFF_ID_SP: pcListName =
"DFFSP-RECORD-INST";
break;
66 case DFF_ID_SPLITMENUCOLORS: pcListName =
"DFFSPLITMENUC-RECORD-INST";
break;
78 dumpDec< sal_uInt8 >(
"win-type",
"DFFBSE-TYPE" );
79 dumpDec< sal_uInt8 >(
"mac-type",
"DFFBSE-TYPE" );
81 dumpDec< sal_uInt16 >(
"tag" );
82 dumpDec< sal_uInt32 >(
"blip-size" );
83 dumpDec< sal_uInt32 >(
"blip-refcount" );
84 dumpDec< sal_uInt32 >(
"blip-streampos" );
85 dumpDec< sal_uInt8 >(
"blip-usage",
"DFFBSE-USAGE" );
86 dumpDec< sal_uInt8 >(
"blip-name-len" );
90 case DFF_ID_CHILDANCHOR:
91 dumpDec< sal_uInt32 >(
"left" );
92 dumpDec< sal_uInt32 >(
"top" );
93 dumpDec< sal_uInt32 >(
"right" );
94 dumpDec< sal_uInt32 >(
"bottom" );
97 case DFF_ID_CLIENTANCHOR:
101 dumpDec< sal_uInt32 >(
"shape-count" );
102 dumpHex< sal_uInt32 >(
"max-shape-id",
"CONV-DEC" );
107 dumpHex< sal_uInt32 >(
"max-shape-id",
"CONV-DEC" );
108 sal_uInt32 nClusters = dumpDec< sal_uInt32 >(
"id-cluster-count" );
109 dumpDec< sal_uInt32 >(
"shape-count" );
110 dumpDec< sal_uInt32 >(
"drawing-count" );
111 mxOut->resetItemIndex( 1 );
113 for( sal_uInt32 nCluster = 1; !
mxStrm->isEof() && (nCluster < nClusters); ++nCluster )
117 dumpDec< sal_uInt32 >(
"drawing-id" );
118 dumpHex< sal_uInt32 >(
"next-free-id",
"CONV-DEC" );
130 dumpHex< sal_uInt32 >(
"shape-id",
"CONV-DEC" );
131 dumpHex< sal_uInt32 >(
"shape-flags",
"DFFSP-FLAGS" );
135 dumpDec< sal_uInt32 >(
"left" );
136 dumpDec< sal_uInt32 >(
"top" );
137 dumpDec< sal_uInt32 >(
"right" );
138 dumpDec< sal_uInt32 >(
"bottom" );
141 case DFF_ID_SPLITMENUCOLORS:
152 return dumpHex< sal_uInt32 >( rName,
"DFF-SIMPLE-COLOR" );
157enum class PropType {
Binary };
165 explicit PropInfo( OUString aName, PropType eType, sal_uInt16
nId, sal_uInt32 nSize ) :
169typedef ::std::vector< PropInfo > PropInfoVector;
175 sal_uInt16 nPropCount =
getInst();
176 PropInfoVector aPropInfos;
177 mxOut->resetItemIndex();
178 for( sal_uInt16 nPropIdx = 0; !
mxStrm->isEof() && (nPropIdx < nPropCount); ++nPropIdx )
181 sal_uInt16 nBaseId = nPropId & DFF_OPT_IDMASK;
185 if(
getFlag( nPropId, DFF_OPT_COMPLEX ) )
188 aPropInfos.emplace_back(
String(
"property-data" ), PropType::Binary, nBaseId,
nValue );
196 mxOut->resetItemIndex();
197 for (
auto const& propInfo : aPropInfos)
201 mxOut->startMultiItems();
203 writeHexItem(
"id", propInfo.mnId,
"DFFOPT-PROPERTY-NAMES" );
204 mxOut->endMultiItems();
206 switch(propInfo.meType)
208 case PropType::Binary:
209 dumpBinary( propInfo.maName, propInfo.mnSize );
211 default: assert(
false &&
"missing implementation?");
221 return dumpHex< sal_uInt16 >(
"id",
"DFFOPT-PROPERTY-ID" );
bool isEof() const
Returns true, if the stream position is invalid (EOF).
sal_uInt16 dumpDffOptPropHeader()
virtual bool implReadRecordHeader(BinaryInputStream &rBaseStrm, sal_Int64 &ornRecId, sal_Int64 &ornRecSize) override
virtual void implDumpRecordBody() override
sal_uInt16 getInst() const
sal_uInt32 dumpDffSimpleColor(const String &rName)
virtual void implWriteExtHeader() override
void writeEmptyItem(const String &rName)
void writeDecItem(const String &rName, Type nData, const NameListWrapper &rListWrp=NO_LIST)
void writeHexItem(const String &rName, Type nData, const NameListWrapper &rListWrp=NO_LIST)
sal_Int64 getRecId() const
bool getFlag(Type nBitField, Type nMask)
Returns true, if at least one of the bits set in nMask is set in nBitField.