summaryrefslogtreecommitdiffstats
path: root/tkmacosx
diff options
context:
space:
mode:
Diffstat (limited to 'tkmacosx')
-rw-r--r--tkmacosx/tkmacosx.M7
-rw-r--r--tkmacosx/tkmacosx.h18
2 files changed, 7 insertions, 18 deletions
diff --git a/tkmacosx/tkmacosx.M b/tkmacosx/tkmacosx.M
index 8ac9e94..fb9aff9 100644
--- a/tkmacosx/tkmacosx.M
+++ b/tkmacosx/tkmacosx.M
@@ -8,6 +8,7 @@ using namespace std;
#include <string.h>
+#include <tkMacOSXPrivate.h>
#include "tkmacosx.h"
extern "C" {
@@ -62,7 +63,7 @@ int TkmacosxCmd(ClientData data,Tcl_Interp *interp,int argc,const char* argv[])
TkMacosx::TkMacosx(Tcl_Interp* intp)
{
interp = intp;
- pmView = NULL;
+ // pmView = NULL;
}
TkMacosx::~TkMacosx()
@@ -161,6 +162,7 @@ int TkMacosx::pmPrint(int argc, const char* argv[])
return TCL_OK;
}
+/*
@implementation PMView
- (PMView*)init
{
@@ -181,9 +183,11 @@ int TkMacosx::pmPrint(int argc, const char* argv[])
{
}
@end
+*/
int TkMacosx::pmPrintBegin(int argc, const char* argv[])
{
+ /*
pmView = [[PMView alloc] init];
NSPrintInfo* printInfo = [NSPrintInfo sharedPrintInfo];
NSPrintOperation* printOp = \
@@ -191,6 +195,7 @@ int TkMacosx::pmPrintBegin(int argc, const char* argv[])
[printOp runOperation];
return TCL_OK;
+ */
return TCL_OK;
}
diff --git a/tkmacosx/tkmacosx.h b/tkmacosx/tkmacosx.h
index 7391ec8..d107f6f 100644
--- a/tkmacosx/tkmacosx.h
+++ b/tkmacosx/tkmacosx.h
@@ -5,26 +5,12 @@
#ifndef __tkmacosx_h__
#define __tkmacosx_h__
-#include <tkMacOSXPrivate.h>
-
-#include <vector.h>
-
-@interface PMView : NSView
-{
-}
-- (PMView*)init;
-- (void)alloc;
-- (void)dealloc;
-- (void)drawRect: (NSRect)rect;
-@end
+#include <tk.h>
class TkMacosx {
private:
Tcl_Interp* interp;
- Matrix canvasToPage;
- PMView* pmView;
-
int pmPrint(int, const char**);
int pmPrintBegin(int, const char**);
int pmPrintEnd();
@@ -38,8 +24,6 @@ class TkMacosx {
int pm(int, const char**);
int sc(int, const char**);
int locale(int, const char**);
-
- const Matrix& getCanvasToPage() {return canvasToPage;}
};
extern TkMacosx* tkmacosx;