home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / turlvi18.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.3 KB  |  40 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. char *TURLView::getChild()    {
  19. //    Purpose:    Returns the URL of the child anchor currently
  20. //            selected.
  21. //    Arguments:    void
  22. //    Return Value:    char *    Pointer to the name.  Receiver of this info
  23. //                should release memory returned by this since
  24. //                no attempt will be made to do so otherwise.
  25. //    Remarks/Portability/Dependencies/Restrictions:
  26. //    Revision History:
  27. //        01-31-94    created
  28.  
  29.     //    is there an anchor selected?
  30.     if(TAp_selected == NULL)
  31.         return(NULL);
  32.  
  33.     //    get appropriate information
  34.     auto HTAnchor *HTAp_linkdest = HTAnchor_followMainLink((HTAnchor *)
  35.         (TAp_selected->HTCAp_anchor));
  36.  
  37.     //    return the anchor url
  38.     return(HTAnchor_address(HTAp_linkdest));
  39. }
  40.