summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-17 10:16:10 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-17 10:16:10 +0000
commit981f083ea41f342f1d5c1ebba6d2ab404ce5f796 (patch)
tree7c6949b3a92974774ed1740f6a56d571219f78fd /svtools
parente7eaf485489cceb76fa1eb1245b448fe200b3a22 (diff)
INTEGRATION: CWS dba23 (1.6.50); FILE MERGED
2005/01/10 11:42:43 oj 1.6.50.2: #i39192# tabstop corrected 2005/01/07 15:50:07 fs 1.6.50.1: #i38573# properly resize the vertical line right beside the roadmap control
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/roadmapwizard.cxx31
1 files changed, 20 insertions, 11 deletions
diff --git a/svtools/source/dialogs/roadmapwizard.cxx b/svtools/source/dialogs/roadmapwizard.cxx
index 6ba23b8a800b..9fb758783bcd 100644
--- a/svtools/source/dialogs/roadmapwizard.cxx
+++ b/svtools/source/dialogs/roadmapwizard.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: roadmapwizard.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: kz $ $Date: 2004-11-26 20:41:02 $
+ * last change: $Author: vg $ $Date: 2005-02-17 11:16:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -211,7 +211,7 @@ namespace svt
{
DBG_CTOR( RoadmapWizard, CheckInvariants );
- m_pImpl->pRoadmap = new ORoadmap( this, WB_DIALOGCONTROL );
+ m_pImpl->pRoadmap = new ORoadmap( this, WB_TABSTOP );
m_pImpl->pRoadmap->SetText( String( _rRoadmapTitleResource ) );
m_pImpl->pRoadmap->SetPosPixel( Point( 0, 0 ) );
m_pImpl->pRoadmap->SetItemSelectHdl( LINK( this, RoadmapWizard, OnRoadmapItemSelected ) );
@@ -220,6 +220,11 @@ namespace svt
aRoadmapSize.Height() = GetSizePixel().Height();
m_pImpl->pRoadmap->SetSizePixel( aRoadmapSize );
+ m_pImpl->pFixedLine = new FixedLine( this, WB_VERT );
+ m_pImpl->pFixedLine->Show();
+ m_pImpl->pFixedLine->SetPosPixel( Point( aRoadmapSize.Width() + 1, 0 ) );
+ m_pImpl->pFixedLine->SetSizePixel( Size( LogicToPixel( Size( 2, 0 ) ).Width(), aRoadmapSize.Height() ) );
+
SetViewWindow( m_pImpl->pRoadmap );
SetViewAlign( WINDOWALIGN_LEFT );
m_pImpl->pRoadmap->Show();
@@ -541,27 +546,31 @@ namespace svt
m_pImpl->pRoadmap->EnableRoadmapItem( (RoadmapTypes::ItemId)_nState, _bEnable );
}
+ //--------------------------------------------------------------------
void RoadmapWizard::Resize()
{
OWizardMachine::Resize();
- ResizeFixedLine();
+
+ if ( IsReallyShown() && !IsInInitShow() )
+ ResizeFixedLine();
}
+ //--------------------------------------------------------------------
void RoadmapWizard::StateChanged( StateChangedType nType )
{
WizardDialog::StateChanged( nType );
+
+ if ( nType == STATE_CHANGE_INITSHOW )
+ ResizeFixedLine();
}
+ //--------------------------------------------------------------------
void RoadmapWizard::ResizeFixedLine()
{
- if ( !m_pImpl->pFixedLine )
- {
- m_pImpl->pFixedLine = new FixedLine( this, WB_VERT );
- m_pImpl->pFixedLine->Show( sal_True );
- }
- m_pImpl->pFixedLine->SetPosSizePixel( m_pImpl->pRoadmap->GetSizePixel().Width(), 0, 0, GetPageSizePixel().Height(),
- WINDOW_POSSIZE_POS | WINDOW_POSSIZE_HEIGHT );
+ Size aSize( m_pImpl->pRoadmap->GetSizePixel() );
+ aSize.Width() = m_pImpl->pFixedLine->GetSizePixel().Width();
+ m_pImpl->pFixedLine->SetSizePixel( aSize );
}
//--------------------------------------------------------------------