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 24 #ifndef _SFXIMGMGR_HXX 25 #define _SFXIMGMGR_HXX 26 27 #include "sal/config.h" 28 #include "sfx2/dllapi.h" 29 30 #include <sal/types.h> 31 #include <tools/gen.hxx> 32 #ifndef _IMAGE_HXX //autogen 33 #include <vcl/image.hxx> 34 #endif 35 36 class ToolBox; 37 class SfxModule; 38 class SfxImageManager_Impl; 39 class SFX2_DLLPUBLIC SfxImageManager 40 { 41 SfxImageManager_Impl* pImp; 42 43 public: 44 static SfxImageManager* GetImageManager( SfxModule* ); 45 46 SfxImageManager( SfxModule* pModule = 0 ); 47 ~SfxImageManager(); 48 49 void RegisterToolBox( ToolBox *pBox, sal_uInt16 nFlags=0xFFFF); 50 void ReleaseToolBox( ToolBox *pBox ); 51 52 // get images from resources 53 void SetImages( ToolBox& rToolBox ); 54 void SetImages( ToolBox& rToolBox, sal_Bool bHiContrast, sal_Bool bLarge ); 55 void SetImagesForceSize( ToolBox& rToolBox, sal_Bool bHiContrast, sal_Bool bLarge ); 56 57 Image GetImage( sal_uInt16 nId, sal_Bool bLarge, sal_Bool bHiContrast ) const; 58 Image GetImage( sal_uInt16 nId, sal_Bool bHiContrast ) const; 59 Image SeekImage( sal_uInt16 nId, sal_Bool bLarge, sal_Bool bHiContrast ) const; 60 Image SeekImage( sal_uInt16 nId, sal_Bool bHiContrast ) const; 61 }; 62 63 #endif 64