home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / layout / shim2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  7.3 KB  |  170 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.  
  20. extern void shim2_LO_ClearEmbedBlock(DocumentContext context,
  21.                 LO_EmbedStruct *embed);
  22. extern void shim2_LO_CopySavedEmbedData(DocumentContext context,
  23.                 void *saved_data);
  24. extern void shim2_LO_AddEmbedData(DocumentContext context,
  25.                 LO_EmbedStruct *embed, void *session_data);
  26. extern void shim2_LO_FreeDocumentEmbedListData(DocumentContext context,
  27.                 void *data);
  28.  
  29. extern Bool shim2_LO_FindText(DocumentContext context, char *text,
  30.             LO_Element **start_ele_loc, int32 *start_position,
  31.             LO_Element **end_ele_loc, int32 *end_position,
  32.             Bool use_case, Bool forward);
  33. extern Bool shim2_LO_FindGridText(DocumentContext context,
  34.             DocumentContext *ret_context, char *text,
  35.             LO_Element **start_ele_loc, int32 *start_position,
  36.             LO_Element **end_ele_loc, int32 *end_position,
  37.             Bool use_case, Bool forward);
  38.  
  39. extern void shim2_LO_SelectText(DocumentContext context,
  40.             LO_Element *start, int32 start_pos,
  41.             LO_Element *end, int32 end_pos, int32 *x, int32 *y);
  42. extern void shim2_LO_StartSelection(DocumentContext context,
  43.             int32 x, int32 y, CL_Layer *layer);
  44. extern Bool shim2_LO_Click(DocumentContext context,
  45.             int32 x, int32 y, Bool requireCaret, CL_Layer *layer);
  46. extern void shim2_LO_SelectObject(DocumentContext context,
  47.             int32 x, int32 y, CL_Layer *layer);
  48. extern void shim2_LO_Hit(DocumentContext context,
  49.             int32 x, int32 y, Bool requireCaret,
  50.             LO_HitResult* result, CL_Layer *layer);
  51. extern void shim2_LO_ExtendSelection(DocumentContext context,
  52.             int32 x, int32 y);
  53. extern void shim2_LO_EndSelection(DocumentContext context);
  54. extern void shim2_LO_ClearSelection(DocumentContext context);
  55. extern Bool shim2_LO_HaveSelection(DocumentContext context);
  56. extern XP_Block shim2_LO_GetSelectionText(DocumentContext context);
  57. extern void shim2_LO_GetSelectionEndpoints(DocumentContext context,
  58.             LO_Element **start, LO_Element **end,
  59.             int32 *start_pos, int32 *end_pos);
  60. extern Bool shim2_LO_SelectAll(DocumentContext context);
  61. extern int32 shim2_LO_TextElementWidth(DocumentContext context,
  62.             LO_TextStruct *text_ele, int charOffset);
  63.  
  64. extern LO_FormElementStruct *shim2_LO_ReturnNextFormElement(
  65.             DocumentContext context,
  66.                         LO_FormElementStruct *current_element);
  67. extern LO_FormElementStruct *shim2_LO_ReturnPrevFormElement(
  68.             DocumentContext context,
  69.             LO_FormElementStruct *current_element);
  70. extern LO_FormElementStruct *shim2_LO_ReturnNextFormElementInTabGroup(
  71.         DocumentContext win_context,
  72.         LO_FormElementStruct *current_element, XP_Bool go_backwards);
  73.  
  74. extern LO_FormSubmitData *shim2_LO_SubmitForm(DocumentContext context,
  75.             LO_FormElementStruct *form_element);
  76. extern LO_FormSubmitData *shim2_LO_SubmitImageForm(DocumentContext context,
  77.             LO_ImageStruct *image, int32 x, int32 y);
  78. extern void shim2_LO_RedoFormElements(DocumentContext context);
  79. extern void shim2_LO_ResetForm(DocumentContext context,
  80.             LO_FormElementStruct *form_element);
  81. extern LO_FormElementStruct *shim2_LO_FormRadioSet(DocumentContext context,
  82.             LO_FormElementStruct *form_element);
  83. extern void shim2_LO_SaveFormData(DocumentContext context);
  84. extern void shim2_LO_CloneFormData(void* savedData,
  85.             DocumentContext context, URL *url_struct);
  86. extern lo_FormData *shim2_LO_GetFormDataByID(DocumentContext context,
  87.             intn form_id);
  88. extern uint shim2_LO_EnumerateForms(DocumentContext context);
  89. extern uint shim2_LO_EnumerateFormElements(DocumentContext context,
  90.             lo_FormData *form);
  91.  
  92. extern void shim2_LO_FreeDocumentFormListData(DocumentContext context,
  93.             void *form_data);
  94.  
  95. extern int32 shim2_LO_EmptyRecyclingBin(DocumentContext context);
  96.  
  97. extern void shim2_LO_MoveGridEdge(DocumentContext context,
  98.                 LO_EdgeStruct *fe_edge, int32 x, int32 y);
  99. extern void shim2_LO_UpdateGridHistory(DocumentContext context);
  100. extern void shim2_LO_CleanupGridHistory(DocumentContext context);
  101. extern void shim2_LO_FreeDocumentGridData(DocumentContext context,
  102.                 void *data);
  103. extern Bool shim2_LO_BackInGrid(DocumentContext context);
  104. extern Bool shim2_LO_ForwardInGrid(DocumentContext context);
  105. extern Bool shim2_LO_GridCanGoForward(DocumentContext context);
  106. extern Bool shim2_LO_GridCanGoBackward(DocumentContext context);
  107.  
  108. extern Bool shim2_LO_BlockedOnImage(DocumentContext context,
  109.                 LO_ImageStruct *image);
  110.  
  111. extern intn shim2_LO_DocumentInfo(DocumentContext context,
  112.                 struct netscape_net_Stream *stream);
  113.  
  114. extern LO_AnchorData *shim2_LO_MapXYToAreaAnchor(DocumentContext context,
  115.             LO_ImageStruct *image, int32 x, int32 y);
  116.  
  117. extern void shim2_LO_CloseAllTags(DocumentContext context);
  118.  
  119. extern void shim2_LO_RefreshArea(DocumentContext context,
  120.             int32 x, int32 y,
  121.             uint32 width, uint32 height);
  122.  
  123. extern LO_Element *shim2_LO_XYToElement(DocumentContext context,
  124.             int32 x, int32 y, CL_Layer *layer);
  125. extern LO_Element *shim2_LO_XYToNearestElement(DocumentContext context,
  126.             int32 x, int32 y, CL_Layer *layer);
  127.  
  128. extern void shim2_LO_ClearBackdropBlock(DocumentContext context,
  129.             LO_ImageStruct *image, Bool fg_ok);
  130.  
  131. extern void shim2_LO_SetImageInfo(DocumentContext context,
  132.             int32 ele_id, int32 width, int32 height);
  133.  
  134. extern void shim2_LO_DiscardDocument(DocumentContext context);
  135.  
  136. extern void shim2_LO_HighlightAnchor(DocumentContext context,
  137.             LO_Element *element, Bool on);
  138.  
  139. extern void shim2_LO_RefreshAnchors(DocumentContext context);
  140.  
  141. extern Bool shim2_LO_LocateNamedAnchor(DocumentContext context,
  142.             URL *url_struct, int32 *xpos, int32 *ypos);
  143.  
  144. extern Bool shim2_LO_HasBGImage(DocumentContext context);
  145.  
  146. extern void shim2_LO_InvalidateFontData(DocumentContext context);
  147.  
  148. extern int16 shim2_LO_WindowWidthInFixedChars(DocumentContext context);
  149.  
  150. extern LO_ImageStruct *shim2_LO_GetImageByIndex(DocumentContext context,
  151.                 intn index);
  152. extern uint shim2_LO_EnumerateImages(DocumentContext context);
  153. extern struct lo_NameList_struct *shim2_LO_GetNamedAnchorByIndex(DocumentContext context,
  154.                 uint index);
  155. extern uint shim2_LO_EnumerateNamedAnchors(DocumentContext context);
  156. extern LO_AnchorData *shim2_LO_GetLinkByIndex(DocumentContext context,
  157.                 uint index);
  158. extern uint shim2_LO_EnumerateLinks(DocumentContext context);
  159. extern LO_JavaAppStruct *shim2_LO_GetAppletByIndex(DocumentContext context,
  160.                 uint index);
  161. extern uint shim2_LO_EnumerateApplets(DocumentContext context);
  162. extern LO_EmbedStruct *shim2_LO_GetEmbedByIndex(DocumentContext context,
  163.                 uint index);
  164. extern uint shim2_LO_EnumerateEmbeds(DocumentContext context);
  165.  
  166. extern void shim2_LO_GetDocumentColor(DocumentContext context,
  167.                 int type, LO_Color *color);
  168. extern void shim2_LO_SetDocumentColor(DocumentContext context,
  169.                 int type, LO_Color *color);
  170.