Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Defines | Functions | Variables
charstyle.cpp File Reference
#include <qvaluelist.h>
#include <qobject.h>
#include "sctextstruct.h"
#include "scfonts.h"
#include "resourcecollection.h"
#include "styles/style.h"
#include "charstyle.h"
#include "desaxe/saxiohelper.h"
#include "desaxe/simple_actions.h"
#include "prefsmanager.h"
#include "charstyle.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)   ruleset.addRule(stylePrefix, SetAttributeWithConversion<CharStyle, attr_TYPE> ( & CharStyle::set##attr_NAME, # attr_NAME, &parse<attr_TYPE> ));

Functions

Xml_string toXMLString (StyleFlag val)
template<>
StyleFlag parse< StyleFlag > (const Xml_string &str)
template<>
ScFace parse< ScFace > (const Xml_string &str)

Variables

static const QString SHYPHEN = "shyphen"

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) \
              att.insert(# attr_NAME, toXMLString(m_##attr_NAME));
#define ATTRDEF (   attr_TYPE,
  attr_GETTER,
  attr_NAME,
  attr_DEFAULT 
)    ruleset.addRule(stylePrefix, SetAttributeWithConversion<CharStyle, attr_TYPE> ( & CharStyle::set##attr_NAME, # attr_NAME, &parse<attr_TYPE> ));

Function Documentation

template<>
ScFace parse< ScFace > ( const Xml_string str)

Definition at line 491 of file charstyle.cpp.

{
       // FIXME: enable font substitution here
       return PrefsManager::instance()->appPrefs.AvailFonts[str];
}
template<>
StyleFlag parse< StyleFlag > ( const Xml_string str)

Definition at line 485 of file charstyle.cpp.

{
       return StyleFlag(parseInt(str));
}

Here is the call graph for this function:

Xml_string toXMLString ( StyleFlag  val)

Definition at line 459 of file charstyle.cpp.

{
       return toXMLString(static_cast<unsigned int>(val & ScStyle_UserStyles));
}

Here is the call graph for this function:


Variable Documentation

const QString SHYPHEN = "shyphen" [static]

Definition at line 217 of file charstyle.cpp.