";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Sep__Bar(
int iIndent,
string sToolbarName,
int iSeparatorNo,
bool bVisible)
{
string sreturn = "";
try
{
sreturn += String.Empty.PadLeft(iIndent) + "sreturn += @" id=""" + sToolbarName + @"ToolbarSaperator" + iSeparatorNo + @"""";
if (bVisible == false)
{
sreturn += String.Empty.PadLeft(iIndent + 10) + @"visible=""false""";
sreturn += System.Environment.NewLine;
}
sreturn += String.Empty.PadLeft(iIndent) + @"/>";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
Public Sub Tab_Select(ByVal sTabName As String)
Try
Call modGeneral.Tracer_AddSubroutineStart(System.Reflection.MethodBase.GetCurrentMethod)
Dim objTopWindow As Microsoft.Office.Core.IAccessible
objTopWindow = MSAAHelper.GetAccessibleObjectFromHandle(System.Diagnostics.Process.GetCurrentProcess.MainWindowHandle)
' Get the IAccessible object of the Ribbon property page.
Dim objAccessibleRibbon As Microsoft.Office.Core.IAccessible
objAccessibleRibbon = MSAAHelper.GetAccessibleObjectByNameAndRole(objTopWindow, New System.Text.RegularExpressions.Regex("Ribbon"), "property page", False)
' Find all visible ribbon tabs and show them in the list box.
Dim objAccessibleChildren As Microsoft.Office.Core.IAccessible()
objAccessibleChildren = MSAAHelper.GetAccessibleChildren(MSAAHelper.GetAccessibleObjectByNameAndRole(objAccessibleRibbon, New System.Text.RegularExpressions.Regex("Ribbon Tabs"), "page tab list", True))
For Each objAccessibleChild As Microsoft.Office.Core.IAccessible In objAccessibleChildren
If (objAccessibleChild.accChildCount > 0) Then
Dim objAccessibleTabs As Microsoft.Office.Core.IAccessible()
objAccessibleTabs = MSAAHelper.GetAccessibleChildren(objAccessibleChild)
For Each objAccessibleTab As Microsoft.Office.Core.IAccessible In objAccessibleTabs
Dim state As String = Ribbon_GetStateText(objAccessibleTab.accState(0))
If (objAccessibleTab.accName(0) = sTabName) Then
objAccessibleTab.accDoDefaultAction(0)
Exit Sub
End If
Next
End If
Next
Catch ex As System.Exception
Call modMessages.Exception(System.Reflection.MethodBase.GetCurrentMethod, Nothing, ex)
End Try
End Sub
private static string Tag_Attribute_Boolean(
int iIndent,
ref System.Collections.Generic.ListcolArguments,
string sStringTag,
bool bBooleanValue)
{
string sreturn = "";
try
{
if (bBooleanValue == false)
{
colArguments.Remove(sStringTag);
sreturn += String.Empty.PadLeft(iIndent) + sStringTag + @"=""" + bBooleanValue + @"""";
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
}
return sreturn;
}
catch (System.Exception objException)
{
return "";
}
}
private static string Tag_Attribute_String(
int iIndent,
ref System.Collections.Generic.ListcolArguments,
string sStringTag,
string sStringContents)
{
string sreturn = "";
try
{
if (sStringContents.Length > 0)
{
colArguments.Remove(sStringTag);
sreturn += String.Empty.PadLeft(iIndent) + sStringTag + @"=""" + sStringContents + @"""";
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
}
return sreturn;
}
catch (System.Exception objException)
{
return "";
}
}
public static string Tag_Box(
int iIndent,
string sID,
bool bVertical)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (bVertical == true) { colArguments.Add("vertical"); }
sreturn += String.Empty.PadLeft(iIndent) + "sreturn += @" id=""" + sID + @"""";
if (bVertical == false)
{
sreturn += System.Environment.NewLine;
sreturn += String.Empty.PadLeft(iIndent + 4) + @" boxstyle=""horizontal""";
}
else
{
colArguments.Remove("vertical");
sreturn += System.Environment.NewLine;
sreturn += String.Empty.PadLeft(iIndent + 4) + @" boxstyle=""vertical""";
}
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_Button(
int iIndent,
string sIDMso,
string sLabel,
string sID,
string sImageMso,
string sImage,
string sSize,
string sGetEnabled,
string sScreentip,
bool bShowLabel,
bool bShowImage,
string sSupertip,
string sDescription,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sID.Length > 0) { colArguments.Add("id"); }
if (sImageMso.Length > 0) { colArguments.Add("imageMso"); }
if (sImage.Length > 0) { colArguments.Add("image"); }
if (sSize.Length > 0) { colArguments.Add("size"); }
if (sGetEnabled.Length > 0) { colArguments.Add("getEnabled"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
if (bShowImage == false) { colArguments.Add("showImage"); }
if (sDescription.Length > 0) { colArguments.Add("description"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
public static string Tag_ButtonGroup(
int iIndent,
string sID,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sID.Length > 0) { colArguments.Add("id"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
sreturn += clsRibbon.Tag_Attribute_String(7, ref colArguments, "id", sID);
sreturn += clsRibbon.Tag_Attribute_String(7, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(7, ref colArguments, "visible", bVisible);
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_CheckBox(
int iIndent,
string sIDMso,
string sLabel,
string sID,
string sScreentip,
string sSupertip,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sID.Length > 0) { colArguments.Add("id"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "label", sLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "screentip", sScreentip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "supertip", sSupertip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @"/>";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_ComboBox(
int iIndent,
string sID,
string sSizeString,
string sScreentip,
string sSupertip,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sID.Length > 0) { colArguments.Add("id"); }
if (sSizeString.Length > 0) { colArguments.Add("sizeString"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
if (sID.Length > 0)
{
colArguments.Remove("sID");
sreturn += @" id=""" + sID + @"""" + System.Environment.NewLine;
sreturn += String.Empty.PadLeft(iIndent + 9) + @" onAction=""ComboBox_" + sID + @"""";
}
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "sizeString", sSizeString);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "screentip", sScreentip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "supertip", sSupertip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @"/>";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_Control(
int iIndent,
string sIDMso,
string sLabel,
bool bShowLabel)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
sreturn += String.Empty.PadLeft(iIndent) + "
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "idMso", sIDMso);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "label", sLabel);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showLabel", bShowLabel);
sreturn += @"/>";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
private static string Tag_CustomUI(
string sVersion,
bool bInStudio,
bool bUseLoadImageCallback)
{
string sreturn = "";
string sschema = "";
try
{
if (bInStudio == true)
{
sreturn += @"" + System.Environment.NewLine;
}
if (sVersion == "2007") { sschema = @"http://schemas.microsoft.com/office/2006/01/customui"; }
if (sVersion == "2010") { sschema = @"http://schemas.microsoft.com/office/2009/07/customui"; }
sreturn += @"
if (bInStudio == true)
{
sreturn += System.Environment.NewLine + @" onLoad=""Ribbon_Load""";
}
if (bUseLoadImageCallback == true)
{
sreturn += System.Environment.NewLine + @" loadImage=""Callback_LoadImage""";
}
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_DropDown(
int iIndent,
string sID,
string sSizeString,
string sScreentip,
string sSupertip,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sID.Length > 0) { colArguments.Add("id"); }
if (sSizeString.Length > 0) { colArguments.Add("sizeString"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
if (sID.Length > 0)
{
colArguments.Remove("sID");
sreturn += @" id=""" + sID + @"""" + System.Environment.NewLine;
sreturn += String.Empty.PadLeft(iIndent + 9) + @" onAction=""DropDown_" + sID + @"""";
}
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "sizeString", sSizeString);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "screentip", sScreentip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "supertip", sSupertip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_DynamicMenu(
int iIndent,
string sIDMso,
string sLabel,
string sID,
string sImageMso,
string sImage,
string sGetContent,
bool bShowLabel,
bool bShowImage,
string sSize,
string sDescription,
string sScreentip,
string sSupertip,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sID.Length > 0) { colArguments.Add("id"); }
if (sImageMso.Length > 0) { colArguments.Add("imageMso"); }
if (sImage.Length > 0) { colArguments.Add("image"); }
if (sGetContent.Length > 0) { colArguments.Add("getContent"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
if (bShowImage == false) { colArguments.Add("showImage"); }
if (sSize.Length > 0) { colArguments.Add("size"); }
if (sDescription.Length > 0) { colArguments.Add("description"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
if (sIDMso.Length > 0)
{
colArguments.Remove("sIDMso");
sreturn += @" id=Mso""" + sIDMso + @"""";
}
else
{
if (sID.Length == 0)
{
sreturn += @" id=""" + sLabel.Replace(" ", "") + @"""";
}
else
{
colArguments.Remove("sID");
sreturn += @" id=""" + sID + @"""";
}
}
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "label", sLabel);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showLabel", bShowLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "imageMso", sImageMso);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "image", sImage);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "getContent", sGetContent);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showLabel", bShowLabel);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showImage", bShowImage);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "size", sSize);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "description", sDescription);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "screentip", sScreentip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "supertip", sSupertip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_EditBox(
int iIndent,
string sID,
string sGetText,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sID.Length > 0) { colArguments.Add("id"); }
if (sGetText.Length > 0) { colArguments.Add("getText"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "getText", sGetText);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
private static string Tag_End(
int iIndent,
string sTag)
{
string sreturn = "";
try
{
if (sTag == "customUI")
{
sreturn += String.Empty.PadLeft(iIndent) + @"";
}
else
{
sreturn += String.Empty.PadLeft(iIndent) + @"" + sTag + @">";
sreturn += System.Environment.NewLine;
}
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_Gallery(
int iIndent,
string sIDMso,
string sID,
string sLabel,
string sSize,
bool bShowLabel,
int iItemHeight,
int iItemWidth,
int iRows,
int iCols)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sID.Length > 0) { colArguments.Add("id"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sSize.Length > 0) { colArguments.Add("size"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
if (iItemHeight > -1) { colArguments.Add("itemHeight"); }
if (iItemWidth > -1) { colArguments.Add("itemWidth"); }
if (iRows > -1) { colArguments.Add("rows"); }
if (iCols > -1) { colArguments.Add("columns"); }
sreturn += String.Empty.PadLeft(iIndent) + "
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "idMso", sIDMso);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "id", sID);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "label", sLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "size", sSize);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showLabel", bShowLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "itemHeight", iItemHeight.ToString());
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "itemWidth", iItemWidth.ToString());
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "rows", iRows.ToString());
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "columns", iCols.ToString());
sreturn += @"/>";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
private static string Tag_Group(
int iIndent,
string sID,
string sLabel,
string sGetVisible,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sGetVisible.Length > 0) { colArguments.Add("getVisible"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "sreturn += @" id=""" + sID + @"""";
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += Tag_Attribute_String(iIndent + 7, ref colArguments, "label", sLabel);
sreturn += Tag_Attribute_String(iIndent + 7, ref colArguments, "getVisible", sGetVisible);
sreturn += Tag_Attribute_Boolean(iIndent + 7, ref colArguments, "visible", bVisible);
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_ItemAdd(
int iIndent,
string sLabel,
string sID)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sID.Length > 0) { colArguments.Add("id"); }
sreturn += String.Empty.PadLeft(iIndent) + "
if (sID.Length > 0)
{
colArguments.Remove("sID");
sreturn += @" id=""" + sID + @"""";
}
else
{
sreturn += @" id=""" + sLabel.Replace(" ", "_") + @"""";
}
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += clsRibbon.Tag_Attribute_String(7, ref colArguments, "label", sLabel);
sreturn += @"/>";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_LabelControl(
int iIndent,
string sID,
string sLabel,
bool bShowLabel,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sID.Length > 0) { colArguments.Add("id"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "id", sID);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "label", sLabel);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showLabel", bShowLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @"/>";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_Menu(
int iIndent,
string sIDMso,
string sLabel,
string sID,
string sImageMso,
string sImage,
bool bShowLabel,
bool bShowImage,
string sSize,
string sGetEnabled,
string sDescription,
string sScreentip,
string sSupertip,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sID.Length > 0) { colArguments.Add("id"); }
if (sImageMso.Length > 0) { colArguments.Add("imageMso"); }
if (sImage.Length > 0) { colArguments.Add("image"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
if (bShowImage == false) { colArguments.Add("showImage"); }
if (sSize.Length > 0) { colArguments.Add("size"); }
if (sGetEnabled.Length > 0) { colArguments.Add("getEnabled"); }
if (sDescription.Length > 0) { colArguments.Add("description"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
private static string Tag_Ribbon(
int iIndent,
bool bStartFromScratch)
{
string sreturn = "";
string strueorfalse = "";
try
{
if (bStartFromScratch == true) { strueorfalse = "true"; }
if (bStartFromScratch == false) { strueorfalse = "false"; }
sreturn += String.Empty.PadLeft(iIndent) + @"";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_Separator(
int iIndent,
string sID,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sID.Length > 0) { colArguments.Add("id"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "id", sID);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_SplitButton(
int iIndent,
string sIDMso,
string sLabel,
string sID,
string sImageMso,
string sImage,
string sSize,
string sGetEnabled,
string sScreentip,
bool bShowLabel,
string sSupertip,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sID.Length > 0) { colArguments.Add("id"); }
if (sImageMso.Length > 0) { colArguments.Add("imageMso"); }
if (sImage.Length > 0) { colArguments.Add("image"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sSize.Length > 0) { colArguments.Add("size"); }
if (sGetEnabled.Length > 0) { colArguments.Add("getEnabled"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
if (sIDMso.Length > 0)
{
colArguments.Remove("sIDMso");
sreturn += @" idMso=""" + sIDMso + @"""";
}
else
{
if (sID.Length > 0)
{
colArguments.Remove("sID");
sreturn += @" id=""" + sID + @"""" + System.Environment.NewLine;
}
}
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "imageMso", sImageMso);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "image", sImage);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "label", sLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "size", sSize);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "getEnabled", sGetEnabled);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "screentip", sScreentip);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showLabel", bShowLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "supertip", sSupertip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @">";
return sreturn;
}
catch (System.Exception objException)
{
return "";
}
finally
{
}
}
private static string Tag_Tab(
int iIndent,
string sID,
string sIDMso,
string sLabel,
string sInsertAfterMso,
string sInsertBeforeMso,
string sTag,
string sGetVisible,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sInsertAfterMso.Length > 0) { colArguments.Add("insertAfterMso"); }
if (sInsertBeforeMso.Length > 0) { colArguments.Add("insertBeforeMso"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (sGetVisible.Length > 0) { colArguments.Add("getVisible"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "sreturn += @" id=""" + sID + @"""";
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += Tag_Attribute_String(iIndent + 4, ref colArguments, "idMso", sIDMso);
sreturn += Tag_Attribute_String(iIndent + 4, ref colArguments, "label", sLabel);
sreturn += Tag_Attribute_String(iIndent + 4, ref colArguments, "insertAfterMso", sInsertAfterMso);
sreturn += Tag_Attribute_String(iIndent + 4, ref colArguments, "insertBeforeMso", sInsertBeforeMso);
sreturn += Tag_Attribute_String(iIndent + 4, ref colArguments, "tag", sTag);
sreturn += Tag_Attribute_String(iIndent + 4, ref colArguments, "getVisible", sGetVisible);
sreturn += Tag_Attribute_Boolean(iIndent + 4, ref colArguments, "visible", bVisible);
sreturn += @">";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
private static string Tag_Tabs(
int iIndent)
{
string sreturn = "";
try
{
sreturn += String.Empty.PadLeft(iIndent) + "";
sreturn += System.Environment.NewLine;
return sreturn;
}
catch { return ""; }
finally { }
}
public static string Tag_ToggleButton(
int iIndent,
string sIDMso,
string sLabel,
string sID,
string sImageMso,
string sImage,
string sSize,
string sGetEnabled,
string sScreentip,
bool bShowLabel,
string sSupertip,
string sTag,
bool bVisible)
{
string sreturn = "";
System.Collections.Generic.ListcolArguments = new System.Collections.Generic.List ();
try
{
if (sIDMso.Length > 0) { colArguments.Add("idMso"); }
if (sID.Length > 0) { colArguments.Add("id"); }
if (sImageMso.Length > 0) { colArguments.Add("imageMso"); }
if (sImage.Length > 0) { colArguments.Add("image"); }
if (sLabel.Length > 0) { colArguments.Add("label"); }
if (sSize.Length > 0) { colArguments.Add("size"); }
if (sGetEnabled.Length > 0) { colArguments.Add("getEnabled"); }
if (sScreentip.Length > 0) { colArguments.Add("screentip"); }
if (bShowLabel == false) { colArguments.Add("showLabel"); }
if (sSupertip.Length > 0) { colArguments.Add("supertip"); }
if (sTag.Length > 0) { colArguments.Add("tag"); }
if (bVisible == false) { colArguments.Add("visible"); }
sreturn += String.Empty.PadLeft(iIndent) + "
if (sIDMso.Length > 0)
{
colArguments.Remove("sIDMso");
sreturn += @" idMso=""" + sIDMso + @"""";
}
else
{
if (sID.Length > 0)
{
colArguments.Remove("sID");
sreturn += @" id=""" + sID + @"""" + System.Environment.NewLine;
sreturn += String.Empty.PadLeft(iIndent + 13) + @" onAction=""ToggleButton_" + sID + @"""";
}
}
if (colArguments.Count > 0) { sreturn += System.Environment.NewLine; }
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "imageMso", sImageMso);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "image", sImage);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "label", sLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "size", sSize);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "getEnabled", sGetEnabled);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "screentip", sScreentip);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "showLabel", bShowLabel);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "supertip", sSupertip);
sreturn += clsRibbon.Tag_Attribute_String(13, ref colArguments, "tag", sTag);
sreturn += clsRibbon.Tag_Attribute_Boolean(13, ref colArguments, "visible", bVisible);
sreturn += @">";
return sreturn;
}
catch (System.Exception objException)
{
return "";
}
finally
{
}
}