Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sd / stlpool.hxx
blob7067f1855fdb62aafb8566407f3080cd853507f9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: stlpool.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SD_STLPOOL_HXX
32 #define _SD_STLPOOL_HXX
35 #ifndef _SFXSTYLE_HXX //autogen
36 #include <bf_svtools/style.hxx>
37 #endif
38 namespace binfilter {
40 class SdStyleSheet;
41 class SdDrawDocument;
44 class SdStyleSheetPool : public SfxStyleSheetPool
46 private:
47 SfxStyleSheetBase* pActualStyleSheet;
48 SdDrawDocument* pDoc;
50 protected:
51 virtual SfxStyleSheetBase* Create(const String& rName,
52 SfxStyleFamily eFamily,
53 USHORT nMask);
55 public:
56 SdStyleSheetPool(SfxItemPool& rPool, SdDrawDocument* pDocument);
57 virtual ~SdStyleSheetPool();
59 void SetActualStyleSheet(SfxStyleSheetBase* pActStyleSheet)
60 { pActualStyleSheet = pActStyleSheet; }
61 SfxStyleSheetBase* GetActualStyleSheet() { return pActualStyleSheet; }
63 SfxStyleSheetBase* GetTitleSheet(const String& rLayoutName);
65 // Caller muss Liste loeschen
66 List* CreateOutlineSheetList(const String& rLayoutName);
68 /** creates all layout style sheets for the givin layout name if they
69 don't exist yet.
71 @param rLayoutName Must be the name of a master page
72 @param bCheck If set to true, the debug version will assert if a style
73 had to be created. This is used to assert errors in documents
74 when styles are missing.
76 void CreateLayoutStyleSheets(const String& rLayoutName, sal_Bool bCheck = sal_False );
78 void CreatePseudosIfNecessary();
79 void UpdateStdNames();
80 void AdjustLRSpaceItems();
81 static void PutNumBulletItem( SfxStyleSheetBase* pSheet, Font& rBulletFont );
82 Font GetBulletFont() const;
84 SdDrawDocument* GetDoc() const { return pDoc; }
87 } //namespace binfilter
88 #endif // _SD_STLPOOL_HXX