LibreOffice Module sw (master) 1
splittbl.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <vcl/weld.hxx>
23#include <tblenum.hxx>
25
26class SwWrtShell;
27
29{
30private:
31 std::unique_ptr<weld::RadioButton> m_xBoxAttrCopyWithParaRB;
32 std::unique_ptr<weld::RadioButton> m_xBoxAttrCopyNoParaRB;
33 std::unique_ptr<weld::RadioButton> m_xBorderCopyRB;
34
37
38 // tdf#131759 - remember last used option in split table dialog
40
41 void Apply();
42
43public:
45
46 virtual short run() override
47 {
48 short nRet = GenericDialogController::run();
49 if (nRet == RET_OK)
50 Apply();
51 return nRet;
52 }
53
55 {
57 if (m_xBoxAttrCopyWithParaRB->get_active())
59 else if (m_xBoxAttrCopyNoParaRB->get_active())
61 else if (m_xBorderCopyRB->get_active())
63
64 // tdf#131759 - remember last used option in split table dialog
66
67 return nSplit;
68 }
69};
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SplitTable_HeadlineOption GetSplitMode() const
Definition: splittbl.hxx:54
SplitTable_HeadlineOption m_nSplit
Definition: splittbl.hxx:36
virtual short run() override
Definition: splittbl.hxx:46
std::unique_ptr< weld::RadioButton > m_xBoxAttrCopyWithParaRB
Definition: splittbl.hxx:31
static SplitTable_HeadlineOption m_eRememberedSplitOption
Definition: splittbl.hxx:39
SwSplitTableDlg(weld::Window *pParent, SwWrtShell &rSh)
Definition: splittbl.cxx:27
std::unique_ptr< weld::RadioButton > m_xBorderCopyRB
Definition: splittbl.hxx:33
SwWrtShell & m_rShell
Definition: splittbl.hxx:35
std::unique_ptr< weld::RadioButton > m_xBoxAttrCopyNoParaRB
Definition: splittbl.hxx:32
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
SplitTable_HeadlineOption
Definition: tblenum.hxx:55
RET_OK