begin process at 2012 02 08 05:18:27
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

.NET

 > PETIT ÉDITEUR DE TEXTE EN (MODIF POLICE ET COULEUR, + ALIGNEMENT TEXTE)

PETIT ÉDITEUR DE TEXTE EN (MODIF POLICE ET COULEUR, + ALIGNEMENT TEXTE)


 Information sur la source

Note :
6,83 / 10 - par 6 personnes
6,83 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :.NET Source .NET ( DotNet ) Classé sous :editeur, texte Niveau :Débutant Date de création :23/06/2003 Date de mise à jour :23/06/2003 19:21:13 Vu / téléchargé :13 955 / 1 319

Auteur : bigorneau

Ecrire un message privé
Commentaire sur cette source (5)
Ajouter un commentaire et/ou une note

 Description

Voici un petit éditeur de texte réalisé en C#. il n'a aucune prétention particulière, comme rivaliser avec Word par exemple (d'autres s'en chargent LOL), mais vous permet d'éditer du texte en le mettant en forme (alignement, police, taille, couleur, gras, souligné,italique) pour créer des fichiers .doc, .rtf, ou encore .txt . J'ai réalisé cette petite application dans le cadre des activités de BTS Informatique de Gestion (option développeur d'application) pour créer la cinquième manquante.
Voilà, je crois avoir tout dit, jetez s'y un oeil c'est tout de même interessant ...

Source

  • using System;
  • using System.Drawing;
  • using System.Collections;
  • using System.ComponentModel;
  • using System.Windows.Forms;
  • using System.Data;
  • using System.Windows.Forms.Design;
  • namespace PetitEditeur
  • {
  • /// <summary>
  • /// Description résumée de Form1.
  • /// </summary>
  • public class fm_principal : System.Windows.Forms.Form
  • {
  • private System.Windows.Forms.MenuItem m_fichier;
  • private System.Windows.Forms.MenuItem m_edition;
  • private System.Windows.Forms.MenuItem m_apropos;
  • private System.Windows.Forms.MenuItem mi_couper;
  • private System.Windows.Forms.MenuItem mi_copier;
  • private System.Windows.Forms.MenuItem mi_coller;
  • private System.Windows.Forms.MenuItem mi_aide;
  • private System.Windows.Forms.MenuItem mi_Apropos;
  • private System.Windows.Forms.OpenFileDialog od_ouvrir;
  • private System.Windows.Forms.SaveFileDialog sd_EnregistrerSous;
  • private System.Windows.Forms.MenuItem mi_annuler;
  • private System.Windows.Forms.MenuItem mi_retablir;
  • private System.Windows.Forms.ImageList ListeImage;
  • private System.Windows.Forms.ToolBar ToolBarEditeur;
  • private System.Windows.Forms.ToolBarButton separateur2;
  • private System.Windows.Forms.ToolBarButton separateur3;
  • private System.Windows.Forms.MenuItem m_format;
  • private System.Windows.Forms.MenuItem mi_police;
  • private System.Windows.Forms.RichTextBox rt_txt;
  • private System.Windows.Forms.MainMenu MenuPrincipal;
  • private System.Windows.Forms.MenuItem menu_fichier;
  • private System.Windows.Forms.MenuItem menu_edition;
  • private System.Windows.Forms.MenuItem menu_format;
  • private System.Windows.Forms.MenuItem menuFichier_nouveau;
  • private System.Windows.Forms.MenuItem menuFichier_ouvrir;
  • private System.Windows.Forms.MenuItem menuFichier_enregistrer;
  • private System.Windows.Forms.MenuItem menuFichier_enregistrerSous;
  • private System.Windows.Forms.MenuItem menuFichier_fermer;
  • private System.Windows.Forms.MenuItem menuFichier_quitter;
  • private System.Windows.Forms.MenuItem menuEdition_copier;
  • private System.Windows.Forms.MenuItem menuEdition_couper;
  • private System.Windows.Forms.MenuItem menuEdition_coller;
  • private System.Windows.Forms.MenuItem menuEdition_annuler;
  • private System.Windows.Forms.MenuItem menuEdition_retablir;
  • private System.Windows.Forms.MenuItem menuFormat_police;
  • private System.Windows.Forms.StatusBar BarreStatus;
  • private System.Windows.Forms.ToolBarButton separateur4;
  • private System.Windows.Forms.ToolBarButton bt_nouveau;
  • private System.Windows.Forms.ToolBarButton bt_ouvrir;
  • private System.Windows.Forms.ToolBarButton bt_enregistrer;
  • private System.Windows.Forms.ToolBarButton bt_couper;
  • private System.Windows.Forms.ToolBarButton bt_copier;
  • private System.Windows.Forms.ToolBarButton bt_coller;
  • private System.Windows.Forms.ToolBarButton b_annuler;
  • private System.Windows.Forms.ToolBarButton bt_retablir;
  • private System.Windows.Forms.ToolBarButton bt_gras;
  • private System.Windows.Forms.ToolBarButton bt_italique;
  • private System.Windows.Forms.ColorDialog od_color;
  • private System.Windows.Forms.FontDialog od_police;
  • private System.Windows.Forms.MenuItem menuFormat_couleur;
  • private System.Windows.Forms.MenuItem menuFormat_gras;
  • private System.Windows.Forms.MenuItem menuFormat_italique;
  • private System.Windows.Forms.MenuItem menuFormat_souligne;
  • private System.Windows.Forms.ToolBarButton bt_souligne;
  • private System.Windows.Forms.ToolBarButton separateur5;
  • private System.Windows.Forms.ToolBarButton bt_gauche;
  • private System.Windows.Forms.ToolBarButton bt_centre;
  • private System.Windows.Forms.ToolBarButton bt_droite;
  • private System.Windows.Forms.ToolBarButton separateur6;
  • private System.Windows.Forms.ToolBarButton bt_couleur;
  • private System.ComponentModel.IContainer components;
  • public fm_principal()
  • {
  • //
  • // Requis pour la prise en charge du Concepteur Windows Forms
  • //
  • InitializeComponent();
  • //
  • // TODO : ajoutez le code du constructeur après l'appel à InitializeComponent
  • //
  • etat=EtatEditeur.vide;
  • menuFichier_nouveau.Enabled=false;
  • menuFichier_enregistrer.Enabled=false;
  • menuFichier_enregistrerSous.Enabled=false;
  • menuFichier_fermer.Enabled=false;
  • menuEdition_copier.Enabled=false;
  • menuEdition_couper.Enabled=false;
  • menuEdition_coller.Enabled=false;
  • menuEdition_annuler.Enabled=false;
  • menuEdition_retablir.Enabled=false;
  • }
  • /// <summary>
  • /// Nettoyage des ressources utilisées.
  • /// </summary>
  • protected override void Dispose( bool disposing )
  • {
  • if( disposing )
  • {
  • if (components != null)
  • {
  • components.Dispose();
  • }
  • }
  • base.Dispose( disposing );
  • }
  • #region Windows Form Designer generated code
  • /// <summary>
  • /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
  • /// le contenu de cette méthode avec l'éditeur de code.
  • /// </summary>
  • private void InitializeComponent()
  • {
  • this.components = new System.ComponentModel.Container();
  • System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(fm_principal));
  • this.m_fichier = new System.Windows.Forms.MenuItem();
  • this.m_edition = new System.Windows.Forms.MenuItem();
  • this.mi_couper = new System.Windows.Forms.MenuItem();
  • this.mi_copier = new System.Windows.Forms.MenuItem();
  • this.mi_coller = new System.Windows.Forms.MenuItem();
  • this.mi_annuler = new System.Windows.Forms.MenuItem();
  • this.mi_retablir = new System.Windows.Forms.MenuItem();
  • this.m_format = new System.Windows.Forms.MenuItem();
  • this.m_apropos = new System.Windows.Forms.MenuItem();
  • this.mi_aide = new System.Windows.Forms.MenuItem();
  • this.mi_Apropos = new System.Windows.Forms.MenuItem();
  • this.od_ouvrir = new System.Windows.Forms.OpenFileDialog();
  • this.sd_EnregistrerSous = new System.Windows.Forms.SaveFileDialog();
  • this.ToolBarEditeur = new System.Windows.Forms.ToolBar();
  • this.bt_nouveau = new System.Windows.Forms.ToolBarButton();
  • this.bt_ouvrir = new System.Windows.Forms.ToolBarButton();
  • this.bt_enregistrer = new System.Windows.Forms.ToolBarButton();
  • this.separateur2 = new System.Windows.Forms.ToolBarButton();
  • this.bt_couper = new System.Windows.Forms.ToolBarButton();
  • this.bt_copier = new System.Windows.Forms.ToolBarButton();
  • this.bt_coller = new System.Windows.Forms.ToolBarButton();
  • this.separateur3 = new System.Windows.Forms.ToolBarButton();
  • this.b_annuler = new System.Windows.Forms.ToolBarButton();
  • this.bt_retablir = new System.Windows.Forms.ToolBarButton();
  • this.separateur4 = new System.Windows.Forms.ToolBarButton();
  • this.bt_gras = new System.Windows.Forms.ToolBarButton();
  • this.bt_italique = new System.Windows.Forms.ToolBarButton();
  • this.bt_souligne = new System.Windows.Forms.ToolBarButton();
  • this.separateur5 = new System.Windows.Forms.ToolBarButton();
  • this.bt_gauche = new System.Windows.Forms.ToolBarButton();
  • this.bt_centre = new System.Windows.Forms.ToolBarButton();
  • this.bt_droite = new System.Windows.Forms.ToolBarButton();
  • this.ListeImage = new System.Windows.Forms.ImageList(this.components);
  • this.mi_police = new System.Windows.Forms.MenuItem();
  • this.rt_txt = new System.Windows.Forms.RichTextBox();
  • this.MenuPrincipal = new System.Windows.Forms.MainMenu();
  • this.menu_fichier = new System.Windows.Forms.MenuItem();
  • this.menuFichier_nouveau = new System.Windows.Forms.MenuItem();
  • this.menuFichier_ouvrir = new System.Windows.Forms.MenuItem();
  • this.menuFichier_enregistrer = new System.Windows.Forms.MenuItem();
  • this.menuFichier_enregistrerSous = new System.Windows.Forms.MenuItem();
  • this.menuFichier_fermer = new System.Windows.Forms.MenuItem();
  • this.menuFichier_quitter = new System.Windows.Forms.MenuItem();
  • this.menu_edition = new System.Windows.Forms.MenuItem();
  • this.menuEdition_copier = new System.Windows.Forms.MenuItem();
  • this.menuEdition_couper = new System.Windows.Forms.MenuItem();
  • this.menuEdition_coller = new System.Windows.Forms.MenuItem();
  • this.menuEdition_annuler = new System.Windows.Forms.MenuItem();
  • this.menuEdition_retablir = new System.Windows.Forms.MenuItem();
  • this.menu_format = new System.Windows.Forms.MenuItem();
  • this.menuFormat_police = new System.Windows.Forms.MenuItem();
  • this.menuFormat_couleur = new System.Windows.Forms.MenuItem();
  • this.menuFormat_gras = new System.Windows.Forms.MenuItem();
  • this.menuFormat_italique = new System.Windows.Forms.MenuItem();
  • this.menuFormat_souligne = new System.Windows.Forms.MenuItem();
  • this.BarreStatus = new System.Windows.Forms.StatusBar();
  • this.od_color = new System.Windows.Forms.ColorDialog();
  • this.od_police = new System.Windows.Forms.FontDialog();
  • this.separateur6 = new System.Windows.Forms.ToolBarButton();
  • this.bt_couleur = new System.Windows.Forms.ToolBarButton();
  • this.SuspendLayout();
  • //
  • // m_fichier
  • //
  • this.m_fichier.Enabled = ((bool)(resources.GetObject("m_fichier.Enabled")));
  • this.m_fichier.Index = -1;
  • this.m_fichier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_fichier.Shortcut")));
  • this.m_fichier.ShowShortcut = ((bool)(resources.GetObject("m_fichier.ShowShortcut")));
  • this.m_fichier.Text = resources.GetString("m_fichier.Text");
  • this.m_fichier.Visible = ((bool)(resources.GetObject("m_fichier.Visible")));
  • //
  • // m_edition
  • //
  • this.m_edition.Enabled = ((bool)(resources.GetObject("m_edition.Enabled")));
  • this.m_edition.Index = -1;
  • this.m_edition.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_edition.Shortcut")));
  • this.m_edition.ShowShortcut = ((bool)(resources.GetObject("m_edition.ShowShortcut")));
  • this.m_edition.Text = resources.GetString("m_edition.Text");
  • this.m_edition.Visible = ((bool)(resources.GetObject("m_edition.Visible")));
  • //
  • // mi_couper
  • //
  • this.mi_couper.Enabled = ((bool)(resources.GetObject("mi_couper.Enabled")));
  • this.mi_couper.Index = -1;
  • this.mi_couper.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_couper.Shortcut")));
  • this.mi_couper.ShowShortcut = ((bool)(resources.GetObject("mi_couper.ShowShortcut")));
  • this.mi_couper.Text = resources.GetString("mi_couper.Text");
  • this.mi_couper.Visible = ((bool)(resources.GetObject("mi_couper.Visible")));
  • //
  • // mi_copier
  • //
  • this.mi_copier.Enabled = ((bool)(resources.GetObject("mi_copier.Enabled")));
  • this.mi_copier.Index = -1;
  • this.mi_copier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_copier.Shortcut")));
  • this.mi_copier.ShowShortcut = ((bool)(resources.GetObject("mi_copier.ShowShortcut")));
  • this.mi_copier.Text = resources.GetString("mi_copier.Text");
  • this.mi_copier.Visible = ((bool)(resources.GetObject("mi_copier.Visible")));
  • //
  • // mi_coller
  • //
  • this.mi_coller.Enabled = ((bool)(resources.GetObject("mi_coller.Enabled")));
  • this.mi_coller.Index = -1;
  • this.mi_coller.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_coller.Shortcut")));
  • this.mi_coller.ShowShortcut = ((bool)(resources.GetObject("mi_coller.ShowShortcut")));
  • this.mi_coller.Text = resources.GetString("mi_coller.Text");
  • this.mi_coller.Visible = ((bool)(resources.GetObject("mi_coller.Visible")));
  • //
  • // mi_annuler
  • //
  • this.mi_annuler.Enabled = ((bool)(resources.GetObject("mi_annuler.Enabled")));
  • this.mi_annuler.Index = -1;
  • this.mi_annuler.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_annuler.Shortcut")));
  • this.mi_annuler.ShowShortcut = ((bool)(resources.GetObject("mi_annuler.ShowShortcut")));
  • this.mi_annuler.Text = resources.GetString("mi_annuler.Text");
  • this.mi_annuler.Visible = ((bool)(resources.GetObject("mi_annuler.Visible")));
  • //
  • // mi_retablir
  • //
  • this.mi_retablir.Enabled = ((bool)(resources.GetObject("mi_retablir.Enabled")));
  • this.mi_retablir.Index = -1;
  • this.mi_retablir.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_retablir.Shortcut")));
  • this.mi_retablir.ShowShortcut = ((bool)(resources.GetObject("mi_retablir.ShowShortcut")));
  • this.mi_retablir.Text = resources.GetString("mi_retablir.Text");
  • this.mi_retablir.Visible = ((bool)(resources.GetObject("mi_retablir.Visible")));
  • //
  • // m_format
  • //
  • this.m_format.Enabled = ((bool)(resources.GetObject("m_format.Enabled")));
  • this.m_format.Index = -1;
  • this.m_format.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_format.Shortcut")));
  • this.m_format.ShowShortcut = ((bool)(resources.GetObject("m_format.ShowShortcut")));
  • this.m_format.Text = resources.GetString("m_format.Text");
  • this.m_format.Visible = ((bool)(resources.GetObject("m_format.Visible")));
  • //
  • // m_apropos
  • //
  • this.m_apropos.Enabled = ((bool)(resources.GetObject("m_apropos.Enabled")));
  • this.m_apropos.Index = -1;
  • this.m_apropos.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_apropos.Shortcut")));
  • this.m_apropos.ShowShortcut = ((bool)(resources.GetObject("m_apropos.ShowShortcut")));
  • this.m_apropos.Text = resources.GetString("m_apropos.Text");
  • this.m_apropos.Visible = ((bool)(resources.GetObject("m_apropos.Visible")));
  • //
  • // mi_aide
  • //
  • this.mi_aide.Enabled = ((bool)(resources.GetObject("mi_aide.Enabled")));
  • this.mi_aide.Index = -1;
  • this.mi_aide.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_aide.Shortcut")));
  • this.mi_aide.ShowShortcut = ((bool)(resources.GetObject("mi_aide.ShowShortcut")));
  • this.mi_aide.Text = resources.GetString("mi_aide.Text");
  • this.mi_aide.Visible = ((bool)(resources.GetObject("mi_aide.Visible")));
  • //
  • // mi_Apropos
  • //
  • this.mi_Apropos.Enabled = ((bool)(resources.GetObject("mi_Apropos.Enabled")));
  • this.mi_Apropos.Index = -1;
  • this.mi_Apropos.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_Apropos.Shortcut")));
  • this.mi_Apropos.ShowShortcut = ((bool)(resources.GetObject("mi_Apropos.ShowShortcut")));
  • this.mi_Apropos.Text = resources.GetString("mi_Apropos.Text");
  • this.mi_Apropos.Visible = ((bool)(resources.GetObject("mi_Apropos.Visible")));
  • //
  • // od_ouvrir
  • //
  • this.od_ouvrir.Filter = resources.GetString("od_ouvrir.Filter");
  • this.od_ouvrir.Title = resources.GetString("od_ouvrir.Title");
  • this.od_ouvrir.FileOk += new System.ComponentModel.CancelEventHandler(this.od_ouvrir_FileOk);
  • //
  • // sd_EnregistrerSous
  • //
  • this.sd_EnregistrerSous.Filter = resources.GetString("sd_EnregistrerSous.Filter");
  • this.sd_EnregistrerSous.Title = resources.GetString("sd_EnregistrerSous.Title");
  • this.sd_EnregistrerSous.FileOk += new System.ComponentModel.CancelEventHandler(this.sd_EnregistrerSous_FileOk);
  • //
  • // ToolBarEditeur
  • //
  • this.ToolBarEditeur.AccessibleDescription = ((string)(resources.GetObject("ToolBarEditeur.AccessibleDescription")));
  • this.ToolBarEditeur.AccessibleName = ((string)(resources.GetObject("ToolBarEditeur.AccessibleName")));
  • this.ToolBarEditeur.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("ToolBarEditeur.Anchor")));
  • this.ToolBarEditeur.Appearance = ((System.Windows.Forms.ToolBarAppearance)(resources.GetObject("ToolBarEditeur.Appearance")));
  • this.ToolBarEditeur.AutoSize = ((bool)(resources.GetObject("ToolBarEditeur.AutoSize")));
  • this.ToolBarEditeur.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ToolBarEditeur.BackgroundImage")));
  • this.ToolBarEditeur.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  • this.ToolBarEditeur.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
  • this.bt_nouveau,
  • this.bt_ouvrir,
  • this.bt_enregistrer,
  • this.separateur2,
  • this.bt_couper,
  • this.bt_copier,
  • this.bt_coller,
  • this.separateur3,
  • this.b_annuler,
  • this.bt_retablir,
  • this.separateur4,
  • this.bt_gras,
  • this.bt_italique,
  • this.bt_souligne,
  • this.separateur5,
  • this.bt_gauche,
  • this.bt_centre,
  • this.bt_droite,
  • this.separateur6,
  • this.bt_couleur});
  • this.ToolBarEditeur.ButtonSize = ((System.Drawing.Size)(resources.GetObject("ToolBarEditeur.ButtonSize")));
  • this.ToolBarEditeur.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("ToolBarEditeur.Dock")));
  • this.ToolBarEditeur.DropDownArrows = ((bool)(resources.GetObject("ToolBarEditeur.DropDownArrows")));
  • this.ToolBarEditeur.Enabled = ((bool)(resources.GetObject("ToolBarEditeur.Enabled")));
  • this.ToolBarEditeur.Font = ((System.Drawing.Font)(resources.GetObject("ToolBarEditeur.Font")));
  • this.ToolBarEditeur.ImageList = this.ListeImage;
  • this.ToolBarEditeur.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("ToolBarEditeur.ImeMode")));
  • this.ToolBarEditeur.Location = ((System.Drawing.Point)(resources.GetObject("ToolBarEditeur.Location")));
  • this.ToolBarEditeur.Name = "ToolBarEditeur";
  • this.ToolBarEditeur.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("ToolBarEditeur.RightToLeft")));
  • this.ToolBarEditeur.ShowToolTips = ((bool)(resources.GetObject("ToolBarEditeur.ShowToolTips")));
  • this.ToolBarEditeur.Size = ((System.Drawing.Size)(resources.GetObject("ToolBarEditeur.Size")));
  • this.ToolBarEditeur.TabIndex = ((int)(resources.GetObject("ToolBarEditeur.TabIndex")));
  • this.ToolBarEditeur.TextAlign = ((System.Windows.Forms.ToolBarTextAlign)(resources.GetObject("ToolBarEditeur.TextAlign")));
  • this.ToolBarEditeur.Visible = ((bool)(resources.GetObject("ToolBarEditeur.Visible")));
  • this.ToolBarEditeur.Wrappable = ((bool)(resources.GetObject("ToolBarEditeur.Wrappable")));
  • this.ToolBarEditeur.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.ToolBarEditeur_ButtonClick);
  • //
  • // bt_nouveau
  • //
  • this.bt_nouveau.Enabled = ((bool)(resources.GetObject("bt_nouveau.Enabled")));
  • this.bt_nouveau.ImageIndex = ((int)(resources.GetObject("bt_nouveau.ImageIndex")));
  • this.bt_nouveau.Text = resources.GetString("bt_nouveau.Text");
  • this.bt_nouveau.ToolTipText = resources.GetString("bt_nouveau.ToolTipText");
  • this.bt_nouveau.Visible = ((bool)(resources.GetObject("bt_nouveau.Visible")));
  • //
  • // bt_ouvrir
  • //
  • this.bt_ouvrir.Enabled = ((bool)(resources.GetObject("bt_ouvrir.Enabled")));
  • this.bt_ouvrir.ImageIndex = ((int)(resources.GetObject("bt_ouvrir.ImageIndex")));
  • this.bt_ouvrir.Text = resources.GetString("bt_ouvrir.Text");
  • this.bt_ouvrir.ToolTipText = resources.GetString("bt_ouvrir.ToolTipText");
  • this.bt_ouvrir.Visible = ((bool)(resources.GetObject("bt_ouvrir.Visible")));
  • //
  • // bt_enregistrer
  • //
  • this.bt_enregistrer.Enabled = ((bool)(resources.GetObject("bt_enregistrer.Enabled")));
  • this.bt_enregistrer.ImageIndex = ((int)(resources.GetObject("bt_enregistrer.ImageIndex")));
  • this.bt_enregistrer.Text = resources.GetString("bt_enregistrer.Text");
  • this.bt_enregistrer.ToolTipText = resources.GetString("bt_enregistrer.ToolTipText");
  • this.bt_enregistrer.Visible = ((bool)(resources.GetObject("bt_enregistrer.Visible")));
  • //
  • // separateur2
  • //
  • this.separateur2.Enabled = ((bool)(resources.GetObject("separateur2.Enabled")));
  • this.separateur2.ImageIndex = ((int)(resources.GetObject("separateur2.ImageIndex")));
  • this.separateur2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
  • this.separateur2.Text = resources.GetString("separateur2.Text");
  • this.separateur2.ToolTipText = resources.GetString("separateur2.ToolTipText");
  • this.separateur2.Visible = ((bool)(resources.GetObject("separateur2.Visible")));
  • //
  • // bt_couper
  • //
  • this.bt_couper.Enabled = ((bool)(resources.GetObject("bt_couper.Enabled")));
  • this.bt_couper.ImageIndex = ((int)(resources.GetObject("bt_couper.ImageIndex")));
  • this.bt_couper.Text = resources.GetString("bt_couper.Text");
  • this.bt_couper.ToolTipText = resources.GetString("bt_couper.ToolTipText");
  • this.bt_couper.Visible = ((bool)(resources.GetObject("bt_couper.Visible")));
  • //
  • // bt_copier
  • //
  • this.bt_copier.Enabled = ((bool)(resources.GetObject("bt_copier.Enabled")));
  • this.bt_copier.ImageIndex = ((int)(resources.GetObject("bt_copier.ImageIndex")));
  • this.bt_copier.Text = resources.GetString("bt_copier.Text");
  • this.bt_copier.ToolTipText = resources.GetString("bt_copier.ToolTipText");
  • this.bt_copier.Visible = ((bool)(resources.GetObject("bt_copier.Visible")));
  • //
  • // bt_coller
  • //
  • this.bt_coller.Enabled = ((bool)(resources.GetObject("bt_coller.Enabled")));
  • this.bt_coller.ImageIndex = ((int)(resources.GetObject("bt_coller.ImageIndex")));
  • this.bt_coller.Text = resources.GetString("bt_coller.Text");
  • this.bt_coller.ToolTipText = resources.GetString("bt_coller.ToolTipText");
  • this.bt_coller.Visible = ((bool)(resources.GetObject("bt_coller.Visible")));
  • //
  • // separateur3
  • //
  • this.separateur3.Enabled = ((bool)(resources.GetObject("separateur3.Enabled")));
  • this.separateur3.ImageIndex = ((int)(resources.GetObject("separateur3.ImageIndex")));
  • this.separateur3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
  • this.separateur3.Text = resources.GetString("separateur3.Text");
  • this.separateur3.ToolTipText = resources.GetString("separateur3.ToolTipText");
  • this.separateur3.Visible = ((bool)(resources.GetObject("separateur3.Visible")));
  • //
  • // b_annuler
  • //
  • this.b_annuler.Enabled = ((bool)(resources.GetObject("b_annuler.Enabled")));
  • this.b_annuler.ImageIndex = ((int)(resources.GetObject("b_annuler.ImageIndex")));
  • this.b_annuler.Text = resources.GetString("b_annuler.Text");
  • this.b_annuler.ToolTipText = resources.GetString("b_annuler.ToolTipText");
  • this.b_annuler.Visible = ((bool)(resources.GetObject("b_annuler.Visible")));
  • //
  • // bt_retablir
  • //
  • this.bt_retablir.Enabled = ((bool)(resources.GetObject("bt_retablir.Enabled")));
  • this.bt_retablir.ImageIndex = ((int)(resources.GetObject("bt_retablir.ImageIndex")));
  • this.bt_retablir.Text = resources.GetString("bt_retablir.Text");
  • this.bt_retablir.ToolTipText = resources.GetString("bt_retablir.ToolTipText");
  • this.bt_retablir.Visible = ((bool)(resources.GetObject("bt_retablir.Visible")));
  • //
  • // separateur4
  • //
  • this.separateur4.Enabled = ((bool)(resources.GetObject("separateur4.Enabled")));
  • this.separateur4.ImageIndex = ((int)(resources.GetObject("separateur4.ImageIndex")));
  • this.separateur4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
  • this.separateur4.Text = resources.GetString("separateur4.Text");
  • this.separateur4.ToolTipText = resources.GetString("separateur4.ToolTipText");
  • this.separateur4.Visible = ((bool)(resources.GetObject("separateur4.Visible")));
  • //
  • // bt_gras
  • //
  • this.bt_gras.Enabled = ((bool)(resources.GetObject("bt_gras.Enabled")));
  • this.bt_gras.ImageIndex = ((int)(resources.GetObject("bt_gras.ImageIndex")));
  • this.bt_gras.Text = resources.GetString("bt_gras.Text");
  • this.bt_gras.ToolTipText = resources.GetString("bt_gras.ToolTipText");
  • this.bt_gras.Visible = ((bool)(resources.GetObject("bt_gras.Visible")));
  • //
  • // bt_italique
  • //
  • this.bt_italique.Enabled = ((bool)(resources.GetObject("bt_italique.Enabled")));
  • this.bt_italique.ImageIndex = ((int)(resources.GetObject("bt_italique.ImageIndex")));
  • this.bt_italique.Text = resources.GetString("bt_italique.Text");
  • this.bt_italique.ToolTipText = resources.GetString("bt_italique.ToolTipText");
  • this.bt_italique.Visible = ((bool)(resources.GetObject("bt_italique.Visible")));
  • //
  • // bt_souligne
  • //
  • this.bt_souligne.Enabled = ((bool)(resources.GetObject("bt_souligne.Enabled")));
  • this.bt_souligne.ImageIndex = ((int)(resources.GetObject("bt_souligne.ImageIndex")));
  • this.bt_souligne.Text = resources.GetString("bt_souligne.Text");
  • this.bt_souligne.ToolTipText = resources.GetString("bt_souligne.ToolTipText");
  • this.bt_souligne.Visible = ((bool)(resources.GetObject("bt_souligne.Visible")));
  • //
  • // separateur5
  • //
  • this.separateur5.Enabled = ((bool)(resources.GetObject("separateur5.Enabled")));
  • this.separateur5.ImageIndex = ((int)(resources.GetObject("separateur5.ImageIndex")));
  • this.separateur5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
  • this.separateur5.Text = resources.GetString("separateur5.Text");
  • this.separateur5.ToolTipText = resources.GetString("separateur5.ToolTipText");
  • this.separateur5.Visible = ((bool)(resources.GetObject("separateur5.Visible")));
  • //
  • // bt_gauche
  • //
  • this.bt_gauche.Enabled = ((bool)(resources.GetObject("bt_gauche.Enabled")));
  • this.bt_gauche.ImageIndex = ((int)(resources.GetObject("bt_gauche.ImageIndex")));
  • this.bt_gauche.Text = resources.GetString("bt_gauche.Text");
  • this.bt_gauche.ToolTipText = resources.GetString("bt_gauche.ToolTipText");
  • this.bt_gauche.Visible = ((bool)(resources.GetObject("bt_gauche.Visible")));
  • //
  • // bt_centre
  • //
  • this.bt_centre.Enabled = ((bool)(resources.GetObject("bt_centre.Enabled")));
  • this.bt_centre.ImageIndex = ((int)(resources.GetObject("bt_centre.ImageIndex")));
  • this.bt_centre.Text = resources.GetString("bt_centre.Text");
  • this.bt_centre.ToolTipText = resources.GetString("bt_centre.ToolTipText");
  • this.bt_centre.Visible = ((bool)(resources.GetObject("bt_centre.Visible")));
  • //
  • // bt_droite
  • //
  • this.bt_droite.Enabled = ((bool)(resources.GetObject("bt_droite.Enabled")));
  • this.bt_droite.ImageIndex = ((int)(resources.GetObject("bt_droite.ImageIndex")));
  • this.bt_droite.Text = resources.GetString("bt_droite.Text");
  • this.bt_droite.ToolTipText = resources.GetString("bt_droite.ToolTipText");
  • this.bt_droite.Visible = ((bool)(resources.GetObject("bt_droite.Visible")));
  • //
  • // ListeImage
  • //
  • this.ListeImage.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
  • this.ListeImage.ImageSize = ((System.Drawing.Size)(resources.GetObject("ListeImage.ImageSize")));
  • this.ListeImage.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ListeImage.ImageStream")));
  • this.ListeImage.TransparentColor = System.Drawing.Color.Transparent;
  • //
  • // mi_police
  • //
  • this.mi_police.Enabled = ((bool)(resources.GetObject("mi_police.Enabled")));
  • this.mi_police.Index = -1;
  • this.mi_police.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_police.Shortcut")));
  • this.mi_police.ShowShortcut = ((bool)(resources.GetObject("mi_police.ShowShortcut")));
  • this.mi_police.Text = resources.GetString("mi_police.Text");
  • this.mi_police.Visible = ((bool)(resources.GetObject("mi_police.Visible")));
  • //
  • // rt_txt
  • //
  • this.rt_txt.AccessibleDescription = ((string)(resources.GetObject("rt_txt.AccessibleDescription")));
  • this.rt_txt.AccessibleName = ((string)(resources.GetObject("rt_txt.AccessibleName")));
  • this.rt_txt.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("rt_txt.Anchor")));
  • this.rt_txt.AutoSize = ((bool)(resources.GetObject("rt_txt.AutoSize")));
  • this.rt_txt.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("rt_txt.BackgroundImage")));
  • this.rt_txt.BulletIndent = ((int)(resources.GetObject("rt_txt.BulletIndent")));
  • this.rt_txt.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("rt_txt.Dock")));
  • this.rt_txt.Enabled = ((bool)(resources.GetObject("rt_txt.Enabled")));
  • this.rt_txt.Font = ((System.Drawing.Font)(resources.GetObject("rt_txt.Font")));
  • this.rt_txt.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("rt_txt.ImeMode")));
  • this.rt_txt.Location = ((System.Drawing.Point)(resources.GetObject("rt_txt.Location")));
  • this.rt_txt.MaxLength = ((int)(resources.GetObject("rt_txt.MaxLength")));
  • this.rt_txt.Multiline = ((bool)(resources.GetObject("rt_txt.Multiline")));
  • this.rt_txt.Name = "rt_txt";
  • this.rt_txt.RightMargin = ((int)(resources.GetObject("rt_txt.RightMargin")));
  • this.rt_txt.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("rt_txt.RightToLeft")));
  • this.rt_txt.ScrollBars = ((System.Windows.Forms.RichTextBoxScrollBars)(resources.GetObject("rt_txt.ScrollBars")));
  • this.rt_txt.Size = ((System.Drawing.Size)(resources.GetObject("rt_txt.Size")));
  • this.rt_txt.TabIndex = ((int)(resources.GetObject("rt_txt.TabIndex")));
  • this.rt_txt.Text = resources.GetString("rt_txt.Text");
  • this.rt_txt.Visible = ((bool)(resources.GetObject("rt_txt.Visible")));
  • this.rt_txt.WordWrap = ((bool)(resources.GetObject("rt_txt.WordWrap")));
  • this.rt_txt.ZoomFactor = ((System.Single)(resources.GetObject("rt_txt.ZoomFactor")));
  • this.rt_txt.TextChanged += new System.EventHandler(this.rt_txt_TextChanged);
  • //
  • // MenuPrincipal
  • //
  • this.MenuPrincipal.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  • this.menu_fichier,
  • this.menu_edition,
  • this.menu_format});
  • this.MenuPrincipal.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("MenuPrincipal.RightToLeft")));
  • //
  • // menu_fichier
  • //
  • this.menu_fichier.Enabled = ((bool)(resources.GetObject("menu_fichier.Enabled")));
  • this.menu_fichier.Index = 0;
  • this.menu_fichier.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  • this.menuFichier_nouveau,
  • this.menuFichier_ouvrir,
  • this.menuFichier_enregistrer,
  • this.menuFichier_enregistrerSous,
  • this.menuFichier_fermer,
  • this.menuFichier_quitter});
  • this.menu_fichier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menu_fichier.Shortcut")));
  • this.menu_fichier.ShowShortcut = ((bool)(resources.GetObject("menu_fichier.ShowShortcut")));
  • this.menu_fichier.Text = resources.GetString("menu_fichier.Text");
  • this.menu_fichier.Visible = ((bool)(resources.GetObject("menu_fichier.Visible")));
  • //
  • // menuFichier_nouveau
  • //
  • this.menuFichier_nouveau.Enabled = ((bool)(resources.GetObject("menuFichier_nouveau.Enabled")));
  • this.menuFichier_nouveau.Index = 0;
  • this.menuFichier_nouveau.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_nouveau.Shortcut")));
  • this.menuFichier_nouveau.ShowShortcut = ((bool)(resources.GetObject("menuFichier_nouveau.ShowShortcut")));
  • this.menuFichier_nouveau.Text = resources.GetString("menuFichier_nouveau.Text");
  • this.menuFichier_nouveau.Visible = ((bool)(resources.GetObject("menuFichier_nouveau.Visible")));
  • this.menuFichier_nouveau.Click += new System.EventHandler(this.menuFichier_nouveau_Click);
  • //
  • // menuFichier_ouvrir
  • //
  • this.menuFichier_ouvrir.Enabled = ((bool)(resources.GetObject("menuFichier_ouvrir.Enabled")));
  • this.menuFichier_ouvrir.Index = 1;
  • this.menuFichier_ouvrir.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_ouvrir.Shortcut")));
  • this.menuFichier_ouvrir.ShowShortcut = ((bool)(resources.GetObject("menuFichier_ouvrir.ShowShortcut")));
  • this.menuFichier_ouvrir.Text = resources.GetString("menuFichier_ouvrir.Text");
  • this.menuFichier_ouvrir.Visible = ((bool)(resources.GetObject("menuFichier_ouvrir.Visible")));
  • this.menuFichier_ouvrir.Click += new System.EventHandler(this.menuFichier_ouvrir_Click);
  • //
  • // menuFichier_enregistrer
  • //
  • this.menuFichier_enregistrer.Enabled = ((bool)(resources.GetObject("menuFichier_enregistrer.Enabled")));
  • this.menuFichier_enregistrer.Index = 2;
  • this.menuFichier_enregistrer.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_enregistrer.Shortcut")));
  • this.menuFichier_enregistrer.ShowShortcut = ((bool)(resources.GetObject("menuFichier_enregistrer.ShowShortcut")));
  • this.menuFichier_enregistrer.Text = resources.GetString("menuFichier_enregistrer.Text");
  • this.menuFichier_enregistrer.Visible = ((bool)(resources.GetObject("menuFichier_enregistrer.Visible")));
  • this.menuFichier_enregistrer.Click += new System.EventHandler(this.menuFichier_enregistrer_Click);
  • //
  • // menuFichier_enregistrerSous
  • //
  • this.menuFichier_enregistrerSous.Enabled = ((bool)(resources.GetObject("menuFichier_enregistrerSous.Enabled")));
  • this.menuFichier_enregistrerSous.Index = 3;
  • this.menuFichier_enregistrerSous.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_enregistrerSous.Shortcut")));
  • this.menuFichier_enregistrerSous.ShowShortcut = ((bool)(resources.GetObject("menuFichier_enregistrerSous.ShowShortcut")));
  • this.menuFichier_enregistrerSous.Text = resources.GetString("menuFichier_enregistrerSous.Text");
  • this.menuFichier_enregistrerSous.Visible = ((bool)(resources.GetObject("menuFichier_enregistrerSous.Visible")));
  • this.menuFichier_enregistrerSous.Click += new System.EventHandler(this.menuFichier_enregistrerSous_Click);
  • //
  • // menuFichier_fermer
  • //
  • this.menuFichier_fermer.Enabled = ((bool)(resources.GetObject("menuFichier_fermer.Enabled")));
  • this.menuFichier_fermer.Index = 4;
  • this.menuFichier_fermer.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_fermer.Shortcut")));
  • this.menuFichier_fermer.ShowShortcut = ((bool)(resources.GetObject("menuFichier_fermer.ShowShortcut")));
  • this.menuFichier_fermer.Text = resources.GetString("menuFichier_fermer.Text");
  • this.menuFichier_fermer.Visible = ((bool)(resources.GetObject("menuFichier_fermer.Visible")));
  • this.menuFichier_fermer.Click += new System.EventHandler(this.menuFichier_fermer_Click);
  • //
  • // menuFichier_quitter
  • //
  • this.menuFichier_quitter.Enabled = ((bool)(resources.GetObject("menuFichier_quitter.Enabled")));
  • this.menuFichier_quitter.Index = 5;
  • this.menuFichier_quitter.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_quitter.Shortcut")));
  • this.menuFichier_quitter.ShowShortcut = ((bool)(resources.GetObject("menuFichier_quitter.ShowShortcut")));
  • this.menuFichier_quitter.Text = resources.GetString("menuFichier_quitter.Text");
  • this.menuFichier_quitter.Visible = ((bool)(resources.GetObject("menuFichier_quitter.Visible")));
  • this.menuFichier_quitter.Click += new System.EventHandler(this.menuFichier_quitter_Click);
  • //
  • // menu_edition
  • //
  • this.menu_edition.Enabled = ((bool)(resources.GetObject("menu_edition.Enabled")));
  • this.menu_edition.Index = 1;
  • this.menu_edition.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  • this.menuEdition_copier,
  • this.menuEdition_couper,
  • this.menuEdition_coller,
  • this.menuEdition_annuler,
  • this.menuEdition_retablir});
  • this.menu_edition.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menu_edition.Shortcut")));
  • this.menu_edition.ShowShortcut = ((bool)(resources.GetObject("menu_edition.ShowShortcut")));
  • this.menu_edition.Text = resources.GetString("menu_edition.Text");
  • this.menu_edition.Visible = ((bool)(resources.GetObject("menu_edition.Visible")));
  • //
  • // menuEdition_copier
  • //
  • this.menuEdition_copier.Enabled = ((bool)(resources.GetObject("menuEdition_copier.Enabled")));
  • this.menuEdition_copier.Index = 0;
  • this.menuEdition_copier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_copier.Shortcut")));
  • this.menuEdition_copier.ShowShortcut = ((bool)(resources.GetObject("menuEdition_copier.ShowShortcut")));
  • this.menuEdition_copier.Text = resources.GetString("menuEdition_copier.Text");
  • this.menuEdition_copier.Visible = ((bool)(resources.GetObject("menuEdition_copier.Visible")));
  • this.menuEdition_copier.Click += new System.EventHandler(this.menuEdition_copier_Click);
  • //
  • // menuEdition_couper
  • //
  • this.menuEdition_couper.Enabled = ((bool)(resources.GetObject("menuEdition_couper.Enabled")));
  • this.menuEdition_couper.Index = 1;
  • this.menuEdition_couper.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_couper.Shortcut")));
  • this.menuEdition_couper.ShowShortcut = ((bool)(resources.GetObject("menuEdition_couper.ShowShortcut")));
  • this.menuEdition_couper.Text = resources.GetString("menuEdition_couper.Text");
  • this.menuEdition_couper.Visible = ((bool)(resources.GetObject("menuEdition_couper.Visible")));
  • this.menuEdition_couper.Click += new System.EventHandler(this.menuEdition_couper_Click);
  • //
  • // menuEdition_coller
  • //
  • this.menuEdition_coller.Enabled = ((bool)(resources.GetObject("menuEdition_coller.Enabled")));
  • this.menuEdition_coller.Index = 2;
  • this.menuEdition_coller.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_coller.Shortcut")));
  • this.menuEdition_coller.ShowShortcut = ((bool)(resources.GetObject("menuEdition_coller.ShowShortcut")));
  • this.menuEdition_coller.Text = resources.GetString("menuEdition_coller.Text");
  • this.menuEdition_coller.Visible = ((bool)(resources.GetObject("menuEdition_coller.Visible")));
  • this.menuEdition_coller.Click += new System.EventHandler(this.menuEdition_coller_Click);
  • //
  • // menuEdition_annuler
  • //
  • this.menuEdition_annuler.Enabled = ((bool)(resources.GetObject("menuEdition_annuler.Enabled")));
  • this.menuEdition_annuler.Index = 3;
  • this.menuEdition_annuler.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_annuler.Shortcut")));
  • this.menuEdition_annuler.ShowShortcut = ((bool)(resources.GetObject("menuEdition_annuler.ShowShortcut")));
  • this.menuEdition_annuler.Text = resources.GetString("menuEdition_annuler.Text");
  • this.menuEdition_annuler.Visible = ((bool)(resources.GetObject("menuEdition_annuler.Visible")));
  • this.menuEdition_annuler.Click += new System.EventHandler(this.menuEdition_annuler_Click);
  • //
  • // menuEdition_retablir
  • //
  • this.menuEdition_retablir.Enabled = ((bool)(resources.GetObject("menuEdition_retablir.Enabled")));
  • this.menuEdition_retablir.Index = 4;
  • this.menuEdition_retablir.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_retablir.Shortcut")));
  • this.menuEdition_retablir.ShowShortcut = ((bool)(resources.GetObject("menuEdition_retablir.ShowShortcut")));
  • this.menuEdition_retablir.Text = resources.GetString("menuEdition_retablir.Text");
  • this.menuEdition_retablir.Visible = ((bool)(resources.GetObject("menuEdition_retablir.Visible")));
  • this.menuEdition_retablir.Click += new System.EventHandler(this.menuEdition_retablir_Click);
  • //
  • // menu_format
  • //
  • this.menu_format.Enabled = ((bool)(resources.GetObject("menu_format.Enabled")));
  • this.menu_format.Index = 2;
  • this.menu_format.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  • this.menuFormat_police,
  • this.menuFormat_couleur,
  • this.menuFormat_gras,
  • this.menuFormat_italique,
  • this.menuFormat_souligne});
  • this.menu_format.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menu_format.Shortcut")));
  • this.menu_format.ShowShortcut = ((bool)(resources.GetObject("menu_format.ShowShortcut")));
  • this.menu_format.Text = resources.GetString("menu_format.Text");
  • this.menu_format.Visible = ((bool)(resources.GetObject("menu_format.Visible")));
  • //
  • // menuFormat_police
  • //
  • this.menuFormat_police.Enabled = ((bool)(resources.GetObject("menuFormat_police.Enabled")));
  • this.menuFormat_police.Index = 0;
  • this.menuFormat_police.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_police.Shortcut")));
  • this.menuFormat_police.ShowShortcut = ((bool)(resources.GetObject("menuFormat_police.ShowShortcut")));
  • this.menuFormat_police.Text = resources.GetString("menuFormat_police.Text");
  • this.menuFormat_police.Visible = ((bool)(resources.GetObject("menuFormat_police.Visible")));
  • this.menuFormat_police.Click += new System.EventHandler(this.menuFormat_police_Click);
  • //
  • // menuFormat_couleur
  • //
  • this.menuFormat_couleur.Enabled = ((bool)(resources.GetObject("menuFormat_couleur.Enabled")));
  • this.menuFormat_couleur.Index = 1;
  • this.menuFormat_couleur.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_couleur.Shortcut")));
  • this.menuFormat_couleur.ShowShortcut = ((bool)(resources.GetObject("menuFormat_couleur.ShowShortcut")));
  • this.menuFormat_couleur.Text = resources.GetString("menuFormat_couleur.Text");
  • this.menuFormat_couleur.Visible = ((bool)(resources.GetObject("menuFormat_couleur.Visible")));
  • this.menuFormat_couleur.Click += new System.EventHandler(this.menuFormat_couleur_Click);
  • //
  • // menuFormat_gras
  • //
  • this.menuFormat_gras.Checked = true;
  • this.menuFormat_gras.Enabled = ((bool)(resources.GetObject("menuFormat_gras.Enabled")));
  • this.menuFormat_gras.Index = 2;
  • this.menuFormat_gras.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_gras.Shortcut")));
  • this.menuFormat_gras.ShowShortcut = ((bool)(resources.GetObject("menuFormat_gras.ShowShortcut")));
  • this.menuFormat_gras.Text = resources.GetString("menuFormat_gras.Text");
  • this.menuFormat_gras.Visible = ((bool)(resources.GetObject("menuFormat_gras.Visible")));
  • this.menuFormat_gras.Click += new System.EventHandler(this.menuFormat_gras_Click);
  • //
  • // menuFormat_italique
  • //
  • this.menuFormat_italique.Checked = true;
  • this.menuFormat_italique.Enabled = ((bool)(resources.GetObject("menuFormat_italique.Enabled")));
  • this.menuFormat_italique.Index = 3;
  • this.menuFormat_italique.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_italique.Shortcut")));
  • this.menuFormat_italique.ShowShortcut = ((bool)(resources.GetObject("menuFormat_italique.ShowShortcut")));
  • this.menuFormat_italique.Text = resources.GetString("menuFormat_italique.Text");
  • this.menuFormat_italique.Visible = ((bool)(resources.GetObject("menuFormat_italique.Visible")));
  • this.menuFormat_italique.Click += new System.EventHandler(this.menuFormat_italique_Click);
  • //
  • // menuFormat_souligne
  • //
  • this.menuFormat_souligne.Checked = true;
  • this.menuFormat_souligne.Enabled = ((bool)(resources.GetObject("menuFormat_souligne.Enabled")));
  • this.menuFormat_souligne.Index = 4;
  • this.menuFormat_souligne.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_souligne.Shortcut")));
  • this.menuFormat_souligne.ShowShortcut = ((bool)(resources.GetObject("menuFormat_souligne.ShowShortcut")));
  • this.menuFormat_souligne.Text = resources.GetString("menuFormat_souligne.Text");
  • this.menuFormat_souligne.Visible = ((bool)(resources.GetObject("menuFormat_souligne.Visible")));
  • this.menuFormat_souligne.Click += new System.EventHandler(this.menuFormat_souligne_Click);
  • //
  • // BarreStatus
  • //
  • this.BarreStatus.AccessibleDescription = ((string)(resources.GetObject("BarreStatus.AccessibleDescription")));
  • this.BarreStatus.AccessibleName = ((string)(resources.GetObject("BarreStatus.AccessibleName")));
  • this.BarreStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("BarreStatus.Anchor")));
  • this.BarreStatus.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BarreStatus.BackgroundImage")));
  • this.BarreStatus.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("BarreStatus.Dock")));
  • this.BarreStatus.Enabled = ((bool)(resources.GetObject("BarreStatus.Enabled")));
  • this.BarreStatus.Font = ((System.Drawing.Font)(resources.GetObject("BarreStatus.Font")));
  • this.BarreStatus.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("BarreStatus.ImeMode")));
  • this.BarreStatus.Location = ((System.Drawing.Point)(resources.GetObject("BarreStatus.Location")));
  • this.BarreStatus.Name = "BarreStatus";
  • this.BarreStatus.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("BarreStatus.RightToLeft")));
  • this.BarreStatus.Size = ((System.Drawing.Size)(resources.GetObject("BarreStatus.Size")));
  • this.BarreStatus.TabIndex = ((int)(resources.GetObject("BarreStatus.TabIndex")));
  • this.BarreStatus.Text = resources.GetString("BarreStatus.Text");
  • this.BarreStatus.Visible = ((bool)(resources.GetObject("BarreStatus.Visible")));
  • //
  • // separateur6
  • //
  • this.separateur6.Enabled = ((bool)(resources.GetObject("separateur6.Enabled")));
  • this.separateur6.ImageIndex = ((int)(resources.GetObject("separateur6.ImageIndex")));
  • this.separateur6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
  • this.separateur6.Text = resources.GetString("separateur6.Text");
  • this.separateur6.ToolTipText = resources.GetString("separateur6.ToolTipText");
  • this.separateur6.Visible = ((bool)(resources.GetObject("separateur6.Visible")));
  • //
  • // bt_couleur
  • //
  • this.bt_couleur.Enabled = ((bool)(resources.GetObject("bt_couleur.Enabled")));
  • this.bt_couleur.ImageIndex = ((int)(resources.GetObject("bt_couleur.ImageIndex")));
  • this.bt_couleur.Text = resources.GetString("bt_couleur.Text");
  • this.bt_couleur.ToolTipText = resources.GetString("bt_couleur.ToolTipText");
  • this.bt_couleur.Visible = ((bool)(resources.GetObject("bt_couleur.Visible")));
  • //
  • // fm_principal
  • //
  • this.AccessibleDescription = ((string)(resources.GetObject("$this.AccessibleDescription")));
  • this.AccessibleName = ((string)(resources.GetObject("$this.AccessibleName")));
  • this.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("$this.Anchor")));
  • this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
  • this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
  • this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
  • this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
  • this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
  • this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
  • this.Controls.AddRange(new System.Windows.Forms.Control[] {
  • this.BarreStatus,
  • this.rt_txt,
  • this.ToolBarEditeur});
  • this.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("$this.Dock")));
  • this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
  • this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
  • this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
  • this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  • this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
  • this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
  • this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
  • this.Menu = this.MenuPrincipal;
  • this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
  • this.Name = "fm_principal";
  • this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
  • this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
  • this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
  • this.Text = resources.GetString("$this.Text");
  • this.Visible = ((bool)(resources.GetObject("$this.Visible")));
  • this.Closing += new System.ComponentModel.CancelEventHandler(this.fm_principal_Closing);
  • this.ResumeLayout(false);
  • }
  • #endregion
  • /// <summary>
  • /// Point d'entrée principal de l'application.
  • /// </summary>
  • [STAThread]
  • static void Main()
  • {
  • Application.Run(new fm_principal());
  • }
  • //création de l'énumération des états de l'éditeur
  • enum EtatEditeur {vide,ram,identique,different};
  • EtatEditeur etat;
  • //Variable contenant le nom du fichier
  • private string nomfichier;
  • //Paramètres par défaut
  • bool estGras=false;
  • bool estItalique=false;
  • bool estSouligne=false;
  • float fontSize=10.0F;
  • private void SetFont()
  • {
  • FontStyle fs=FontStyle.Regular;
  • if (estGras)
  • {
  • fs |= FontStyle.Bold;
  • }
  • if (estItalique)
  • {
  • fs |= FontStyle.Italic;
  • }
  • if (estSouligne)
  • {
  • fs |= FontStyle.Underline;
  • }
  • Font font=new Font(rt_txt.Font.FontFamily, fontSize, fs);
  • rt_txt.SelectionFont=font;
  • }
  • private void Nouveau()
  • {
  • if ((etat==EtatEditeur.vide) || (etat==EtatEditeur.identique))
  • {
  • //formatage de la zone de texte
  • rt_txt.Clear();
  • //L'éditeur est mis à l'état "vide"
  • etat=EtatEditeur.vide;
  • //Désactivation des commandes inutiles
  • menuFichier_nouveau.Enabled=false;
  • menuFichier_enregistrer.Enabled=false;
  • menuFichier_enregistrerSous.Enabled=false;
  • menuEdition_copier.Enabled=false;
  • menuEdition_couper.Enabled=false;
  • menuEdition_coller.Enabled=false;
  • menuEdition_annuler.Enabled=false;
  • menuEdition_retablir.Enabled=false;
  • }
  • else
  • {
  • if (MessageBox.Show("Voulez-vous enregistrer avant de fermer le document ?", "ATTENTION !!!", MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes)
  • {
  • if(nomfichier==od_ouvrir.FileName)
  • rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
  • else
  • sd_EnregistrerSous.ShowDialog();
  • Nouveau();
  • }
  • else
  • {
  • //formatage de la zone de texte
  • rt_txt.Clear();
  • //L'éditeur est mis à l'état "vide"
  • etat=EtatEditeur.vide;
  • //desactivation des commandes inutiles
  • menuFichier_nouveau.Enabled=false;
  • menuFichier_enregistrer.Enabled=false;
  • menuFichier_enregistrerSous.Enabled=false;
  • menuEdition_copier.Enabled=false;
  • menuEdition_couper.Enabled=false;
  • menuEdition_coller.Enabled=false;
  • menuEdition_annuler.Enabled=false;
  • menuEdition_retablir.Enabled=false;
  • }
  • }
  • }
  • private void Ouvrir()
  • {
  • od_ouvrir.ShowDialog();
  • }
  • private void alignerGauche()
  • {
  • rt_txt.SelectionAlignment=HorizontalAlignment.Left;
  • bt_gauche.Pushed=true;
  • bt_centre.Pushed=false;
  • bt_droite.Pushed=false;
  • }
  • private void alignerCentre()
  • {
  • rt_txt.SelectionAlignment=HorizontalAlignment.Center;
  • bt_gauche.Pushed=false;
  • bt_centre.Pushed=true;
  • bt_droite.Pushed=false;
  • }
  • private void alignerDroite()
  • {
  • rt_txt.SelectionAlignment=HorizontalAlignment.Right;
  • bt_gauche.Pushed=false;
  • bt_centre.Pushed=false;
  • bt_droite.Pushed=true;
  • }
  • private void EnregistrerSous()
  • {
  • // ouvre la boite de dialogue pour enregistrer le fichier
  • sd_EnregistrerSous.ShowDialog();
  • }
  • private void Enregistrer()
  • {
  • if (nomfichier==od_ouvrir.FileName)
  • rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
  • else
  • {
  • if (sd_EnregistrerSous.ShowDialog()==DialogResult.OK)
  • {
  • rt_txt.SaveFile(sd_EnregistrerSous.FileName,RichTextBoxStreamType.PlainText);
  • nomfichier=sd_EnregistrerSous.FileName;
  • }
  • }
  • menuFichier_enregistrer.Enabled=false;
  • etat=EtatEditeur.identique;
  • }
  • private void Fermer()
  • {
  • if ((etat==EtatEditeur.vide) || (etat==EtatEditeur.identique))
  • Nouveau();
  • else
  • {
  • if (MessageBox.Show("Voulez-vous enregistrer avant de fermer le document ?", "ATTENTION !!!",MessageBoxButtons.YesNo,MessageBoxIcon.Warning)==DialogResult.Yes)
  • {
  • if (nomfichier==od_ouvrir.FileName)
  • rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
  • else
  • sd_EnregistrerSous.ShowDialog();
  • Nouveau();
  • }
  • else
  • {
  • Nouveau();
  • }
  • }
  • }
  • private void Quitter()
  • {
  • if ((etat==EtatEditeur.vide) || (etat==EtatEditeur.identique))
  • Application.Exit();
  • else
  • {
  • if (MessageBox.Show("Voulez-vous enregistrer avant de quitter l'éditeur ?","ATTENTION !!!", MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes)
  • {
  • if (nomfichier==od_ouvrir.FileName)
  • rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
  • else
  • sd_EnregistrerSous.ShowDialog();
  • Application.Exit();
  • }
  • else
  • {
  • Application.Exit();
  • }
  • }
  • }
  • private void Couper()
  • {
  • rt_txt.Cut();
  • }
  • private void Copier()
  • {
  • rt_txt.Copy();
  • }
  • private void Coller()
  • {
  • rt_txt.Paste();
  • }
  • private void Annuler()
  • {
  • rt_txt.Undo();
  • }
  • private void Retablir()
  • {
  • rt_txt.Redo();
  • }
  • private void gras()
  • {
  • estGras = !estGras;
  • menuFormat_gras.Checked = estGras;
  • bt_gras.Pushed = estGras;
  • SetFont();
  • }
  • private void italique()
  • {
  • estItalique = !estItalique;
  • menuFormat_italique.Checked = estItalique;
  • bt_italique.Pushed = estItalique;
  • SetFont();
  • }
  • private void souligne()
  • {
  • estSouligne = !estSouligne;
  • menuFormat_souligne.Checked = estSouligne;
  • bt_souligne.Pushed = estSouligne;
  • SetFont();
  • }
  • private void ToolBarEditeur_ButtonClick (object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
  • {
  • switch (ToolBarEditeur.Buttons.IndexOf(e.Button))
  • {
  • case 0 : Nouveau();
  • break;
  • case 1 : Ouvrir();
  • break;
  • case 2 : Enregistrer();
  • break;
  • case 4 : Couper();
  • break;
  • case 5 : Copier();
  • break;
  • case 6 : Coller();
  • break;
  • case 8 : Annuler();
  • break;
  • case 9 : Retablir();
  • break;
  • case 11 : gras();
  • break;
  • case 12 : italique();
  • break;
  • case 13 : souligne();
  • break;
  • case 15 : alignerGauche();
  • break;
  • case 16 : alignerCentre();
  • break;
  • case 17 : alignerDroite();
  • break;
  • case 19 : menuFormat_couleur_Click(sender, e);
  • break;
  • }
  • }
  • private void menuFichier_nouveau_Click(object sender, System.EventArgs e)
  • {
  • Nouveau();
  • }
  • private void menuFichier_ouvrir_Click(object sender, System.EventArgs e)
  • {
  • Ouvrir();
  • }
  • private void menuFichier_enregistrer_Click(object sender, System.EventArgs e)
  • {
  • Enregistrer();
  • }
  • private void menuFichier_enregistrerSous_Click(object sender, System.EventArgs e)
  • {
  • EnregistrerSous();
  • }
  • private void menuFichier_fermer_Click(object sender, System.EventArgs e)
  • {
  • Fermer();
  • }
  • private void menuFichier_quitter_Click(object sender, System.EventArgs e)
  • {
  • Quitter();
  • }
  • private void menuEdition_copier_Click(object sender, System.EventArgs e)
  • {
  • Copier();
  • }
  • private void menuEdition_couper_Click(object sender, System.EventArgs e)
  • {
  • Couper();
  • }
  • private void menuEdition_coller_Click(object sender, System.EventArgs e)
  • {
  • Coller();
  • }
  • private void menuEdition_annuler_Click(object sender, System.EventArgs e)
  • {
  • Annuler();
  • }
  • private void menuEdition_retablir_Click(object sender, System.EventArgs e)
  • {
  • Retablir();
  • }
  • private void rt_txt_TextChanged(object sender, System.EventArgs e)
  • {
  • //test sur l'état de l'éditeur et mise à jour du nouvel état sur changement
  • switch (etat)
  • {
  • case EtatEditeur.vide:
  • etat=EtatEditeur.ram;
  • menuFichier_nouveau.Enabled=true;
  • menuFichier_enregistrer.Enabled=true;
  • menuFichier_enregistrerSous.Enabled=true;
  • menuFichier_fermer.Enabled=true;
  • menuEdition_copier.Enabled=true;
  • menuEdition_couper.Enabled=true;
  • menuEdition_coller.Enabled=true;
  • menuEdition_annuler.Enabled=true;
  • menuEdition_retablir.Enabled=true;
  • break;
  • case EtatEditeur.identique:
  • etat=EtatEditeur.different;
  • menuFichier_nouveau.Enabled=true;
  • menuFichier_enregistrer.Enabled=true;
  • menuFichier_fermer.Enabled=true;
  • menuEdition_copier.Enabled=true;
  • menuEdition_couper.Enabled=true;
  • menuEdition_coller.Enabled=true;
  • menuEdition_annuler.Enabled=true;
  • menuEdition_retablir.Enabled=true;
  • break;
  • }
  • }
  • private void od_ouvrir_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
  • {
  • rt_txt.LoadFile(od_ouvrir.FileName,RichTextBoxStreamType.PlainText);
  • // si OK, ouvre le fichier selectionné dans la boite de dialogue OUVRIR
  • nomfichier=od_ouvrir.FileName;
  • // on attribue le nom du fichier à la varaible pour effectuer les opérations de test
  • menuFichier_enregistrer.Enabled=false;
  • etat=EtatEditeur.identique;
  • }
  • private void sd_EnregistrerSous_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
  • {
  • rt_txt.SaveFile(sd_EnregistrerSous.FileName,RichTextBoxStreamType.PlainText);
  • //si OK, enregistre le fichier sous le nom que vous lui attribué
  • menuFichier_enregistrer.Enabled=false;
  • etat=EtatEditeur.identique;
  • }
  • private void fm_principal_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  • {
  • Quitter();
  • }
  • private void menuFormat_couleur_Click(object sender, System.EventArgs e)
  • {
  • if(od_color.ShowDialog()==DialogResult.OK)
  • {
  • rt_txt.SelectionColor = od_color.Color;
  • }
  • }
  • private void menuFormat_police_Click(object sender, System.EventArgs e)
  • {
  • if(od_police.ShowDialog()==DialogResult.OK)
  • {
  • rt_txt.SelectionFont = od_police.Font;
  • }
  • }
  • private void menuFormat_gras_Click(object sender, System.EventArgs e)
  • {
  • gras();
  • }
  • private void menuFormat_italique_Click(object sender, System.EventArgs e)
  • {
  • italique();
  • }
  • private void menuFormat_souligne_Click(object sender, System.EventArgs e)
  • {
  • souligne();
  • }
  • }
  • }
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Windows.Forms.Design;

namespace PetitEditeur
{
	/// <summary>
	/// Description résumée de Form1.
	/// </summary>
	public class fm_principal : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MenuItem m_fichier;
		private System.Windows.Forms.MenuItem m_edition;
		private System.Windows.Forms.MenuItem m_apropos;
		private System.Windows.Forms.MenuItem mi_couper;
		private System.Windows.Forms.MenuItem mi_copier;
		private System.Windows.Forms.MenuItem mi_coller;
		private System.Windows.Forms.MenuItem mi_aide;
		private System.Windows.Forms.MenuItem mi_Apropos;
		private System.Windows.Forms.OpenFileDialog od_ouvrir;		
		private System.Windows.Forms.SaveFileDialog sd_EnregistrerSous;
		private System.Windows.Forms.MenuItem mi_annuler;
		private System.Windows.Forms.MenuItem mi_retablir;
		private System.Windows.Forms.ImageList ListeImage;
		private System.Windows.Forms.ToolBar ToolBarEditeur;
		private System.Windows.Forms.ToolBarButton separateur2;
		private System.Windows.Forms.ToolBarButton separateur3;
		private System.Windows.Forms.MenuItem m_format;
		private System.Windows.Forms.MenuItem mi_police;
		private System.Windows.Forms.RichTextBox rt_txt;
		private System.Windows.Forms.MainMenu MenuPrincipal;
		private System.Windows.Forms.MenuItem menu_fichier;
		private System.Windows.Forms.MenuItem menu_edition;
		private System.Windows.Forms.MenuItem menu_format;
		private System.Windows.Forms.MenuItem menuFichier_nouveau;
		private System.Windows.Forms.MenuItem menuFichier_ouvrir;
		private System.Windows.Forms.MenuItem menuFichier_enregistrer;
		private System.Windows.Forms.MenuItem menuFichier_enregistrerSous;
		private System.Windows.Forms.MenuItem menuFichier_fermer;
		private System.Windows.Forms.MenuItem menuFichier_quitter;
		private System.Windows.Forms.MenuItem menuEdition_copier;
		private System.Windows.Forms.MenuItem menuEdition_couper;
		private System.Windows.Forms.MenuItem menuEdition_coller;
		private System.Windows.Forms.MenuItem menuEdition_annuler;
		private System.Windows.Forms.MenuItem menuEdition_retablir;
		private System.Windows.Forms.MenuItem menuFormat_police;
		private System.Windows.Forms.StatusBar BarreStatus;
		private System.Windows.Forms.ToolBarButton separateur4;
		private System.Windows.Forms.ToolBarButton bt_nouveau;
		private System.Windows.Forms.ToolBarButton bt_ouvrir;
		private System.Windows.Forms.ToolBarButton bt_enregistrer;
		private System.Windows.Forms.ToolBarButton bt_couper;
		private System.Windows.Forms.ToolBarButton bt_copier;
		private System.Windows.Forms.ToolBarButton bt_coller;
		private System.Windows.Forms.ToolBarButton b_annuler;
		private System.Windows.Forms.ToolBarButton bt_retablir;
		private System.Windows.Forms.ToolBarButton bt_gras;
		private System.Windows.Forms.ToolBarButton bt_italique;
		private System.Windows.Forms.ColorDialog od_color;
		private System.Windows.Forms.FontDialog od_police;
		private System.Windows.Forms.MenuItem menuFormat_couleur;
		private System.Windows.Forms.MenuItem menuFormat_gras;
		private System.Windows.Forms.MenuItem menuFormat_italique;
		private System.Windows.Forms.MenuItem menuFormat_souligne;
		private System.Windows.Forms.ToolBarButton bt_souligne;
		private System.Windows.Forms.ToolBarButton separateur5;
		private System.Windows.Forms.ToolBarButton bt_gauche;
		private System.Windows.Forms.ToolBarButton bt_centre;
		private System.Windows.Forms.ToolBarButton bt_droite;
		private System.Windows.Forms.ToolBarButton separateur6;
		private System.Windows.Forms.ToolBarButton bt_couleur;
		private System.ComponentModel.IContainer components;
		

		public fm_principal()
		{
			//
			// Requis pour la prise en charge du Concepteur Windows Forms
			//
			InitializeComponent();

			//
			// TODO : ajoutez le code du constructeur après l'appel à InitializeComponent
			//

			etat=EtatEditeur.vide;
			menuFichier_nouveau.Enabled=false;
			menuFichier_enregistrer.Enabled=false;
			menuFichier_enregistrerSous.Enabled=false;
			menuFichier_fermer.Enabled=false;
			menuEdition_copier.Enabled=false;
			menuEdition_couper.Enabled=false;
			menuEdition_coller.Enabled=false;
			menuEdition_annuler.Enabled=false;
			menuEdition_retablir.Enabled=false;
		}

		/// <summary>
		/// Nettoyage des ressources utilisées.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}


		#region Windows Form Designer generated code
		/// <summary>
		/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
		/// le contenu de cette méthode avec l'éditeur de code.
		/// </summary>
		
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(fm_principal));
			this.m_fichier = new System.Windows.Forms.MenuItem();
			this.m_edition = new System.Windows.Forms.MenuItem();
			this.mi_couper = new System.Windows.Forms.MenuItem();
			this.mi_copier = new System.Windows.Forms.MenuItem();
			this.mi_coller = new System.Windows.Forms.MenuItem();
			this.mi_annuler = new System.Windows.Forms.MenuItem();
			this.mi_retablir = new System.Windows.Forms.MenuItem();
			this.m_format = new System.Windows.Forms.MenuItem();
			this.m_apropos = new System.Windows.Forms.MenuItem();
			this.mi_aide = new System.Windows.Forms.MenuItem();
			this.mi_Apropos = new System.Windows.Forms.MenuItem();
			this.od_ouvrir = new System.Windows.Forms.OpenFileDialog();
			this.sd_EnregistrerSous = new System.Windows.Forms.SaveFileDialog();
			this.ToolBarEditeur = new System.Windows.Forms.ToolBar();
			this.bt_nouveau = new System.Windows.Forms.ToolBarButton();
			this.bt_ouvrir = new System.Windows.Forms.ToolBarButton();
			this.bt_enregistrer = new System.Windows.Forms.ToolBarButton();
			this.separateur2 = new System.Windows.Forms.ToolBarButton();
			this.bt_couper = new System.Windows.Forms.ToolBarButton();
			this.bt_copier = new System.Windows.Forms.ToolBarButton();
			this.bt_coller = new System.Windows.Forms.ToolBarButton();
			this.separateur3 = new System.Windows.Forms.ToolBarButton();
			this.b_annuler = new System.Windows.Forms.ToolBarButton();
			this.bt_retablir = new System.Windows.Forms.ToolBarButton();
			this.separateur4 = new System.Windows.Forms.ToolBarButton();
			this.bt_gras = new System.Windows.Forms.ToolBarButton();
			this.bt_italique = new System.Windows.Forms.ToolBarButton();
			this.bt_souligne = new System.Windows.Forms.ToolBarButton();
			this.separateur5 = new System.Windows.Forms.ToolBarButton();
			this.bt_gauche = new System.Windows.Forms.ToolBarButton();
			this.bt_centre = new System.Windows.Forms.ToolBarButton();
			this.bt_droite = new System.Windows.Forms.ToolBarButton();
			this.ListeImage = new System.Windows.Forms.ImageList(this.components);
			this.mi_police = new System.Windows.Forms.MenuItem();
			this.rt_txt = new System.Windows.Forms.RichTextBox();
			this.MenuPrincipal = new System.Windows.Forms.MainMenu();
			this.menu_fichier = new System.Windows.Forms.MenuItem();
			this.menuFichier_nouveau = new System.Windows.Forms.MenuItem();
			this.menuFichier_ouvrir = new System.Windows.Forms.MenuItem();
			this.menuFichier_enregistrer = new System.Windows.Forms.MenuItem();
			this.menuFichier_enregistrerSous = new System.Windows.Forms.MenuItem();
			this.menuFichier_fermer = new System.Windows.Forms.MenuItem();
			this.menuFichier_quitter = new System.Windows.Forms.MenuItem();
			this.menu_edition = new System.Windows.Forms.MenuItem();
			this.menuEdition_copier = new System.Windows.Forms.MenuItem();
			this.menuEdition_couper = new System.Windows.Forms.MenuItem();
			this.menuEdition_coller = new System.Windows.Forms.MenuItem();
			this.menuEdition_annuler = new System.Windows.Forms.MenuItem();
			this.menuEdition_retablir = new System.Windows.Forms.MenuItem();
			this.menu_format = new System.Windows.Forms.MenuItem();
			this.menuFormat_police = new System.Windows.Forms.MenuItem();
			this.menuFormat_couleur = new System.Windows.Forms.MenuItem();
			this.menuFormat_gras = new System.Windows.Forms.MenuItem();
			this.menuFormat_italique = new System.Windows.Forms.MenuItem();
			this.menuFormat_souligne = new System.Windows.Forms.MenuItem();
			this.BarreStatus = new System.Windows.Forms.StatusBar();
			this.od_color = new System.Windows.Forms.ColorDialog();
			this.od_police = new System.Windows.Forms.FontDialog();
			this.separateur6 = new System.Windows.Forms.ToolBarButton();
			this.bt_couleur = new System.Windows.Forms.ToolBarButton();
			this.SuspendLayout();
			// 
			// m_fichier
			// 
			this.m_fichier.Enabled = ((bool)(resources.GetObject("m_fichier.Enabled")));
			this.m_fichier.Index = -1;
			this.m_fichier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_fichier.Shortcut")));
			this.m_fichier.ShowShortcut = ((bool)(resources.GetObject("m_fichier.ShowShortcut")));
			this.m_fichier.Text = resources.GetString("m_fichier.Text");
			this.m_fichier.Visible = ((bool)(resources.GetObject("m_fichier.Visible")));
			// 
			// m_edition
			// 
			this.m_edition.Enabled = ((bool)(resources.GetObject("m_edition.Enabled")));
			this.m_edition.Index = -1;
			this.m_edition.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_edition.Shortcut")));
			this.m_edition.ShowShortcut = ((bool)(resources.GetObject("m_edition.ShowShortcut")));
			this.m_edition.Text = resources.GetString("m_edition.Text");
			this.m_edition.Visible = ((bool)(resources.GetObject("m_edition.Visible")));
			// 
			// mi_couper
			// 
			this.mi_couper.Enabled = ((bool)(resources.GetObject("mi_couper.Enabled")));
			this.mi_couper.Index = -1;
			this.mi_couper.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_couper.Shortcut")));
			this.mi_couper.ShowShortcut = ((bool)(resources.GetObject("mi_couper.ShowShortcut")));
			this.mi_couper.Text = resources.GetString("mi_couper.Text");
			this.mi_couper.Visible = ((bool)(resources.GetObject("mi_couper.Visible")));
			// 
			// mi_copier
			// 
			this.mi_copier.Enabled = ((bool)(resources.GetObject("mi_copier.Enabled")));
			this.mi_copier.Index = -1;
			this.mi_copier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_copier.Shortcut")));
			this.mi_copier.ShowShortcut = ((bool)(resources.GetObject("mi_copier.ShowShortcut")));
			this.mi_copier.Text = resources.GetString("mi_copier.Text");
			this.mi_copier.Visible = ((bool)(resources.GetObject("mi_copier.Visible")));
			// 
			// mi_coller
			// 
			this.mi_coller.Enabled = ((bool)(resources.GetObject("mi_coller.Enabled")));
			this.mi_coller.Index = -1;
			this.mi_coller.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_coller.Shortcut")));
			this.mi_coller.ShowShortcut = ((bool)(resources.GetObject("mi_coller.ShowShortcut")));
			this.mi_coller.Text = resources.GetString("mi_coller.Text");
			this.mi_coller.Visible = ((bool)(resources.GetObject("mi_coller.Visible")));
			// 
			// mi_annuler
			// 
			this.mi_annuler.Enabled = ((bool)(resources.GetObject("mi_annuler.Enabled")));
			this.mi_annuler.Index = -1;
			this.mi_annuler.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_annuler.Shortcut")));
			this.mi_annuler.ShowShortcut = ((bool)(resources.GetObject("mi_annuler.ShowShortcut")));
			this.mi_annuler.Text = resources.GetString("mi_annuler.Text");
			this.mi_annuler.Visible = ((bool)(resources.GetObject("mi_annuler.Visible")));
			// 
			// mi_retablir
			// 
			this.mi_retablir.Enabled = ((bool)(resources.GetObject("mi_retablir.Enabled")));
			this.mi_retablir.Index = -1;
			this.mi_retablir.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_retablir.Shortcut")));
			this.mi_retablir.ShowShortcut = ((bool)(resources.GetObject("mi_retablir.ShowShortcut")));
			this.mi_retablir.Text = resources.GetString("mi_retablir.Text");
			this.mi_retablir.Visible = ((bool)(resources.GetObject("mi_retablir.Visible")));
			// 
			// m_format
			// 
			this.m_format.Enabled = ((bool)(resources.GetObject("m_format.Enabled")));
			this.m_format.Index = -1;
			this.m_format.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_format.Shortcut")));
			this.m_format.ShowShortcut = ((bool)(resources.GetObject("m_format.ShowShortcut")));
			this.m_format.Text = resources.GetString("m_format.Text");
			this.m_format.Visible = ((bool)(resources.GetObject("m_format.Visible")));
			// 
			// m_apropos
			// 
			this.m_apropos.Enabled = ((bool)(resources.GetObject("m_apropos.Enabled")));
			this.m_apropos.Index = -1;
			this.m_apropos.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("m_apropos.Shortcut")));
			this.m_apropos.ShowShortcut = ((bool)(resources.GetObject("m_apropos.ShowShortcut")));
			this.m_apropos.Text = resources.GetString("m_apropos.Text");
			this.m_apropos.Visible = ((bool)(resources.GetObject("m_apropos.Visible")));
			// 
			// mi_aide
			// 
			this.mi_aide.Enabled = ((bool)(resources.GetObject("mi_aide.Enabled")));
			this.mi_aide.Index = -1;
			this.mi_aide.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_aide.Shortcut")));
			this.mi_aide.ShowShortcut = ((bool)(resources.GetObject("mi_aide.ShowShortcut")));
			this.mi_aide.Text = resources.GetString("mi_aide.Text");
			this.mi_aide.Visible = ((bool)(resources.GetObject("mi_aide.Visible")));
			// 
			// mi_Apropos
			// 
			this.mi_Apropos.Enabled = ((bool)(resources.GetObject("mi_Apropos.Enabled")));
			this.mi_Apropos.Index = -1;
			this.mi_Apropos.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_Apropos.Shortcut")));
			this.mi_Apropos.ShowShortcut = ((bool)(resources.GetObject("mi_Apropos.ShowShortcut")));
			this.mi_Apropos.Text = resources.GetString("mi_Apropos.Text");
			this.mi_Apropos.Visible = ((bool)(resources.GetObject("mi_Apropos.Visible")));
			// 
			// od_ouvrir
			// 
			this.od_ouvrir.Filter = resources.GetString("od_ouvrir.Filter");
			this.od_ouvrir.Title = resources.GetString("od_ouvrir.Title");
			this.od_ouvrir.FileOk += new System.ComponentModel.CancelEventHandler(this.od_ouvrir_FileOk);
			// 
			// sd_EnregistrerSous
			// 
			this.sd_EnregistrerSous.Filter = resources.GetString("sd_EnregistrerSous.Filter");
			this.sd_EnregistrerSous.Title = resources.GetString("sd_EnregistrerSous.Title");
			this.sd_EnregistrerSous.FileOk += new System.ComponentModel.CancelEventHandler(this.sd_EnregistrerSous_FileOk);
			// 
			// ToolBarEditeur
			// 
			this.ToolBarEditeur.AccessibleDescription = ((string)(resources.GetObject("ToolBarEditeur.AccessibleDescription")));
			this.ToolBarEditeur.AccessibleName = ((string)(resources.GetObject("ToolBarEditeur.AccessibleName")));
			this.ToolBarEditeur.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("ToolBarEditeur.Anchor")));
			this.ToolBarEditeur.Appearance = ((System.Windows.Forms.ToolBarAppearance)(resources.GetObject("ToolBarEditeur.Appearance")));
			this.ToolBarEditeur.AutoSize = ((bool)(resources.GetObject("ToolBarEditeur.AutoSize")));
			this.ToolBarEditeur.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ToolBarEditeur.BackgroundImage")));
			this.ToolBarEditeur.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.ToolBarEditeur.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																							  this.bt_nouveau,
																							  this.bt_ouvrir,
																							  this.bt_enregistrer,
																							  this.separateur2,
																							  this.bt_couper,
																							  this.bt_copier,
																							  this.bt_coller,
																							  this.separateur3,
																							  this.b_annuler,
																							  this.bt_retablir,
																							  this.separateur4,
																							  this.bt_gras,
																							  this.bt_italique,
																							  this.bt_souligne,
																							  this.separateur5,
																							  this.bt_gauche,
																							  this.bt_centre,
																							  this.bt_droite,
																							  this.separateur6,
																							  this.bt_couleur});
			this.ToolBarEditeur.ButtonSize = ((System.Drawing.Size)(resources.GetObject("ToolBarEditeur.ButtonSize")));
			this.ToolBarEditeur.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("ToolBarEditeur.Dock")));
			this.ToolBarEditeur.DropDownArrows = ((bool)(resources.GetObject("ToolBarEditeur.DropDownArrows")));
			this.ToolBarEditeur.Enabled = ((bool)(resources.GetObject("ToolBarEditeur.Enabled")));
			this.ToolBarEditeur.Font = ((System.Drawing.Font)(resources.GetObject("ToolBarEditeur.Font")));
			this.ToolBarEditeur.ImageList = this.ListeImage;
			this.ToolBarEditeur.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("ToolBarEditeur.ImeMode")));
			this.ToolBarEditeur.Location = ((System.Drawing.Point)(resources.GetObject("ToolBarEditeur.Location")));
			this.ToolBarEditeur.Name = "ToolBarEditeur";
			this.ToolBarEditeur.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("ToolBarEditeur.RightToLeft")));
			this.ToolBarEditeur.ShowToolTips = ((bool)(resources.GetObject("ToolBarEditeur.ShowToolTips")));
			this.ToolBarEditeur.Size = ((System.Drawing.Size)(resources.GetObject("ToolBarEditeur.Size")));
			this.ToolBarEditeur.TabIndex = ((int)(resources.GetObject("ToolBarEditeur.TabIndex")));
			this.ToolBarEditeur.TextAlign = ((System.Windows.Forms.ToolBarTextAlign)(resources.GetObject("ToolBarEditeur.TextAlign")));
			this.ToolBarEditeur.Visible = ((bool)(resources.GetObject("ToolBarEditeur.Visible")));
			this.ToolBarEditeur.Wrappable = ((bool)(resources.GetObject("ToolBarEditeur.Wrappable")));
			this.ToolBarEditeur.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.ToolBarEditeur_ButtonClick);
			// 
			// bt_nouveau
			// 
			this.bt_nouveau.Enabled = ((bool)(resources.GetObject("bt_nouveau.Enabled")));
			this.bt_nouveau.ImageIndex = ((int)(resources.GetObject("bt_nouveau.ImageIndex")));
			this.bt_nouveau.Text = resources.GetString("bt_nouveau.Text");
			this.bt_nouveau.ToolTipText = resources.GetString("bt_nouveau.ToolTipText");
			this.bt_nouveau.Visible = ((bool)(resources.GetObject("bt_nouveau.Visible")));
			// 
			// bt_ouvrir
			// 
			this.bt_ouvrir.Enabled = ((bool)(resources.GetObject("bt_ouvrir.Enabled")));
			this.bt_ouvrir.ImageIndex = ((int)(resources.GetObject("bt_ouvrir.ImageIndex")));
			this.bt_ouvrir.Text = resources.GetString("bt_ouvrir.Text");
			this.bt_ouvrir.ToolTipText = resources.GetString("bt_ouvrir.ToolTipText");
			this.bt_ouvrir.Visible = ((bool)(resources.GetObject("bt_ouvrir.Visible")));
			// 
			// bt_enregistrer
			// 
			this.bt_enregistrer.Enabled = ((bool)(resources.GetObject("bt_enregistrer.Enabled")));
			this.bt_enregistrer.ImageIndex = ((int)(resources.GetObject("bt_enregistrer.ImageIndex")));
			this.bt_enregistrer.Text = resources.GetString("bt_enregistrer.Text");
			this.bt_enregistrer.ToolTipText = resources.GetString("bt_enregistrer.ToolTipText");
			this.bt_enregistrer.Visible = ((bool)(resources.GetObject("bt_enregistrer.Visible")));
			// 
			// separateur2
			// 
			this.separateur2.Enabled = ((bool)(resources.GetObject("separateur2.Enabled")));
			this.separateur2.ImageIndex = ((int)(resources.GetObject("separateur2.ImageIndex")));
			this.separateur2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			this.separateur2.Text = resources.GetString("separateur2.Text");
			this.separateur2.ToolTipText = resources.GetString("separateur2.ToolTipText");
			this.separateur2.Visible = ((bool)(resources.GetObject("separateur2.Visible")));
			// 
			// bt_couper
			// 
			this.bt_couper.Enabled = ((bool)(resources.GetObject("bt_couper.Enabled")));
			this.bt_couper.ImageIndex = ((int)(resources.GetObject("bt_couper.ImageIndex")));
			this.bt_couper.Text = resources.GetString("bt_couper.Text");
			this.bt_couper.ToolTipText = resources.GetString("bt_couper.ToolTipText");
			this.bt_couper.Visible = ((bool)(resources.GetObject("bt_couper.Visible")));
			// 
			// bt_copier
			// 
			this.bt_copier.Enabled = ((bool)(resources.GetObject("bt_copier.Enabled")));
			this.bt_copier.ImageIndex = ((int)(resources.GetObject("bt_copier.ImageIndex")));
			this.bt_copier.Text = resources.GetString("bt_copier.Text");
			this.bt_copier.ToolTipText = resources.GetString("bt_copier.ToolTipText");
			this.bt_copier.Visible = ((bool)(resources.GetObject("bt_copier.Visible")));
			// 
			// bt_coller
			// 
			this.bt_coller.Enabled = ((bool)(resources.GetObject("bt_coller.Enabled")));
			this.bt_coller.ImageIndex = ((int)(resources.GetObject("bt_coller.ImageIndex")));
			this.bt_coller.Text = resources.GetString("bt_coller.Text");
			this.bt_coller.ToolTipText = resources.GetString("bt_coller.ToolTipText");
			this.bt_coller.Visible = ((bool)(resources.GetObject("bt_coller.Visible")));
			// 
			// separateur3
			// 
			this.separateur3.Enabled = ((bool)(resources.GetObject("separateur3.Enabled")));
			this.separateur3.ImageIndex = ((int)(resources.GetObject("separateur3.ImageIndex")));
			this.separateur3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			this.separateur3.Text = resources.GetString("separateur3.Text");
			this.separateur3.ToolTipText = resources.GetString("separateur3.ToolTipText");
			this.separateur3.Visible = ((bool)(resources.GetObject("separateur3.Visible")));
			// 
			// b_annuler
			// 
			this.b_annuler.Enabled = ((bool)(resources.GetObject("b_annuler.Enabled")));
			this.b_annuler.ImageIndex = ((int)(resources.GetObject("b_annuler.ImageIndex")));
			this.b_annuler.Text = resources.GetString("b_annuler.Text");
			this.b_annuler.ToolTipText = resources.GetString("b_annuler.ToolTipText");
			this.b_annuler.Visible = ((bool)(resources.GetObject("b_annuler.Visible")));
			// 
			// bt_retablir
			// 
			this.bt_retablir.Enabled = ((bool)(resources.GetObject("bt_retablir.Enabled")));
			this.bt_retablir.ImageIndex = ((int)(resources.GetObject("bt_retablir.ImageIndex")));
			this.bt_retablir.Text = resources.GetString("bt_retablir.Text");
			this.bt_retablir.ToolTipText = resources.GetString("bt_retablir.ToolTipText");
			this.bt_retablir.Visible = ((bool)(resources.GetObject("bt_retablir.Visible")));
			// 
			// separateur4
			// 
			this.separateur4.Enabled = ((bool)(resources.GetObject("separateur4.Enabled")));
			this.separateur4.ImageIndex = ((int)(resources.GetObject("separateur4.ImageIndex")));
			this.separateur4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			this.separateur4.Text = resources.GetString("separateur4.Text");
			this.separateur4.ToolTipText = resources.GetString("separateur4.ToolTipText");
			this.separateur4.Visible = ((bool)(resources.GetObject("separateur4.Visible")));
			// 
			// bt_gras
			// 
			this.bt_gras.Enabled = ((bool)(resources.GetObject("bt_gras.Enabled")));
			this.bt_gras.ImageIndex = ((int)(resources.GetObject("bt_gras.ImageIndex")));
			this.bt_gras.Text = resources.GetString("bt_gras.Text");
			this.bt_gras.ToolTipText = resources.GetString("bt_gras.ToolTipText");
			this.bt_gras.Visible = ((bool)(resources.GetObject("bt_gras.Visible")));
			// 
			// bt_italique
			// 
			this.bt_italique.Enabled = ((bool)(resources.GetObject("bt_italique.Enabled")));
			this.bt_italique.ImageIndex = ((int)(resources.GetObject("bt_italique.ImageIndex")));
			this.bt_italique.Text = resources.GetString("bt_italique.Text");
			this.bt_italique.ToolTipText = resources.GetString("bt_italique.ToolTipText");
			this.bt_italique.Visible = ((bool)(resources.GetObject("bt_italique.Visible")));
			// 
			// bt_souligne
			// 
			this.bt_souligne.Enabled = ((bool)(resources.GetObject("bt_souligne.Enabled")));
			this.bt_souligne.ImageIndex = ((int)(resources.GetObject("bt_souligne.ImageIndex")));
			this.bt_souligne.Text = resources.GetString("bt_souligne.Text");
			this.bt_souligne.ToolTipText = resources.GetString("bt_souligne.ToolTipText");
			this.bt_souligne.Visible = ((bool)(resources.GetObject("bt_souligne.Visible")));
			// 
			// separateur5
			// 
			this.separateur5.Enabled = ((bool)(resources.GetObject("separateur5.Enabled")));
			this.separateur5.ImageIndex = ((int)(resources.GetObject("separateur5.ImageIndex")));
			this.separateur5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			this.separateur5.Text = resources.GetString("separateur5.Text");
			this.separateur5.ToolTipText = resources.GetString("separateur5.ToolTipText");
			this.separateur5.Visible = ((bool)(resources.GetObject("separateur5.Visible")));
			// 
			// bt_gauche
			// 
			this.bt_gauche.Enabled = ((bool)(resources.GetObject("bt_gauche.Enabled")));
			this.bt_gauche.ImageIndex = ((int)(resources.GetObject("bt_gauche.ImageIndex")));
			this.bt_gauche.Text = resources.GetString("bt_gauche.Text");
			this.bt_gauche.ToolTipText = resources.GetString("bt_gauche.ToolTipText");
			this.bt_gauche.Visible = ((bool)(resources.GetObject("bt_gauche.Visible")));
			// 
			// bt_centre
			// 
			this.bt_centre.Enabled = ((bool)(resources.GetObject("bt_centre.Enabled")));
			this.bt_centre.ImageIndex = ((int)(resources.GetObject("bt_centre.ImageIndex")));
			this.bt_centre.Text = resources.GetString("bt_centre.Text");
			this.bt_centre.ToolTipText = resources.GetString("bt_centre.ToolTipText");
			this.bt_centre.Visible = ((bool)(resources.GetObject("bt_centre.Visible")));
			// 
			// bt_droite
			// 
			this.bt_droite.Enabled = ((bool)(resources.GetObject("bt_droite.Enabled")));
			this.bt_droite.ImageIndex = ((int)(resources.GetObject("bt_droite.ImageIndex")));
			this.bt_droite.Text = resources.GetString("bt_droite.Text");
			this.bt_droite.ToolTipText = resources.GetString("bt_droite.ToolTipText");
			this.bt_droite.Visible = ((bool)(resources.GetObject("bt_droite.Visible")));
			// 
			// ListeImage
			// 
			this.ListeImage.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
			this.ListeImage.ImageSize = ((System.Drawing.Size)(resources.GetObject("ListeImage.ImageSize")));
			this.ListeImage.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ListeImage.ImageStream")));
			this.ListeImage.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// mi_police
			// 
			this.mi_police.Enabled = ((bool)(resources.GetObject("mi_police.Enabled")));
			this.mi_police.Index = -1;
			this.mi_police.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mi_police.Shortcut")));
			this.mi_police.ShowShortcut = ((bool)(resources.GetObject("mi_police.ShowShortcut")));
			this.mi_police.Text = resources.GetString("mi_police.Text");
			this.mi_police.Visible = ((bool)(resources.GetObject("mi_police.Visible")));
			// 
			// rt_txt
			// 
			this.rt_txt.AccessibleDescription = ((string)(resources.GetObject("rt_txt.AccessibleDescription")));
			this.rt_txt.AccessibleName = ((string)(resources.GetObject("rt_txt.AccessibleName")));
			this.rt_txt.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("rt_txt.Anchor")));
			this.rt_txt.AutoSize = ((bool)(resources.GetObject("rt_txt.AutoSize")));
			this.rt_txt.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("rt_txt.BackgroundImage")));
			this.rt_txt.BulletIndent = ((int)(resources.GetObject("rt_txt.BulletIndent")));
			this.rt_txt.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("rt_txt.Dock")));
			this.rt_txt.Enabled = ((bool)(resources.GetObject("rt_txt.Enabled")));
			this.rt_txt.Font = ((System.Drawing.Font)(resources.GetObject("rt_txt.Font")));
			this.rt_txt.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("rt_txt.ImeMode")));
			this.rt_txt.Location = ((System.Drawing.Point)(resources.GetObject("rt_txt.Location")));
			this.rt_txt.MaxLength = ((int)(resources.GetObject("rt_txt.MaxLength")));
			this.rt_txt.Multiline = ((bool)(resources.GetObject("rt_txt.Multiline")));
			this.rt_txt.Name = "rt_txt";
			this.rt_txt.RightMargin = ((int)(resources.GetObject("rt_txt.RightMargin")));
			this.rt_txt.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("rt_txt.RightToLeft")));
			this.rt_txt.ScrollBars = ((System.Windows.Forms.RichTextBoxScrollBars)(resources.GetObject("rt_txt.ScrollBars")));
			this.rt_txt.Size = ((System.Drawing.Size)(resources.GetObject("rt_txt.Size")));
			this.rt_txt.TabIndex = ((int)(resources.GetObject("rt_txt.TabIndex")));
			this.rt_txt.Text = resources.GetString("rt_txt.Text");
			this.rt_txt.Visible = ((bool)(resources.GetObject("rt_txt.Visible")));
			this.rt_txt.WordWrap = ((bool)(resources.GetObject("rt_txt.WordWrap")));
			this.rt_txt.ZoomFactor = ((System.Single)(resources.GetObject("rt_txt.ZoomFactor")));
			this.rt_txt.TextChanged += new System.EventHandler(this.rt_txt_TextChanged);
			// 
			// MenuPrincipal
			// 
			this.MenuPrincipal.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						  this.menu_fichier,
																						  this.menu_edition,
																						  this.menu_format});
			this.MenuPrincipal.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("MenuPrincipal.RightToLeft")));
			// 
			// menu_fichier
			// 
			this.menu_fichier.Enabled = ((bool)(resources.GetObject("menu_fichier.Enabled")));
			this.menu_fichier.Index = 0;
			this.menu_fichier.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.menuFichier_nouveau,
																						 this.menuFichier_ouvrir,
																						 this.menuFichier_enregistrer,
																						 this.menuFichier_enregistrerSous,
																						 this.menuFichier_fermer,
																						 this.menuFichier_quitter});
			this.menu_fichier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menu_fichier.Shortcut")));
			this.menu_fichier.ShowShortcut = ((bool)(resources.GetObject("menu_fichier.ShowShortcut")));
			this.menu_fichier.Text = resources.GetString("menu_fichier.Text");
			this.menu_fichier.Visible = ((bool)(resources.GetObject("menu_fichier.Visible")));
			// 
			// menuFichier_nouveau
			// 
			this.menuFichier_nouveau.Enabled = ((bool)(resources.GetObject("menuFichier_nouveau.Enabled")));
			this.menuFichier_nouveau.Index = 0;
			this.menuFichier_nouveau.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_nouveau.Shortcut")));
			this.menuFichier_nouveau.ShowShortcut = ((bool)(resources.GetObject("menuFichier_nouveau.ShowShortcut")));
			this.menuFichier_nouveau.Text = resources.GetString("menuFichier_nouveau.Text");
			this.menuFichier_nouveau.Visible = ((bool)(resources.GetObject("menuFichier_nouveau.Visible")));
			this.menuFichier_nouveau.Click += new System.EventHandler(this.menuFichier_nouveau_Click);
			// 
			// menuFichier_ouvrir
			// 
			this.menuFichier_ouvrir.Enabled = ((bool)(resources.GetObject("menuFichier_ouvrir.Enabled")));
			this.menuFichier_ouvrir.Index = 1;
			this.menuFichier_ouvrir.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_ouvrir.Shortcut")));
			this.menuFichier_ouvrir.ShowShortcut = ((bool)(resources.GetObject("menuFichier_ouvrir.ShowShortcut")));
			this.menuFichier_ouvrir.Text = resources.GetString("menuFichier_ouvrir.Text");
			this.menuFichier_ouvrir.Visible = ((bool)(resources.GetObject("menuFichier_ouvrir.Visible")));
			this.menuFichier_ouvrir.Click += new System.EventHandler(this.menuFichier_ouvrir_Click);
			// 
			// menuFichier_enregistrer
			// 
			this.menuFichier_enregistrer.Enabled = ((bool)(resources.GetObject("menuFichier_enregistrer.Enabled")));
			this.menuFichier_enregistrer.Index = 2;
			this.menuFichier_enregistrer.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_enregistrer.Shortcut")));
			this.menuFichier_enregistrer.ShowShortcut = ((bool)(resources.GetObject("menuFichier_enregistrer.ShowShortcut")));
			this.menuFichier_enregistrer.Text = resources.GetString("menuFichier_enregistrer.Text");
			this.menuFichier_enregistrer.Visible = ((bool)(resources.GetObject("menuFichier_enregistrer.Visible")));
			this.menuFichier_enregistrer.Click += new System.EventHandler(this.menuFichier_enregistrer_Click);
			// 
			// menuFichier_enregistrerSous
			// 
			this.menuFichier_enregistrerSous.Enabled = ((bool)(resources.GetObject("menuFichier_enregistrerSous.Enabled")));
			this.menuFichier_enregistrerSous.Index = 3;
			this.menuFichier_enregistrerSous.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_enregistrerSous.Shortcut")));
			this.menuFichier_enregistrerSous.ShowShortcut = ((bool)(resources.GetObject("menuFichier_enregistrerSous.ShowShortcut")));
			this.menuFichier_enregistrerSous.Text = resources.GetString("menuFichier_enregistrerSous.Text");
			this.menuFichier_enregistrerSous.Visible = ((bool)(resources.GetObject("menuFichier_enregistrerSous.Visible")));
			this.menuFichier_enregistrerSous.Click += new System.EventHandler(this.menuFichier_enregistrerSous_Click);
			// 
			// menuFichier_fermer
			// 
			this.menuFichier_fermer.Enabled = ((bool)(resources.GetObject("menuFichier_fermer.Enabled")));
			this.menuFichier_fermer.Index = 4;
			this.menuFichier_fermer.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_fermer.Shortcut")));
			this.menuFichier_fermer.ShowShortcut = ((bool)(resources.GetObject("menuFichier_fermer.ShowShortcut")));
			this.menuFichier_fermer.Text = resources.GetString("menuFichier_fermer.Text");
			this.menuFichier_fermer.Visible = ((bool)(resources.GetObject("menuFichier_fermer.Visible")));
			this.menuFichier_fermer.Click += new System.EventHandler(this.menuFichier_fermer_Click);
			// 
			// menuFichier_quitter
			// 
			this.menuFichier_quitter.Enabled = ((bool)(resources.GetObject("menuFichier_quitter.Enabled")));
			this.menuFichier_quitter.Index = 5;
			this.menuFichier_quitter.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFichier_quitter.Shortcut")));
			this.menuFichier_quitter.ShowShortcut = ((bool)(resources.GetObject("menuFichier_quitter.ShowShortcut")));
			this.menuFichier_quitter.Text = resources.GetString("menuFichier_quitter.Text");
			this.menuFichier_quitter.Visible = ((bool)(resources.GetObject("menuFichier_quitter.Visible")));
			this.menuFichier_quitter.Click += new System.EventHandler(this.menuFichier_quitter_Click);
			// 
			// menu_edition
			// 
			this.menu_edition.Enabled = ((bool)(resources.GetObject("menu_edition.Enabled")));
			this.menu_edition.Index = 1;
			this.menu_edition.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.menuEdition_copier,
																						 this.menuEdition_couper,
																						 this.menuEdition_coller,
																						 this.menuEdition_annuler,
																						 this.menuEdition_retablir});
			this.menu_edition.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menu_edition.Shortcut")));
			this.menu_edition.ShowShortcut = ((bool)(resources.GetObject("menu_edition.ShowShortcut")));
			this.menu_edition.Text = resources.GetString("menu_edition.Text");
			this.menu_edition.Visible = ((bool)(resources.GetObject("menu_edition.Visible")));
			// 
			// menuEdition_copier
			// 
			this.menuEdition_copier.Enabled = ((bool)(resources.GetObject("menuEdition_copier.Enabled")));
			this.menuEdition_copier.Index = 0;
			this.menuEdition_copier.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_copier.Shortcut")));
			this.menuEdition_copier.ShowShortcut = ((bool)(resources.GetObject("menuEdition_copier.ShowShortcut")));
			this.menuEdition_copier.Text = resources.GetString("menuEdition_copier.Text");
			this.menuEdition_copier.Visible = ((bool)(resources.GetObject("menuEdition_copier.Visible")));
			this.menuEdition_copier.Click += new System.EventHandler(this.menuEdition_copier_Click);
			// 
			// menuEdition_couper
			// 
			this.menuEdition_couper.Enabled = ((bool)(resources.GetObject("menuEdition_couper.Enabled")));
			this.menuEdition_couper.Index = 1;
			this.menuEdition_couper.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_couper.Shortcut")));
			this.menuEdition_couper.ShowShortcut = ((bool)(resources.GetObject("menuEdition_couper.ShowShortcut")));
			this.menuEdition_couper.Text = resources.GetString("menuEdition_couper.Text");
			this.menuEdition_couper.Visible = ((bool)(resources.GetObject("menuEdition_couper.Visible")));
			this.menuEdition_couper.Click += new System.EventHandler(this.menuEdition_couper_Click);
			// 
			// menuEdition_coller
			// 
			this.menuEdition_coller.Enabled = ((bool)(resources.GetObject("menuEdition_coller.Enabled")));
			this.menuEdition_coller.Index = 2;
			this.menuEdition_coller.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_coller.Shortcut")));
			this.menuEdition_coller.ShowShortcut = ((bool)(resources.GetObject("menuEdition_coller.ShowShortcut")));
			this.menuEdition_coller.Text = resources.GetString("menuEdition_coller.Text");
			this.menuEdition_coller.Visible = ((bool)(resources.GetObject("menuEdition_coller.Visible")));
			this.menuEdition_coller.Click += new System.EventHandler(this.menuEdition_coller_Click);
			// 
			// menuEdition_annuler
			// 
			this.menuEdition_annuler.Enabled = ((bool)(resources.GetObject("menuEdition_annuler.Enabled")));
			this.menuEdition_annuler.Index = 3;
			this.menuEdition_annuler.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_annuler.Shortcut")));
			this.menuEdition_annuler.ShowShortcut = ((bool)(resources.GetObject("menuEdition_annuler.ShowShortcut")));
			this.menuEdition_annuler.Text = resources.GetString("menuEdition_annuler.Text");
			this.menuEdition_annuler.Visible = ((bool)(resources.GetObject("menuEdition_annuler.Visible")));
			this.menuEdition_annuler.Click += new System.EventHandler(this.menuEdition_annuler_Click);
			// 
			// menuEdition_retablir
			// 
			this.menuEdition_retablir.Enabled = ((bool)(resources.GetObject("menuEdition_retablir.Enabled")));
			this.menuEdition_retablir.Index = 4;
			this.menuEdition_retablir.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuEdition_retablir.Shortcut")));
			this.menuEdition_retablir.ShowShortcut = ((bool)(resources.GetObject("menuEdition_retablir.ShowShortcut")));
			this.menuEdition_retablir.Text = resources.GetString("menuEdition_retablir.Text");
			this.menuEdition_retablir.Visible = ((bool)(resources.GetObject("menuEdition_retablir.Visible")));
			this.menuEdition_retablir.Click += new System.EventHandler(this.menuEdition_retablir_Click);
			// 
			// menu_format
			// 
			this.menu_format.Enabled = ((bool)(resources.GetObject("menu_format.Enabled")));
			this.menu_format.Index = 2;
			this.menu_format.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.menuFormat_police,
																						this.menuFormat_couleur,
																						this.menuFormat_gras,
																						this.menuFormat_italique,
																						this.menuFormat_souligne});
			this.menu_format.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menu_format.Shortcut")));
			this.menu_format.ShowShortcut = ((bool)(resources.GetObject("menu_format.ShowShortcut")));
			this.menu_format.Text = resources.GetString("menu_format.Text");
			this.menu_format.Visible = ((bool)(resources.GetObject("menu_format.Visible")));
			// 
			// menuFormat_police
			// 
			this.menuFormat_police.Enabled = ((bool)(resources.GetObject("menuFormat_police.Enabled")));
			this.menuFormat_police.Index = 0;
			this.menuFormat_police.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_police.Shortcut")));
			this.menuFormat_police.ShowShortcut = ((bool)(resources.GetObject("menuFormat_police.ShowShortcut")));
			this.menuFormat_police.Text = resources.GetString("menuFormat_police.Text");
			this.menuFormat_police.Visible = ((bool)(resources.GetObject("menuFormat_police.Visible")));
			this.menuFormat_police.Click += new System.EventHandler(this.menuFormat_police_Click);
			// 
			// menuFormat_couleur
			// 
			this.menuFormat_couleur.Enabled = ((bool)(resources.GetObject("menuFormat_couleur.Enabled")));
			this.menuFormat_couleur.Index = 1;
			this.menuFormat_couleur.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_couleur.Shortcut")));
			this.menuFormat_couleur.ShowShortcut = ((bool)(resources.GetObject("menuFormat_couleur.ShowShortcut")));
			this.menuFormat_couleur.Text = resources.GetString("menuFormat_couleur.Text");
			this.menuFormat_couleur.Visible = ((bool)(resources.GetObject("menuFormat_couleur.Visible")));
			this.menuFormat_couleur.Click += new System.EventHandler(this.menuFormat_couleur_Click);
			// 
			// menuFormat_gras
			// 
			this.menuFormat_gras.Checked = true;
			this.menuFormat_gras.Enabled = ((bool)(resources.GetObject("menuFormat_gras.Enabled")));
			this.menuFormat_gras.Index = 2;
			this.menuFormat_gras.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_gras.Shortcut")));
			this.menuFormat_gras.ShowShortcut = ((bool)(resources.GetObject("menuFormat_gras.ShowShortcut")));
			this.menuFormat_gras.Text = resources.GetString("menuFormat_gras.Text");
			this.menuFormat_gras.Visible = ((bool)(resources.GetObject("menuFormat_gras.Visible")));
			this.menuFormat_gras.Click += new System.EventHandler(this.menuFormat_gras_Click);
			// 
			// menuFormat_italique
			// 
			this.menuFormat_italique.Checked = true;
			this.menuFormat_italique.Enabled = ((bool)(resources.GetObject("menuFormat_italique.Enabled")));
			this.menuFormat_italique.Index = 3;
			this.menuFormat_italique.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_italique.Shortcut")));
			this.menuFormat_italique.ShowShortcut = ((bool)(resources.GetObject("menuFormat_italique.ShowShortcut")));
			this.menuFormat_italique.Text = resources.GetString("menuFormat_italique.Text");
			this.menuFormat_italique.Visible = ((bool)(resources.GetObject("menuFormat_italique.Visible")));
			this.menuFormat_italique.Click += new System.EventHandler(this.menuFormat_italique_Click);
			// 
			// menuFormat_souligne
			// 
			this.menuFormat_souligne.Checked = true;
			this.menuFormat_souligne.Enabled = ((bool)(resources.GetObject("menuFormat_souligne.Enabled")));
			this.menuFormat_souligne.Index = 4;
			this.menuFormat_souligne.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuFormat_souligne.Shortcut")));
			this.menuFormat_souligne.ShowShortcut = ((bool)(resources.GetObject("menuFormat_souligne.ShowShortcut")));
			this.menuFormat_souligne.Text = resources.GetString("menuFormat_souligne.Text");
			this.menuFormat_souligne.Visible = ((bool)(resources.GetObject("menuFormat_souligne.Visible")));
			this.menuFormat_souligne.Click += new System.EventHandler(this.menuFormat_souligne_Click);
			// 
			// BarreStatus
			// 
			this.BarreStatus.AccessibleDescription = ((string)(resources.GetObject("BarreStatus.AccessibleDescription")));
			this.BarreStatus.AccessibleName = ((string)(resources.GetObject("BarreStatus.AccessibleName")));
			this.BarreStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("BarreStatus.Anchor")));
			this.BarreStatus.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BarreStatus.BackgroundImage")));
			this.BarreStatus.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("BarreStatus.Dock")));
			this.BarreStatus.Enabled = ((bool)(resources.GetObject("BarreStatus.Enabled")));
			this.BarreStatus.Font = ((System.Drawing.Font)(resources.GetObject("BarreStatus.Font")));
			this.BarreStatus.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("BarreStatus.ImeMode")));
			this.BarreStatus.Location = ((System.Drawing.Point)(resources.GetObject("BarreStatus.Location")));
			this.BarreStatus.Name = "BarreStatus";
			this.BarreStatus.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("BarreStatus.RightToLeft")));
			this.BarreStatus.Size = ((System.Drawing.Size)(resources.GetObject("BarreStatus.Size")));
			this.BarreStatus.TabIndex = ((int)(resources.GetObject("BarreStatus.TabIndex")));
			this.BarreStatus.Text = resources.GetString("BarreStatus.Text");
			this.BarreStatus.Visible = ((bool)(resources.GetObject("BarreStatus.Visible")));
			// 
			// separateur6
			// 
			this.separateur6.Enabled = ((bool)(resources.GetObject("separateur6.Enabled")));
			this.separateur6.ImageIndex = ((int)(resources.GetObject("separateur6.ImageIndex")));
			this.separateur6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			this.separateur6.Text = resources.GetString("separateur6.Text");
			this.separateur6.ToolTipText = resources.GetString("separateur6.ToolTipText");
			this.separateur6.Visible = ((bool)(resources.GetObject("separateur6.Visible")));
			// 
			// bt_couleur
			// 
			this.bt_couleur.Enabled = ((bool)(resources.GetObject("bt_couleur.Enabled")));
			this.bt_couleur.ImageIndex = ((int)(resources.GetObject("bt_couleur.ImageIndex")));
			this.bt_couleur.Text = resources.GetString("bt_couleur.Text");
			this.bt_couleur.ToolTipText = resources.GetString("bt_couleur.ToolTipText");
			this.bt_couleur.Visible = ((bool)(resources.GetObject("bt_couleur.Visible")));
			// 
			// fm_principal
			// 
			this.AccessibleDescription = ((string)(resources.GetObject("$this.AccessibleDescription")));
			this.AccessibleName = ((string)(resources.GetObject("$this.AccessibleName")));
			this.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("$this.Anchor")));
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.BarreStatus,
																		  this.rt_txt,
																		  this.ToolBarEditeur});
			this.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("$this.Dock")));
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.Menu = this.MenuPrincipal;
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "fm_principal";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Visible = ((bool)(resources.GetObject("$this.Visible")));
			this.Closing += new System.ComponentModel.CancelEventHandler(this.fm_principal_Closing);
			this.ResumeLayout(false);

		}
		#endregion


		/// <summary>
		/// Point d'entrée principal de l'application.
		/// </summary>
		[STAThread]


		static void Main() 
		{
			Application.Run(new fm_principal());
		}
    	
		//création de l'énumération des états de l'éditeur
		enum EtatEditeur {vide,ram,identique,different};
	    EtatEditeur etat;

		//Variable contenant le nom du fichier
		private string  nomfichier;

		//Paramètres par défaut
		bool estGras=false;
		bool estItalique=false;
		bool estSouligne=false;
		float fontSize=10.0F;

		private void SetFont()
		{
			FontStyle fs=FontStyle.Regular;
			if (estGras)
			{
				fs |= FontStyle.Bold;
			}
			if (estItalique)
			{
				fs |= FontStyle.Italic;
			}
			if (estSouligne)
			{
				fs |= FontStyle.Underline;
			}
			Font font=new Font(rt_txt.Font.FontFamily, fontSize, fs);
			rt_txt.SelectionFont=font;
		}

	
		private void Nouveau()
		{
			if ((etat==EtatEditeur.vide) || (etat==EtatEditeur.identique))
			{
				//formatage de la zone de texte
				rt_txt.Clear();

				//L'éditeur est mis à l'état "vide"
				etat=EtatEditeur.vide;

				//Désactivation des commandes inutiles
				menuFichier_nouveau.Enabled=false;
				menuFichier_enregistrer.Enabled=false;
				menuFichier_enregistrerSous.Enabled=false;
				menuEdition_copier.Enabled=false;
				menuEdition_couper.Enabled=false;
				menuEdition_coller.Enabled=false;
				menuEdition_annuler.Enabled=false;
				menuEdition_retablir.Enabled=false;

			}
			else
			{
				if (MessageBox.Show("Voulez-vous enregistrer avant de fermer le document ?", "ATTENTION !!!", MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes)
				{
					if(nomfichier==od_ouvrir.FileName)
						rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
					else
						sd_EnregistrerSous.ShowDialog();
					    Nouveau();
				}
				else
				{

					//formatage de la zone de texte
					rt_txt.Clear();

					//L'éditeur est mis à l'état "vide"
					etat=EtatEditeur.vide;

					//desactivation des commandes inutiles
					menuFichier_nouveau.Enabled=false;
					menuFichier_enregistrer.Enabled=false;
					menuFichier_enregistrerSous.Enabled=false;
					menuEdition_copier.Enabled=false;
					menuEdition_couper.Enabled=false;
					menuEdition_coller.Enabled=false;
					menuEdition_annuler.Enabled=false;
					menuEdition_retablir.Enabled=false;
				}
			}			 
		}


		private void Ouvrir()
		{
			od_ouvrir.ShowDialog();
		}


		private void alignerGauche()
		{
			rt_txt.SelectionAlignment=HorizontalAlignment.Left;
			bt_gauche.Pushed=true;
			bt_centre.Pushed=false;
			bt_droite.Pushed=false;
	    }


		private void alignerCentre()
		{
			rt_txt.SelectionAlignment=HorizontalAlignment.Center;
			bt_gauche.Pushed=false;
			bt_centre.Pushed=true;
			bt_droite.Pushed=false;	
		}


		private void alignerDroite()
		{
			rt_txt.SelectionAlignment=HorizontalAlignment.Right;
			bt_gauche.Pushed=false;
			bt_centre.Pushed=false;
			bt_droite.Pushed=true;
		}

	
		private void EnregistrerSous()
		{
			// ouvre la boite de dialogue pour enregistrer le fichier
			sd_EnregistrerSous.ShowDialog();
		}


		private void Enregistrer()
		{
			if (nomfichier==od_ouvrir.FileName)
				rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
			else
			{
				if (sd_EnregistrerSous.ShowDialog()==DialogResult.OK)
			{
				rt_txt.SaveFile(sd_EnregistrerSous.FileName,RichTextBoxStreamType.PlainText);
					nomfichier=sd_EnregistrerSous.FileName;
				}
			}
				menuFichier_enregistrer.Enabled=false;
				etat=EtatEditeur.identique;
		}


		private void Fermer()
		{
			if ((etat==EtatEditeur.vide) || (etat==EtatEditeur.identique))
				Nouveau();
			else
			{
				if (MessageBox.Show("Voulez-vous enregistrer avant de fermer le document ?", "ATTENTION !!!",MessageBoxButtons.YesNo,MessageBoxIcon.Warning)==DialogResult.Yes)
				{
					if (nomfichier==od_ouvrir.FileName)
						rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
					else
						sd_EnregistrerSous.ShowDialog();
					Nouveau();
				}
				else
				{
					Nouveau();
				}
			}
		}


		private void Quitter()
		{
			if ((etat==EtatEditeur.vide) || (etat==EtatEditeur.identique))
				Application.Exit();
			else
			{
				if (MessageBox.Show("Voulez-vous enregistrer avant de quitter l'éditeur ?","ATTENTION !!!", MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes)
				{
					if (nomfichier==od_ouvrir.FileName)
						rt_txt.SaveFile(nomfichier,RichTextBoxStreamType.PlainText);
					else
						sd_EnregistrerSous.ShowDialog();
					Application.Exit();
				}
				else
				{
					Application.Exit();
				}

			}
		}


		private void Couper()
		{
			rt_txt.Cut();
		}


		private void Copier()
		{
			rt_txt.Copy();
		}


		private void Coller()
		{
			rt_txt.Paste();
		}


		private void Annuler()
		{
			rt_txt.Undo();
		}


		private void Retablir()
		{
			rt_txt.Redo();
		}


		private void gras()
		{
			estGras = !estGras;
			menuFormat_gras.Checked = estGras;
			bt_gras.Pushed = estGras;
			SetFont();
		}


		private void italique()
		{
			estItalique = !estItalique;
			menuFormat_italique.Checked = estItalique;
			bt_italique.Pushed = estItalique;
			SetFont();
		}


		private void souligne()
		{
			estSouligne = !estSouligne;
			menuFormat_souligne.Checked = estSouligne;
			bt_souligne.Pushed = estSouligne;
			SetFont();
		}


		private void ToolBarEditeur_ButtonClick (object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			switch (ToolBarEditeur.Buttons.IndexOf(e.Button))
			{
				case 0 : Nouveau();
					break;
		
				case 1 : Ouvrir();
					break;

				case 2 : Enregistrer();
					break;

				case 4 : Couper();
					break;

				case 5 : Copier();
					break;

				case 6 : Coller();
					break;	
		
				case 8 : Annuler();
					break;

				case 9 : Retablir();
					break;

				case 11 : gras();
					break;

				case 12 : italique();
					break;

				case 13 : souligne();
					break;
				
				case 15 : alignerGauche();
					break;

				case 16 : alignerCentre();
					break;

				case 17 : alignerDroite();
					break;

				case 19 : menuFormat_couleur_Click(sender, e);
					break;
			}

		}


		private void menuFichier_nouveau_Click(object sender, System.EventArgs e)
		{
			Nouveau();
		}

		private void menuFichier_ouvrir_Click(object sender, System.EventArgs e)
		{
			Ouvrir();
		}

		private void menuFichier_enregistrer_Click(object sender, System.EventArgs e)
		{
			Enregistrer();
		}

		private void menuFichier_enregistrerSous_Click(object sender, System.EventArgs e)
		{
			EnregistrerSous();
		}

		private void menuFichier_fermer_Click(object sender, System.EventArgs e)
		{			
			Fermer();
		}

		private void menuFichier_quitter_Click(object sender, System.EventArgs e)
		{
			Quitter();
		}



		private void menuEdition_copier_Click(object sender, System.EventArgs e)
		{
			Copier();
		}

		private void menuEdition_couper_Click(object sender, System.EventArgs e)
		{
			Couper();
		}

		private void menuEdition_coller_Click(object sender, System.EventArgs e)
		{
			Coller();
		}

		private void menuEdition_annuler_Click(object sender, System.EventArgs e)
		{
			Annuler();
		}

		private void menuEdition_retablir_Click(object sender, System.EventArgs e)
		{
			Retablir();
		}



		private void rt_txt_TextChanged(object sender, System.EventArgs e)
		{
			//test sur l'état de l'éditeur et mise à jour du nouvel état sur changement
			switch (etat)
			{
				case EtatEditeur.vide:
					etat=EtatEditeur.ram;
					menuFichier_nouveau.Enabled=true;
					menuFichier_enregistrer.Enabled=true;
					menuFichier_enregistrerSous.Enabled=true;
					menuFichier_fermer.Enabled=true;
					menuEdition_copier.Enabled=true;
					menuEdition_couper.Enabled=true;
					menuEdition_coller.Enabled=true;
					menuEdition_annuler.Enabled=true;
					menuEdition_retablir.Enabled=true;
					break;

				case EtatEditeur.identique:
					etat=EtatEditeur.different;
					menuFichier_nouveau.Enabled=true;
					menuFichier_enregistrer.Enabled=true;
					menuFichier_fermer.Enabled=true;
					menuEdition_copier.Enabled=true;
					menuEdition_couper.Enabled=true;
					menuEdition_coller.Enabled=true;
					menuEdition_annuler.Enabled=true;
					menuEdition_retablir.Enabled=true;
					break;
			}
		}



		private void od_ouvrir_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
		{
			rt_txt.LoadFile(od_ouvrir.FileName,RichTextBoxStreamType.PlainText);
			// si OK, ouvre le fichier selectionné dans la boite de dialogue OUVRIR
			nomfichier=od_ouvrir.FileName;
			// on attribue le nom du fichier à la varaible pour effectuer les opérations de test
			menuFichier_enregistrer.Enabled=false;
			etat=EtatEditeur.identique;
		}

		private void sd_EnregistrerSous_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
		{
			rt_txt.SaveFile(sd_EnregistrerSous.FileName,RichTextBoxStreamType.PlainText);
			//si OK, enregistre le fichier sous le nom que vous lui attribué
			menuFichier_enregistrer.Enabled=false;
			etat=EtatEditeur.identique;
		}



		private void fm_principal_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			Quitter();
		}

		private void menuFormat_couleur_Click(object sender, System.EventArgs e)
		{
			if(od_color.ShowDialog()==DialogResult.OK)
			{
				rt_txt.SelectionColor = od_color.Color;
			}
		}

		private void menuFormat_police_Click(object sender, System.EventArgs e)
		{
			if(od_police.ShowDialog()==DialogResult.OK)
			{
				rt_txt.SelectionFont = od_police.Font;
			}
		}

		private void menuFormat_gras_Click(object sender, System.EventArgs e)
		{
			gras();
		}

		private void menuFormat_italique_Click(object sender, System.EventArgs e)
		{
			italique();
		}

		private void menuFormat_souligne_Click(object sender, System.EventArgs e)
		{
			souligne();
		}


	}
}

 Conclusion

version finale.

 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !
  •   PetitEditeur
    •   bin
      •   Debug
        •   fr
          • PetitEditeur.resources.dllTélécharger ce fichier [Réservé aux membres club]4 608 octets
        • PetitEditeur.exeTélécharger ce fichier [Réservé aux membres club]118 784 octets
        • PetitEditeur.pdbTélécharger ce fichier [Réservé aux membres club]42 496 octets
    •   obj
      •   Debug
        •   fr
          • PetitEditeur.resources.dllTélécharger ce fichier [Réservé aux membres club]4 608 octets
        • temp
        • TempPE
        • PetitEditeur.apropos.resourcesTélécharger ce fichier [Réservé aux membres club]326 octets
        • PetitEditeur.exeTélécharger ce fichier [Réservé aux membres club]118 784 octets
        • PetitEditeur.exe.incrTélécharger ce fichier [Réservé aux membres club]2 378 octets
        • PetitEditeur.fm_principal.fr.resourcesTélécharger ce fichier [Réservé aux membres club]2 073 octets
        • PetitEditeur.fm_principal.resourcesTélécharger ce fichier [Réservé aux membres club]64 440 octets
        • PetitEditeur.pdbTélécharger ce fichier [Réservé aux membres club]42 496 octets
        • PetitEditeur.projdataTélécharger ce fichier [Réservé aux membres club]40 712 octets
        • PetitEditeur.projdata1Télécharger ce fichier [Réservé aux membres club]26 632 octets
    • app.configTélécharger ce fichier [Réservé aux membres club]Voir ce fichier347 octets
    • App.icoTélécharger ce fichier [Réservé aux membres club]Voir ce fichier1 078 octets
    • apropos.csTélécharger ce fichier [Réservé aux membres club]Voir ce fichier1 430 octets
    • apropos.resxTélécharger ce fichier [Réservé aux membres club]Voir ce fichier5 317 octets
    • AssemblyInfo.csTélécharger ce fichier [Réservé aux membres club]Voir ce fichier2 598 octets
    • Editor.csTélécharger ce fichier [Réservé aux membres club]Voir ce fichier59 133 octets
    • Editor.fr.resxTélécharger ce fichier [Réservé aux membres club]Voir ce fichier6 417 octets
    • Editor.resxTélécharger ce fichier [Réservé aux membres club]Voir ce fichier85 919 octets
    • PetitEditeur.csprojTélécharger ce fichier [Réservé aux membres club]Voir ce fichier4 975 octets
    • PetitEditeur.csproj.userTélécharger ce fichier [Réservé aux membres club]Voir ce fichier1 773 octets
    • PetitEditeur.slnTélécharger ce fichier [Réservé aux membres club]Voir ce fichier920 octets
    • PetitEditeur.suoTélécharger ce fichier [Réservé aux membres club]7 168 octets

Télécharger le zip


 Sources de la même categorie

Source avec Zip Source avec une capture Source .NET (Dotnet) ORIONBANQUE par toutphp
Source avec Zip Source avec une capture Source .NET (Dotnet) ORIONAPPLICATION par toutphp
Source avec Zip SOCKET CONNEXION CLIENT & SERVEUR par ziedto83
Source avec Zip Source .NET (Dotnet) FFMPEG.NET : WRAPPER .NET DE FFMPEG par MasterShadows
Source avec Zip Source .NET (Dotnet) ATTACHER, CRÉER ET SAUVEGARDER UNE BASE DE DONNÉES SQL SERVE... par Alvepinai

 Sources en rapport avec celle ci

Source avec Zip Source avec une capture Source .NET (Dotnet) EXPLORATEUR DE REGISTRE WINDOWS par thebestdrummer
Source avec Zip Source avec une capture Source .NET (Dotnet) EDITEUR DE TEXTE AVANCÉ par aokdiallo
Source avec Zip Source avec une capture Source .NET (Dotnet) EDITEUR DE TEXTE MDI par tahiti_bob
Source avec Zip Source avec une capture Source .NET (Dotnet) COMPOSANT EDITEUR DE TEXTE par yoannd
Source avec Zip Source .NET (Dotnet) SHARPEDIT par Jackboy

Commentaires et avis

Commentaire de danounouche le 17/07/2003 13:29:31

Tres tres bien fait....
Merci pour ta source qui m'a permit d'apprendre pas mal de chose en programation Windows.

Juste un petit bug....Dans le menu format, au debut, les options "Gras","Italique","Souligne" sont deja coches!!!!!

Rectifie ca vite avant de commercialiser ton logiciel ;-)

Commentaire de B3nJ4m1n le 01/10/2003 15:02:39

Merci, c'est pas mal du tout, c'est facilement lisible en plus moi qui suis un neophyte

Commentaire de emachede le 25/03/2004 09:52:20

tout simplement puissamment excellent

vraiment bravo

Commentaire de Flower le 28/03/2004 19:58:41

merci pour vos remerciements ... je l'ai fait en bts.
Je n'ai malheureusement pas le temps de me remettre dans visual studio.net (je suis en licence info, et j'ai plein de boulot lol )

bon dev à tous

Commentaire de neo62248 le 29/06/2006 15:37:53

Quelques erreurs apparaissent dans cette source.
Notamment quand on souhaite enregistrer un document au format RTF ou WORD, le logiciel ne permet pas de garder les couleurs et les styles du document. Et pourtant cela est primordial ! D'autant plus que le langage utilisé peut parfaitement le faire.

