tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / reffact.hxx
blobde001354bda8f672d8c2e677b407ec69c78680a7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <sfx2/childwin.hxx>
23 #include "ChildWindowWrapper.hxx"
25 #include <sc.hrc>
27 #define DECL_WRAPPER_WITHID(Class) \
28 class Class : public SfxChildWindow \
29 { \
30 public: \
31 Class( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \
32 SFX_DECL_CHILDWINDOW_WITHID(Class); \
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)
52 class ScDescriptiveStatisticsDialogWrapper :
53 public ChildControllerWrapper<SID_DESCRIPTIVE_STATISTICS_DIALOG>
55 private:
56 ScDescriptiveStatisticsDialogWrapper() = delete;
59 class ScSamplingDialogWrapper :
60 public ChildControllerWrapper<SID_SAMPLING_DIALOG>
62 private:
63 ScSamplingDialogWrapper() = delete;
66 class ScRandomNumberGeneratorDialogWrapper :
67 public ChildControllerWrapper<SID_RANDOM_NUMBER_GENERATOR_DIALOG>
69 private:
70 ScRandomNumberGeneratorDialogWrapper() = delete;
73 class ScAnalysisOfVarianceDialogWrapper :
74 public ChildControllerWrapper<SID_ANALYSIS_OF_VARIANCE_DIALOG>
76 private:
77 ScAnalysisOfVarianceDialogWrapper() = delete;
80 class ScCorrelationDialogWrapper :
81 public ChildControllerWrapper<SID_CORRELATION_DIALOG>
83 private:
84 ScCorrelationDialogWrapper() = delete;
87 class ScCovarianceDialogWrapper :
88 public ChildControllerWrapper<SID_COVARIANCE_DIALOG>
90 private:
91 ScCovarianceDialogWrapper() = delete;
94 class ScExponentialSmoothingDialogWrapper :
95 public ChildControllerWrapper<SID_EXPONENTIAL_SMOOTHING_DIALOG>
97 private:
98 ScExponentialSmoothingDialogWrapper() = delete;
101 class ScMovingAverageDialogWrapper :
102 public ChildControllerWrapper<SID_MOVING_AVERAGE_DIALOG>
104 private:
105 ScMovingAverageDialogWrapper() = delete;
108 class ScRegressionDialogWrapper :
109 public ChildControllerWrapper<SID_REGRESSION_DIALOG>
111 private:
112 ScRegressionDialogWrapper() = delete;
115 class ScTTestDialogWrapper :
116 public ChildControllerWrapper<SID_TTEST_DIALOG>
118 private:
119 ScTTestDialogWrapper() = delete;
122 class ScFTestDialogWrapper :
123 public ChildControllerWrapper<SID_FTEST_DIALOG>
125 private:
126 ScFTestDialogWrapper() = delete;
129 class ScZTestDialogWrapper :
130 public ChildControllerWrapper<SID_ZTEST_DIALOG>
132 private:
133 ScZTestDialogWrapper() = delete;
136 class ScChiSquareTestDialogWrapper :
137 public ChildControllerWrapper<SID_CHI_SQUARE_TEST_DIALOG>
139 private:
140 ScChiSquareTestDialogWrapper() = delete;
143 class ScFourierAnalysisDialogWrapper :
144 public ChildControllerWrapper<SID_FOURIER_ANALYSIS_DIALOG>
146 private:
147 ScFourierAnalysisDialogWrapper() = delete;
150 namespace sc
152 /** Wrapper for the sparkline properties dialog */
153 class SparklineDialogWrapper :
154 public ChildControllerWrapper<SID_SPARKLINE_DIALOG>
156 private:
157 SparklineDialogWrapper() = delete;
160 /** Wrapper for the sparkline data range dialog */
161 class SparklineDataRangeDialogWrapper :
162 public ChildControllerWrapper<SID_SPARKLINE_DATA_RANGE_DIALOG>
164 private:
165 SparklineDataRangeDialogWrapper() = delete;
168 /** Wrapper for the easy conditional format dialog */
169 class ConditionalFormatEasyDialogWrapper :
170 public ChildControllerWrapper<SID_EASY_CONDITIONAL_FORMAT_DIALOG>
172 private:
173 ConditionalFormatEasyDialogWrapper() = delete;
177 class ScAcceptChgDlgWrapper : public SfxChildWindow
179 public:
180 ScAcceptChgDlgWrapper( vcl::Window*,
181 sal_uInt16,
182 SfxBindings*,
183 SfxChildWinInfo* );
185 SFX_DECL_CHILDWINDOW_WITHID(Class);
187 void ReInitDlg();
190 class ScSimpleRefDlgWrapper: public SfxChildWindow
192 public:
193 ScSimpleRefDlgWrapper(vcl::Window*,
194 sal_uInt16,
195 SfxBindings*,
196 SfxChildWinInfo*);
198 SFX_DECL_CHILDWINDOW_WITHID(Class);
200 void SetRefString(const OUString& rStr);
201 void SetCloseHdl( const Link<const OUString*,void>& rLink );
202 void SetUnoLinks( const Link<const OUString&,void>& rDone, const Link<const OUString&,void>& rAbort,
203 const Link<const OUString&,void>& rChange );
204 void SetFlags( bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection );
205 static void SetAutoReOpen(bool bFlag);
207 void StartRefInput();
210 class ScValidityRefChildWin : public SfxChildWindow
212 bool m_bVisibleLock:1;
213 bool m_bFreeWindowLock:1;
214 public:
215 ScValidityRefChildWin( vcl::Window*, sal_uInt16, const SfxBindings*, SfxChildWinInfo* );
216 SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin);
217 virtual ~ScValidityRefChildWin() override;
218 bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
219 bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
220 void Hide() override { if( !m_bVisibleLock) SfxChildWindow::Hide(); }
221 void Show( ShowFlags nFlags ) override { if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
224 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */