blob: 36293fadc41d35b9cca12b30f7c5b13d7c87ee04 [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 IBM Corporation and others.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.richtext;
import org.eclipse.epf.richtext.actions.IRichTextAction;
import org.eclipse.epf.richtext.actions.IRichTextComboAction;
/**
* The interface for a rich text editor toolbar.
*
* @author Kelvin Low
* @since 1.0
*/
public interface IRichTextToolBar {
/**
* Adds a button action to the tool bar.
*
* @param action
* the button action to add
*/
public void addAction(IRichTextAction action);
/**
* Adds a combo action to the tool bar.
*
* @param action
* the combo action to add
*/
public void addAction(IRichTextComboAction action);
/**
* Adds a separator to the tool bar.
*/
public void addSeparator();
/**
* Updates the toolbar state.
* <p>
* Enables/disables actions depending on the currently selected
* RichTextEditor tab (RichText vs. HTML)
*
* @param editable specifies whether to enable non-ReadOnly commands
*/
public void updateToolBar(boolean enabled);
}