LibreOffice Module sc (master) 1
mergecellsdialog.cxx
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 */
10
11#include <mergecellsdialog.hxx>
12
14 : GenericDialogController(pParent, "modules/scalc/ui/mergecellsdialog.ui", "MergeCellsDialog")
15 , m_xRBMoveContent(m_xBuilder->weld_radio_button("move-cells-radio"))
16 , m_xRBKeepContent(m_xBuilder->weld_radio_button("keep-content-radio"))
17 , m_xRBEmptyContent(m_xBuilder->weld_radio_button("empty-cells-radio"))
18{
19 m_xRBKeepContent->set_active(true);
20}
21
23
25{
26 if (m_xRBMoveContent->get_active())
28 if (m_xRBKeepContent->get_active())
30 if (m_xRBEmptyContent->get_active())
32 assert(!"Unknown selection for merge cells.");
33 return KeepContentHiddenCells; // default value
34}
35
36/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::RadioButton > m_xRBMoveContent
ScMergeCellsOption GetMergeCellsOption() const
virtual ~ScMergeCellsDialog() override
std::unique_ptr< weld::RadioButton > m_xRBKeepContent
std::unique_ptr< weld::RadioButton > m_xRBEmptyContent
ScMergeCellsDialog(weld::Window *pParent)
ScMergeCellsOption
@ MoveContentHiddenCells
@ EmptyContentHiddenCells
@ KeepContentHiddenCells