Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
3.9 KiB

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 1999 - 1999
  5. *
  6. * File: conview.h
  7. *
  8. * Contents: Interface file for CConsoleView
  9. *
  10. * History: 24-Aug-99 jeffro Created
  11. *
  12. *--------------------------------------------------------------------------*/
  13. #ifndef CONVIEW_H
  14. #define CONVIEW_H
  15. #pragma once
  16. // declarations
  17. class CMemento;
  18. class CContextMenuInfo;
  19. class CConsoleStatusBar;
  20. class CConsoleView
  21. {
  22. public:
  23. enum WebCommand
  24. {
  25. eWeb_Back = 1,
  26. eWeb_Forward,
  27. eWeb_Home,
  28. eWeb_Refresh,
  29. eWeb_Stop,
  30. };
  31. //
  32. // NOTE: ePane_Tasks is being added to have a pane identifier for
  33. // the task view pane. Currently no task view information is stored
  34. // in the pane info array, so the use of ePane_Tasks as an index is
  35. // of limited value.
  36. //
  37. enum ViewPane
  38. {
  39. ePane_None = -1,
  40. ePane_ScopeTree,
  41. ePane_Results,
  42. ePane_Tasks,
  43. // must be last
  44. ePane_Count,
  45. ePane_First = ePane_ScopeTree,
  46. ePane_Last = ePane_Tasks,
  47. };
  48. static bool IsValidPane (ViewPane ePane)
  49. { return ((ePane >= ePane_First) && (ePane <= ePane_Last)); }
  50. public:
  51. virtual SC ScCut (HTREEITEM htiCut) = 0;
  52. virtual SC ScPaste () = 0;
  53. virtual SC ScToggleStatusBar () = 0;
  54. virtual SC ScToggleDescriptionBar () = 0;
  55. virtual SC ScToggleScopePane () = 0;
  56. virtual SC ScToggleTaskpadTabs () = 0;
  57. virtual SC ScContextHelp () = 0;
  58. virtual SC ScHelpTopics () = 0;
  59. virtual SC ScShowSnapinHelpTopic (LPCTSTR pszTopic) = 0;
  60. virtual SC ScSaveList () = 0;
  61. virtual SC ScGetFocusedItem (HNODE& hNode, LPARAM& lCookie, bool& fScope) = 0;
  62. virtual SC ScSetFocusToPane (ViewPane ePane) = 0;
  63. virtual SC ScSelectNode (MTNODEID id, bool bSelectExactNode = false) = 0;
  64. virtual SC ScExpandNode (MTNODEID id, bool fExpand, bool fExpandVisually) = 0;
  65. virtual SC ScShowWebContextMenu () = 0;
  66. virtual SC ScSetDescriptionBarText (LPCTSTR pszDescriptionText) = 0;
  67. virtual SC ScViewMemento (CMemento* pMemento) = 0;
  68. virtual SC ScChangeViewMode (int nNewMode) = 0;
  69. virtual SC ScJiggleListViewFocus () = 0;
  70. virtual SC ScRenameListPadItem () = 0;
  71. virtual SC ScOrganizeFavorites () = 0; // bring up the "Organize Favorites" dialog.
  72. virtual SC ScLineUpIcons () = 0; // line up the icons in the list
  73. virtual SC ScAutoArrangeIcons () = 0; // auto arrange the icons in the list
  74. virtual SC ScOnRefresh (HNODE hNode, bool bScope, LPARAM lResultItemParam) = 0; // refresh the result pane.
  75. virtual SC ScOnRename (CContextMenuInfo *pContextInfo) = 0; // allows the user to rename the specified item
  76. virtual SC ScRenameScopeNode (HMTNODE hMTNode) = 0; // put the specified scope node into rename mode.
  77. virtual SC ScGetStatusBar (CConsoleStatusBar **ppStatusBar) = 0;
  78. virtual ViewPane GetFocusedPane () = 0;
  79. virtual int GetListSize () = 0;
  80. virtual HNODE GetSelectedNode () = 0;
  81. virtual HWND CreateFavoriteObserver (HWND hwndParent, int nID) = 0;
  82. };
  83. #endif /* CONVIEW_H */