Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Protected Member Functions | Protected Attributes | Private Member Functions
Gradient_body Class Reference
Inheritance diagram for Gradient_body:
Inheritance graph
Collaboration diagram for Gradient_body:
Collaboration graph

List of all members.

Protected Member Functions

virtual void end (const Xml_string &)
virtual void chars (const Xml_string &)

Protected Attributes

Digester * dig

Private Member Functions

void begin (const Xml_string &tagName, Xml_attr attr)

Detailed Description

Definition at line 309 of file pageitem_desaxe.cpp.

Member Function Documentation

void Gradient_body::begin ( const Xml_string tagName,
Xml_attr  attr 
) [inline, private, virtual]

Reimplemented from desaxe::Action_body.

Definition at line 311 of file pageitem_desaxe.cpp.

//            qDebug(QString("pageitem_desaxe: gradient %1").arg(tagName));
              if (tagName=="CStop")
                     PageItem* item = this->dig->top<PageItem>();
                     QString name = attr["NAME"];
                     double ramp = parseDouble(attr["RAMP"]);
                     int shade = parseInt(attr["SHADE"]);
                     double opa = parseDouble(attr["TRANS"]);
                     // Hack : at this stage, colors may still not exists in document and SetColor would create it, 
                     // so use the dummy brown and update manually gradient colors in Serializer
                     // item->fill_gradient.addStop(SetColor(doc, name, shade), ramp, 0.5, opa, name, shade);
                     item->fill_gradient.addStop( QColor(150, 100, 50) , ramp, 0.5, opa, name, shade);
              if (tagName=="Gradient")
                     PageItem* item = this->dig->top<PageItem>();
                     item->GrType = parseInt(attr["GRTYPE"]);
                     item->GrStartX = parseDouble(attr["GRSTARTX"]);
                     item->GrStartY = parseDouble(attr["GRSTARTY"]);
                     item->GrEndX = parseDouble(attr["GRENDX"]);
                     item->GrEndY = parseDouble(attr["GRENDY"]);

Here is the call graph for this function:

virtual void desaxe::Action_body::chars ( const Xml_string ) [inline, protected, virtual, inherited]

Reimplemented in AppendText_body, desaxe::SetText_body< Obj_Type >, and desaxe::AddText_body< Obj_Type >.

Definition at line 36 of file actions.h.


Here is the caller graph for this function:

virtual void desaxe::Action_body::end ( const Xml_string ) [inline, protected, virtual, inherited]

Member Data Documentation

Digester* desaxe::Action_body::dig [protected, inherited]

Definition at line 38 of file actions.h.

The documentation for this class was generated from the following file: