-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathZXPrintTransactionView.h
More file actions
46 lines (42 loc) · 1.69 KB
/
ZXPrintTransactionView.h
File metadata and controls
46 lines (42 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Name: ZXPrintTransactionView.h
* Project: Strongbox
* Created on: 2008-11-30
*
* Copyright (C) 2008 Pierre-Hans Corcoran
*
* --------------------------------------------------------------------------
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License (version 2) as published
* by the Free Software Foundation. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have
* received a copy of the GNU General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* --------------------------------------------------------------------------
*/
#import <Cocoa/Cocoa.h>
@class ZXDocument;
//! Generates the view for printing
/*!
Does not print background colors. Date and amounts are fixed-size, while label
is given 2/5 of rest, and description 3/5.
*/
@interface ZXPrintTransactionView : NSView {
ZXDocument *owner;
NSMutableDictionary *attributes, *rightAttr;
NSMutableParagraphStyle *centeredStyle, *rightStyle;
NSSize paperSize;
float topMargin, leftMargin;
NSRect titleRect, subtitleRect;
}
//! Initialize the print view with given document
/*!
Given document is normally the currently opened frontmost document
\param owner Owner of the print view, i.e. document to be printed.
\return New print view
*/
- (id)initWithOwner:(ZXDocument *)owner;
@end