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 #ifndef INCLUDED_SC_SOURCE_UI_INC_REFFACT_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_REFFACT_HXX
22 
23 #include <sfx2/childwin.hxx>
24 #include "ChildWindowWrapper.hxx"
25 
26 #include <sc.hrc>
27 
28 #define DECL_WRAPPER_WITHID(Class) \
29  class Class : public SfxChildWindow \
30  { \
31  public: \
32  Class( vcl::Window*, sal_uInt16, SfxBindings*, const SfxChildWinInfo* ); \
33  SFX_DECL_CHILDWINDOW_WITHID(Class); \
34  };
35 
36 DECL_WRAPPER_WITHID(ScNameDlgWrapper)
37 DECL_WRAPPER_WITHID(ScNameDefDlgWrapper)
38 DECL_WRAPPER_WITHID(ScSolverDlgWrapper)
39 DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper)
40 DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper)
41 DECL_WRAPPER_WITHID(ScPivotLayoutWrapper)
42 DECL_WRAPPER_WITHID(ScTabOpDlgWrapper)
43 DECL_WRAPPER_WITHID(ScFilterDlgWrapper)
44 DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper)
45 DECL_WRAPPER_WITHID(ScDbNameDlgWrapper)
46 DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper)
47 DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper)
48 DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper)
49 DECL_WRAPPER_WITHID(ScFormulaDlgWrapper)
50 DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper)
51 DECL_WRAPPER_WITHID(ScCondFormatDlgWrapper)
52 
54  public ChildControllerWrapper<SID_DESCRIPTIVE_STATISTICS_DIALOG>
55 {
56 private:
58 };
59 
61  public ChildControllerWrapper<SID_SAMPLING_DIALOG>
62 {
63 private:
64  ScSamplingDialogWrapper() = delete;
65 };
66 
68  public ChildControllerWrapper<SID_RANDOM_NUMBER_GENERATOR_DIALOG>
69 {
70 private:
72 };
73 
75  public ChildControllerWrapper<SID_ANALYSIS_OF_VARIANCE_DIALOG>
76 {
77 private:
79 };
80 
82  public ChildControllerWrapper<SID_CORRELATION_DIALOG>
83 {
84 private:
85  ScCorrelationDialogWrapper() = delete;
86 };
87 
89  public ChildControllerWrapper<SID_COVARIANCE_DIALOG>
90 {
91 private:
92  ScCovarianceDialogWrapper() = delete;
93 };
94 
96  public ChildControllerWrapper<SID_EXPONENTIAL_SMOOTHING_DIALOG>
97 {
98 private:
100 };
101 
103  public ChildControllerWrapper<SID_MOVING_AVERAGE_DIALOG>
104 {
105 private:
106  ScMovingAverageDialogWrapper() = delete;
107 };
108 
110  public ChildControllerWrapper<SID_REGRESSION_DIALOG>
111 {
112 private:
113  ScRegressionDialogWrapper() = delete;
114 };
115 
117  public ChildControllerWrapper<SID_TTEST_DIALOG>
118 {
119 private:
120  ScTTestDialogWrapper() = delete;
121 };
122 
124  public ChildControllerWrapper<SID_FTEST_DIALOG>
125 {
126 private:
127  ScFTestDialogWrapper() = delete;
128 };
129 
131  public ChildControllerWrapper<SID_ZTEST_DIALOG>
132 {
133 private:
134  ScZTestDialogWrapper() = delete;
135 };
136 
138  public ChildControllerWrapper<SID_CHI_SQUARE_TEST_DIALOG>
139 {
140 private:
141  ScChiSquareTestDialogWrapper() = delete;
142 };
143 
145  public ChildControllerWrapper<SID_FOURIER_ANALYSIS_DIALOG>
146 {
147 private:
149 };
150 
152 {
153 public:
155  sal_uInt16,
156  SfxBindings*,
157  SfxChildWinInfo* );
158 
160 
161  void ReInitDlg();
162 };
163 
165 {
166 public:
168  sal_uInt16,
169  SfxBindings*,
170  SfxChildWinInfo*);
171 
173 
174  void SetRefString(const OUString& rStr);
175  void SetCloseHdl( const Link<const OUString*,void>& rLink );
176  void SetUnoLinks( const Link<const OUString&,void>& rDone, const Link<const OUString&,void>& rAbort,
177  const Link<const OUString&,void>& rChange );
178  void SetFlags( bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection );
179  static void SetAutoReOpen(bool bFlag);
180 
181  void StartRefInput();
182 };
183 
185 {
188 public:
191  virtual ~ScValidityRefChildWin() override;
192  bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
193  bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
194  void Hide() override { if( !m_bVisibleLock) SfxChildWindow::Hide(); }
195  void Show( ShowFlags nFlags ) override { if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
196 };
197 
198 #endif // INCLUDED_SC_SOURCE_UI_INC_REFFACT_HXX
199 
200 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void Show(ShowFlags nFlags) override
Definition: reffact.hxx:195
ScAcceptChgDlgWrapper(vcl::Window *, sal_uInt16, SfxBindings *, SfxChildWinInfo *)
Definition: reffact.cxx:216
SFX_DECL_CHILDWINDOW_WITHID(Class)
ShowFlags
SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin)
void Hide() override
Definition: reffact.hxx:194
SFX_DECL_CHILDWINDOW_WITHID(Class)
void SetRefString(const OUString &rStr)
Definition: reffact.cxx:168
ScValidityRefChildWin(vcl::Window *, sal_uInt16, const SfxBindings *, SfxChildWinInfo *)
Definition: reffact.cxx:267
void SetUnoLinks(const Link< const OUString &, void > &rDone, const Link< const OUString &, void > &rAbort, const Link< const OUString &, void > &rChange)
Definition: reffact.cxx:186
void SetFlags(bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection)
Definition: reffact.cxx:196
ScFTestDialogWrapper()=delete
static void SetAutoReOpen(bool bFlag)
Definition: reffact.cxx:163
ScTTestDialogWrapper()=delete
bool LockFreeWindow(bool bLock)
Definition: reffact.hxx:193
bool LockVisible(bool bLock)
Definition: reffact.hxx:192
virtual void Show(ShowFlags nFlags)
#define DECL_WRAPPER_WITHID(Class)
Definition: reffact.hxx:28
virtual void Hide()
ScSimpleRefDlgWrapper(vcl::Window *, sal_uInt16, SfxBindings *, SfxChildWinInfo *)
Definition: reffact.cxx:127
void SetCloseHdl(const Link< const OUString *, void > &rLink)
Definition: reffact.cxx:177
ScZTestDialogWrapper()=delete
ScSamplingDialogWrapper()=delete
virtual ~ScValidityRefChildWin() override
Definition: reffact.cxx:290