/// /// Copyright © 2003-2008 JetBrains s.r.o. /// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder). /// using JetBrains.Omea.OpenAPI; namespace JetBrains.Omea.GUIControls { /// /// A toolbar which contais buttons and other controls applicable to formatting the content of rich editors, such as HTML or RTF editors. /// The toolbar is bound to the control it rules over by giving it the proper command processor after creation. /// public class RichEditToolbarFull : RichEditToolbar { public RichEditToolbarFull() { AddActions(); } private void AddActions() { string sGroup; sGroup = "Font"; _actionmanager.RegisterAction( new CommandProcessorAction( "IncFontSize" ), sGroup, ListAnchor.Last, LoadImage( "RichEdit.IncFont" ), "", "Increase Font Size", null, null ); _actionmanager.RegisterAction( new CommandProcessorAction( "DecFontSize" ), sGroup, ListAnchor.Last, LoadImage( "RichEdit.DecFont" ), "", "Decrease Font Size", null, null ); } } }