1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #ifndef SC_REFFACT_HXX
21 #define SC_REFFACT_HXX
23 #include <sfx2/childwin.hxx>
24 #include "ChildWindowWrapper.hxx"
30 #define DECL_WRAPPER_WITHID(Class) \
31 class Class : public SfxChildWindow \
34 Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \
35 SFX_DECL_CHILDWINDOW_WITHID(Class); \
38 //==================================================================
40 DECL_WRAPPER_WITHID(ScNameDlgWrapper
)
41 DECL_WRAPPER_WITHID(ScNameDefDlgWrapper
)
42 DECL_WRAPPER_WITHID(ScSolverDlgWrapper
)
43 DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper
)
44 DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper
)
45 DECL_WRAPPER_WITHID(ScPivotLayoutWrapper
)
46 DECL_WRAPPER_WITHID(ScTabOpDlgWrapper
)
47 DECL_WRAPPER_WITHID(ScFilterDlgWrapper
)
48 DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper
)
49 DECL_WRAPPER_WITHID(ScDbNameDlgWrapper
)
50 DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper
)
51 DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper
)
52 DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper
)
53 DECL_WRAPPER_WITHID(ScFormulaDlgWrapper
)
54 DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper
)
56 class ScDescriptiveStatisticsDialogWrapper
:
57 public ChildWindowWrapper
<SID_DESCRIPTIVE_STATISTICS_DIALOG
>
60 ScDescriptiveStatisticsDialogWrapper() SAL_DELETED_FUNCTION
;
63 class ScSamplingDialogWrapper
:
64 public ChildWindowWrapper
<SID_SAMPLING_DIALOG
>
67 ScSamplingDialogWrapper() SAL_DELETED_FUNCTION
;
70 class ScRandomNumberGeneratorDialogWrapper
:
71 public ChildWindowWrapper
<SID_RANDOM_NUMBER_GENERATOR_DIALOG
>
74 ScRandomNumberGeneratorDialogWrapper() SAL_DELETED_FUNCTION
;
77 class ScAnalysisOfVarianceDialogWrapper
:
78 public ChildWindowWrapper
<SID_ANALYSIS_OF_VARIANCE_DIALOG
>
81 ScAnalysisOfVarianceDialogWrapper() SAL_DELETED_FUNCTION
;
84 class ScCorrelationDialogWrapper
:
85 public ChildWindowWrapper
<SID_CORRELATION_DIALOG
>
88 ScCorrelationDialogWrapper() SAL_DELETED_FUNCTION
;
91 class ScCovarianceDialogWrapper
:
92 public ChildWindowWrapper
<SID_COVARIANCE_DIALOG
>
95 ScCovarianceDialogWrapper() SAL_DELETED_FUNCTION
;
98 class ScExponentialSmoothingDialogWrapper
:
99 public ChildWindowWrapper
<SID_EXPONENTIAL_SMOOTHING_DIALOG
>
102 ScExponentialSmoothingDialogWrapper() SAL_DELETED_FUNCTION
;
105 class ScMovingAverageDialogWrapper
:
106 public ChildWindowWrapper
<SID_MOVING_AVERAGE_DIALOG
>
109 ScMovingAverageDialogWrapper() SAL_DELETED_FUNCTION
;
113 class ScAcceptChgDlgWrapper
: public SfxChildWindow
116 ScAcceptChgDlgWrapper( Window
*,
121 SFX_DECL_CHILDWINDOW_WITHID(Class
);
123 virtual void ReInitDlg();
126 class ScSimpleRefDlgWrapper
: public SfxChildWindow
129 ScSimpleRefDlgWrapper( Window
*,
134 SFX_DECL_CHILDWINDOW_WITHID(Class
);
136 static void SetDefaultPosSize(Point aPos
, Size aSize
, sal_Bool bSet
=sal_True
);
137 OUString
GetRefString();
138 void SetRefString(const OUString
& rStr
);
139 void SetCloseHdl( const Link
& rLink
);
140 void SetUnoLinks( const Link
& rDone
, const Link
& rAbort
,
141 const Link
& rChange
);
142 void SetFlags( sal_Bool bCloseOnButtonUp
, sal_Bool bSingleCell
, sal_Bool bMultiSelection
);
143 static void SetAutoReOpen(sal_Bool bFlag
);
145 void StartRefInput();
148 class SC_DLLPUBLIC ScValidityRefChildWin
: public SfxChildWindow
150 bool m_bVisibleLock
:1;
151 bool m_bFreeWindowLock
:1;
152 Window
* m_pSavedWndParent
;
154 ScValidityRefChildWin( Window
*, sal_uInt16
, SfxBindings
*, SfxChildWinInfo
* );
155 SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin
);
156 ~ScValidityRefChildWin();
157 bool LockVisible( bool bLock
){ bool bVis
= m_bVisibleLock
; m_bVisibleLock
= bLock
; return bVis
; }
158 bool LockFreeWindow( bool bLock
){ bool bFreeWindow
= m_bFreeWindowLock
; m_bFreeWindowLock
= bLock
; return bFreeWindow
; }
159 void Hide(){ if( !m_bVisibleLock
) SfxChildWindow::Hide(); }
160 void Show( sal_uInt16 nFlags
){ if( !m_bVisibleLock
) SfxChildWindow::Show( nFlags
); }
163 //==================================================================
166 #endif // SC_REFFACT_HXX
168 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */