#include "camtypes.h"#include "rulers.h"#include "sprdmsg.h"#include "optsmsgs.h"#include "userrect.h"#include "grid.h"#include "appprefs.h"#include "layerprp.h"#include "camelot.h"Go to the source code of this file.
Defines | |
| #define | new CAM_DEBUG_NEW |
| #define | MAX_LEGEND_CHARS 12 |
| #define | LABEL_SPACING_STRING _T("8888") |
| #define | ACCEPTIBLE_DEVIATION_FROM_INTEGER 1e-10 |
| #define | NEAR_ENOUGH_INTEGER(a) ( fabs(fmod(a,1)) < ACCEPTIBLE_DEVIATION_FROM_INTEGER ) |
| #define | MAKE_INTEGER(a) ( (INT32)( (a) + ACCEPTIBLE_DEVIATION_FROM_INTEGER*3 ) ) |
Functions | |
| DECLARE_SOURCE ("$Revision: 1535 $") | |
| BOOL | SafeAppendString (StringBase *, const StringBase &, BOOL=TRUE) |
| Recache semi-permenent data associated with redrawing the rulers ie values which only change on change of page/grid/zoom/spread etc. | |
|
|
Definition at line 135 of file rulers.cpp. |
|
|
Definition at line 134 of file rulers.cpp. |
|
|
Definition at line 137 of file rulers.cpp. |
|
|
Definition at line 133 of file rulers.cpp. |
|
|
Definition at line 136 of file rulers.cpp. |
|
|
Definition at line 131 of file rulers.cpp. |
|
|
|
|
||||||||||||||||
|
Recache semi-permenent data associated with redrawing the rulers ie values which only change on change of page/grid/zoom/spread etc.
Definition at line 5070 of file range.cpp. 05071 { 05072 INT32 nTotal = pstrAppendum->Length() + strAppendee.Length() + (fAddSep != 0); 05073 INT32 nMax = pstrAppendum->MaxLength(); 05074 BOOL fNoTrunc= (nTotal < nMax); 05075 if (fNoTrunc) 05076 { 05077 // We can append without fear of overflow . . . 05078 *pstrAppendum += strAppendee; 05079 if (fAddSep) *pstrAppendum += TEXT(" "); 05080 } 05081 else 05082 { 05083 // We have to truncate the string to append, to avoid overflow . . . 05084 INT32 nTruncCount = strAppendee.Length() - (nTotal - nMax); 05085 if (nTruncCount > 0) 05086 { 05087 // We have some room for more text, so append the truncated string. 05088 String_256 strTrunc; 05089 strAppendee.Left(&strTrunc, nTruncCount); 05090 *pstrAppendum += strTrunc; 05091 if (fAddSep) *pstrAppendum += TEXT(" "); 05092 } 05093 } 05094 05095 // Return FALSE if we had to truncate. 05096 return fNoTrunc; 05097 }
|
1.4.4