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