1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 INCLUDED_EDITENG_OUTLOBJ_HXX
21 #define INCLUDED_EDITENG_OUTLOBJ_HXX
23 #include <editeng/paragraphdata.hxx>
24 #include <editeng/editengdllapi.h>
25 #include <rtl/ustring.hxx>
26 #include <rsc/rscsfx.hxx>
30 class EDITENG_DLLPUBLIC OutlinerParaObject
35 void ImplMakeUnique();
38 // constructors/destructor
39 OutlinerParaObject( const EditTextObject
&, const ParagraphDataVector
&, bool bIsEditDoc
= true);
40 OutlinerParaObject( const EditTextObject
&);
41 OutlinerParaObject( const OutlinerParaObject
&);
42 ~OutlinerParaObject();
44 // assignment operator
45 OutlinerParaObject
& operator=(const OutlinerParaObject
& rCandidate
);
48 bool operator==(const OutlinerParaObject
& rCandidate
) const;
49 bool operator!=(const OutlinerParaObject
& rCandidate
) const { return !operator==(rCandidate
); }
52 bool isWrongListEqual(const OutlinerParaObject
& rCompare
) const;
54 // outliner mode access
55 sal_uInt16
GetOutlinerMode() const;
56 void SetOutlinerMode(sal_uInt16 nNew
);
59 bool IsVertical() const;
60 void SetVertical(bool bNew
);
63 sal_Int32
Count() const;
64 sal_Int16
GetDepth(sal_Int32 nPara
) const;
65 const EditTextObject
& GetTextObject() const;
66 bool IsEditDoc() const;
67 const ParagraphData
& GetParagraphData(sal_Int32 nIndex
) const;
69 // portion info support
70 void ClearPortionInfo();
73 bool ChangeStyleSheets(const OUString
& rOldName
, SfxStyleFamily eOldFamily
,
74 const OUString
& rNewName
, SfxStyleFamily eNewFamily
);
75 void ChangeStyleSheetName(SfxStyleFamily eFamily
, const OUString
& rOldName
,
76 const OUString
& rNewName
);
77 void SetStyleSheets(sal_uInt16 nLevel
, const OUString
& rNewName
,
78 const SfxStyleFamily
& rNewFamily
);
80 void dumpAsXml(struct _xmlTextWriter
* pWriter
) const;
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */