home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL2030.txt = VerifyLinks.txt
- // Copyright 1997 Claris
- // -----
-
- #include "StdVPref.txt"
-
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
-
- #define kChangeButtonText "&Change"
- #define kChangeAllButtonText "Change &All"
- #define kRemoveButtonText "&Remove Tag"
- #define kSkipButtonText "&Skip"
- #define kCancelButtonText "Cancel"
-
- #define kBrokenLinkLabel "Broken Link or Reference:"
- #define kChangeToLabel "Change &to:"
-
- #define kBrowseFilesButtonText "&Browse Files..."
-
-
- //Localizable fonts
- #if Platform_Mac
- #define SmallFont Font = {Geneva, 9, {Plain}}
- #define SmallButtonFont Font = {Geneva, 10, {Plain}}
- #else
- #define SmallFont Font = {Arial, 9, {Plain}}
- #define SmallButtonFont Font = SystemFont
- #endif
-
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
-
-
-
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
-
- #define ButtonWidth Width = 80
- // on Mac button space should be 4 pixels less than on Windows
- #if Platform_Mac
- #define kButtonSpace 1
- #else
- #define kButtonSpace 5
- #endif
- #define kLeftPaneWidth 300
- #define kBrokenLinkHeight 36
-
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
-
-
- //No further localizable data past this point
-
- /************************** END LOCALIZABLE DATA ***************************************************/
-
-
- // command codes - copied from CommandCode.h and WidowR.h
- #define ccCancel 1070
- #define ccOK 1071
- #define ccDontSave 1072
- #define ccReplaceAllLinks 5076
- #define ccRemoveLink 3010
- #define ccEditFileLink 3015
-
-
- Margin(10, 10, 10, 10, stdBackColor)
- HList()
- {
- VList()
- {
- StaticText(kBrokenLinkLabel);
- VSpace(5);
- StaticText(brokenLink, SmallFont, Width = kLeftPaneWidth, Height = kBrokenLinkHeight);
- ///StaticText("",
- /// SmallFont, Width = kLeftPaneWidth, Height = kBrokenLinkHeight);
- VSpace(15);
- StaticText(kChangeToLabel);
- VSpace(5);
- EditText(changeTo, SmallFont, Width = kLeftPaneWidth, BackColor = White);
- VSpace(10);
- HList()
- {
- PushButton(kBrowseFilesButtonText, ccEditFileLink, "BrowseFilesProc", SmallButtonFont);
- HSpace(20);
- VList()
- {
- VSpace(3);
- //StaticText(anchor, SmallFont);
- }
- }
- }
- HSpace(12);
- VList()
- {
- DefaultButton(kChangeButtonText, ccOK, "None", ButtonWidth);
- VSpace(kButtonSpace);
- UnframedButton(kChangeAllButtonText, ccReplaceAllLinks, "None", ButtonWidth);
- VSpace(kButtonSpace);
- UnframedButton(kRemoveButtonText, ccRemoveLink, "None", ButtonWidth);
- VSpace(kButtonSpace);
- UnframedButton(kSkipButtonText, ccDontSave, "None", ButtonWidth);
- VSpace(kButtonSpace);
- CancelButton(kCancelButtonText, ccCancel, "None", ButtonWidth);
- }
- }
-