LibreOffice Module sc (master) 1
reffact.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
20#pragma once
21
22#include <sfx2/childwin.hxx>
24
25#include <sc.hrc>
26
27#define DECL_WRAPPER_WITHID(Class) \
28 class Class : public SfxChildWindow \
29 { \
30 public: \
31 Class( vcl::Window*, sal_uInt16, SfxBindings*, const SfxChildWinInfo* ); \
32 SFX_DECL_CHILDWINDOW_WITHID(Class); \
33 };
34
35DECL_WRAPPER_WITHID(ScNameDlgWrapper)
36DECL_WRAPPER_WITHID(ScNameDefDlgWrapper)
37DECL_WRAPPER_WITHID(ScSolverDlgWrapper)
38DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper)
39DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper)
40DECL_WRAPPER_WITHID(ScPivotLayoutWrapper)
41DECL_WRAPPER_WITHID(ScTabOpDlgWrapper)
42DECL_WRAPPER_WITHID(ScFilterDlgWrapper)
43DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper)
44DECL_WRAPPER_WITHID(ScDbNameDlgWrapper)
45DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper)
46DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper)
47DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper)
48DECL_WRAPPER_WITHID(ScFormulaDlgWrapper)
49DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper)
50DECL_WRAPPER_WITHID(ScCondFormatDlgWrapper)
51
53 public ChildControllerWrapper<SID_DESCRIPTIVE_STATISTICS_DIALOG>
54{
55private:
57};
58
60 public ChildControllerWrapper<SID_SAMPLING_DIALOG>
61{
62private:
64};
65
67 public ChildControllerWrapper<SID_RANDOM_NUMBER_GENERATOR_DIALOG>
68{
69private:
71};
72
74 public ChildControllerWrapper<SID_ANALYSIS_OF_VARIANCE_DIALOG>
75{
76private:
78};
79
81 public ChildControllerWrapper<SID_CORRELATION_DIALOG>
82{
83private:
85};
86
88 public ChildControllerWrapper<SID_COVARIANCE_DIALOG>
89{
90private:
92};
93
95 public ChildControllerWrapper<SID_EXPONENTIAL_SMOOTHING_DIALOG>
96{
97private:
99};
100
102 public ChildControllerWrapper<SID_MOVING_AVERAGE_DIALOG>
103{
104private:
106};
107
109 public ChildControllerWrapper<SID_REGRESSION_DIALOG>
110{
111private:
113};
114
116 public ChildControllerWrapper<SID_TTEST_DIALOG>
117{
118private:
120};
121
123 public ChildControllerWrapper<SID_FTEST_DIALOG>
124{
125private:
127};
128
130 public ChildControllerWrapper<SID_ZTEST_DIALOG>
131{
132private:
134};
135
137 public ChildControllerWrapper<SID_CHI_SQUARE_TEST_DIALOG>
138{
139private:
141};
142
144 public ChildControllerWrapper<SID_FOURIER_ANALYSIS_DIALOG>
145{
146private:
148};
149
150namespace sc
151{
154 public ChildControllerWrapper<SID_SPARKLINE_DIALOG>
155{
156private:
158};
159
162 public ChildControllerWrapper<SID_SPARKLINE_DATA_RANGE_DIALOG>
163{
164private:
166};
167
168}
169
171{
172public:
174 sal_uInt16,
177
179
180 void ReInitDlg();
181};
182
184{
185public:
187 sal_uInt16,
190
192
193 void SetRefString(const OUString& rStr);
194 void SetCloseHdl( const Link<const OUString*,void>& rLink );
195 void SetUnoLinks( const Link<const OUString&,void>& rDone, const Link<const OUString&,void>& rAbort,
196 const Link<const OUString&,void>& rChange );
197 void SetFlags( bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection );
198 static void SetAutoReOpen(bool bFlag);
199
200 void StartRefInput();
201};
202
204{
207public:
210 virtual ~ScValidityRefChildWin() override;
211 bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
212 bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
213 void Hide() override { if( !m_bVisibleLock) SfxChildWindow::Hide(); }
214 void Show( ShowFlags nFlags ) override { if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
215};
216
217/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SFX_DECL_CHILDWINDOW_WITHID(Class)
ScAcceptChgDlgWrapper(vcl::Window *, sal_uInt16, SfxBindings *, SfxChildWinInfo *)
Definition: reffact.cxx:216
ScFTestDialogWrapper()=delete
ScSamplingDialogWrapper()=delete
void SetFlags(bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection)
Definition: reffact.cxx:196
ScSimpleRefDlgWrapper(vcl::Window *, sal_uInt16, SfxBindings *, SfxChildWinInfo *)
Definition: reffact.cxx:127
SFX_DECL_CHILDWINDOW_WITHID(Class)
void SetCloseHdl(const Link< const OUString *, void > &rLink)
Definition: reffact.cxx:177
void SetRefString(const OUString &rStr)
Definition: reffact.cxx:168
void SetUnoLinks(const Link< const OUString &, void > &rDone, const Link< const OUString &, void > &rAbort, const Link< const OUString &, void > &rChange)
Definition: reffact.cxx:186
static void SetAutoReOpen(bool bFlag)
Definition: reffact.cxx:163
ScTTestDialogWrapper()=delete
ScValidityRefChildWin(vcl::Window *, sal_uInt16, const SfxBindings *, SfxChildWinInfo *)
Definition: reffact.cxx:267
SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin)
void Hide() override
Definition: reffact.hxx:213
bool LockVisible(bool bLock)
Definition: reffact.hxx:211
void Show(ShowFlags nFlags) override
Definition: reffact.hxx:214
bool LockFreeWindow(bool bLock)
Definition: reffact.hxx:212
virtual ~ScValidityRefChildWin() override
Definition: reffact.cxx:290
ScZTestDialogWrapper()=delete
virtual void Hide()
virtual void Show(ShowFlags nFlags)
Wrapper for the sparkline data range dialog.
Definition: reffact.hxx:163
Wrapper for the sparkline properties dialog.
Definition: reffact.hxx:155
CAUTION! The following defines must be in the same namespace as the respective type.
#define DECL_WRAPPER_WITHID(Class)
Definition: reffact.hxx:27
ShowFlags