File:  [Public] / Amaya / amaya / HTML.A
Revision 1.50: download - view: text, annotated - select for diffs
Mon Feb 14 10:01:08 2000 UTC (24 years, 4 months ago) by cvs
Branches: MAIN
CVS tags: HEAD, Amaya-3-2-1, Amaya-3-2
bug fix: when pasting some text from the X ot Windows clipboard,
    Thot did not generate any event.  Consequently, Amaya was not able
    to handle the line breaks contained in the pasted text.  Now, it
    keeps the line breaks in elements PRE, STYLE, and SCRIPT and replace
    them by a space in any other element.
VQ.

APPLICATION HTML;

DEFAULT
   BEGIN
	ElemActivate.Pre -> DoubleClick;
	ElemClick.Pre -> SimpleClick;
	DocClose.Post -> DocumentClosed;
	DocSave.Pre -> DocumentToSave;
	ElemPaste.Post -> ElementPasted;
	ElemNew.Post -> ElementCreated;
	ElemDelete.Post -> ElementDeleted;
	PRuleCreate.Pre -> ChangePRule;
	PRuleModify.Pre -> ChangePRule;
	PRuleDelete.Post -> PRuleDeleted;
	ViewClose.Pre -> ViewToClose;
	ElemSelect.Post -> SelectionChanged;
	ElemExtendSelect.Post -> SelectionChanged;
   END;

ELEMENTS

   PICTURE_UNIT:
	BEGIN
	ElemNew.Post -> UpdateSRCattribute;
	ElemTextModify.Post -> UpdateSRCattribute;
	END;

   TEXT_UNIT:
	ElemTextModify.Post -> CheckNewLines;

   LINK:
	BEGIN
	ElemDelete.Pre -> DeleteLink;
	END;

   MAP:
	BEGIN
	ElemDelete.Pre -> DeleteMap;
	END;

   Text_Input:
	BEGIN
	ElemTextModify.Pre -> SaveDocumentStatus;
	ElemTextModify.Post -> RestoreDocumentStatus;
	END;

   Password_Input:
	BEGIN
	ElemTextModify.Pre -> SaveDocumentStatus;
	ElemTextModify.Post -> RestoreDocumentStatus;
	END;

   Text_Area:
	BEGIN
	ElemTextModify.Pre -> SaveDocumentStatus;
	ElemTextModify.Post -> RestoreDocumentStatus;
	END;

   Frame:
	ElemSelect.Pre -> SelectInsertedText;

   TITLE:
	ElemTextModify.Post -> TitleModified;

   Table:
	ElemNew.Post -> TableCreated;

   Table_body:
	ElemDelete.Post -> TablebodyDeleted;

   Data_cell:
	BEGIN
	ElemNew.Post -> CellCreated;
	ElemPaste.Post -> CellPasted;
	ElemDelete.Pre -> DeleteCell;
	ElemDelete.Post -> CellDeleted;
	END;

   Heading_cell:
	BEGIN
	ElemNew.Post -> CellCreated;
	ElemPaste.Post -> CellPasted;
	ElemDelete.Pre -> DeleteCell;
	ElemDelete.Post -> CellDeleted;
	END;

   Table_row:
	BEGIN
	ElemNew.Post -> RowCreated;
	ElemPaste.Post -> RowPasted;
	ElemDelete.Pre -> DeleteRow;
	ElemDelete.Post -> RowDeleted;
	END;

   STYLE_:
	BEGIN
	ElemTextModify.Pre -> ChangeStyle;
	ElemTextModify.Post -> StyleChanged;
	ElemDelete.Pre -> DeleteStyle;
	END;

   META:
	BEGIN
	ElemExport.Pre -> CheckGenerator;
	END;

   List_Item:
	BEGIN
	ElemNew.Post -> ListItemCreated;
	ElemPaste.Post -> ListItemCreated;
	END;

   Unnumbered_List:
	ElemChange.Post -> ListChangedType;

   Numbered_List:
	ElemChange.Post -> ListChangedType;

