Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Defines | Typedefs | Functions
linestyle.cpp File Reference
#include <qvaluelist.h>
#include <qobject.h>
#include "sctextstruct.h"
#include "scfonts.h"
#include "resourcecollection.h"
#include "styles/style.h"
#include "linestyle.h"
#include "desaxe/saxiohelper.h"
#include "desaxe/simple_actions.h"
#include "prefsmanager.h"
#include "linestyle.attrdefs.cxx"

Go to the source code of this file.

Defines

#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)

Typedefs

typedef QValueList< LineStyle > Sublist

Functions

static QString toXMLString (const Sublist &)
template<>
Sublist parse< Sublist > (const Xml_string &str)
template<>
Qt::PenStyle parse< Qt::PenStyle > (const Xml_string &str)
template<>
Qt::PenCapStyle parse< Qt::PenCapStyle > (const Xml_string &str)
template<>
Qt::PenJoinStyle parse< Qt::PenJoinStyle > (const Xml_string &str)

Define Documentation

#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
if (! other.inh_##attr_NAME) \
              set##attr_NAME(other.m_##attr_NAME);
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
if (!inh_##attr_NAME && m_##attr_NAME == other.m_##attr_NAME) \
              reset##attr_NAME();
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
&& (inh_##attr_NAME == oth->inh_##attr_NAME) \
              && (inh_##attr_NAME || m_##attr_NAME == oth->m_##attr_NAME)
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
if (inh_##attr_NAME) \
                     m_##attr_NAME = oth->attr_GETTER();
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
inh_##attr_NAME = other.inh_##attr_NAME; \
       m_##attr_NAME = other.m_##attr_NAME;
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
if (!inh_##attr_NAME && strcmp(# attr_NAME, "Sublines") != 0 ) \
              att.insert(# attr_NAME, toXMLString(m_##attr_NAME));
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
if ( strcmp(# attr_NAME, "Sublines") != 0 ) { \
              ruleset.addRule(stylePrefix, SetAttributeWithConversion<LineStyle, attr_TYPE> ( & LineStyle::set##attr_NAME,  # attr_NAME, &parse<attr_TYPE> )); \
              ruleset.addRule(subPrefix, SetAttributeWithConversion<LineStyle, attr_TYPE> ( & LineStyle::set##attr_NAME,  # attr_NAME, &parse<attr_TYPE> )); \
       }

Typedef Documentation

typedef QValueList<LineStyle> Sublist

Definition at line 189 of file linestyle.cpp.


Function Documentation

template<>
Qt::PenCapStyle parse< Qt::PenCapStyle > ( const Xml_string str)

Definition at line 235 of file linestyle.cpp.

{
       return parseEnum<Qt::PenCapStyle>(str);
}
template<>
Qt::PenJoinStyle parse< Qt::PenJoinStyle > ( const Xml_string str)

Definition at line 241 of file linestyle.cpp.

{
       return parseEnum<Qt::PenJoinStyle>(str);
}
template<>
Qt::PenStyle parse< Qt::PenStyle > ( const Xml_string str)

Definition at line 229 of file linestyle.cpp.

{
       return parseEnum<Qt::PenStyle>(str);
}
template<>
Sublist parse< Sublist > ( const Xml_string str)

Definition at line 223 of file linestyle.cpp.

{
       return Sublist();
}
static QString toXMLString ( const Sublist ) [static]

Definition at line 191 of file linestyle.cpp.

{
       return "dummy";
}