Esempio n. 1
0
 /// <summary>
 /// Constructor for a QAT
 /// </summary>
 /// <param name="dataUrlBase">The XML data URL</param>
 /// <param name="version">The version of the XML data</param>
 /// <param name="lcid">The language code</param>
 /// <param name="options">The QATBuildOptions for this QAT. <see cref="QATBuildOptions"/></param>
 /// <param name="elmPlaceholder">The ID for the DOMElement that will enclose this QAT</param>
 /// <param name="rootBuildClient">The object using this builder</param>
 public QATBuilder(QATBuildOptions options,
                   HtmlElement elmPlaceholder,
                   IRootBuildClient rootBuildClient)
     : base(options, elmPlaceholder, rootBuildClient)
 {
     if (CUIUtility.IsNullOrUndefined(elmPlaceholder))
         throw new ArgumentNullException("QAT placeholder DOM element is null or undefined.");
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor for a QAT
 /// </summary>
 /// <param name="dataUrlBase">The XML data URL</param>
 /// <param name="version">The version of the XML data</param>
 /// <param name="lcid">The language code</param>
 /// <param name="options">The QATBuildOptions for this QAT. <see cref="QATBuildOptions"/></param>
 /// <param name="elmPlaceholder">The ID for the DOMElement that will enclose this QAT</param>
 /// <param name="rootBuildClient">The object using this builder</param>
 public QATBuilder(QATBuildOptions options,
                   HtmlElement elmPlaceholder,
                   IRootBuildClient rootBuildClient)
     : base(options, elmPlaceholder, rootBuildClient)
 {
     if (CUIUtility.IsNullOrUndefined(elmPlaceholder))
     {
         throw new ArgumentNullException("QAT placeholder DOM element is null or undefined.");
     }
 }
Esempio n. 3
0
        internal void BuildAndSetQAT(string qatId, bool attachToDOM, DataSource ds)
        {
            // Build QAT
            QATBuildOptions options = new QATBuildOptions();
            options.AttachToDOM = attachToDOM;
            options.TrimmedIds = RibbonBuilder.Options.TrimmedIds;
            QATBuilder builder = new QATBuilder(options,
                                                _elmQATPlaceholder,
                                                RibbonBuilder.BuildClient);
            builder.DataSource = ds;
            if (!builder.BuildQAT(qatId))
                throw new InvalidOperationException("QAT could not be built");

            QAT = builder.QAT;
            _elmTopBar1.Style.Display = "block";
        }