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>
23 #include "ChildWindowWrapper.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 
35 DECL_WRAPPER_WITHID(ScNameDlgWrapper)
36 DECL_WRAPPER_WITHID(ScNameDefDlgWrapper)
37 DECL_WRAPPER_WITHID(ScSolverDlgWrapper)
38 DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper)
39 DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper)
40 DECL_WRAPPER_WITHID(ScPivotLayoutWrapper)
41 DECL_WRAPPER_WITHID(ScTabOpDlgWrapper)
42 DECL_WRAPPER_WITHID(ScFilterDlgWrapper)
43 DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper)
44 DECL_WRAPPER_WITHID(ScDbNameDlgWrapper)
45 DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper)
46 DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper)
47 DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper)
48 DECL_WRAPPER_WITHID(ScFormulaDlgWrapper)
49 DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper)
50 DECL_WRAPPER_WITHID(ScCondFormatDlgWrapper)
51 
53  public ChildControllerWrapper<SID_DESCRIPTIVE_STATISTICS_DIALOG>
54 {
55 private:
57 };
58 
60  public ChildControllerWrapper<SID_SAMPLING_DIALOG>
61 {
62 private:
63  ScSamplingDialogWrapper() = delete;
64 };
65 
67  public ChildControllerWrapper<SID_RANDOM_NUMBER_GENERATOR_DIALOG>
68 {
69 private:
71 };
72 
74  public ChildControllerWrapper<SID_ANALYSIS_OF_VARIANCE_DIALOG>
75 {
76 private:
78 };
79 
81  public ChildControllerWrapper<SID_CORRELATION_DIALOG>
82 {
83 private:
84  ScCorrelationDialogWrapper() = delete;
85 };
86 
88  public ChildControllerWrapper<SID_COVARIANCE_DIALOG>
89 {
90 private:
91  ScCovarianceDialogWrapper() = delete;
92 };
93 
95  public ChildControllerWrapper<SID_EXPONENTIAL_SMOOTHING_DIALOG>
96 {
97 private:
99 };
100 
102  public ChildControllerWrapper<SID_MOVING_AVERAGE_DIALOG>
103 {
104 private:
105  ScMovingAverageDialogWrapper() = delete;
106 };
107 
109  public ChildControllerWrapper<SID_REGRESSION_DIALOG>
110 {
111 private:
112  ScRegressionDialogWrapper() = delete;
113 };
114 
116  public ChildControllerWrapper<SID_TTEST_DIALOG>
117 {
118 private:
119  ScTTestDialogWrapper() = delete;
120 };
121 
123  public ChildControllerWrapper<SID_FTEST_DIALOG>
124 {
125 private:
126  ScFTestDialogWrapper() = delete;
127 };
128 
130  public ChildControllerWrapper<SID_ZTEST_DIALOG>
131 {
132 private:
133  ScZTestDialogWrapper() = delete;
134 };
135 
137  public ChildControllerWrapper<SID_CHI_SQUARE_TEST_DIALOG>
138 {
139 private:
140  ScChiSquareTestDialogWrapper() = delete;
141 };
142 
144  public ChildControllerWrapper<SID_FOURIER_ANALYSIS_DIALOG>
145 {
146 private:
148 };
149 
151 {
152 public:
154  sal_uInt16,
155  SfxBindings*,
156  SfxChildWinInfo* );
157 
159 
160  void ReInitDlg();
161 };
162 
164 {
165 public:
167  sal_uInt16,
168  SfxBindings*,
169  SfxChildWinInfo*);
170 
172 
173  void SetRefString(const OUString& rStr);
174  void SetCloseHdl( const Link<const OUString*,void>& rLink );
175  void SetUnoLinks( const Link<const OUString&,void>& rDone, const Link<const OUString&,void>& rAbort,
176  const Link<const OUString&,void>& rChange );
177  void SetFlags( bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection );
178  static void SetAutoReOpen(bool bFlag);
179 
180  void StartRefInput();
181 };
182 
184 {
187 public:
190  virtual ~ScValidityRefChildWin() override;
191  bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
192  bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
193  void Hide() override { if( !m_bVisibleLock) SfxChildWindow::Hide(); }
194  void Show( ShowFlags nFlags ) override { if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
195 };
196 
197 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void Show(ShowFlags nFlags) override
Definition: reffact.hxx:194
ScAcceptChgDlgWrapper(vcl::Window *, sal_uInt16, SfxBindings *, SfxChildWinInfo *)
Definition: reffact.cxx:216
SFX_DECL_CHILDWINDOW_WITHID(Class)
SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin)
void Hide() override
Definition: reffact.hxx:193
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:192
ShowFlags
bool LockVisible(bool bLock)
Definition: reffact.hxx:191
virtual void Show(ShowFlags nFlags)
#define DECL_WRAPPER_WITHID(Class)
Definition: reffact.hxx:27
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