0
|
1 // Written in the D programming language
|
|
2 // www.digitalmars.com/d/
|
|
3
|
|
4 /*
|
|
5 * The contents of this file are subject to the Mozilla Public License Version
|
|
6 * 1.1 (the "License"); you may not use this file except in compliance with
|
|
7 * the License. You may obtain a copy of the License at
|
|
8 * http://www.mozilla.org/MPL/
|
|
9 *
|
|
10 * Software distributed under the License is distributed on an "AS IS" basis,
|
|
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
12 * for the specific language governing rights and limitations under the
|
|
13 * License.
|
|
14 *
|
|
15 * The Original Code is the Dynamin library.
|
|
16 *
|
|
17 * The Initial Developer of the Original Code is Jordan Miner.
|
|
18 * Portions created by the Initial Developer are Copyright (C) 2007-2009
|
|
19 * the Initial Developer. All Rights Reserved.
|
|
20 *
|
|
21 * Contributor(s):
|
|
22 * Jordan Miner <jminer7@gmail.com>
|
|
23 *
|
|
24 */
|
|
25
|
|
26 module dynamin.gui.office_theme;
|
|
27
|
|
28 static this() {
|
|
29 addTheme(new OfficeTheme());
|
|
30 }
|
|
31
|
|
32 enum OfficeStyle {
|
|
33 //Office2000 = 1
|
|
34 OfficeXP = 2, Office2003
|
|
35 }
|
|
36 // this theme paints its tool bars and menus as Office XP or Office 2003
|
|
37 // It paints other controls exactly as the WindowsTheme does, as it is derived
|
|
38 // from it.
|
|
39 class OfficeTheme : WindowsTheme {
|
|
40 OfficeStyle _style = OfficeStyle.Office2003;
|
|
41 void officeStyle(OfficeStyle s) { _style = s; }
|
|
42 OfficeStyle officeStyle() { return _style; }
|
|
43 }
|
|
44
|