home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / edtclass.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.2 KB  |  104 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. //edtclass.cpp
  20.  
  21. #include "stdafx.h"
  22. #include "edtclass.h"
  23. #include "edprops.h"//for wfe call
  24. #include "edt.h"
  25. #include "xp_help.h"
  26. #include "nethelp.h"
  27.  
  28. //CWFEWRAPPER
  29.  
  30. void
  31. CWFEWrapper::GetLayoutViewSize(long *pWidth, long *pHeight)
  32. {
  33.     XP_ASSERT(m_mwcontext);
  34.     wfe_GetLayoutViewSize(m_mwcontext,pWidth,pHeight);
  35. }
  36.  
  37. void
  38. CWFEWrapper::WinHelp(char * charp)
  39. {
  40.     NetHelp(charp);
  41. }
  42.  
  43. char *
  44. CWFEWrapper::szLoadString(UINT uint)
  45. {
  46.     return ::szLoadString(uint);
  47. }
  48.  
  49.  
  50.  
  51.  
  52. //CEDTWRAPPER
  53.  
  54. ED_ElementType 
  55. CEDTWrapper::GetCurrentElementType()
  56. {
  57.     XP_ASSERT(m_mwcontext);
  58.     return EDT_GetCurrentElementType(m_mwcontext);
  59. }
  60.  
  61. char * 
  62. CEDTWrapper::GetUnknownTagData()
  63. {
  64.     XP_ASSERT(m_mwcontext);
  65.     return EDT_GetUnknownTagData(m_mwcontext);
  66. }
  67.  
  68. ED_TagValidateResult 
  69. CEDTWrapper::ValidateTag(char *pData, XP_Bool bNoBrackets )
  70. {
  71.     return EDT_ValidateTag(pData,bNoBrackets);
  72. }
  73.  
  74. void 
  75. CEDTWrapper::BeginBatchChanges()
  76. {
  77.     XP_ASSERT(m_mwcontext);
  78.     EDT_BeginBatchChanges(m_mwcontext);
  79. }
  80.  
  81. void 
  82. CEDTWrapper::EndBatchChanges()
  83. {
  84.     XP_ASSERT(m_mwcontext);
  85.     EDT_EndBatchChanges(m_mwcontext);
  86. }
  87.  
  88. void 
  89. CEDTWrapper::InsertUnknownTag( char* pUnknownTagData )
  90. {
  91.     XP_ASSERT(m_mwcontext);
  92.     EDT_InsertUnknownTag(m_mwcontext,pUnknownTagData);
  93. }
  94.  
  95. void 
  96. CEDTWrapper::SetUnknownTagData( char* pUnknownTagData )
  97. {
  98.     XP_ASSERT(m_mwcontext);
  99.     EDT_SetUnknownTagData(m_mwcontext,pUnknownTagData);
  100. }
  101.  
  102.  
  103.  
  104.