Cet aspect du logiciel rend certaines de ses fonctionnalités sans grand intéret (enregistrer en doc ou rtf), sauf peut-etre la possibilité de lire du texte sans aucun format dans word... bof bof

 Ajouter un commentaire


Discussions en rapport avec ce code source dans le forum

Texte editeur [ par rintchu ] Salut, je voudrais creer un text editeur mélangé avec un treeview, un peu ce que l'on a quand on programme avec Microsoft .Net 2003 ( on peut ecrire e Editeur de texte puissant ? [ par ansizak ] Bonjour, une petite question...J'aimerais pouvoir développer un editeur de texte personalisé, donc avec des fonctions spécifiques à mon activité profe cherche editeur de texte + colorisation syntaxique [ par Fildomen ] Salutje dois utiliser un controle editeur de texte avec colorisation syntaxique pour un projet (scripting),mais j'ai pas le temps d'en faire un !! est Comment faire un editeur du texte avec les controleurs de open office ? [ par Onasismg ] [b]Je veux faire un editeur de texte dans C# que me permet de faire tout ce que on peut faire dans office ou open office, quelq'un qui m'aide??? [/b] [LinqToXML] Bug ou probleme ? [ par kulias ] Bonjour a tous, Je suis en train de faire un editeur pour un projet et je me retrouve face a un drole de probleme. En effet, lorsque j'essaye de sauv le même événement pour tous les textBox [ par petercrouch ] Bonjour, j'ai un form contenant plusieurs textBox(une trentaine) et pour chaque textBox la même méthode relative à l'événement textChanged. [code=cs] Rajouter des fonctionnalités lorsque l'on surligne un texte [ par locus ] Bonjour, j'ai une idée de programme (pour me simplifier la vie) que je voudrais créer mais je n'arrive pas à trouver des informations pour démarrer. désactiver la selection du texte [ par piwane ] bonjour, dans une appli en c#.net, j'ai une form d'attente qui, pour être plus facilement configurable, contient un webbrowser qui pointe sur une URL détecter présence de texte en couleur dans une image ? [ par italiasky ] Bonjour, Voila mon problème : Je capture une partie de l'écran et obtient un .bmp. Les images obtenues ne sont pas très grande, de l'ordre de 20*20 p Texte trop long dans une cellule de datagridview [ par blutch0007 ] Bonjour, J'ai des texte très long(en hauteur) dans une DataGridView. On ne voit pas la fin du texte en bas de page. Si la Scrollbar est présente elle


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 3,104 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales