LibreOffice Module oox (master)  1
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
oox::ole::AxBinaryPropertyReader Class Reference

Import helper to read simple and complex ActiveX form control properties from a binary input stream. More...

#include <axbinaryreader.hxx>

Collaboration diagram for oox::ole::AxBinaryPropertyReader:
[legend]

Classes

struct  ArrayStringProperty
 Complex property for an array of strings. More...
 
struct  ComplexProperty
 Base class for complex properties such as string, point, size, GUID, picture. More...
 
struct  FontProperty
 Stream property for a font structure. More...
 
struct  GuidProperty
 Complex property for a GUID value. More...
 
struct  PairProperty
 Complex property for a 32-bit value pair, e.g. More...
 
struct  PictureProperty
 Stream property for a picture or mouse icon. More...
 
struct  StringProperty
 Complex property for a string value. More...
 

Public Member Functions

 AxBinaryPropertyReader (BinaryInputStream &rInStrm, bool b64BitPropFlags=false)
 
template<typename StreamType , typename DataType >
void readIntProperty (DataType &ornValue)
 Reads the next integer property value from the stream, if the respective flag in the property mask is set. More...
 
void readBoolProperty (bool &orbValue, bool bReverse=false)
 Reads the next boolean property value from the stream, if the respective flag in the property mask is set. More...
 
void readPairProperty (AxPairData &orPairData)
 Reads the next pair property from the stream, if the respective flag in the property mask is set. More...
 
void readStringProperty (OUString &orValue)
 Reads the next string property from the stream, if the respective flag in the property mask is set. More...
 
void readArrayStringProperty (std::vector< OUString > &rStrings)
 Reads ArrayString, an array of fmString ( compressed or uncompressed ) is read from the stream and inserted into rStrings. More...
 
void readGuidProperty (OUString &orGuid)
 Reads the next GUID property from the stream, if the respective flag in the property mask is set. More...
 
void readFontProperty (AxFontData &orFontData)
 Reads the next font property from the stream, if the respective flag in the property mask is set. More...
 
void readPictureProperty (StreamDataSequence &orPicData)
 Reads the next picture property from the stream, if the respective flag in the property mask is set. More...
 
template<typename StreamType >
void skipIntProperty ()
 Skips the next integer property value in the stream, if the respective flag in the property mask is set. More...
 
void skipBoolProperty ()
 Skips the next boolean property value in the stream, if the respective flag in the property mask is set. More...
 
void skipStringProperty ()
 Skips the next string property in the stream, if the respective flag in the property mask is set. More...
 
void skipArrayStringProperty ()
 Skips the next ArrayString property in the stream, if the respective flag in the property mask is set. More...
 
void skipGuidProperty ()
 Skips the next GUID property in the stream, if the respective flag in the property mask is set. More...
 
void skipPictureProperty ()
 Skips the next picture property in the stream, if the respective flag in the property mask is set. More...
 
void skipUndefinedProperty ()
 Has to be called for undefined properties. More...
 
bool finalizeImport ()
 Final processing, reads contents of all complex properties. More...
 

Private Types

typedef RefVector< ComplexPropertyComplexPropVector
 

Private Member Functions

bool ensureValid (bool bCondition=true)
 
bool startNextProperty ()
 

Private Attributes

AxAlignedInputStream maInStrm
 The input stream to read from. More...
 
ComplexPropVector maLargeProps
 Stores info for all used large properties. More...
 
ComplexPropVector maStreamProps
 Stores info for all used stream data properties. More...
 
StreamDataSequence maDummyPicData
 Dummy picture for unsupported properties. More...
 
OUString maDummyString
 Dummy string for unsupported properties. More...
 
AxArrayString maDummyArrayString
 Dummy strings for unsupported ArrayString properties. More...
 
sal_Int64 mnPropFlags
 Flags specifying existing properties. More...
 
sal_Int64 mnNextProp
 Next property to read. More...
 
sal_Int64 mnPropsEnd
 End position of simple/large properties. More...
 
bool mbValid
 True = stream still valid. More...
 

Detailed Description

Import helper to read simple and complex ActiveX form control properties from a binary input stream.

Definition at line 100 of file axbinaryreader.hxx.

Member Typedef Documentation

Definition at line 231 of file axbinaryreader.hxx.

Constructor & Destructor Documentation

oox::ole::AxBinaryPropertyReader::AxBinaryPropertyReader ( BinaryInputStream rInStrm,
bool  b64BitPropFlags = false 
)
explicit

Member Function Documentation

bool oox::ole::AxBinaryPropertyReader::ensureValid ( bool  bCondition = true)
private
bool oox::ole::AxBinaryPropertyReader::finalizeImport ( )
void oox::ole::AxBinaryPropertyReader::readArrayStringProperty ( std::vector< OUString > &  rStrings)

Reads ArrayString, an array of fmString ( compressed or uncompressed ) is read from the stream and inserted into rStrings.

Definition at line 210 of file axbinaryreader.cxx.

References maInStrm, maLargeProps, oox::ole::AxAlignedInputStream::readAligned(), and startNextProperty().

Referenced by oox::ole::AxTabStripModel::importBinaryModel(), and skipArrayStringProperty().

void oox::ole::AxBinaryPropertyReader::readBoolProperty ( bool &  orbValue,
bool  bReverse = false 
)

Reads the next boolean property value from the stream, if the respective flag in the property mask is set.

Definition at line 189 of file axbinaryreader.cxx.

References startNextProperty().

Referenced by oox::ole::AxCommandButtonModel::importBinaryModel(), oox::ole::AxImageModel::importBinaryModel(), and oox::ole::AxContainerModelBase::importBinaryModel().

