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.

207 lines
2.4 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. UIOPTSET.INL
  5. History:
  6. --*/
  7. inline
  8. void
  9. CLocUIOptionSet::AddOption(
  10. CLocUIOption *pOption)
  11. {
  12. m_olOptions.AddTail(pOption);
  13. pOption->SetParent(this);
  14. }
  15. inline
  16. void
  17. CLocUIOptionSet::AddOptionSet(
  18. CLocUIOptionSet *pOptionSet)
  19. {
  20. m_oslSubOptions.AddTail(pOptionSet);
  21. pOptionSet->SetParent(this);
  22. }
  23. inline
  24. const CLocUIOptionList &
  25. CLocUIOptionSet::GetOptionList(void)
  26. const
  27. {
  28. return m_olOptions;
  29. }
  30. inline
  31. const CLocUIOptionSetList &
  32. CLocUIOptionSet::GetOptionSets(void)
  33. const
  34. {
  35. return m_oslSubOptions;
  36. }
  37. inline
  38. const CLString &
  39. CLocUIOptionSet::GetGroupName(void)
  40. const
  41. {
  42. if (GetParent() != NULL)
  43. {
  44. return GetParent()->GetGroupName();
  45. }
  46. else
  47. {
  48. return m_strGroup;
  49. }
  50. }
  51. inline
  52. UINT
  53. CLocUIOptionSet::GetDisplayOrder()
  54. const
  55. {
  56. return m_uiDisplayOrder;
  57. }
  58. inline
  59. void
  60. CLocUIOptionSet::SetDescription(
  61. const HINSTANCE hDll,
  62. UINT idsDesc)
  63. {
  64. m_strDesc.LoadString(hDll, idsDesc);
  65. }
  66. inline
  67. void
  68. CLocUIOptionSet::SetDescription(
  69. const CLString &strDesc)
  70. {
  71. m_strDesc = strDesc;
  72. }
  73. inline
  74. void
  75. CLocUIOptionSet::SetHelpText(
  76. const HINSTANCE hDll,
  77. UINT idsHelp)
  78. {
  79. m_strHelp.LoadString(hDll, idsHelp);
  80. }
  81. inline
  82. void
  83. CLocUIOptionSet::SetHelpID(UINT uiHelpId)
  84. {
  85. m_idHelp = uiHelpId;
  86. }
  87. inline
  88. void
  89. CLocUIOptionSet::SetGroupName(
  90. const TCHAR *szGroupName)
  91. {
  92. m_strGroup = szGroupName;
  93. }
  94. inline
  95. void
  96. CLocUIOptionSet::SetHelpText(
  97. const CLString &strHelp)
  98. {
  99. m_strHelp = strHelp;
  100. }
  101. inline
  102. void
  103. CLocUIOptionSet::GetDescription(
  104. CLString &strDesc)
  105. const
  106. {
  107. strDesc = m_strDesc;
  108. }
  109. inline
  110. void
  111. CLocUIOptionSet::GetHelpText(
  112. CLString &strHelp)
  113. const
  114. {
  115. strHelp = m_strHelp;
  116. }
  117. inline
  118. UINT
  119. CLocUIOptionSet::GetHelpID(void)
  120. const
  121. {
  122. return m_idHelp;
  123. }
  124. inline
  125. BOOL
  126. CLocUIOptionSet::IsEmpty(void)
  127. const
  128. {
  129. return m_olOptions.IsEmpty() && m_oslSubOptions.IsEmpty();
  130. }
  131. inline
  132. void
  133. CLocUIOptionSet::SetParent(
  134. const CLocUIOptionSet *pParent)
  135. {
  136. m_pParent = pParent;
  137. }
  138. inline
  139. void
  140. CLocUIOptionSet::SetDisplayOrder(
  141. UINT uiDisplayOrder)
  142. {
  143. m_uiDisplayOrder = uiDisplayOrder;
  144. }
  145. inline
  146. const
  147. CLocUIOptionSet *
  148. CLocUIOptionSet::GetParent(void)
  149. const
  150. {
  151. return m_pParent;
  152. }