LibreOffice Module sw (master)  1
instable.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 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_INSTABLE_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_INSTABLE_HXX
21 
22 #include <sfx2/basedlgs.hxx>
23 #include <sal/types.h>
24 #include <rtl/ustring.hxx>
25 #include <tools/link.hxx>
26 #include <vcl/textfilter.hxx>
27 
28 #include "wrtsh.hxx"
29 #include "autoformatpreview.hxx"
30 #include <view.hxx>
31 #include <tblafmt.hxx>
32 #include <itabenum.hxx>
33 
35 {
37 
41 
47 
49 
50  std::unique_ptr<weld::Entry> m_xNameEdit;
51  std::unique_ptr<weld::SpinButton> m_xColNF;
52  std::unique_ptr<weld::SpinButton> m_xRowNF;
53  std::unique_ptr<weld::CheckButton> m_xHeaderCB;
54  std::unique_ptr<weld::CheckButton> m_xRepeatHeaderCB;
55  std::unique_ptr<weld::SpinButton> m_xRepeatHeaderNF;
56  std::unique_ptr<weld::Widget> m_xRepeatGroup;
57  std::unique_ptr<weld::CheckButton> m_xDontSplitCB;
58  std::unique_ptr<weld::Button> m_xInsertBtn;
59  std::unique_ptr<weld::TreeView> m_xLbFormat;
60  std::unique_ptr<weld::CustomWeld> m_xWndPreview;
61 
62  // Returns 255 if mapping is not possible.
63  // This means there cannot be more than 255 autotable style.
64  sal_uInt8 lbIndexToTableIndex( const sal_uInt8 listboxIndex );
65  void InitAutoTableFormat();
66 
67  DECL_LINK(TextFilterHdl, OUString&, bool);
68  DECL_LINK(SelFormatHdl, weld::TreeView&, void);
69  DECL_LINK(ModifyName, weld::Entry&, void);
70  DECL_LINK(ModifyRowCol, weld::SpinButton&, void);
71  DECL_LINK(OKHdl, weld::Button&, void);
72  DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void);
73  DECL_LINK(RepeatHeaderCheckBoxHdl, weld::ToggleButton&, void);
74  DECL_LINK(ModifyRepeatHeaderNF_Hdl, weld::SpinButton&, void);
75 
76 public:
77  SwInsTableDlg(SwView& rView);
78 
79  void GetValues( OUString& rName, sal_uInt16& rRow, sal_uInt16& rCol,
80  SwInsertTableOptions& rInsTableOpts, OUString& rTableAutoFormatName,
81  std::unique_ptr<SwTableAutoFormat>& prTAFormat );
82 };
83 
84 #endif
85 
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt8 lbIndexToTableIndex(const sal_uInt8 listboxIndex)
Definition: instable.cxx:157
std::unique_ptr< weld::SpinButton > m_xColNF
Definition: instable.hxx:51
sal_uInt8 minTableIndexInLb
Definition: instable.hxx:44
std::unique_ptr< weld::Entry > m_xNameEdit
Definition: instable.hxx:50
SwWrtShell * pShell
Definition: instable.hxx:38
Used by the UI to modify the document model.
Definition: wrtsh.hxx:88
void InitAutoTableFormat()
Definition: instable.cxx:125
std::unique_ptr< weld::CheckButton > m_xRepeatHeaderCB
Definition: instable.hxx:54
std::unique_ptr< weld::SpinButton > m_xRowNF
Definition: instable.hxx:52
std::unique_ptr< weld::TreeView > m_xLbFormat
Definition: instable.hxx:59
AutoFormatPreview m_aWndPreview
Definition: instable.hxx:48
std::unique_ptr< weld::SpinButton > m_xRepeatHeaderNF
Definition: instable.hxx:55
SwTableAutoFormatTable * pTableTable
Definition: instable.hxx:39
std::unique_ptr< weld::CheckButton > m_xHeaderCB
Definition: instable.hxx:53
std::unique_ptr< weld::Widget > m_xRepeatGroup
Definition: instable.hxx:56
sal_Int64 nEnteredValRepeatHeaderNF
Definition: instable.hxx:46
std::unique_ptr< weld::CustomWeld > m_xWndPreview
Definition: instable.hxx:60
sal_uInt8 maxTableIndexInLb
Definition: instable.hxx:45
DECL_LINK(TextFilterHdl, OUString &, bool)
SwInsTableDlg(SwView &rView)
Definition: instable.cxx:62
SwTableAutoFormat * pTAutoFormat
Definition: instable.hxx:40
unsigned char sal_uInt8
TextFilter m_aTextFilter
Definition: instable.hxx:36
std::unique_ptr< weld::CheckButton > m_xDontSplitCB
Definition: instable.hxx:57
std::unique_ptr< weld::Button > m_xInsertBtn
Definition: instable.hxx:58
sal_uInt8 tbIndex
Definition: instable.hxx:43
sal_uInt8 lbIndex
Definition: instable.hxx:42
Definition: view.hxx:146
void GetValues(OUString &rName, sal_uInt16 &rRow, sal_uInt16 &rCol, SwInsertTableOptions &rInsTableOpts, OUString &rTableAutoFormatName, std::unique_ptr< SwTableAutoFormat > &prTAFormat)
Definition: instable.cxx:30