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