blob: 5777981912f55fdd5ff8e016872aa36968c2a474 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 Angelo Zerr 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:
* Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
*******************************************************************************/
package org.eclipse.e4.ui.css.core.dom;
import java.util.List;
import org.w3c.css.sac.Condition;
import org.w3c.css.sac.Selector;
import org.w3c.dom.css.DocumentCSS;
import org.w3c.dom.stylesheets.StyleSheet;
/**
* Extend {@link DocumentCSS} to add methods like add/remove style sheet.
*/
public interface ExtendedDocumentCSS extends DocumentCSS {
public static final Integer SAC_ID_CONDITION = new Integer(
Condition.SAC_ID_CONDITION);
public static final Integer SAC_CLASS_CONDITION = new Integer(
Condition.SAC_CLASS_CONDITION);
public static final Integer SAC_PSEUDO_CLASS_CONDITION = new Integer(
Condition.SAC_PSEUDO_CLASS_CONDITION);
public static final Integer OTHER_SAC_CONDITIONAL_SELECTOR = new Integer(
Selector.SAC_CONDITIONAL_SELECTOR);
public static final Integer OTHER_SAC_SELECTOR = new Integer(999);
public void addStyleSheet(StyleSheet styleSheet);
public void removeAllStyleSheets();
public List queryConditionSelector(int conditionType);
public List querySelector(int selectorType, int conditionType);
}