wizardshell.cxx (5900e8ec) wizardshell.cxx (89763fdb)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 58 unchanged lines hidden (view full) ---

67 return i_rPaths[0][0];
68 }
69 }
70
71 //==================================================================================================================
72 //= WizardShell
73 //==================================================================================================================
74 //------------------------------------------------------------------------------------------------------------------
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 58 unchanged lines hidden (view full) ---

67 return i_rPaths[0][0];
68 }
69 }
70
71 //==================================================================================================================
72 //= WizardShell
73 //==================================================================================================================
74 //------------------------------------------------------------------------------------------------------------------
75 WizardShell::WizardShell( Window* i_pParent, const Reference< XWizard >& i_rWizard, const Reference< XWizardController >& i_rController,
75 WizardShell::WizardShell( Window* i_pParent, const Reference< XWizardController >& i_rController,
76 const Sequence< Sequence< sal_Int16 > >& i_rPaths )
77 :WizardShell_Base( i_pParent, WB_MOVEABLE | WB_CLOSEABLE )
76 const Sequence< Sequence< sal_Int16 > >& i_rPaths )
77 :WizardShell_Base( i_pParent, WB_MOVEABLE | WB_CLOSEABLE )
78 ,m_xWizard( i_rWizard )
79 ,m_xController( i_rController )
80 ,m_nFirstPageID( lcl_determineFirstPageID( i_rPaths ) )
81 {
78 ,m_xController( i_rController )
79 ,m_nFirstPageID( lcl_determineFirstPageID( i_rPaths ) )
80 {
82 ENSURE_OR_THROW( m_xWizard.is() && m_xController.is(), "invalid wizard/controller" );
81 ENSURE_OR_THROW( m_xController.is(), "invalid controller" );
83
84 // declare the paths
85 for ( sal_Int32 i=0; i<i_rPaths.getLength(); ++i )
86 {
87 const Sequence< sal_Int16 >& rPath( i_rPaths[i] );
88 WizardPath aPath( rPath.getLength() );
89 for ( sal_Int32 j=0; j<rPath.getLength(); ++j )
90 aPath[j] = impl_pageIdToState( rPath[j] );

--- 186 unchanged lines hidden ---
82
83 // declare the paths
84 for ( sal_Int32 i=0; i<i_rPaths.getLength(); ++i )
85 {
86 const Sequence< sal_Int16 >& rPath( i_rPaths[i] );
87 WizardPath aPath( rPath.getLength() );
88 for ( sal_Int32 j=0; j<rPath.getLength(); ++j )
89 aPath[j] = impl_pageIdToState( rPath[j] );

--- 186 unchanged lines hidden ---