summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/wizdlg.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-06 18:25:58 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-06 18:25:58 +0000
commitde94a4d6f2e31f1975e4ec3423889ee66f2157ad (patch)
treef91e84dbfed0ebe653fd785e543787d56f6ca5fd /svtools/source/dialogs/wizdlg.cxx
parent0ec7c089c07b0e21ec461a13a34fef7ec9d25a37 (diff)
INTEGRATION: CWS odbmacros2 (1.10.122); FILE MERGED
2008/01/15 09:48:04 fs 1.10.122.1: some re-factoring to prepare the migration UI for #i49133#
Diffstat (limited to 'svtools/source/dialogs/wizdlg.cxx')
-rw-r--r--svtools/source/dialogs/wizdlg.cxx33
1 files changed, 23 insertions, 10 deletions
diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx
index f99a76b3815b..a7246f3d315d 100644
--- a/svtools/source/dialogs/wizdlg.cxx
+++ b/svtools/source/dialogs/wizdlg.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: wizdlg.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: hr $ $Date: 2007-08-03 12:27:43 $
+ * last change: $Author: kz $ $Date: 2008-03-06 19:25:58 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -81,7 +81,7 @@ struct ImplWizButtonData
// =======================================================================
-void WizardDialog::ImplInitData(sal_Bool _bRoadmapMode, sal_Int16 _nLeftAlignCount)
+void WizardDialog::ImplInitData()
{
mpFirstPage = NULL;
mpFirstBtn = NULL;
@@ -92,8 +92,21 @@ void WizardDialog::ImplInitData(sal_Bool _bRoadmapMode, sal_Int16 _nLeftAlignCou
mpViewWindow = NULL;
mnCurLevel = 0;
meViewAlign = WINDOWALIGN_LEFT;
- mbRoadmapMode = _bRoadmapMode;
- mnLeftAlignCount = _nLeftAlignCount;
+ mbEmptyViewMargin = false;
+ mnLeftAlignCount = 0;
+}
+
+// -----------------------------------------------------------------------
+void WizardDialog::SetLeftAlignedButtonCount( sal_Int16 _nCount )
+{
+ mnLeftAlignCount = _nCount;
+}
+
+// -----------------------------------------------------------------------
+
+void WizardDialog::SetEmptyViewMargin()
+{
+ mbEmptyViewMargin = true;
}
// -----------------------------------------------------------------------
@@ -214,7 +227,7 @@ void WizardDialog::ImplPosCtrls()
}
else if ( meViewAlign == WINDOWALIGN_LEFT )
{
- if (mbRoadmapMode)
+ if ( mbEmptyViewMargin )
{
nViewOffX = 0;
nViewOffY = 0;
@@ -358,18 +371,18 @@ TabPage* WizardDialog::ImplGetPage( USHORT nLevel ) const
// =======================================================================
-WizardDialog::WizardDialog( Window* pParent, WinBits nStyle, sal_Bool _bRoadmapMode, sal_Int16 _nLeftAlignCount ) :
+WizardDialog::WizardDialog( Window* pParent, WinBits nStyle ) :
ModalDialog( pParent, nStyle )
{
- ImplInitData(_bRoadmapMode, _nLeftAlignCount);
+ ImplInitData();
}
// -----------------------------------------------------------------------
-WizardDialog::WizardDialog( Window* pParent, const ResId& rResId, sal_Bool _bRoadmapMode, sal_Int16 _nLeftAlignCount ) :
+WizardDialog::WizardDialog( Window* pParent, const ResId& rResId ) :
ModalDialog( pParent, rResId )
{
- ImplInitData(_bRoadmapMode, _nLeftAlignCount);
+ ImplInitData();
}
// -----------------------------------------------------------------------