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) { }
public PosFilter(FdoCache cache, ListMatchOptions mode, int[] targets, XmlNode colSpec) : base(cache, mode, targets, colSpec) { }
public PosFilter(LcmCache cache, ListMatchOptions mode, int[] targets, XmlNode colSpec) : base(cache, mode, targets, colSpec) { }
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; }
/// <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); }
public FlidChoiceFilter(FdoCache cache, ListMatchOptions mode, int flid, int[] targets) : base(cache, mode, targets) { m_flid = flid; }
/// <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; }
/// ------------------------------------------------------------------------------------ /// <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"); }
/// ------------------------------------------------------------------------------------ /// <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; }