Back to index

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

List of all members.

Protected Member Functions

virtual void chars (const Xml_string &)

Protected Attributes

Digester * dig

Private Member Functions

void begin (const Xml_string &tagname, Xml_attr attr)
void end (const Xml_string &tagname)

Private Attributes

int minGroup
int maxGroup

Detailed Description

Definition at line 414 of file pageitem_desaxe.cpp.


Member Function Documentation

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

Reimplemented from desaxe::Action_body.

Definition at line 416 of file pageitem_desaxe.cpp.

       {
              if (tagname != PageItem::saxxDefaultElem)
              {
                     ScribusDoc* doc = this->dig->lookup<ScribusDoc>("<scribusdoc>");
                     minGroup = doc->GroupCounter;
                     maxGroup = minGroup - 1;
              }
       }
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:

void AdjustGroupIds_body::end ( const Xml_string tagname) [inline, private, virtual]

Reimplemented from desaxe::Action_body.

Definition at line 426 of file pageitem_desaxe.cpp.

       {
              if (tagname != PageItem::saxxDefaultElem)
              {
                     ScribusDoc* doc = this->dig->lookup<ScribusDoc>("<scribusdoc>");
                     doc->GroupCounter = maxGroup + 1;
              }
              else {
                     PageItem* item = this->dig->top<PageItem>();
                     QValueStack<int> groups;
                     for (uint i=0; i < item->groups().count(); ++i)
                     {
                            int newGroup = minGroup + item->groups()[i];
                            if (newGroup > maxGroup)
                                   maxGroup = newGroup;
//                          qDebug(QString("group id %1 -> %2").arg(item->groups()[i]).arg(newGroup));
                            groups.append(newGroup);
                     }
                     item->setGroups(groups);
              }
       }

Member Data Documentation

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

Definition at line 38 of file actions.h.

Definition at line 450 of file pageitem_desaxe.cpp.

Definition at line 449 of file pageitem_desaxe.cpp.


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