mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/gnome-utils/print-session.[ch]: added gnucash wrappers
around gnome-print's rotate, translate, gsave, and grestore APIs. All to allow sideways printing (by rotating the image). * src/gnome-utils/gw-gnome-utils-spec.scm: wrap the new print-session apis. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8343 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
01ac9a55bc
commit
613055b558
@ -25,6 +25,12 @@
|
||||
to actually include the Due Date of the invoice.
|
||||
* src/business/business-gnome/gw-business-gnome-spec.scm:
|
||||
change the int to a double on the bills-due api
|
||||
|
||||
* src/gnome-utils/print-session.[ch]: added gnucash wrappers
|
||||
around gnome-print's rotate, translate, gsave, and grestore
|
||||
APIs. All to allow sideways printing (by rotating the image).
|
||||
* src/gnome-utils/gw-gnome-utils-spec.scm: wrap the new print-session
|
||||
apis.
|
||||
|
||||
2003-05-18 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
|
@ -194,6 +194,38 @@
|
||||
'((<gnc:PrintSession*> p) ((<gw:mchars> caller-owned const) text))
|
||||
"Show some text in Courier 16")
|
||||
|
||||
(gw:wrap-function
|
||||
ws
|
||||
'gnc:print-session-rotate
|
||||
'<gw:void>
|
||||
"gnc_print_session_rotate"
|
||||
'((<gnc:PrintSession*> p) (<gw:double> theta_in_degrees))
|
||||
"Rotate the image by X degrees")
|
||||
|
||||
(gw:wrap-function
|
||||
ws
|
||||
'gnc:print-session-translate
|
||||
'<gw:void>
|
||||
"gnc_print_session_translate"
|
||||
'((<gnc:PrintSession*> p) (<gw:double> x) (<gw:double> y))
|
||||
"Translate the image to point x,y")
|
||||
|
||||
(gw:wrap-function
|
||||
ws
|
||||
'gnc:print-session-gsave
|
||||
'<gw:void>
|
||||
"gnc_print_session_gsave"
|
||||
'((<gnc:PrintSession*> p))
|
||||
"Save the current print-session state")
|
||||
|
||||
(gw:wrap-function
|
||||
ws
|
||||
'gnc:print-session-grestore
|
||||
'<gw:void>
|
||||
"gnc_print_session_grestore"
|
||||
'((<gnc:PrintSession*> p))
|
||||
"Restore the current print-session state")
|
||||
|
||||
(gw:wrap-function
|
||||
ws
|
||||
'gnc:print-session-done
|
||||
|
@ -82,6 +82,29 @@ gnc_print_session_done(PrintSession * ps, gboolean hand_built_pages) {
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
gnc_print_session_rotate(PrintSession *ps, double theta_in_degrees)
|
||||
{
|
||||
gnome_print_rotate(GNOME_PRINT_CONTEXT(ps->meta), theta_in_degrees);
|
||||
}
|
||||
|
||||
void
|
||||
gnc_print_session_translate(PrintSession *ps, double x, double y)
|
||||
{
|
||||
gnome_print_translate(GNOME_PRINT_CONTEXT(ps->meta), x, y);
|
||||
}
|
||||
|
||||
void
|
||||
gnc_print_session_gsave(PrintSession *ps)
|
||||
{
|
||||
gnome_print_gsave(GNOME_PRINT_CONTEXT(ps->meta));
|
||||
}
|
||||
|
||||
void
|
||||
gnc_print_session_grestore(PrintSession *ps)
|
||||
{
|
||||
gnome_print_grestore(GNOME_PRINT_CONTEXT(ps->meta));
|
||||
}
|
||||
|
||||
void
|
||||
gnc_print_session_print(PrintSession * ps) {
|
||||
|
@ -87,6 +87,12 @@ void gnc_print_session_moveto(PrintSession * ps, double x, double y);
|
||||
void gnc_print_session_text(PrintSession * ps, const char * text);
|
||||
void gnc_print_session_done(PrintSession * ps, gboolean);
|
||||
|
||||
void gnc_print_session_rotate(PrintSession *ps, double theta_in_degrees);
|
||||
void gnc_print_session_translate(PrintSession *ps, double x, double y);
|
||||
|
||||
void gnc_print_session_gsave(PrintSession *ps);
|
||||
void gnc_print_session_grestore(PrintSession *ps);
|
||||
|
||||
void gnc_print_session_preview(PrintSession * ps);
|
||||
void gnc_print_session_print(PrintSession * ps);
|
||||
void gnc_print_session_render(PrintSession * ps);
|
||||
|
Loading…
Reference in New Issue
Block a user