ATTRIBUTES

   SRC:
	BEGIN
	AttrModify.Post -> SRCattrModified;
	END;
   coords:
     	BEGIN
      	AttrModify.Post -> CoordsModified;
      	END;
      
   x_coord:
     	BEGIN
      	AttrModify.Post -> GraphicsModified;
     	END;
     
   y_coord:
     	BEGIN
      	AttrModify.Post -> GraphicsModified;
     	END;

   IntWidthPxl:
   	BEGIN
	AttrModify.Pre -> StoreWidth;
   	AttrModify.Post -> GraphicsModified;
    	END;
    
   height\240:
   	BEGIN
	AttrModify.Pre -> StoreHeight;
   	AttrModify.Post -> GraphicsModified;
   	END;

   colspan_:
	BEGIN
	AttrCreate.Post -> ColspanCreated;
	AttrModify.Pre ->  RegisterColspan;
	AttrModify.Post -> ColspanModified;
	AttrDelete.Pre ->  ColspanDelete;
	END;

   rowspan_:
	BEGIN
	AttrCreate.Post -> RowspanCreated;
	AttrModify.Pre ->  RegisterRowspan;
	AttrModify.Post -> RowspanModified;
	AttrDelete.Pre ->  RowspanDelete;
	END;

   NAME:
	AttrMenu.Pre ->    AttrNAMEinMenu;

    
   Height_:
   	BEGIN
	AttrCreate.Pre -> StoreHeight;
	AttrCreate.Post -> GraphicsModified;
	AttrModify.Pre -> StoreHeight;
   	AttrModify.Post -> GraphicsModified;
	AttrDelete.Pre -> StoreHeight;
   	END;

   Width__:
	BEGIN
	AttrCreate.Pre -> StoreWidth;
	AttrCreate.Post -> AttrWidthModified;
	AttrModify.Pre -> StoreWidth;
	AttrModify.Post -> AttrWidthModified;
	AttrDelete.Pre ->  AttrWidthDelete;	
	END;

   Font_size:
	BEGIN
	AttrCreate.Post -> AttrFontSizeCreated;
	AttrModify.Post -> AttrFontSizeCreated;
	AttrDelete.Pre ->  AttrFontSizeDelete;	
	END;

   color:
	BEGIN
	AttrCreate.Post -> AttrColorCreated;
	AttrModify.Post -> AttrColorCreated;
	AttrDelete.Pre ->  AttrColorDelete;	
	END;

   TextColor:
	BEGIN
	AttrCreate.Post -> AttrColorCreated;
	AttrModify.Post -> AttrColorCreated;
	AttrDelete.Pre ->  AttrColorDelete;	
	END;
   BackgroundColor:
	BEGIN
	AttrCreate.Post -> AttrColorCreated;
	AttrModify.Post -> AttrColorCreated;
	AttrDelete.Pre ->  AttrColorDelete;	
	END;
   background_:
	BEGIN
	AttrCreate.Post -> AttrColorCreated;
	AttrModify.Post -> AttrColorCreated;
	AttrDelete.Pre ->  AttrColorDelete;	
	END;
   LinkColor:
	BEGIN
	AttrCreate.Post -> AttrColorCreated;
	AttrModify.Post -> AttrColorCreated;
	AttrDelete.Pre ->  AttrColorDelete;	
	END;
   VisitedLinkColor:
	BEGIN
	AttrCreate.Post -> AttrColorCreated;
	AttrModify.Post -> AttrColorCreated;
	AttrDelete.Pre ->  AttrColorDelete;	
	END;
   ActiveLinkColor:   
	BEGIN
	AttrCreate.Post -> AttrColorCreated;
	AttrModify.Post -> AttrColorCreated;
	AttrDelete.Pre ->  AttrColorDelete;
	END;

   BulletStyle:
	BEGIN
	AttrCreate.Post -> UpdateAttrIntItemStyle;
	AttrModify.Post -> UpdateAttrIntItemStyle;
	AttrDelete.Post -> UpdateAttrIntItemStyle;
	END;

   NumberStyle:
	BEGIN
	AttrCreate.Post -> UpdateAttrIntItemStyle;
	AttrModify.Post -> UpdateAttrIntItemStyle;
	AttrDelete.Post -> UpdateAttrIntItemStyle;
	END;

   ItemStyle:
	BEGIN
	AttrCreate.Post -> AttrItemStyle;
	AttrModify.Post -> AttrItemStyle;
	AttrDelete.Post -> AttrItemStyle;
	END;

   Langue:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> AttrLangCreated;
	AttrDelete.Pre  -> AttrLangShouldBeDeleted;
	AttrDelete.Post -> AttrLangDeleted;
	AttrModify.Post -> AttrLangModified;
	END;

   ID:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> UpdateAttrID;
	AttrModify.Post -> UpdateAttrID;	
	AttrDelete.Post -> UpdateAttrID;
	END;

   Class:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> AttrClassChanged;
	AttrModify.Post -> AttrClassChanged;
	AttrDelete.Post -> AttrClassChanged;
	END;

   Style\240:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> UpdateStylePost;
	AttrModify.Post -> UpdateStylePost;
	AttrDelete.Pre ->  UpdateStyleDelete;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   media:
	BEGIN
	AttrCreate.Post -> AttrMediaChanged;
	AttrModify.Post -> AttrMediaChanged;
	AttrDelete.Post -> AttrMediaChanged;
	END;

   Title:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;

   dir:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;

   onclick:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   ondblclick:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onmousedown:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onmouseup:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onmouseover:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onmousemove:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onmouseout:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onkeypress:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onkeydown:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;
   onkeyup:
	BEGIN
	AttrMenu.Pre ->    GlobalAttrInMenu;
	AttrCreate.Post -> GlobalAttrCreated;
	AttrDelete.Post -> GlobalAttrDeleted;
	END;

   Selected:
	BEGIN
	AttrCreate.Post -> UpdateAttrSelected;
	AttrModify.Post -> UpdateAttrSelected;
	AttrDelete.Post -> AttrSelectedDeleted;	
	END;

   Multiple:
	AttrDelete.Post -> UpdateAttrSelected;

   Checked:
	BEGIN
	AttrDelete.Pre ->  DeleteAttrSelected;	
	END;

   Style\240:
	BEGIN
	AttrExport.Pre ->  GenerateQuoteBefore;	
	AttrExport.Post -> GenerateQuoteAfter;	
	END;

   meta_content:
	BEGIN
	AttrExport.Pre ->  GenerateQuoteBefore;	
	AttrExport.Post -> GenerateQuoteAfter;	
	END;

END

Webmaster