Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef IDOCUMENTSTYLEPOOLACCESS_HXX_INCLUDED
30 : : #define IDOCUMENTSTYLEPOOLACCESS_HXX_INCLUDED
31 : :
32 : : #ifndef _SAL_TYPES_H_
33 : : #include <sal/types.h>
34 : : #endif
35 : :
36 : : class SwTxtFmtColl;
37 : : class SwCharFmt;
38 : : class SwFmt;
39 : : class SwFrmFmt;
40 : : class String;
41 : : class SwNumRule;
42 : : class SwPageDesc;
43 : :
44 : : /** Access to the style pool
45 : : */
46 : 1549 : class IDocumentStylePoolAccess
47 : : {
48 : : public:
49 : :
50 : : /** Return "Auto-Collection with ID.
51 : : Create, if it does not yet exist.
52 : : If string pointer is defined request only description
53 : : of attributes, do not create style sheet!
54 : : */
55 : : virtual SwTxtFmtColl* GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage = true ) = 0;
56 : :
57 : : /** Return required automatic format base class.
58 : : */
59 : : virtual SwFmt* GetFmtFromPool( sal_uInt16 nId ) = 0;
60 : :
61 : : /** Return required automatic format.
62 : : */
63 : : virtual SwFrmFmt* GetFrmFmtFromPool( sal_uInt16 nId ) = 0;
64 : :
65 : : virtual SwCharFmt* GetCharFmtFromPool( sal_uInt16 nId ) = 0;
66 : :
67 : : /** Return required automatic page style.
68 : : */
69 : : virtual SwPageDesc* GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage = true ) = 0;
70 : :
71 : : virtual SwNumRule* GetNumRuleFromPool( sal_uInt16 nId ) = 0;
72 : :
73 : : /** Check whether this "auto-collection" is used in document.
74 : : */
75 : : virtual bool IsPoolTxtCollUsed( sal_uInt16 nId ) const = 0;
76 : : virtual bool IsPoolFmtUsed( sal_uInt16 nId ) const = 0;
77 : : virtual bool IsPoolPageDescUsed( sal_uInt16 nId ) const = 0;
78 : :
79 : : protected:
80 [ - + ]: 1458 : virtual ~IDocumentStylePoolAccess() {};
81 : : };
82 : :
83 : : #endif // IDOCUMENTSTYLEPOOLACCESS_HXX_INCLUDED
84 : :
85 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|