001/*
002 *  Copyright 2010 Anyware Services
003 *
004 *  Licensed under the Apache License, Version 2.0 (the "License");
005 *  you may not use this file except in compliance with the License.
006 *  You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *  Unless required by applicable law or agreed to in writing, software
011 *  distributed under the License is distributed on an "AS IS" BASIS,
012 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *  See the License for the specific language governing permissions and
014 *  limitations under the License.
015 */
016package org.ametys.cms.clientsideelement.styles;
017
018import java.util.Map;
019
020/**
021 * This extension point allows to determine which styles does exist for html edition 
022 */
023public interface HTMLEditorStyleExtensionPoint
024{
025    /** Avalon role name */
026    public static final String ROLE = HTMLEditorStyleExtensionPoint.class.getName();
027    
028    /**
029     * Get the list of styles for paragraphs
030     * @param contextualParameters Contextuals parameters transmitted by the environment.
031     * @return A category. Can be null.
032     */
033    public StyleCategory getPara(Map<String, Object> contextualParameters);
034    
035    /**
036     * Get the list of styles for tables
037     * @param contextualParameters Contextuals parameters transmitted by the environment.
038     * @return A category. Can be null.
039     */
040    public StyleCategory getTable(Map<String, Object> contextualParameters);
041    
042    /**
043     * Get the list of styles for link
044     * @param contextualParameters Contextuals parameters transmitted by the environment.
045     * @return A category. Can be null.
046     */
047    public StyleCategory getLink(Map<String, Object> contextualParameters);
048    
049    /**
050     * Get the list of styles for images
051     * @param contextualParameters Contextuals parameters transmitted by the environment.
052     * @return A category. Can be null.
053     */
054    public StyleCategory getImage(Map<String, Object> contextualParameters);
055    
056    /**
057     * Get the list of styles for unordered lists
058     * @param contextualParameters Contextuals parameters transmitted by the environment.
059     * @return A category. Can be null.
060     */
061    public StyleCategory getUnorderedList(Map<String, Object> contextualParameters);
062    
063    /**
064     * Get the list of styles for ordered lists
065     * @param contextualParameters Contextuals parameters transmitted by the environment.
066     * @return A category. Can be null.
067     */
068    public StyleCategory getOrderedList(Map<String, Object> contextualParameters);
069}