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.

205 lines
2.5 KiB

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