update emoji autocorrect entries from po-files
[LibreOffice.git] / sw / inc / fmtline.hxx
blobe6373b1375023f1f2e9abfe0a1329906f0f5b19d
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 .
19 #ifndef INCLUDED_SW_INC_FMTLINE_HXX
20 #define INCLUDED_SW_INC_FMTLINE_HXX
22 #include <svl/poolitem.hxx>
23 #include <hintids.hxx>
24 #include <format.hxx>
25 #include "swdllapi.h"
27 class IntlWrapper;
29 class SW_DLLPUBLIC SwFormatLineNumber: public SfxPoolItem
31 sal_uLong nStartValue :24; ///< Starting value for the paragraph. 0 == no starting value.
32 bool bCountLines :1; ///< Also count lines of paragraph.
34 public:
35 SwFormatLineNumber();
36 virtual ~SwFormatLineNumber();
38 TYPEINFO_OVERRIDE();
40 /// "Pure virtual methods" of SfxPoolItem.
41 virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
42 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
43 virtual bool GetPresentation( SfxItemPresentation ePres,
44 SfxMapUnit eCoreMetric,
45 SfxMapUnit ePresMetric,
46 OUString &rText,
47 const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE;
48 virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
49 virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
51 sal_uLong GetStartValue() const { return nStartValue; }
52 bool IsCount() const { return bCountLines; }
54 void SetStartValue( sal_uLong nNew ) { nStartValue = nNew; }
55 void SetCountLines( bool b ) { bCountLines = b; }
58 inline const SwFormatLineNumber &SwAttrSet::GetLineNumber(bool bInP) const
59 { return static_cast<const SwFormatLineNumber&>(Get( RES_LINENUMBER,bInP)); }
61 #endif
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */