/*
** MUI-Brief.h - alle Teile für die Briefliste und den Brief in MUI
**
** Copyright (C) 1996 by Stefan Scherer.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for non-commerical use and without fee is hereby granted,
** provided that the above copyright notice appear in all copies and that
** both that copyright notice and this permission notice appear in
** supporting documentation.  This software is provided "as is" without
** express or implied warranty.
*/

#ifndef MUI_BRIEF_H
#define MUI_BRIEF_H

/* globale Definitionen */

extern APTR BT_LE_ok, BT_LE_cancel;
extern APTR WI_letter, REG_LE_pages;
extern APTR TX_LE_letnum, TX_LE_letdate, BT_LE_noaddr;
extern APTR BT_LE_customer, ST_LE_adr1, ST_LE_adr2, ST_LE_adr3, ST_LE_adr4;
extern APTR ST_LE_adr5, ST_LE_kundennr, ST_LE_zeichen;
extern APTR BT_LE_choose;

extern APTR CY_LL_year, CY_LL_mode;
extern APTR LV_LL_list;
extern APTR BT_LL_new, BT_LL_del, BT_LL_edit;
extern APTR BT_LL_prtinv, BT_LL_prtlist;

extern APTR WI_letcomm, LV_LC_commands;
extern char *LVA_LC_commands[];

/* von wo aus wurde das Fenster geöffnet, d.h.
** was passiert, wenn die Rechnung geschlossen wird
*/

extern UWORD closeLetterAction;
enum
  {
    CLA_MAIN_EDIT,	/* Brief wurde vom Hauptfenster geöffnet */
    CLA_MAIN_NEW,	/* neuer Brief wurde vom Hauptfenster geöffnet */
  };


/* Prototypen */

void Insert_LE_Text (STRPTR text);

void Build_LL_years (void);
void Redraw_LL_List (void);
APTR MUI_BuildLetterList (void);
BOOL LE_CheckAbort (BOOL);
void LE_DisplayArticle (void);
void InitLetterWin (void);
APTR MUI_BuildLetter (void);
void DoLetterMethods (void);
void HandleLetterEvents (ULONG event);


#endif /* MUI_BRIEF_H */
