update credits
[LibreOffice.git] / include / editeng / outlobj.hxx
blob8aa45c2157d28d359fc91f7fa06b416a7d7fa263
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 _OUTLOBJ_HXX
21 #define _OUTLOBJ_HXX
23 //////////////////////////////////////////////////////////////////////////////
25 #include <tools/solar.h>
26 #include <tools/string.hxx>
27 #include <rsc/rscsfx.hxx>
28 #include <editeng/paragraphdata.hxx>
29 #include "editeng/editengdllapi.h"
31 class EditTextObject;
32 class ImplOutlinerParaObject;
34 //////////////////////////////////////////////////////////////////////////////
36 class EDITENG_DLLPUBLIC OutlinerParaObject
38 private:
39 ImplOutlinerParaObject* mpImplOutlinerParaObject;
41 void ImplMakeUnique();
43 public:
44 // constructors/destructor
45 OutlinerParaObject(
46 const EditTextObject& rEditTextObject,
47 const ParagraphDataVector& rParagraphDataVector = ParagraphDataVector(),
48 bool bIsEditDoc = true);
49 OutlinerParaObject(const OutlinerParaObject& rCandidate);
50 ~OutlinerParaObject();
52 // assignment operator
53 OutlinerParaObject& operator=(const OutlinerParaObject& rCandidate);
55 // compare operator
56 bool operator==(const OutlinerParaObject& rCandidate) const;
57 bool operator!=(const OutlinerParaObject& rCandidate) const { return !operator==(rCandidate); }
59 // #i102062#
60 bool isWrongListEqual(const OutlinerParaObject& rCompare) const;
62 // outliner mode access
63 sal_uInt16 GetOutlinerMode() const;
64 void SetOutlinerMode(sal_uInt16 nNew);
66 // vertical access
67 bool IsVertical() const;
68 void SetVertical(bool bNew);
70 // data read access
71 sal_Int32 Count() const;
72 sal_Int16 GetDepth(sal_Int32 nPara) const;
73 const EditTextObject& GetTextObject() const;
74 bool IsEditDoc() const;
75 const ParagraphData& GetParagraphData(sal_Int32 nIndex) const;
77 // portion info support
78 void ClearPortionInfo();
80 // StyleSheet support
81 bool ChangeStyleSheets(const OUString& rOldName, SfxStyleFamily eOldFamily,
82 const OUString& rNewName, SfxStyleFamily eNewFamily);
83 void ChangeStyleSheetName(SfxStyleFamily eFamily, const OUString& rOldName,
84 const OUString& rNewName);
85 void SetStyleSheets(sal_uInt16 nLevel, const OUString rNewName,
86 const SfxStyleFamily& rNewFamily);
89 //////////////////////////////////////////////////////////////////////////////
91 #endif
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */