Back to index

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

List of all members.

Public Member Functions

virtual PageItem * eval (Digester *dig_, const Xml_string &tag, Xml_attr attr)

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 &, Xml_attr attr)

Detailed Description

Definition at line 261 of file pageitem_desaxe.cpp.

Member Function Documentation

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

Reimplemented from desaxe::Action_body.

Definition at line 263 of file pageitem_desaxe.cpp.

              PageItem* result;
              ScribusDoc* doc = this->dig->lookup<ScribusDoc>("<scribusdoc>");
              PageItem::ItemType type = parseEnum<PageItem::ItemType>(attr["itemtype"]);
              PageItem::ItemFrameType frametype = PageItem::Unspecified; // parseEnum<PageItem::ItemFrameType>(attr["frame-type"]);
              // int ownpage = parseInt(attr["ownpage"]);
              // doc->setCurrentPage(doc->Pages->at(ownpage));
              double xpos = parseDouble(attr["xorigin"]) + doc->currentPage()->xOffset();
              double ypos = parseDouble(attr["yorigin"]) + doc->currentPage()->yOffset();
              double width = parseDouble(attr["width"]);
              double height = parseDouble(attr["height"]);
              double linewidth = parseDouble(attr["line-width"]);
              QString fillC = attr["fill-color"];
              QString lineC = attr["line-color"];
              int nr = doc->itemAdd(type, frametype, xpos, ypos, width, height, linewidth, fillC, lineC, false);
              result = doc->Items->at(nr);
//            qDebug(QString("pushed item: %1,%2 params %3,%4").arg(result->xPos()).arg(result->yPos()).arg(xpos).arg(ypos));

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::Generator_body< PageItem >::end ( const Xml_string ) [inline, protected, virtual, inherited]

Reimplemented from desaxe::Action_body.

Definition at line 146 of file actions.h.

{ dig->pop(); }
virtual PageItem * desaxe::Generator_body< PageItem >::eval ( Digester dig_,
const Xml_string tag,
Xml_attr  attr 
) [inline, virtual, inherited]

Definition at line 136 of file actions.h.

              dig = dig_;
              begin(tag, attr);
              Type* res;
              res = dig->template top<Type>();
              return res;

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: