Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Classes | Defines | Typedefs | Functions
paragraphstyle.cpp File Reference
#include "styles/style.h"
#include "paragraphstyle.h"
#include "resourcecollection.h"
#include "desaxe/saxiohelper.h"
#include "desaxe/simple_actions.h"
#include "paragraphstyle.attrdefs.cxx"

Go to the source code of this file.

Classes

class  SetCharStyle_body
 PageItem StoryText -> PageItem StoryText. More...
class  SetCharStyle
class  SetTabStop_body
class  SetTabStop

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)
#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
< ParagraphStyle::TabRecord > 
Tablist

Functions

static QString toXMLString (ParagraphStyle::AlignmentType val)
static QString toXMLString (const QValueList< ParagraphStyle::TabRecord > &)
template<>
ParagraphStyle::AlignmentType parse< ParagraphStyle::AlignmentType > (const Xml_string &str)
template<>
ParagraphStyle::LineSpacingMode parse< ParagraphStyle::LineSpacingMode > (const Xml_string &str)
template<>
Tablist parse< Tablist > (const Xml_string &str)

Define Documentation

#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
m_##attr_NAME = attr_DEFAULT; \
       inh_##attr_NAME = true;
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
m_##attr_NAME = other.m_##attr_NAME; \
       inh_##attr_NAME = other.inh_##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:
m_##attr_NAME = other.m_##attr_NAME; \
       inh_##attr_NAME = other.inh_##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:
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 = 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, "TabValues") != 0) \
              att.insert(# attr_NAME, toXMLString(m_##attr_NAME));
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)
Value:
if ( strcmp(# attr_NAME, "TabValues") != 0) \
              ruleset.addRule(stylePrefix, SetAttributeWithConversion<ParagraphStyle, attr_TYPE> ( & ParagraphStyle::set##attr_NAME,  # attr_NAME, &parse<attr_TYPE> ));

Typedef Documentation

typedef QValueList<ParagraphStyle::TabRecord> Tablist

Definition at line 332 of file paragraphstyle.cpp.


Function Documentation

template<>
ParagraphStyle::AlignmentType parse< ParagraphStyle::AlignmentType > ( const Xml_string str)

Definition at line 319 of file paragraphstyle.cpp.

{
       return parseEnum<ParagraphStyle::AlignmentType>(str);
}
template<>
ParagraphStyle::LineSpacingMode parse< ParagraphStyle::LineSpacingMode > ( const Xml_string str)

Definition at line 326 of file paragraphstyle.cpp.

{
       return parseEnum<ParagraphStyle::LineSpacingMode>(str);
}
template<>
Tablist parse< Tablist > ( const Xml_string str)

Definition at line 335 of file paragraphstyle.cpp.

{
       return Tablist();
}
static QString toXMLString ( ParagraphStyle::AlignmentType  val) [static]

Definition at line 241 of file paragraphstyle.cpp.

{
       return QString::number(static_cast<int>(val));
}
static QString toXMLString ( const QValueList< ParagraphStyle::TabRecord > &  ) [static]

Definition at line 247 of file paragraphstyle.cpp.

{
       return "dummy";
}