morePageOrigins.diff (1,765 bytes)
Index: scribus/ui/rulermover.cpp
===================================================================
--- scribus/ui/rulermover.cpp (revision 16787)
+++ scribus/ui/rulermover.cpp (working copy)
@@ -91,6 +91,8 @@
pmen2->addAction( tr("Origin at Bottom Left"), this, SLOT(moveRulerBottomLeft()));
pmen2->addAction( tr("Origin at Bottom Right"), this, SLOT(moveRulerBottomRight()));
pmen2->addAction( tr("Origin at Center"), this, SLOT(moveRulerCenter()));
+ pmen2->addAction( tr("Origin at Top Center"), this, SLOT(moveRulerTopCenter()));
+ pmen2->addAction( tr("Origin at Bottom Center"), this, SLOT(moveRulerBottomCenter()));
pmen->addMenu(pmen2);
}
}
@@ -143,3 +145,17 @@
currView->Doc->rulerYoffset = currView->Doc->currentPage()->height() / 2.0;
currView->DrawNew();
}
+
+void RulerMover::moveRulerTopCenter()
+{
+ currView->Doc->rulerXoffset = currView->Doc->currentPage()->width() / 2.0;
+ currView->Doc->rulerYoffset = 0;
+ currView->DrawNew();
+}
+
+void RulerMover::moveRulerBottomCenter()
+{
+ currView->Doc->rulerXoffset = currView->Doc->currentPage()->width() / 2.0;
+ currView->Doc->rulerYoffset = currView->Doc->currentPage()->height();
+ currView->DrawNew();
+}
Index: scribus/ui/rulermover.h
===================================================================
--- scribus/ui/rulermover.h (revision 16787)
+++ scribus/ui/rulermover.h (working copy)
@@ -50,6 +50,8 @@
void moveRulerBottomLeft();
void moveRulerBottomRight();
void moveRulerCenter();
+ void moveRulerTopCenter();
+ void moveRulerBottomCenter();
private: // Private attributes
ScribusView *currView;
RulerGesture* rulerGesture;