WP6GraphicsBoxStylePacket.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* libwpd
* Version: MPL 2.0 / LGPLv2.1+
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Major Contributor(s):
* Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms
* of the GNU Lesser General Public License Version 2.1 or later
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
* applicable instead of those above.
*
* For further information visit http://libwpd.sourceforge.net
*/
/* "This product is not manufactured, approved, or supported by
* Corel Corporation or Corel Corporation Limited."
*/
#ifndef WP6GRAPHICSBOXSTYLEPACKET_H
#define WP6GRAPHICSBOXSTYLEPACKET_H
#include <libwpd/libwpd.h>
#include <librevenge-stream/librevenge-stream.h>
#include "WP6PrefixDataPacket.h"
#include "WP6Listener.h"
class WP6GraphicsBoxStylePacket : public WP6PrefixDataPacket
{
public:
WP6GraphicsBoxStylePacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize);
~WP6GraphicsBoxStylePacket() override;
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
void parse(WP6Listener * /*listener*/) const override {}
unsigned char getGeneralPositioningFlags() const
{
return m_generalPositioningFlags;
}
unsigned char getHorizontalPositioningFlags() const
{
return m_horizontalPositioningFlags;
}
signed short getHorizontalOffset() const
{
return m_horizontalOffset;
}
unsigned char getLeftColumn() const
{
return m_leftColumn;
}
unsigned char getRightColumn() const
{
return m_rightColumn;
}
unsigned char getVerticalPositioningFlags() const
{
return m_verticalPositioningFlags;
}
signed short getVerticalOffset() const
{
return m_verticalOffset;
}
unsigned char getWidthFlags() const
{
return m_widthFlags;
}
unsigned short getWidth() const
{
return m_width;
}
unsigned char getHeightFlags() const
{
return m_heightFlags;
}
unsigned short getHeight() const
{
return m_height;
}
unsigned char getContentType() const
{
return m_contentType;
}
unsigned short getNativeWidth() const
{
return m_nativeWidth;
}
unsigned short getNativeHeight() const
{
return m_nativeHeight;
}
private:
WP6GraphicsBoxStylePacket(const WP6GraphicsBoxStylePacket &);
WP6GraphicsBoxStylePacket &operator=(const WP6GraphicsBoxStylePacket &);
bool m_isLibraryStyle;
librevenge::RVNGString m_boxStyleName;
unsigned char m_generalPositioningFlags;
unsigned char m_horizontalPositioningFlags;
signed short m_horizontalOffset;
unsigned char m_leftColumn, m_rightColumn;
unsigned char m_verticalPositioningFlags;
signed short m_verticalOffset;
unsigned char m_widthFlags;
unsigned short m_width;
unsigned char m_heightFlags;
unsigned short m_height;
unsigned char m_contentType, m_contentHAlign, m_contentVAlign;
bool m_contentPreserveAspectRatio;
unsigned short m_nativeWidth, m_nativeHeight;
};
#endif /* WP6GRAPHICSBOXSTYLEPACKET_H */
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6Listener.h
WP6PrefixDataPacket.h
WP6GraphicsBoxStylePacket::m_heightFlags
unsigned char m_heightFlags
Definition WP6GraphicsBoxStylePacket.h:112
WP6GraphicsBoxStylePacket::m_contentVAlign
unsigned char m_contentVAlign
Definition WP6GraphicsBoxStylePacket.h:114
WP6GraphicsBoxStylePacket::m_nativeWidth
unsigned short m_nativeWidth
Definition WP6GraphicsBoxStylePacket.h:116
WP6GraphicsBoxStylePacket::~WP6GraphicsBoxStylePacket
~WP6GraphicsBoxStylePacket() override
Definition WP6GraphicsBoxStylePacket.cpp:56
WP6GraphicsBoxStylePacket::m_rightColumn
unsigned char m_rightColumn
Definition WP6GraphicsBoxStylePacket.h:107
WP6GraphicsBoxStylePacket::getContentType
unsigned char getContentType() const
Definition WP6GraphicsBoxStylePacket.h:86
WP6GraphicsBoxStylePacket::getWidthFlags
unsigned char getWidthFlags() const
Definition WP6GraphicsBoxStylePacket.h:70
WP6GraphicsBoxStylePacket::getVerticalOffset
signed short getVerticalOffset() const
Definition WP6GraphicsBoxStylePacket.h:66
WP6GraphicsBoxStylePacket::m_contentType
unsigned char m_contentType
Definition WP6GraphicsBoxStylePacket.h:114
WP6GraphicsBoxStylePacket::m_horizontalOffset
signed short m_horizontalOffset
Definition WP6GraphicsBoxStylePacket.h:106
WP6GraphicsBoxStylePacket::m_contentHAlign
unsigned char m_contentHAlign
Definition WP6GraphicsBoxStylePacket.h:114
WP6GraphicsBoxStylePacket::getHorizontalOffset
signed short getHorizontalOffset() const
Definition WP6GraphicsBoxStylePacket.h:50
WP6GraphicsBoxStylePacket::operator=
WP6GraphicsBoxStylePacket & operator=(const WP6GraphicsBoxStylePacket &)
WP6GraphicsBoxStylePacket::m_horizontalPositioningFlags
unsigned char m_horizontalPositioningFlags
Definition WP6GraphicsBoxStylePacket.h:105
WP6GraphicsBoxStylePacket::m_isLibraryStyle
bool m_isLibraryStyle
Definition WP6GraphicsBoxStylePacket.h:102
WP6GraphicsBoxStylePacket::m_boxStyleName
librevenge::RVNGString m_boxStyleName
Definition WP6GraphicsBoxStylePacket.h:103
WP6GraphicsBoxStylePacket::WP6GraphicsBoxStylePacket
WP6GraphicsBoxStylePacket(const WP6GraphicsBoxStylePacket &)
WP6GraphicsBoxStylePacket::m_verticalPositioningFlags
unsigned char m_verticalPositioningFlags
Definition WP6GraphicsBoxStylePacket.h:108
WP6GraphicsBoxStylePacket::getWidth
unsigned short getWidth() const
Definition WP6GraphicsBoxStylePacket.h:74
WP6GraphicsBoxStylePacket::parse
void parse(WP6Listener *) const override
Definition WP6GraphicsBoxStylePacket.h:40
WP6GraphicsBoxStylePacket::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition WP6GraphicsBoxStylePacket.cpp:60
WP6GraphicsBoxStylePacket::getRightColumn
unsigned char getRightColumn() const
Definition WP6GraphicsBoxStylePacket.h:58
WP6GraphicsBoxStylePacket::WP6GraphicsBoxStylePacket
WP6GraphicsBoxStylePacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize)
Definition WP6GraphicsBoxStylePacket.cpp:31
WP6GraphicsBoxStylePacket::getGeneralPositioningFlags
unsigned char getGeneralPositioningFlags() const
Definition WP6GraphicsBoxStylePacket.h:42
WP6GraphicsBoxStylePacket::getNativeHeight
unsigned short getNativeHeight() const
Definition WP6GraphicsBoxStylePacket.h:94
WP6GraphicsBoxStylePacket::m_leftColumn
unsigned char m_leftColumn
Definition WP6GraphicsBoxStylePacket.h:107
WP6GraphicsBoxStylePacket::getVerticalPositioningFlags
unsigned char getVerticalPositioningFlags() const
Definition WP6GraphicsBoxStylePacket.h:62
WP6GraphicsBoxStylePacket::m_nativeHeight
unsigned short m_nativeHeight
Definition WP6GraphicsBoxStylePacket.h:116
WP6GraphicsBoxStylePacket::m_generalPositioningFlags
unsigned char m_generalPositioningFlags
Definition WP6GraphicsBoxStylePacket.h:104
WP6GraphicsBoxStylePacket::getLeftColumn
unsigned char getLeftColumn() const
Definition WP6GraphicsBoxStylePacket.h:54
WP6GraphicsBoxStylePacket::getHorizontalPositioningFlags
unsigned char getHorizontalPositioningFlags() const
Definition WP6GraphicsBoxStylePacket.h:46
WP6GraphicsBoxStylePacket::m_height
unsigned short m_height
Definition WP6GraphicsBoxStylePacket.h:113
WP6GraphicsBoxStylePacket::m_widthFlags
unsigned char m_widthFlags
Definition WP6GraphicsBoxStylePacket.h:110
WP6GraphicsBoxStylePacket::m_width
unsigned short m_width
Definition WP6GraphicsBoxStylePacket.h:111
WP6GraphicsBoxStylePacket::m_contentPreserveAspectRatio
bool m_contentPreserveAspectRatio
Definition WP6GraphicsBoxStylePacket.h:115
WP6GraphicsBoxStylePacket::getNativeWidth
unsigned short getNativeWidth() const
Definition WP6GraphicsBoxStylePacket.h:90
WP6GraphicsBoxStylePacket::getHeightFlags
unsigned char getHeightFlags() const
Definition WP6GraphicsBoxStylePacket.h:78
WP6GraphicsBoxStylePacket::m_verticalOffset
signed short m_verticalOffset
Definition WP6GraphicsBoxStylePacket.h:109
WP6GraphicsBoxStylePacket::getHeight
unsigned short getHeight() const
Definition WP6GraphicsBoxStylePacket.h:82
WP6Listener
Definition WP6Listener.h:41
WP6PrefixDataPacket::WP6PrefixDataPacket
WP6PrefixDataPacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6PrefixDataPacket.cpp:45
WPXEncryption
Definition WPXEncryption.h:36
libwpd.h