public static string SolutionExplorer_GetSelectedItemCount() { var result = Ide.SolutionExplorer_GetItemCount(); return(result); }
public static object GetOp(string right) { if (XString.Eq(right , "NL" , "NewLine" )) { var result = "\r\n"; return(result); } else if (XString.Eq(right , "CR" , "CarriageReturn" )) { var result = "\r"; return(result); } else if (XString.Eq(right , "LF" , "LineFeed" )) { var result = "\n"; return(result); } else if (XString.Eq(right , "HT" , "Tab" )) { var result = "\t"; return(result); } else if (XString.Eq(right , "SP" , "Space" )) { var result = " "; return(result); } else if (XString.Eq(right , "CO" , "Comma" )) { var result = ","; return(result); } else if (XString.Eq(right , "SC" , "SemiColon" )) { var result = ";"; return(result); } else if (XString.Eq(right , "FS" , "FullStop" )) { var result = "."; return(result); } else if (XString.Eq(right , "SO" , "Solidus" )) { var result = "/"; return(result); } else if (XString.Eq(right , "RS" , "ReverseSolidus" )) { var result = "\\"; return(result); } else if (XString.Eq(right , "a.text" , "ActiveDocument.Selection.Text" )) { var selection = ActiveDocument_GetSelection(); return(selection.Text); } else if (XString.Eq(right , "a.line" , "ActiveDocument.Selection.CurrentLine" )) { var selection = ActiveDocument_GetSelection(); return(selection.CurrentLine.ToString()); } else if (XString.Eq(right , "a.col" , "ActiveDocument.Selection.CurrentColumn" )) { var selection = ActiveDocument_GetSelection(); return(selection.CurrentColumn.ToString()); } else if (XString.Eq(right , "a.topline" , "ActiveDocument.Selection.TopLine" )) { var selection = ActiveDocument_GetSelection(); return(selection.TopLine.ToString()); } else if (XString.Eq(right , "a.bottomline" , "ActiveDocument.Selection.BottomLine" )) { var selection = ActiveDocument_GetSelection(); return(selection.BottomLine.ToString()); } else if (XString.Eq(right , "a.rangecount" , "ActiveDocument.Selection.TextRangesCount" )) { var selection = ActiveDocument_GetSelection(); return(selection.TextRanges.Count.ToString()); } else if (XString.Eq(right , "a.topchar" , "ActiveDocument.Selection.TopCharOffset" )) { var selection = ActiveDocument_GetSelection(); return(selection.TopPoint.AbsoluteCharOffset.ToString()); } else if (XString.Eq(right , "a.bottomchar" , "ActiveDocument.Selection.BottomCharOffset" )) { var selection = ActiveDocument_GetSelection(); return(selection.BottomPoint.AbsoluteCharOffset.ToString()); } //else if (XString.Eq(right //, "test" //, "Line_GetLineIndexByCharIndex" //)) //{ // var tdoc2 = Dte.ActiveDocument.Object("TextDocument") as TextDocument; // var ep2 = tdoc2.CreateEditPoint(); // ep2.MoveToAbsoluteOffset(1); // var line = ep2.Line; //} else if (XString.Eq(right , "s.items" , "SolutionExplorer.Selection.Items" )) { var result = Ide.SolutionExplorer_GetItems(); return(result); } else if (XString.Eq(right , "s.itemcount" , "SolutionExplorer.Selection.ItemCount" )) { var result = Ide.SolutionExplorer_GetItemCount(); return(result); } else if (XString.Eq(right , "docs" , "Editor.OpenDocuments")) { var result = OpenDocuments_Get(); return(result); } else if (XString.Eq(right , "doccount" , "Editor.OpenDocumentCount")) { var result = OpenDocumentCount_Get(); return(result); } else if (XString.Eq(right , "Server.Id" )) { return(ServerWindow.Text); } else if (XString.Eq(right , "Server.State" )) { var result = ServerManager.ServerState.ToString(); return(result); } else if (XString.Eq(right , "Server.Handle" )) { var result = ServerWindow.Handle.ToString(); return(result); } else if (XString.Eq(right , "Server.Class" )) { var result = ServerWindow.GetWindowClassName(); return(result); } else if (XString.Eq(right , "Server.LogEnabled" )) { var result = XLog.Enabled ? "1" : "0"; return(result); } else if (XString.Eq(right , "Server.LogfileExists" )) { var result = XLog.Exists ? "1" : "0"; return(result); } else if (XString.Eq(right , "Server.LogFile" )) { var result = XLog.LogFile.ToString(); return(result); } else if (XString.Eq(right , "Server.Marker" )) { var result = Persistence.Marker.ToString(); return(result); } else if (XString.Eq(right , "Server.Version" )) { var result = Persistence.Version.ToString(); return(result); } else if (XString.Eq(right , "Server.SupportGetOps" )) { var result = Persistence.SupportGetOps ? "1" : "0"; return(result); } else if (XString.Eq(right , "Server.SupportSetOps" )) { var result = Persistence.SupportSetOps ? "1" : "0"; return(result); } else if (XString.Eq(right , "Server.RequestEncoding" )) { var result = Persistence.RequestEncoding.ToString(); return(result); } else if (XString.Eq(right , "Server.ResponseEncoding" )) { var result = Persistence.ResponseEncoding.ToString(); return(result); } else if (XString.Eq(right , "Server.ClaimMarkerInRequest" )) { var result = Persistence.ClaimMarkerInRequest ? "1" : "0"; return(result); } else if (XString.Eq(right , "Server.IncludeMarkerInResponse" )) { var result = Persistence.IncludeMarkerInResponse ? "1" : "0"; return(result); } return(""); }