home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / turlvi19.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.3 KB  |  38 lines

  1. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TURLView
  4. //    Include File:    turlview.h
  5. //    Purpose:    Provide the view of a URL
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        12-27-93    created
  9. //        02-02-94    Began a major revision to fully handle a
  10. //                multiple document interface with WWW, take
  11. //                over the formatting and drawing of the
  12. //                old gridtext functions of HText, and optimize
  13. //                memory usage, selecting anchors, the usage of
  14. //                HText's new image file.  See gridtext.
  15. //        02-09-94    Split all members into seperate files.
  16. #include"turlview.h"
  17.  
  18. Boolean TURLView::selectAnchor(HTChildAnchor *HTCAp_anchor)    {
  19. //    Purpose:    Select an anchor from the current HText.
  20. //    Arguments:    HTCAp_anchor    The anchor to select.
  21. //    Return Value:    Boolean    True    The anchor was selected.
  22. //                False    The anchor was not found.
  23. //    Remarks/Portability/Dependencies/Restrictions:
  24. //    Revision History:
  25. //        02-02-94    created
  26. //        02-25-94    Modified to hold the anchor value until
  27. //                ready to select the anchor in the view.
  28.  
  29.     //    Is the anchor valid in the first place?
  30.     if(HTCAp_anchor == NULL)    {
  31.         return(False);
  32.     }
  33.  
  34.     //    Just save the value of the anchor to be selected for now.
  35.     HTCAp_2BSelected = HTCAp_anchor;
  36.     return(True);
  37. }
  38.