//--------------------------------------
//               PowerUI
//
//        For documentation or 
//    if you have any issues, visit
//        powerUI.kulestar.com
//
//    Copyright © 2013 Kulestar Ltd
//          www.kulestar.com
//--------------------------------------

using System;

namespace Css{
	
	/// <summary>
	/// Handles 'local' matches for a particular selector.
	/// Note that these are always specific to a particular element and they don't
	/// generate psuedo elements either. Examples are :hover, :link etc.
	/// <summary>
	
	public class LocalMatcher : SelectorMatcher{
		
		/// <summary>True if two local matchers are equal.</summary>
		public virtual bool Equals(LocalMatcher match){
			
			return match.GetType()==GetType();
			
		}
		/// <summary>Removes this matcher from any document caches.</summary>
		public virtual void RemoveFromDocument(ReflowDocument document,Css.StyleSheet sheet){
		
		}
		
		/// <summary>Adds this matcher to its parent documents caches.
		/// This is used by the default style sheet when the document gets cleared.</summary>
		public virtual void AddToDocument(ReflowDocument document,Css.StyleSheet sheet){
			
		}
		
	}
	
}