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.

60 lines
1.8 KiB

  1. // options.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. class CUnit
  13. {
  14. public:
  15. int m_nTPU;
  16. int m_nSmallDiv; // small divisions - small line displayed
  17. int m_nMediumDiv; // medium divisions - large line displayed
  18. int m_nLargeDiv; // large divisions - numbers displayed
  19. int m_nMinMove; // minimum tracking movements
  20. UINT m_nAbbrevID;
  21. BOOL m_bSpaceAbbrev; // put space before abbreviation
  22. CString m_strAbbrev;// cm, pt, pi, ", in, inch, inches
  23. CUnit() {}
  24. CUnit(int nTPU, int nSmallDiv, int nMediumDiv, int nLargeDiv,
  25. int nMinMove, UINT nAbbrevID, BOOL bSpaceAbbrev);
  26. const CUnit& operator=(const CUnit& unit);
  27. };
  28. class CDocOptions
  29. {
  30. public:
  31. CDocOptions(int nDefWrap) {m_nDefWrap = nDefWrap;}
  32. CDockState m_ds1;
  33. CDockState m_ds2;
  34. int m_nWordWrap;
  35. int m_nDefWrap;
  36. struct CBarState
  37. {
  38. BOOL m_bRulerBar;
  39. BOOL m_bStatusBar;
  40. BOOL m_bToolBar;
  41. BOOL m_bFormatBar;
  42. }
  43. m_barstate[2];
  44. void SaveOptions(LPCTSTR lpsz);
  45. void LoadOptions(LPCTSTR lpsz);
  46. void SaveDockState(CDockState& ds, LPCTSTR lpszProfileName,
  47. LPCTSTR lpszLayout);
  48. void LoadDockState(CDockState& ds, LPCTSTR lpszProfileName,
  49. LPCTSTR lpszLayout);
  50. CDockState& GetDockState(BOOL bPrimary) {return (bPrimary) ? m_ds1 : m_ds2;}
  51. CBarState & GetBarState(BOOL bPrimary = TRUE) {return bPrimary ? m_barstate[0] : m_barstate[1];}
  52. };
  53. /////////////////////////////////////////////////////////////////////////////