xref: /aoo4110/main/cui/source/options/optmemory.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _OFA_OPTMEMORY_HXX
24 #define _OFA_OPTMEMORY_HXX
25 
26 #include <vcl/lstbox.hxx>
27 #include <vcl/group.hxx>
28 #include <vcl/field.hxx>
29 #include <vcl/fixed.hxx>
30 #include <sfx2/tabdlg.hxx>
31 #include <svx/langbox.hxx>
32 #define FOLDERWEBVIEW_DEFAULTFILE	"folder.so"
33 
34 // class OfaMiscTabPage --------------------------------------------------
35 
36 class OfaMemoryOptionsPage : public SfxTabPage
37 {
38 	using SfxTabPage::DeactivatePage;
39 private:
40 	FixedLine           aUndoBox;
41 	FixedText			aUndoText;
42 	NumericField		aUndoEdit;
43 
44 	FixedLine           aGbGraphicCache;
45 	FixedText			aFtGraphicCache;
46 	NumericField		aNfGraphicCache;
47 	FixedText           aFtGraphicCacheUnit;
48 	FixedText			aFtGraphicObjectCache;
49 	NumericField		aNfGraphicObjectCache;
50 	FixedText           aFtGraphicObjectCacheUnit;
51 	FixedText			aFtGraphicObjectTime;
52 	TimeField			aTfGraphicObjectTime;
53 	FixedText           aFtGraphicObjectTimeUnit;
54 
55 	FixedLine           aGbOLECache;
56 	FixedText			aFtOLECache;
57 	NumericField		aNfOLECache;
58 
59 	FixedLine           aQuickLaunchFL;
60 	CheckBox            aQuickLaunchCB;
61 
62 	DECL_LINK( GraphicCacheConfigHdl, NumericField* );
63 
64 	inline long			GetNfGraphicCacheVal( void ) const;					// returns # of Bytes
65 	inline void			SetNfGraphicCacheVal( long nSizeInBytes );
66 
67 	long				GetNfGraphicObjectCacheVal( void ) const;			// returns # of Bytes
68 	void				SetNfGraphicObjectCacheVal( long nSizeInBytes );
69 	inline void			SetNfGraphicObjectCacheMax( long nSizeInBytes );
70 	inline void			SetNfGraphicObjectCacheLast( long nSizeInBytes );
71 protected:
72 	virtual int         DeactivatePage( SfxItemSet* pSet = NULL );
73 
74 public:
75 	OfaMemoryOptionsPage( Window* pParent, const SfxItemSet& rSet );
76 	~OfaMemoryOptionsPage();
77 
78 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
79 
80 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
81 	virtual	void 		Reset( const SfxItemSet& rSet );
82 };
83 
84 
85 #endif
86