Scribus
Open source desktop publishing at your fingertips
MarginDialog Class Reference

A dialog to setup the existing document margins. In modal mode called from void ScribusMainWindow::changePageProperties() More...

#include <margindialog.h>

Inheritance diagram for MarginDialog:
Collaboration diagram for MarginDialog:

Public Slots

virtual void setPageSize ()
 as setOrien for orientationQComboBox current item
 
virtual void setSize (const QString &gr)
 Sets page size and enables/disables size widgets. More...
 
virtual void setOrien (int ori)
 Sets page orientation and sizes regarding the given value. More...
 
virtual void setPageWidth (double v)
 Recompute the page width for current unit. It's called from width spinbox. More...
 
virtual void setPageHeight (double v)
 Recompute the page height for current unit. It's called from width spinbox. More...
 

Public Member Functions

 MarginDialog (QWidget *parent, ScribusDoc *doc)
 GUI setup. More...
 
int pageOrder ()
 Returns recomputed "Links" index/value for facing pages. More...
 
int getPageOrientation ()
 Current value of orientationQComboBox. More...
 
double getPageWidth ()
 Selected page width. More...
 
double getPageHeight ()
 Selected page height. More...
 
bool getMoveObjects ()
 Bool value of moveObjects "property". More...
 
QString getpPrefsPageSizeName ()
 Returns prefsPageSizeName value. More...
 
double top ()
 Top Margin. More...
 
double bottom ()
 Bottom Margin. More...
 
double left ()
 Left Margin. More...
 
double right ()
 Right Margin. More...
 
QString masterPage ()
 Master Page. More...
 
int getMarginPreset ()
 

Detailed Description

A dialog to setup the existing document margins. In modal mode called from void ScribusMainWindow::changePageProperties()

Constructor & Destructor Documentation

MarginDialog::MarginDialog ( QWidget *  parent,
ScribusDoc doc 
)

GUI setup.

Parameters
parentScribus main window in this case
doccurrent document

Member Function Documentation

double MarginDialog::bottom ( void  )

Bottom Margin.

Return values
doublemargin size
bool MarginDialog::getMoveObjects ( )

Bool value of moveObjects "property".

Return values
booltrue for moving
double MarginDialog::getPageHeight ( )

Selected page height.

Return values
doubleY
int MarginDialog::getPageOrientation ( )

Current value of orientationQComboBox.

Return values
intindex of combobox
double MarginDialog::getPageWidth ( )

Selected page width.

Return values
doubleX
QString MarginDialog::getpPrefsPageSizeName ( )

Returns prefsPageSizeName value.

Return values
QStringprefsPageSizeName property
double MarginDialog::left ( )

Left Margin.

Return values
doublemargin size
QString MarginDialog::masterPage ( )

Master Page.

Return values
QStringMaster Page Name
int MarginDialog::pageOrder ( )

Returns recomputed "Links" index/value for facing pages.

Return values
int0 for max item, 1 for min. item++ for middle. Why?
double MarginDialog::right ( )

Right Margin.

Return values
doublemargin size
void MarginDialog::setOrien ( int  ori)
virtualslot

Sets page orientation and sizes regarding the given value.

Parameters
oriinteger from orientationQComboBox item index
void MarginDialog::setPageHeight ( double  v)
virtualslot

Recompute the page height for current unit. It's called from width spinbox.

Parameters
vnew height
void MarginDialog::setPageWidth ( double  v)
virtualslot

Recompute the page width for current unit. It's called from width spinbox.

Parameters
vnew width
void MarginDialog::setSize ( const QString &  gr)
virtualslot

Sets page size and enables/disables size widgets.

Parameters
grA QString with name of the page size or "Custom"
double MarginDialog::top ( void  )

Top Margin.

Return values
doublemargin size

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