Scribus
Open source desktop publishing at your fingertips
GuideManagerIO Class Reference

A separate clas for Guides IO operations in reading or closing the documents. More...

#include <guidemanagercore.h>

Static Public Member Functions

static void readHorizontalGuides (const QString guideString, ScPage *page, GuideManagerCore::GuideType type, bool useOldGuides=false)
 Read the guides from XML attribute (file opening). It's statis method sou you can call it without instance initialized: GuideManagerIO::readHorizontalGuides(foo blah);. More...
 
static void readVerticalGuides (const QString guideString, ScPage *page, GuideManagerCore::GuideType type, bool useOldGuides=false)
 Read the guides from XML attribute (file opening). It's statis method sou you can call it without instance initialized: GuideManagerIO::readVerticalGuides(foo blah);. More...
 
static QString writeHorizontalGuides (ScPage *page, GuideManagerCore::GuideType type)
 
static QString writeVerticalGuides (ScPage *page, GuideManagerCore::GuideType type)
 
static void readSelection (const QString guideString, ScPage *page)
 
static QString writeSelection (ScPage *page)
 

Detailed Description

A separate clas for Guides IO operations in reading or closing the documents.

Author
Petr Vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo

Member Function Documentation

void GuideManagerIO::readHorizontalGuides ( const QString  guideString,
ScPage page,
GuideManagerCore::GuideType  type,
bool  useOldGuides = false 
)
static

Read the guides from XML attribute (file opening). It's statis method sou you can call it without instance initialized: GuideManagerIO::readHorizontalGuides(foo blah);.

Parameters
guideStringa string with all values separated by space (' '). E.g. "1.0 23.17 6"
pagea reference to the Page object to append the separated guideString values
typeGuide type to load
useOldGuidesA little bit hacking here. The guides were stored in a little mess in the ancient times. So when is the obsolete XML attribute found in reading document the old reading method is used. All guides are saved in new format then.
void GuideManagerIO::readVerticalGuides ( const QString  guideString,
ScPage page,
GuideManagerCore::GuideType  type,
bool  useOldGuides = false 
)
static

Read the guides from XML attribute (file opening). It's statis method sou you can call it without instance initialized: GuideManagerIO::readVerticalGuides(foo blah);.

Parameters
guideStringa string with all values separated by space (' '). E.g. "1.0 23.17 6"
pagea reference to the Page object to append the separated guideString values
typeGuide type to load
useOldGuidesA little bit hacking here. The guides were stored in a little mess in the ancient times. So when is the obsolete XML attribute found in reading document the old reading method is used. All guides are saved in new format then.

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