bump product version to 4.1.6.2
[LibreOffice.git] / sc / inc / stlsheet.hxx
blobc66d53642b4e13314fb887910a4a3c0920d005e2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_STLSHEET_HXX
21 #define SC_STLSHEET_HXX
23 #include <svl/style.hxx>
25 //------------------------------------------------------------------------
27 #define SCSTYLEBIT_STANDARD 0x0001
29 //------------------------------------------------------------------------
31 class ScStyleSheetPool;
33 class ScStyleSheet : public SfxStyleSheet
35 friend class ScStyleSheetPool;
37 public:
39 enum Usage
41 UNKNOWN,
42 USED,
43 NOTUSED
46 private:
47 mutable ScStyleSheet::Usage eUsage;
49 public:
50 TYPEINFO();
52 ScStyleSheet( const ScStyleSheet& rStyle );
54 virtual bool SetParent ( const String& rParentName );
55 virtual SfxItemSet& GetItemSet ();
56 virtual bool IsUsed () const;
57 virtual bool HasFollowSupport () const;
58 virtual bool HasParentSupport () const;
60 virtual const String& GetName() const;
61 virtual const String& GetParent() const;
62 virtual const String& GetFollow() const;
64 virtual bool SetName( const String& );
66 void SetUsage( ScStyleSheet::Usage eUse ) const
67 { eUsage = eUse; }
68 ScStyleSheet::Usage GetUsage() const
69 { return eUsage; }
71 protected:
72 virtual ~ScStyleSheet();
74 ScStyleSheet( const String& rName,
75 ScStyleSheetPool& rPool,
76 SfxStyleFamily eFamily,
77 sal_uInt16 nMask );
79 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
82 #endif // SC_STLSHEET_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */