You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SCSSDocumentHandler.java 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * Copyright 2000-2013 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.sass.internal.handler;
  17. import java.util.ArrayList;
  18. import java.util.Collection;
  19. import java.util.List;
  20. import org.w3c.css.sac.CSSException;
  21. import org.w3c.css.sac.DocumentHandler;
  22. import org.w3c.css.sac.SACMediaList;
  23. import com.vaadin.sass.internal.ScssStylesheet;
  24. import com.vaadin.sass.internal.parser.LexicalUnitImpl;
  25. import com.vaadin.sass.internal.tree.ForNode;
  26. import com.vaadin.sass.internal.tree.VariableNode;
  27. import com.vaadin.sass.internal.tree.WhileNode;
  28. import com.vaadin.sass.internal.tree.controldirective.EachDefNode;
  29. public interface SCSSDocumentHandler extends DocumentHandler {
  30. ScssStylesheet getStyleSheet();
  31. void variable(String name, LexicalUnitImpl value, boolean guarded);
  32. void startMixinDirective(String name, Collection<VariableNode> args);
  33. void endMixinDirective(String name, Collection<VariableNode> args);
  34. void debugDirective();
  35. ForNode forDirective(String var, String from, String to, boolean exclusive,
  36. String body);
  37. WhileNode whileDirective(String condition, String body);
  38. void startNestedProperties(String name);
  39. void endNestedProperties(String name);
  40. void importStyle(String uri, SACMediaList media, boolean isURL);
  41. void property(String name, LexicalUnitImpl value, boolean important,
  42. String comment);
  43. EachDefNode startEachDirective(String variable, ArrayList<String> list);
  44. void endEachDirective();
  45. void startIfElseDirective();
  46. void endIfElseDirective();
  47. void ifDirective(String evaluator);
  48. void elseDirective();
  49. void startSelector(ArrayList<String> selectors) throws CSSException;
  50. void endSelector() throws CSSException;
  51. void extendDirective(ArrayList<String> list);
  52. void microsoftDirective(String name, String value);
  53. EachDefNode startEachDirective(String var, String listVariable);
  54. void removeDirective(String variable, String list, String remove,
  55. String separator);
  56. void appendDirective(String variable, String list, String remove,
  57. String separator);
  58. void containsDirective(String variable, String list, String contains,
  59. String separator);
  60. void startKeyFrames(String keyframeName, String animationname);
  61. void endKeyFrames();
  62. void startKeyframeSelector(String selector);
  63. void endKeyframeSelector();
  64. void contentDirective();
  65. void startInclude(String name, List<LexicalUnitImpl> args);
  66. void endInclude();
  67. }