Scribus
Open source desktop publishing at your fingertips
|
Core manipulation with the guides. Basic idea: More...
#include <guidemanagercore.h>
Public Types | |
enum | GuideType { Standard, Auto } |
Public Member Functions | |
GuideManagerCore (ScPage *parentPage) | |
void | addHorizontal (double value, GuideType type) |
void | addHorizontals (Guides values, GuideType type) |
void | addVertical (double value, GuideType type) |
void | addVerticals (Guides values, GuideType type) |
void | deleteHorizontal (double value, GuideType type) |
void | deleteVertical (double value, GuideType type) |
void | moveHorizontal (double from, double to, GuideType type) |
void | moveVertical (double from, double to, GuideType type) |
Guides | horizontals (GuideType type) |
Guides | verticals (GuideType type) |
double | horizontal (uint ix, GuideType type) |
double | vertical (uint ix, GuideType type) |
Guides | getAutoHorizontals (ScPage *page=NULL) |
Guides | getAutoVerticals (ScPage *page=NULL) |
void | clearHorizontals (GuideType type) |
void | clearVerticals (GuideType type) |
void | copy (GuideManagerCore *target) |
void | copy (GuideManagerCore *target, GuideType type) |
void | drawPage (ScPainter *p, ScribusDoc *doc, double lineWidth) |
int | isMouseOnHorizontal (double low, double high, GuideType type) |
int | isMouseOnVertical (double low, double high, GuideType type) |
void | setPage (ScPage *p) |
QPair< double, double > | topLeft (double x, double y) |
QPair< double, double > | topRight (double x, double y) |
QPair< double, double > | bottomLeft (double x, double y) |
QPair< double, double > | bottomRight (double x, double y) |
int | horizontalAutoCount () |
Properties for Auto guides remembrance. See GuideManager. | |
void | setHorizontalAutoCount (int val) |
Properties for Auto guides remembrance. See GuideManager. | |
int | verticalAutoCount () |
Properties for Auto guides remembrance. See GuideManager. | |
void | setVerticalAutoCount (int val) |
Properties for Auto guides remembrance. See GuideManager. | |
double | horizontalAutoGap () |
Properties for Auto guides remembrance. See GuideManager. | |
double | verticalAutoGap () |
Properties for Auto guides remembrance. See GuideManager. | |
void | setHorizontalAutoGap (double gap) |
Properties for Auto guides remembrance. See GuideManager. | |
void | setVerticalAutoGap (double gap) |
Properties for Auto guides remembrance. See GuideManager. | |
int | horizontalAutoRefer () |
Properties for Auto guides remembrance. See GuideManager. | |
void | setHorizontalAutoRefer (int val) |
Properties for Auto guides remembrance. See GuideManager. | |
int | verticalAutoRefer () |
Properties for Auto guides remembrance. See GuideManager. | |
void | setVerticalAutoRefer (int val) |
Properties for Auto guides remembrance. See GuideManager. | |
Public Attributes | |
double | gx |
Selection/group coordinates It's used to simulate the original selection "freezed in time" for parent page. | |
double | gy |
double | gw |
double | gh |
Core manipulation with the guides. Basic idea: