LibreOffice Module sc (master)  1
scuiautofmt.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_SC_SOURCE_UI_INC_SCUIAUTOFMT_HXX
20 #define INCLUDED_SC_SOURCE_UI_INC_SCUIAUTOFMT_HXX
21 
22 #include <vcl/customweld.hxx>
23 #include <autoform.hxx>
24 #include "autofmt.hxx"
25 
27 {
28 public:
30  ScAutoFormat* pAutoFormat,
31  const ScAutoFormatData* pSelFormatData,
32  const ScViewData& rViewData);
33  virtual ~ScAutoFormatDlg() override;
34 
35  sal_uInt16 GetIndex() const { return nIndex; }
36  OUString GetCurrFormatName();
37 
38 private:
39  OUString aStrTitle;
40  OUString aStrLabel;
41  OUString aStrClose;
42  OUString aStrDelMsg;
43  OUString aStrRename;
44 
47  sal_uInt16 nIndex;
50 
52  std::unique_ptr<weld::TreeView> m_xLbFormat;
53  std::unique_ptr<weld::Button> m_xBtnOk;
54  std::unique_ptr<weld::Button> m_xBtnCancel;
55  std::unique_ptr<weld::Button> m_xBtnAdd;
56  std::unique_ptr<weld::Button> m_xBtnRemove;
57  std::unique_ptr<weld::Button> m_xBtnRename;
58  std::unique_ptr<weld::CheckButton> m_xBtnNumFormat;
59  std::unique_ptr<weld::CheckButton> m_xBtnBorder;
60  std::unique_ptr<weld::CheckButton> m_xBtnFont;
61  std::unique_ptr<weld::CheckButton> m_xBtnPattern;
62  std::unique_ptr<weld::CheckButton> m_xBtnAlignment;
63  std::unique_ptr<weld::CheckButton> m_xBtnAdjust;
64  std::unique_ptr<weld::CustomWeld> m_xWndPreview;
65 
66  void Init ();
67  void UpdateChecks ();
68 
69  DECL_LINK( CheckHdl, weld::ToggleButton&, void );
70  DECL_LINK( AddHdl, weld::Button&, void );
71  DECL_LINK( RemoveHdl, weld::Button&, void );
72  DECL_LINK( SelFmtHdl, weld::TreeView&, void );
73  DECL_LINK( CloseHdl, weld::Button&, void );
74  DECL_LINK( DblClkHdl, weld::TreeView&, bool );
75  DECL_LINK( RenameHdl, weld::Button&, void );
76 
77 };
78 #endif
79 
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xBtnNumFormat
Definition: scuiautofmt.hxx:58
std::unique_ptr< weld::Button > m_xBtnCancel
Definition: scuiautofmt.hxx:54
OUString GetCurrFormatName()
OUString aStrDelMsg
Definition: scuiautofmt.hxx:42
std::unique_ptr< weld::TreeView > m_xLbFormat
Definition: scuiautofmt.hxx:52
std::unique_ptr< weld::CheckButton > m_xBtnBorder
Definition: scuiautofmt.hxx:59
sal_uInt16 GetIndex() const
Definition: scuiautofmt.hxx:35
std::unique_ptr< weld::Button > m_xBtnRemove
Definition: scuiautofmt.hxx:56
ScAutoFmtPreview m_aWndPreview
Definition: scuiautofmt.hxx:51
OUString aStrRename
Definition: scuiautofmt.hxx:43
std::unique_ptr< weld::CheckButton > m_xBtnAdjust
Definition: scuiautofmt.hxx:63
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: scuiautofmt.hxx:55
OUString aStrClose
Definition: scuiautofmt.hxx:41
std::unique_ptr< weld::Button > m_xBtnOk
Definition: scuiautofmt.hxx:53
OUString aStrTitle
Definition: scuiautofmt.hxx:39
std::unique_ptr< weld::CheckButton > m_xBtnAlignment
Definition: scuiautofmt.hxx:62
std::unique_ptr< weld::CheckButton > m_xBtnPattern
Definition: scuiautofmt.hxx:61
std::unique_ptr< weld::CheckButton > m_xBtnFont
Definition: scuiautofmt.hxx:60
OUString aStrLabel
Definition: scuiautofmt.hxx:40
sal_uInt16 nIndex
Definition: scuiautofmt.hxx:47
std::unique_ptr< weld::Button > m_xBtnRename
Definition: scuiautofmt.hxx:57
virtual ~ScAutoFormatDlg() override
Definition: scuiautofmt.cxx:78
ScAutoFormat * pFormat
Definition: scuiautofmt.hxx:45
ScAutoFormatDlg(weld::Window *pParent, ScAutoFormat *pAutoFormat, const ScAutoFormatData *pSelFormatData, const ScViewData &rViewData)
Definition: scuiautofmt.cxx:37
const ScAutoFormatData * pSelFmtData
Definition: scuiautofmt.hxx:46
DECL_LINK(CheckHdl, weld::ToggleButton &, void)
std::unique_ptr< weld::CustomWeld > m_xWndPreview
Definition: scuiautofmt.hxx:64