示例#1
0
		public EntryPosFilter(FdoCache cache, ListMatchOptions mode, int[] targets)
			: base(cache, mode, targets)
		{
		}
 public InflectionClassFilter(FdoCache cache, ListMatchOptions mode, int[] targets, XmlNode colSpec)
     : base(cache, mode, targets, colSpec)
 {
 }
示例#3
0
		public PosFilter(FdoCache cache, ListMatchOptions mode, int[] targets, XmlNode colSpec)
			: base(cache, mode, targets, colSpec)
		{
		}
示例#4
0
 public PosFilter(LcmCache cache, ListMatchOptions mode, int[] targets, XmlNode colSpec)
     : base(cache, mode, targets, colSpec)
 {
 }
 public EntryPosFilter(FdoCache cache, ListMatchOptions mode, int[] targets)
     : base(cache, mode, targets)
 {
 }
示例#6
0
		private ListChoiceFilter MakeFilter(ListMatchOptions matchMode, int[] chosenHvos)
		{
			ListChoiceFilter filter = null;
			if (m_filterType != null)
			{
				if (m_filterType.IsSubclassOf(typeof(ColumnSpecFilter)))
				{
					ConstructorInfo ci = m_filterType.GetConstructor(
						new Type[] { typeof(FdoCache), typeof(ListMatchOptions), typeof(int[]), typeof(XmlNode)});
					filter = (ListChoiceFilter)ci.Invoke(new object[] { m_cache, matchMode, chosenHvos, m_fsi.Spec});
				}
				else
				{
					ConstructorInfo ci = m_filterType.GetConstructor(
						new Type[] { typeof(FdoCache), typeof(ListMatchOptions), typeof(int[]) });
					filter = (ListChoiceFilter)ci.Invoke(new object[] { m_cache, matchMode, chosenHvos });
				}
			}
			else
			{
				// make a filter that figures path information from the column specs
				filter = new ColumnSpecFilter(m_cache, matchMode, chosenHvos, m_fsi.Spec);
			}
			return filter;
		}
示例#7
0
		/// <summary>
		///
		/// </summary>
		/// <param name="matchMode"></param>
		/// <param name="chosenLabels"></param>
		public void InvokeWithColumnSpecFilter(ListMatchOptions matchMode, List<string> chosenLabels)
		{
			if (m_fsi.Spec == null)
				return;	// doesn't have a spec to create ColumnSpecFilter
			ObjectLabelCollection labels = GetObjectLabelsForList();
			List<int> chosenHvos = new List<int>();
			if (chosenLabels.Count > 0)
				FindChosenHvos(labels, chosenLabels, ref chosenHvos);
			ListChoiceFilter filter = MakeFilter(matchMode, chosenHvos.ToArray());
			InvokeWithFilter(filter);
		}
示例#8
0
		public FlidChoiceFilter(FdoCache cache, ListMatchOptions mode, int flid, int[] targets)
			: base(cache, mode, targets)
		{
			m_flid = flid;
		}
示例#9
0
		/// <summary>
		/// Filter used to compare against the hvos in a cell in rows described by ManyOnePathSortItem items.
		/// This depends upon xml spec to find the hvos, not a preconceived list item class, which is helpful for BulkEditEntries where
		/// our list item class can vary.
		/// </summary>
		/// <param name="cache"></param>
		/// <param name="mode"></param>
		/// <param name="colSpec"></param>
		/// <param name="targets"></param>
		public ColumnSpecFilter(FdoCache cache, ListMatchOptions mode, int[] targets, XmlNode colSpec)
			: base(cache, mode, targets)
		{
			m_colSpec = colSpec;
		}
示例#10
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Inits the XML.
		/// </summary>
		/// <param name="node">The node.</param>
		/// ------------------------------------------------------------------------------------
		public override void InitXml(System.Xml.XmlNode node)
		{
			base.InitXml(node);
			m_mode = (ListMatchOptions)XmlUtils.GetMandatoryIntegerAttributeValue(node, "mode");
			Targets = XmlUtils.GetMandatoryIntegerListAttributeValue(node, "targets");
			m_fIsUserVisible = XmlUtils.GetBooleanAttributeValue(node, "visible");
		}
示例#11
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:ListChoiceFilter"/> class.
		/// </summary>
		/// <param name="cache">The cache.</param>
		/// <param name="mode">The mode.</param>
		/// <param name="targets">The targets.</param>
		/// ------------------------------------------------------------------------------------
		public ListChoiceFilter(FdoCache cache, ListMatchOptions mode, int[] targets)
		{
			m_cache = cache;
			m_mode = mode;
			Targets = targets;
		}
		/// <summary>
		/// Show extra radio buttons for matching All, Any, or None.
		/// </summary>
		internal void ShowAnyAllNoneButtons(ListMatchOptions mode, bool fAtomic)
		{
			CheckDisposed();
			m_helpTopic = "khtpChoose-AnyAllNoneItems";
			InitHelp();
			m_AnyButton = new RadioButton();
			m_AnyButton.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
			m_NoneButton = new RadioButton();
			m_NoneButton.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
			m_AnyButton.Text = XMLViewsStrings.ksAnyChecked;
			m_NoneButton.Text = XMLViewsStrings.ksNoChecked;
			m_AnyButton.Location = m_picboxLink2.Location;
			m_NoneButton.Location = m_picboxLink1.Location;
			m_AnyButton.Width = m_labelsTreeView.Width / 2;
			m_NoneButton.Width = m_AnyButton.Width;
			m_AnyButton.Checked = true;
			m_labelsTreeView.Height = m_AnyButton.Top - 10 - m_labelsTreeView.Top;

			if (fAtomic)
				this.Controls.AddRange(new Control[] { m_AnyButton, m_NoneButton });
			else
			{
				m_AllButton = new RadioButton();
				m_AllButton.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
				m_AllButton.Text = XMLViewsStrings.ksAllChecked;
				m_AllButton.Width = m_AnyButton.Width;
				m_AllButton.Location = new Point(m_AnyButton.Right, m_AnyButton.Top);

				m_ExactButton = new RadioButton();
				m_ExactButton.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
				m_ExactButton.Text = XMLViewsStrings.ksExactlyChecked;
				m_ExactButton.Width = m_AnyButton.Width;
				m_ExactButton.Location = new Point(m_NoneButton.Right, m_NoneButton.Top);

				this.Controls.AddRange(new Control[] { m_AnyButton, m_NoneButton, m_AllButton, m_ExactButton });
			}

			ListMatchMode = mode;
		}