/* Public methods for importing foreign data types into the GraphicView */
#define LOAD_IMAGE NXLocalString("Import Data", NULL, "Title of the alert which lets the user know that the image he has incorporated into his document does not fit.")
#define IMAGE_TOO_LARGE NXLocalString("The imported data is too large to fit on the page. Resize it to fit?", NULL, "Alert message which asks user if he wants to scale an image or some text that he is incorporating into his document to fit within the size of the document.")
#define SCALE NXLocalString("Resize", NULL, "Button choice which allows the user to scale an image he is incorporating into his document so that it will fit within the size of the document.")
#define DONT_SCALE NXLocalString("Don't Resize", NULL, "Button choice which allows the user to leave an image he is incorporating into his document the same size even though it will not fit within the size of his document.")
if (NXTypedStreamClassVersion(stream, [self name]) < 1) {
editView = createEditView(self);
} else {
editView = NXReadObject(stream);
}
evsvs = [editView subviews];
for (i = [evsvs count]-1; i >= 0; i--) [[evsvs objectAt:i] free];
return self;
}
/* Methods to deal with being/becoming the First Responder */
/* Strings that appear in menus. */
static const char *HIDE_GRID;
static const char *SHOW_GRID;
static const char *TURN_GRID_OFF;
static const char *TURN_GRID_ON;
static const char *SHOW_LINKS;
static const char *HIDE_LINKS;
static BOOL menuStringsInitted = NO;
static void initMenuItemStrings(void)
{
HIDE_GRID = NXLocalString("Hide Grid", NULL, "Menu item which hides the background grid which the user can overlay on his document.");
SHOW_GRID = NXLocalString("Show Grid", NULL, "Menu item which shows a background grid which the user can overlay on his document.");
TURN_GRID_OFF = NXLocalString("Turn Grid Off", NULL, "Menu item which turns off the background grid so that items do not move and resize on even grid boundaries. It does not hide the griRUg it is currently showing.");
TURN_GRID_ON = NXLocalString("Turn Grid On", NULL, "Menu item which turns a background grid on so that the user's actions are rounded to even grid boundaries. It does not show the grid if the grid is currently hidden.");
SHOW_LINKS = NXLocalString("Show Links", NULL, "Menu item which turns on the borders around linked items (using Object Links).");
HIDE_LINKS = NXLocalString("Hide Links", NULL, "Menu item which turns off the borders around linked items (using Object Links).");
menuStringsInitted = YES;
}
/* Validates whether a menu command makes sense now */