Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

paragraphstyle.h File Reference

#include "style.h"
#include "charstyle.h"
#include "styles/stylecontextproxy.h"
#include "paragraphstyle.attrdefs.cxx"

Include dependency graph for paragraphstyle.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ParagraphStyle
struct  ParagraphStyle::TabRecord

Defines

#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)   attr_TYPE attr_GETTER() const { validate(); return m_##attr_NAME; }
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)   void set##attr_NAME(attr_TYPE v) { m_##attr_NAME = v; inh_##attr_NAME = false; }
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)   void reset##attr_NAME() { m_##attr_NAME = attr_DEFAULT; inh_##attr_NAME = true; }
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)   bool isInh##attr_NAME() const { return inh_##attr_NAME; }
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT)


Define Documentation

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

Value:

attr_TYPE m_##attr_NAME; \
            bool inh_##attr_NAME;
getter: validates and returns the attribute's value

setter: resets the attribute's value and sets inherited flag

Definition at line 358 of file paragraphstyle.h.

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

Value:

bool isDef##attr_NAME() const { \
        if ( !inh_##attr_NAME ) return true; \
        const ParagraphStyle * par = dynamic_cast<const ParagraphStyle*>(parentStyle()); \
        return par && par->isDef##attr_NAME(); \
    }
getter: validates and returns the attribute's value

setter: resets the attribute's value and sets inherited flag

Definition at line 358 of file paragraphstyle.h.

#define ATTRDEF ( attr_TYPE,
attr_GETTER,
attr_NAME,
attr_DEFAULT   )     bool isInh##attr_NAME() const { return inh_##attr_NAME; }

getter: validates and returns the attribute's value

setter: resets the attribute's value and sets inherited flag

Definition at line 358 of file paragraphstyle.h.

#define ATTRDEF ( attr_TYPE,
attr_GETTER,
attr_NAME,
attr_DEFAULT   )     void reset##attr_NAME() { m_##attr_NAME = attr_DEFAULT; inh_##attr_NAME = true; }

getter: validates and returns the attribute's value

setter: resets the attribute's value and sets inherited flag

Definition at line 358 of file paragraphstyle.h.

#define ATTRDEF ( attr_TYPE,
attr_GETTER,
attr_NAME,
attr_DEFAULT   )     void set##attr_NAME(attr_TYPE v) { m_##attr_NAME = v; inh_##attr_NAME = false; }

getter: validates and returns the attribute's value

setter: resets the attribute's value and sets inherited flag

Definition at line 358 of file paragraphstyle.h.

#define ATTRDEF ( attr_TYPE,
attr_GETTER,
attr_NAME,
attr_DEFAULT   )     attr_TYPE attr_GETTER() const { validate(); return m_##attr_NAME; }

getter: validates and returns the attribute's value

setter: resets the attribute's value and sets inherited flag

Definition at line 358 of file paragraphstyle.h.

Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.