summaryrefslogtreecommitdiff
path: root/sw/inc/fmtrowsplt.hxx
blob: c9aad4a8007855490770c72bba9c350a380b06ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */
#ifndef INCLUDED_SW_INC_FMTROWSPLT_HXX
#define INCLUDED_SW_INC_FMTROWSPLT_HXX

#include <svl/eitem.hxx>
#include "swdllapi.h"
#include "hintids.hxx"
#include "format.hxx"

class IntlWrapper;

class SW_DLLPUBLIC SwFormatRowSplit final : public SfxBoolItem
{
public:
    SwFormatRowSplit( bool bSplit = true ) : SfxBoolItem( RES_ROW_SPLIT, bSplit ) {}

    // "pure virtual methods" of SfxPoolItem
    virtual SwFormatRowSplit* Clone( SfxItemPool *pPool = nullptr ) const override;
    virtual bool GetPresentation( SfxItemPresentation ePres,
                                  MapUnit eCoreMetric,
                                  MapUnit ePresMetric,
                                  OUString &rText,
                                  const IntlWrapper& rIntl ) const override;
};

inline const SwFormatRowSplit &SwAttrSet::GetRowSplit(bool bInP) const
    { return Get( RES_ROW_SPLIT,bInP); }

inline const SwFormatRowSplit &SwFormat::GetRowSplit(bool bInP) const
    { return m_aSet.GetRowSplit(bInP); }

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
//gerrit.libreoffice.org/22984 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> 2016-02-24convert codemaker::UnoType::Sort to scoped enumNoel Grandin Change-Id: I70a84f777e714bcc20c2d7b06b918e3be0f3ce4a 2015-12-14Use emplace_backStephan Bergmann Change-Id: I006e3c8f411b480917d9cfb9c4f3d082b79c833d 2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann Change-Id: Ic89c5fb56e1f11fa17f6014a8c9722592b144337 2015-11-09new loplugin: oncevarNoel Grandin Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> 2015-11-06coverity#1338260 Uncaught exceptionCaolán McNamara Change-Id: Ib969223cb5c8acdad0e97ff9b944703d3ee43825 2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin Change-Id: Id57ccff7ea6cf5c7053b51268b1190f5459bb357 2015-08-11loplugin: defaultparamsNoel Grandin Change-Id: I50ba6a836473961d952ed88e56532501469c5368 2015-08-10cppcheck: badBitmaskCheckCaolán McNamara Change-Id: I0a6787379317e5077c5a4520e5144fe091a01538 2015-06-16Fix typosAndrea Gelmini Change-Id: Ieaf67cf597e05dbae5affa153af907fda4462a41 Reviewed-on: https://gerrit.libreoffice.org/16295 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> 2015-06-15cppcheck:redundantAssignmentNoel Grandin Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7 2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796 2014-12-16unodevtools: Use appropriate OUString functions on string constantsStephan Bergmann Change-Id: I70a86543c0269cbaeefc9cbe1da30c2ad7e48333 2014-12-04unodevtools: loplugin:cstylecastStephan Bergmann Change-Id: Id4bd8bb8361204ae281a090840b08c502e5b4a7a 2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com> 2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> 2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>