xref: /aoo4110/main/svtools/inc/svtools/wallitem.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 _WALLITEM_HXX
24 #define _WALLITEM_HXX
25 
26 #ifndef SHL_HXX
27 #include <tools/shl.hxx>
28 #endif
29 
30 // -----------------------------------------------------------------------------------------
31 // Hilfsklasse, um die Download-Funktionalitaet des SvxBrushItems unterhalb
32 // des SVX zu benutzen. Der Link wird im Konstruktor von SvxDialogDll gesetzt.
33 #ifndef _SFX_BRUSHITEMLINK_DECLARED
34 #define _SFX_BRUSHITEMLINK_DECLARED
35 #include <vcl/graph.hxx>
36 
37 #ifndef SHL_BRUSHITEM
38 #define SHL_BRUSHITEM SHL_SHL1
39 #endif
40 
41 class Window;
42 class SfxItemSet;
43 
44 typedef void* (*CreateSvxBrushTabPage)(Window *pParent, const SfxItemSet &rAttrSet);
45 typedef sal_uInt16*	(*GetSvxBrushTabPageRanges)();
46 
47 class Graphic;
48 class String;
49 class SfxBrushItemLink
50 {
51 public:
52 	virtual Graphic GetGraphic( const String& rLink, const String& rFilter) = 0;
53 	virtual CreateSvxBrushTabPage GetBackgroundTabpageCreateFunc() = 0;
54 	virtual GetSvxBrushTabPageRanges GetBackgroundTabpageRanges() = 0;
Get()55 	static SfxBrushItemLink* Get() { return *(SfxBrushItemLink**)GetAppData(SHL_BRUSHITEM);	}
56 	static void Set( SfxBrushItemLink* pLink );
57 };
58 #endif	// _SFX_BRUSHITEMLINK_DECLARED
59 
60 #endif // _WALLITEM_HXX
61 
62