home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / bmk2mcf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.2 KB  |  73 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef    _RDF_BMK2MCF_H_
  20. #define    _RDF_BMK2MCF_H_
  21.  
  22.  
  23. #include "rdf.h"
  24. #include "rdf-int.h"
  25. #include "vocab.h"
  26. #include "stdio.h"
  27. #include "ctype.h"
  28.  
  29.  
  30. /* bmk2mcf.c data structures and defines */
  31.  
  32. #define OPEN_TITLE_STRING  "<TITLE>"
  33. #define CLOSE_TITLE_STRING "</TITLE>"
  34. #define OPEN_H1_STRING     "<H1>"
  35. #define CLOSE_H1_STRING    "</H1>"
  36. #define OPEN_H3_STRING     "<H3"
  37. #define CLOSE_H3_STRING    "</H3>"
  38. #define OPEN_DL_STRING     "<DL>"
  39. #define CLOSE_DL_STRING    "</DL>"
  40. #define DT_STRING       "<DT>"
  41. #define PAR_STRING       "<P>"
  42. #define DD_STRING       "<DD>"
  43.  
  44. #define IN_TITLE        1
  45. #define IN_H3            5
  46. #define IN_ITEM_TITLE        7
  47. #define IN_ITEM_DESCRIPTION    9
  48.  
  49.  
  50.  
  51. /* bmk2mcf.c function prototypes */
  52.  
  53. XP_BEGIN_PROTOS
  54.  
  55. RDF_Resource        createSeparator(void);
  56. RDF_Resource        createContainer (char* id);
  57. char *            resourceDescription (RDF rdf, RDF_Resource r);
  58. char *            resourceLastVisitDate (RDF rdf, RDF_Resource r);
  59. char *            resourceLastModifiedDate (RDF rdf, RDF_Resource r);
  60. void            parseNextBkBlob (RDFFile f, char* blob, int32 size);
  61. void            parseNextBkToken (RDFFile f, char* token);
  62. void            addDescription (RDFFile f, RDF_Resource r, char* token);
  63. void            bkStateTransition (RDFFile f, char* token);
  64. void            newFolderBkItem(RDFFile f, char* token);
  65. void            newLeafBkItem (RDFFile f, char* token);
  66. char *            numericDate(char *url);
  67. void            HT_WriteOutAsBookmarks1 (RDF rdf, PRFileDesc *fp, RDF_Resource u, RDF_Resource top, int indent);
  68. void            flushBookmarks();
  69.  
  70. XP_END_PROTOS
  71.  
  72. #endif
  73.