Exemplo n.º 1
0
        /// <summary>
        /// Efface le CharFormatting pour la famille de signes indiquée. La checkbox correspondante
        /// est également mise à <c>false</c>.
        /// </summary>
        /// <param name="ponctS">La famille de signes à effacer.</param>
        public void ClearPonct(string ponctS)
        {
            Ponctuation p = PonctInT.Ponct4String(ponctS);

            UndoFactory.StartRecording("ClearPonct");
            SetCF(p, CharFormatting.NeutralCF);
            SetCB(p, false);
            UndoFactory.EndRecording();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Définit le <see cref="CharFormatting"/> pour la famille de signes donnée et met
        /// également la Checkbox corrspondante à <c>true</c>.
        /// </summary>
        /// <param name="ponctS">La famille de signes visée.</param>
        /// <param name="toCF">Le nouveau <see cref="CharFormatting"/>.</param>
        public void SetCFandCB(string ponctS, CharFormatting toCF)
        {
            logger.ConditionalDebug("SetCFandCB {0} toCF: {1}", ponctS, toCF.ToString());
            Ponctuation p = PonctInT.Ponct4String(ponctS);

            UndoFactory.StartRecording("SetCFandCB");
            SetCF(p, toCF);
            SetCB(p, true);
            UndoFactory.EndRecording();
        }
Exemplo n.º 3
0
 public void SetCB(string ponct, bool toCB) => SetCB(PonctInT.Ponct4String(ponct), toCB);
Exemplo n.º 4
0
 public bool GetCB(string ponct) => GetCB(PonctInT.Ponct4String(ponct));
Exemplo n.º 5
0
 public void SetCF(string ponct, CharFormatting toCF) => SetCF(PonctInT.Ponct4String(ponct), toCF);
Exemplo n.º 6
0
 /// <summary>
 /// Retourne le <see cref="CharFormatting"/> pour la famille de caractères identifiée par
 /// son nom <paramref name="ponct"/>. Le nom doit correspondre exactement à la valeur de
 /// l'énuméré dans <see cref="Ponctuation"/>.
 /// </summary>
 /// <param name="ponct">Le nom de la famille de caractères tel que défini dans
 /// <see cref="Ponctuation"/>.</param>
 /// <returns></returns>
 public CharFormatting GetCF(string ponct) => GetCF(PonctInT.Ponct4String(ponct));