Line data Source code
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 "dbfunc.hxx"
27 :
28 : #include "sc.hrc"
29 :
30 : #define DECL_WRAPPER_WITHID(Class) \
31 : class Class : public SfxChildWindow \
32 : { \
33 : public: \
34 : Class( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \
35 : SFX_DECL_CHILDWINDOW_WITHID(Class); \
36 : };
37 :
38 0 : DECL_WRAPPER_WITHID(ScNameDlgWrapper)
39 0 : DECL_WRAPPER_WITHID(ScNameDefDlgWrapper)
40 0 : DECL_WRAPPER_WITHID(ScSolverDlgWrapper)
41 0 : DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper)
42 0 : DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper)
43 0 : DECL_WRAPPER_WITHID(ScPivotLayoutWrapper)
44 0 : DECL_WRAPPER_WITHID(ScTabOpDlgWrapper)
45 0 : DECL_WRAPPER_WITHID(ScFilterDlgWrapper)
46 0 : DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper)
47 0 : DECL_WRAPPER_WITHID(ScDbNameDlgWrapper)
48 0 : DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper)
49 0 : DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper)
50 0 : DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper)
51 0 : DECL_WRAPPER_WITHID(ScFormulaDlgWrapper)
52 0 : DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper)
53 :
54 : class ScDescriptiveStatisticsDialogWrapper :
55 : public ChildWindowWrapper<SID_DESCRIPTIVE_STATISTICS_DIALOG>
56 : {
57 : private:
58 : ScDescriptiveStatisticsDialogWrapper() SAL_DELETED_FUNCTION;
59 : };
60 :
61 : class ScSamplingDialogWrapper :
62 : public ChildWindowWrapper<SID_SAMPLING_DIALOG>
63 : {
64 : private:
65 : ScSamplingDialogWrapper() SAL_DELETED_FUNCTION;
66 : };
67 :
68 : class ScRandomNumberGeneratorDialogWrapper :
69 : public ChildWindowWrapper<SID_RANDOM_NUMBER_GENERATOR_DIALOG>
70 : {
71 : private:
72 : ScRandomNumberGeneratorDialogWrapper() SAL_DELETED_FUNCTION;
73 : };
74 :
75 : class ScAnalysisOfVarianceDialogWrapper :
76 : public ChildWindowWrapper<SID_ANALYSIS_OF_VARIANCE_DIALOG>
77 : {
78 : private:
79 : ScAnalysisOfVarianceDialogWrapper() SAL_DELETED_FUNCTION;
80 : };
81 :
82 : class ScCorrelationDialogWrapper :
83 : public ChildWindowWrapper<SID_CORRELATION_DIALOG>
84 : {
85 : private:
86 : ScCorrelationDialogWrapper() SAL_DELETED_FUNCTION;
87 : };
88 :
89 : class ScCovarianceDialogWrapper :
90 : public ChildWindowWrapper<SID_COVARIANCE_DIALOG>
91 : {
92 : private:
93 : ScCovarianceDialogWrapper() SAL_DELETED_FUNCTION;
94 : };
95 :
96 : class ScExponentialSmoothingDialogWrapper :
97 : public ChildWindowWrapper<SID_EXPONENTIAL_SMOOTHING_DIALOG>
98 : {
99 : private:
100 : ScExponentialSmoothingDialogWrapper() SAL_DELETED_FUNCTION;
101 : };
102 :
103 : class ScMovingAverageDialogWrapper :
104 : public ChildWindowWrapper<SID_MOVING_AVERAGE_DIALOG>
105 : {
106 : private:
107 : ScMovingAverageDialogWrapper() SAL_DELETED_FUNCTION;
108 : };
109 :
110 : class ScTTestDialogWrapper :
111 : public ChildWindowWrapper<SID_TTEST_DIALOG>
112 : {
113 : private:
114 : ScTTestDialogWrapper() SAL_DELETED_FUNCTION;
115 : };
116 :
117 : class ScFTestDialogWrapper :
118 : public ChildWindowWrapper<SID_FTEST_DIALOG>
119 : {
120 : private:
121 : ScFTestDialogWrapper() SAL_DELETED_FUNCTION;
122 : };
123 :
124 0 : class ScAcceptChgDlgWrapper: public SfxChildWindow
125 : {
126 : public:
127 : ScAcceptChgDlgWrapper( vcl::Window*,
128 : sal_uInt16,
129 : SfxBindings*,
130 : SfxChildWinInfo* );
131 :
132 : SFX_DECL_CHILDWINDOW_WITHID(Class);
133 :
134 : virtual void ReInitDlg();
135 : };
136 :
137 0 : class ScSimpleRefDlgWrapper: public SfxChildWindow
138 : {
139 : public:
140 : ScSimpleRefDlgWrapper( vcl::Window*,
141 : sal_uInt16,
142 : SfxBindings*,
143 : SfxChildWinInfo* );
144 :
145 : SFX_DECL_CHILDWINDOW_WITHID(Class);
146 :
147 : static void SetDefaultPosSize(Point aPos, Size aSize, bool bSet = true);
148 : void SetRefString(const OUString& rStr);
149 : void SetCloseHdl( const Link& rLink );
150 : void SetUnoLinks( const Link& rDone, const Link& rAbort,
151 : const Link& rChange );
152 : void SetFlags( bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection );
153 : static void SetAutoReOpen(bool bFlag);
154 :
155 : void StartRefInput();
156 : };
157 :
158 : class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow
159 : {
160 : bool m_bVisibleLock:1;
161 : bool m_bFreeWindowLock:1;
162 : vcl::Window * m_pSavedWndParent;
163 : public:
164 : ScValidityRefChildWin( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
165 : SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin);
166 : virtual ~ScValidityRefChildWin();
167 0 : bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
168 0 : bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
169 0 : void Hide() SAL_OVERRIDE { if( !m_bVisibleLock) SfxChildWindow::Hide(); }
170 0 : void Show( sal_uInt16 nFlags ) SAL_OVERRIDE { if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
171 : };
172 :
173 : #endif // INCLUDED_SC_SOURCE_UI_INC_REFFACT_HXX
174 :
175 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|