
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 Matthias Koefferlein

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
*  @file gsiDeclQTextTableFormat_Enums.h 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#ifndef _HDR_gsiDeclQTextTableFormat_Enums
#define _HDR_gsiDeclQTextTableFormat_Enums

#include <QtCore/QFlags>

namespace qt_gsi
{

//  Wrapper class for QFlags<enum QTextFormat::PageBreakFlag>
class QTextFormat_PageBreakFlag_Enums : public QFlags<enum QTextFormat::PageBreakFlag> {
public:
  QTextFormat_PageBreakFlag_Enums () : m_flags () { }
  QTextFormat_PageBreakFlag_Enums (enum QTextFormat::PageBreakFlag v) : m_flags (v) { }
  QTextFormat_PageBreakFlag_Enums (const QFlags<enum QTextFormat::PageBreakFlag> &v) : m_flags (v) { }
  QFlags<enum QTextFormat::PageBreakFlag> flags () const { return m_flags; }
private:
  QFlags<QTextFormat::PageBreakFlag> m_flags;
};

//  Wrapper class for enum QTextFormat::PageBreakFlag
class QTextFormat_PageBreakFlag_Enum : public QTextFormat_PageBreakFlag_Enums {
public:
  QTextFormat_PageBreakFlag_Enum () { }
  QTextFormat_PageBreakFlag_Enum (enum QTextFormat::PageBreakFlag v) : QTextFormat_PageBreakFlag_Enums (v) { }
  enum QTextFormat::PageBreakFlag value () const { return (enum QTextFormat::PageBreakFlag) flags ().operator int (); }
};

//  Converter for QFlags<enum QTextFormat::PageBreakFlag>
template <>
struct Converter<QFlags<enum QTextFormat::PageBreakFlag> >
{
public:
  typedef QFlags<enum QTextFormat::PageBreakFlag> source_type;
  typedef QTextFormat_PageBreakFlag_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QTextFormat::PageBreakFlag
template <>
struct Converter<enum QTextFormat::PageBreakFlag>
{
public:
  typedef enum QTextFormat::PageBreakFlag source_type;
  typedef QTextFormat_PageBreakFlag_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Wrapper class for QFlags<enum QTextFrameFormat::BorderStyle>
class QTextFrameFormat_BorderStyle_Enums : public QFlags<enum QTextFrameFormat::BorderStyle> {
public:
  QTextFrameFormat_BorderStyle_Enums () : m_flags () { }
  QTextFrameFormat_BorderStyle_Enums (enum QTextFrameFormat::BorderStyle v) : m_flags (v) { }
  QTextFrameFormat_BorderStyle_Enums (const QFlags<enum QTextFrameFormat::BorderStyle> &v) : m_flags (v) { }
  QFlags<enum QTextFrameFormat::BorderStyle> flags () const { return m_flags; }
private:
  QFlags<QTextFrameFormat::BorderStyle> m_flags;
};

//  Wrapper class for enum QTextFrameFormat::BorderStyle
class QTextFrameFormat_BorderStyle_Enum : public QTextFrameFormat_BorderStyle_Enums {
public:
  QTextFrameFormat_BorderStyle_Enum () { }
  QTextFrameFormat_BorderStyle_Enum (enum QTextFrameFormat::BorderStyle v) : QTextFrameFormat_BorderStyle_Enums (v) { }
  enum QTextFrameFormat::BorderStyle value () const { return (enum QTextFrameFormat::BorderStyle) flags ().operator int (); }
};

//  Converter for QFlags<enum QTextFrameFormat::BorderStyle>
template <>
struct Converter<QFlags<enum QTextFrameFormat::BorderStyle> >
{
public:
  typedef QFlags<enum QTextFrameFormat::BorderStyle> source_type;
  typedef QTextFrameFormat_BorderStyle_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QTextFrameFormat::BorderStyle
template <>
struct Converter<enum QTextFrameFormat::BorderStyle>
{
public:
  typedef enum QTextFrameFormat::BorderStyle source_type;
  typedef QTextFrameFormat_BorderStyle_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Wrapper class for QFlags<enum QTextFrameFormat::Position>
class QTextFrameFormat_Position_Enums : public QFlags<enum QTextFrameFormat::Position> {
public:
  QTextFrameFormat_Position_Enums () : m_flags () { }
  QTextFrameFormat_Position_Enums (enum QTextFrameFormat::Position v) : m_flags (v) { }
  QTextFrameFormat_Position_Enums (const QFlags<enum QTextFrameFormat::Position> &v) : m_flags (v) { }
  QFlags<enum QTextFrameFormat::Position> flags () const { return m_flags; }
private:
  QFlags<QTextFrameFormat::Position> m_flags;
};

//  Wrapper class for enum QTextFrameFormat::Position
class QTextFrameFormat_Position_Enum : public QTextFrameFormat_Position_Enums {
public:
  QTextFrameFormat_Position_Enum () { }
  QTextFrameFormat_Position_Enum (enum QTextFrameFormat::Position v) : QTextFrameFormat_Position_Enums (v) { }
  enum QTextFrameFormat::Position value () const { return (enum QTextFrameFormat::Position) flags ().operator int (); }
};

//  Converter for QFlags<enum QTextFrameFormat::Position>
template <>
struct Converter<QFlags<enum QTextFrameFormat::Position> >
{
public:
  typedef QFlags<enum QTextFrameFormat::Position> source_type;
  typedef QTextFrameFormat_Position_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QTextFrameFormat::Position
template <>
struct Converter<enum QTextFrameFormat::Position>
{
public:
  typedef enum QTextFrameFormat::Position source_type;
  typedef QTextFrameFormat_Position_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Wrapper class for QFlags<enum Qt::AlignmentFlag>
class Qt_AlignmentFlag_Enums : public QFlags<enum Qt::AlignmentFlag> {
public:
  Qt_AlignmentFlag_Enums () : m_flags () { }
  Qt_AlignmentFlag_Enums (enum Qt::AlignmentFlag v) : m_flags (v) { }
  Qt_AlignmentFlag_Enums (const QFlags<enum Qt::AlignmentFlag> &v) : m_flags (v) { }
  QFlags<enum Qt::AlignmentFlag> flags () const { return m_flags; }
private:
  QFlags<Qt::AlignmentFlag> m_flags;
};

//  Wrapper class for enum Qt::AlignmentFlag
class Qt_AlignmentFlag_Enum : public Qt_AlignmentFlag_Enums {
public:
  Qt_AlignmentFlag_Enum () { }
  Qt_AlignmentFlag_Enum (enum Qt::AlignmentFlag v) : Qt_AlignmentFlag_Enums (v) { }
  enum Qt::AlignmentFlag value () const { return (enum Qt::AlignmentFlag) flags ().operator int (); }
};

//  Converter for QFlags<enum Qt::AlignmentFlag>
template <>
struct Converter<QFlags<enum Qt::AlignmentFlag> >
{
public:
  typedef QFlags<enum Qt::AlignmentFlag> source_type;
  typedef Qt_AlignmentFlag_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum Qt::AlignmentFlag
template <>
struct Converter<enum Qt::AlignmentFlag>
{
public:
  typedef enum Qt::AlignmentFlag source_type;
  typedef Qt_AlignmentFlag_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Wrapper class for QFlags<enum Qt::LayoutDirection>
class Qt_LayoutDirection_Enums : public QFlags<enum Qt::LayoutDirection> {
public:
  Qt_LayoutDirection_Enums () : m_flags () { }
  Qt_LayoutDirection_Enums (enum Qt::LayoutDirection v) : m_flags (v) { }
  Qt_LayoutDirection_Enums (const QFlags<enum Qt::LayoutDirection> &v) : m_flags (v) { }
  QFlags<enum Qt::LayoutDirection> flags () const { return m_flags; }
private:
  QFlags<Qt::LayoutDirection> m_flags;
};

//  Wrapper class for enum Qt::LayoutDirection
class Qt_LayoutDirection_Enum : public Qt_LayoutDirection_Enums {
public:
  Qt_LayoutDirection_Enum () { }
  Qt_LayoutDirection_Enum (enum Qt::LayoutDirection v) : Qt_LayoutDirection_Enums (v) { }
  enum Qt::LayoutDirection value () const { return (enum Qt::LayoutDirection) flags ().operator int (); }
};

//  Converter for QFlags<enum Qt::LayoutDirection>
template <>
struct Converter<QFlags<enum Qt::LayoutDirection> >
{
public:
  typedef QFlags<enum Qt::LayoutDirection> source_type;
  typedef Qt_LayoutDirection_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum Qt::LayoutDirection
template <>
struct Converter<enum Qt::LayoutDirection>
{
public:
  typedef enum Qt::LayoutDirection source_type;
  typedef Qt_LayoutDirection_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

}

#endif