void oox::ole::AxBinaryPropertyReader::readFontProperty ( AxFontData orFontData)

Reads the next font property from the stream, if the respective flag in the property mask is set.

Definition at line 225 of file axbinaryreader.cxx.

References ensureValid(), maInStrm, maStreamProps, oox::ole::AxAlignedInputStream::readAligned(), and startNextProperty().

Referenced by oox::ole::AxContainerModelBase::importBinaryModel().

void oox::ole::AxBinaryPropertyReader::readGuidProperty ( OUString &  orGuid)

Reads the next GUID property from the stream, if the respective flag in the property mask is set.

The GUID will be enclosed in braces.

Definition at line 219 of file axbinaryreader.cxx.

References maLargeProps, and startNextProperty().

Referenced by oox::ole::AxContainerModelBase::importClassTable(), and skipGuidProperty().

template<typename StreamType , typename DataType >
void oox::ole::AxBinaryPropertyReader::readIntProperty ( DataType ornValue)
inline
void oox::ole::AxBinaryPropertyReader::readPairProperty ( AxPairData orPairData)
void oox::ole::AxBinaryPropertyReader::readPictureProperty ( StreamDataSequence orPicData)
void oox::ole::AxBinaryPropertyReader::readStringProperty ( OUString &  orValue)
void oox::ole::AxBinaryPropertyReader::skipArrayStringProperty ( )
inline

Skips the next ArrayString property in the stream, if the respective flag in the property mask is set.

Definition at line 144 of file axbinaryreader.hxx.

References maDummyArrayString, and readArrayStringProperty().

Referenced by oox::ole::AxTabStripModel::importBinaryModel().

void oox::ole::AxBinaryPropertyReader::skipBoolProperty ( )
inline

Skips the next boolean property value in the stream, if the respective flag in the property mask is set.

Definition at line 138 of file axbinaryreader.hxx.

References startNextProperty(), and void().

Referenced by oox::ole::AxImageModel::importBinaryModel(), oox::ole::AxTabStripModel::importBinaryModel(), and oox::ole::AxMorphDataModelBase::importBinaryModel().

void oox::ole::AxBinaryPropertyReader::skipGuidProperty ( )
inline

Skips the next GUID property in the stream, if the respective flag in the property mask is set.

Definition at line 147 of file axbinaryreader.hxx.

References maDummyString, and readGuidProperty().

Referenced by oox::ole::AxContainerModelBase::importClassTable().

template<typename StreamType >
void oox::ole::AxBinaryPropertyReader::skipIntProperty ( )
inline
void oox::ole::AxBinaryPropertyReader::skipPictureProperty ( )
inline
void oox::ole::AxBinaryPropertyReader::skipStringProperty ( )
inline

Skips the next string property in the stream, if the respective flag in the property mask is set.

Definition at line 141 of file axbinaryreader.hxx.

References maDummyString, and readStringProperty().

Referenced by oox::ole::VbaSiteModel::importBinaryModel().

void oox::ole::AxBinaryPropertyReader::skipUndefinedProperty ( )
inline
bool oox::ole::AxBinaryPropertyReader::startNextProperty ( )
private

Member Data Documentation

AxArrayString oox::ole::AxBinaryPropertyReader::maDummyArrayString
private

Dummy strings for unsupported ArrayString properties.

Definition at line 239 of file axbinaryreader.hxx.

Referenced by skipArrayStringProperty().

StreamDataSequence oox::ole::AxBinaryPropertyReader::maDummyPicData
private

Dummy picture for unsupported properties.

Definition at line 237 of file axbinaryreader.hxx.

Referenced by skipPictureProperty().

OUString oox::ole::AxBinaryPropertyReader::maDummyString
private

Dummy string for unsupported properties.

Definition at line 238 of file axbinaryreader.hxx.

Referenced by skipGuidProperty(), and skipStringProperty().

AxAlignedInputStream oox::ole::AxBinaryPropertyReader::maInStrm
private
ComplexPropVector oox::ole::AxBinaryPropertyReader::maLargeProps
private

Stores info for all used large properties.

Definition at line 235 of file axbinaryreader.hxx.

Referenced by finalizeImport(), readArrayStringProperty(), readGuidProperty(), readPairProperty(), and readStringProperty().

ComplexPropVector oox::ole::AxBinaryPropertyReader::maStreamProps
private

Stores info for all used stream data properties.

Definition at line 236 of file axbinaryreader.hxx.

Referenced by finalizeImport(), readFontProperty(), and readPictureProperty().

bool oox::ole::AxBinaryPropertyReader::mbValid
private

True = stream still valid.

Definition at line 243 of file axbinaryreader.hxx.

Referenced by ensureValid(), and finalizeImport().

sal_Int64 oox::ole::AxBinaryPropertyReader::mnNextProp
private

Next property to read.

Definition at line 241 of file axbinaryreader.hxx.

Referenced by AxBinaryPropertyReader(), and startNextProperty().

sal_Int64 oox::ole::AxBinaryPropertyReader::mnPropFlags
private

Flags specifying existing properties.

Definition at line 240 of file axbinaryreader.hxx.

Referenced by AxBinaryPropertyReader(), finalizeImport(), and startNextProperty().

sal_Int64 oox::ole::AxBinaryPropertyReader::mnPropsEnd
private

End position of simple/large properties.

Definition at line 242 of file axbinaryreader.hxx.

Referenced by AxBinaryPropertyReader(), and finalizeImport().


The documentation for this class was generated from the following files: