2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 20:25:33 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#include <wrtsh.hxx>
|
|
|
|
#include <splittbl.hxx>
|
|
|
|
#include <table.hrc>
|
|
|
|
#include <tblenum.hxx>
|
|
|
|
|
2012-09-17 13:18:08 +01:00
|
|
|
SwSplitTblDlg::SwSplitTblDlg( Window *pParent, SwWrtShell &rSh )
|
|
|
|
: SvxStandardDialog( pParent, "SplitTableDialog", "modules/swriter/ui/splittable.ui" )
|
|
|
|
, rShell(rSh)
|
|
|
|
, m_nSplit(HEADLINE_CNTNTCOPY)
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2012-09-17 13:18:08 +01:00
|
|
|
get(mpCntntCopyRB, "copyheading");
|
|
|
|
get(mpBoxAttrCopyWithParaRB, "customheadingapplystyle");
|
|
|
|
get(mpBoxAttrCopyNoParaRB, "customheading");
|
2013-03-25 22:11:59 +01:00
|
|
|
get(mpBorderCopyRB, "noheading");
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SwSplitTblDlg::Apply()
|
|
|
|
{
|
2009-01-06 16:42:28 +00:00
|
|
|
m_nSplit = HEADLINE_CNTNTCOPY;
|
2012-09-17 13:18:08 +01:00
|
|
|
if(mpBoxAttrCopyWithParaRB->IsChecked())
|
2009-01-06 16:42:28 +00:00
|
|
|
m_nSplit = HEADLINE_BOXATRCOLLCOPY;
|
2013-03-25 22:11:59 +01:00
|
|
|
else if(mpBoxAttrCopyNoParaRB->IsChecked())
|
2009-01-06 16:42:28 +00:00
|
|
|
m_nSplit = HEADLINE_BOXATTRCOPY;
|
2012-09-17 13:18:08 +01:00
|
|
|
else if(mpBorderCopyRB->IsChecked())
|
2009-01-06 16:42:28 +00:00
|
|
|
m_nSplit = HEADLINE_BORDERCOPY;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-17 13:18:08 +01:00
|
|
|
rShell.SplitTable(m_nSplit);
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|