gridtool.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "csrstack.h"
#include "osrndrgn.h"
#include "paper.h"
#include "chapter.h"
#include "oilfiles.h"
#include "camelot.h"
#include "mainfrm.h"
#include "cutop.h"
#include "progress.h"
#include "bubbleid.h"
#include "gridtool.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")
static MILLIPOINT abs (MILLIPOINT n)
static MILLIPOINT sgn (MILLIPOINT n)
static OpState NoClipboardOpGetState (String_256 *UIDescription, OpDescriptor *)
 General "There are no clipboard ops" get state function for aliased Cut, Copy and Paste operations.

Variables

static OpState NoClipboardOpGetState (String_256 *, OpDescriptor *)
struct {
   TCHAR *   Token
   TCHAR *   Token
   TCHAR *   tag
   INT32   Id
   TCHAR *   Token
   UINT32   Magic
   UINT32   Serial
   wchar_t   Name [BRANDED_NAME_MAX]
   wchar_t   Company [BRANDED_NAME_MAX]
   TCHAR *   Token
   GridType   Type
   UINT32   IDS
   TCHAR *   Token
GridTypeList [NUM_GRID_TYPES]


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 154 of file gridtool.cpp.


Function Documentation

static MILLIPOINT abs MILLIPOINT  n  )  [static]
 

Definition at line 185 of file gridtool.cpp.

00185 { if (n<0) return (0-n); else return (n);}

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 

static OpState NoClipboardOpGetState String_256 UIDescription,
OpDescriptor
[static]
 

General "There are no clipboard ops" get state function for aliased Cut, Copy and Paste operations.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
OpState.Greyed == TRUE, and a description of why is returned in the string

Errors: -

See also:
-

Definition at line 3577 of file gridtool.cpp.

03578 {
03579     OpState OpSt;
03580     String_256 DisableReason; 
03581 
03582     // You cant have a small car that's good on the open road - You can with a Nissan
03583     // You cant cut a grid to the clipboard - Not even Nissan can help you there mate!
03584     OpSt.Greyed = TRUE;
03585     // Load reason why operation is disabled
03586     DisableReason = String_256(_R(IDS_NO_GRID_CLIPBOARD_OPS));
03587     *UIDescription = DisableReason;      
03588 
03589     return (OpSt);
03590 }

static MILLIPOINT sgn MILLIPOINT  n  )  [static]
 

Definition at line 186 of file gridtool.cpp.

00186 { if (n<0) return (-1);  else return (1);}


Variable Documentation

struct { ... } GridTypeList[NUM_GRID_TYPES] [static]
 

UINT32 IDS
 

Definition at line 159 of file gridtool.cpp.

OpState NoClipboardOpGetState(String_256 *, OpDescriptor *) [static]
 

GridType Type
 

Definition at line 158 of file gridtool.cpp.


Generated on Sat Nov 10 03:49:25 2007 for Camelot by  doxygen 1.4.4