unoawt: merged in latest changes from CWS slidecopy (rebase to m80)
This commit is contained in:
@@ -357,9 +357,9 @@ MigrationPage::MigrationPage(
|
||||
m_ftBody.SetText( aText );
|
||||
}
|
||||
|
||||
sal_Bool MigrationPage::commitPage( CommitPageReason _eReason )
|
||||
sal_Bool MigrationPage::commitPage( svt::WizardTypes::CommitPageReason _eReason )
|
||||
{
|
||||
if (_eReason == eTravelForward && m_cbMigration.IsChecked() && !m_bMigrationDone)
|
||||
if (_eReason == svt::WizardTypes::eTravelForward && m_cbMigration.IsChecked() && !m_bMigrationDone)
|
||||
{
|
||||
GetParent()->EnterWait();
|
||||
FirstStartWizard* pWizard = dynamic_cast< FirstStartWizard* >( GetParent() );
|
||||
@@ -433,7 +433,7 @@ UserPage::UserPage( svt::OWizardMachine* parent, const ResId& resid)
|
||||
}
|
||||
}
|
||||
|
||||
sal_Bool UserPage::commitPage( CommitPageReason )
|
||||
sal_Bool UserPage::commitPage( svt::WizardTypes::CommitPageReason )
|
||||
{
|
||||
SvtUserOptions aUserOpt;
|
||||
aUserOpt.SetFirstName(m_edFirst.GetText());
|
||||
@@ -463,9 +463,9 @@ UpdateCheckPage::UpdateCheckPage( svt::OWizardMachine* parent, const ResId& resi
|
||||
_setBold(m_ftHead);
|
||||
}
|
||||
|
||||
sal_Bool UpdateCheckPage::commitPage( CommitPageReason _eReason )
|
||||
sal_Bool UpdateCheckPage::commitPage( svt::WizardTypes::CommitPageReason _eReason )
|
||||
{
|
||||
if ( _eReason == eTravelForward )
|
||||
if ( _eReason == svt::WizardTypes::eTravelForward )
|
||||
{
|
||||
try {
|
||||
Reference < XNameReplace > xUpdateAccess;
|
||||
@@ -589,9 +589,9 @@ void RegistrationPage::updateButtonStates()
|
||||
m_rbNever.Show( m_bNeverVisible );
|
||||
}
|
||||
|
||||
sal_Bool RegistrationPage::commitPage( CommitPageReason _eReason )
|
||||
sal_Bool RegistrationPage::commitPage( svt::WizardTypes::CommitPageReason _eReason )
|
||||
{
|
||||
if ( _eReason == eFinish )
|
||||
if ( _eReason == svt::WizardTypes::eFinish )
|
||||
{
|
||||
::utl::RegOptions aOptions;
|
||||
rtl::OUString aEvent;
|
||||
@@ -665,7 +665,7 @@ void RegistrationPage::executeSingleMode()
|
||||
// the registration modes "Now" and "Later" are handled by the page
|
||||
RegistrationPage::RegistrationMode eMode = pPage->getRegistrationMode();
|
||||
if ( eMode == RegistrationPage::rmNow || eMode == RegistrationPage::rmLater )
|
||||
pPage->commitPage( IWizardPage::eFinish );
|
||||
pPage->commitPage( WizardTypes::eFinish );
|
||||
if ( eMode != RegistrationPage::rmLater )
|
||||
::utl::RegOptions().removeReminder();
|
||||
}
|
||||
|
@@ -125,7 +125,7 @@ private:
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::awt::XThrobber > m_xThrobber;
|
||||
public:
|
||||
MigrationPage( svt::OWizardMachine* parent, const ResId& resid, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XThrobber > xThrobber );
|
||||
virtual sal_Bool commitPage( CommitPageReason _eReason );
|
||||
virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason );
|
||||
|
||||
protected:
|
||||
virtual void ActivatePage();
|
||||
@@ -148,7 +148,7 @@ private:
|
||||
|
||||
public:
|
||||
UserPage( svt::OWizardMachine* parent, const ResId& resid);
|
||||
virtual sal_Bool commitPage( CommitPageReason _eReason );
|
||||
virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason );
|
||||
protected:
|
||||
virtual void ActivatePage();
|
||||
};
|
||||
@@ -161,7 +161,7 @@ private:
|
||||
CheckBox m_cbUpdateCheck;
|
||||
public:
|
||||
UpdateCheckPage( svt::OWizardMachine* parent, const ResId& resid);
|
||||
virtual sal_Bool commitPage( CommitPageReason _eReason );
|
||||
virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason );
|
||||
|
||||
protected:
|
||||
virtual void ActivatePage();
|
||||
@@ -188,7 +188,7 @@ protected:
|
||||
virtual bool canAdvance() const;
|
||||
virtual void ActivatePage();
|
||||
|
||||
virtual sal_Bool commitPage( CommitPageReason _eReason );
|
||||
virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason );
|
||||
|
||||
public:
|
||||
RegistrationPage( Window* parent, const ResId& resid);
|
||||
|
@@ -439,10 +439,10 @@ sal_Bool FirstStartWizard::leaveState(WizardState)
|
||||
return sal_True;
|
||||
}
|
||||
|
||||
sal_Bool FirstStartWizard::onFinish(sal_Int32 _nResult)
|
||||
sal_Bool FirstStartWizard::onFinish()
|
||||
{
|
||||
// return sal_True;
|
||||
if (svt::RoadmapWizard::onFinish(_nResult))
|
||||
if ( svt::RoadmapWizard::onFinish() )
|
||||
{
|
||||
#ifndef OS2 // cannot enable quickstart on first startup, see shutdownicon.cxx comments.
|
||||
enableQuickstart();
|
||||
|
@@ -97,7 +97,7 @@ protected:
|
||||
virtual TabPage* createPage(WizardState _nState);
|
||||
virtual sal_Bool prepareLeaveCurrentState( CommitPageReason _eReason );
|
||||
virtual sal_Bool leaveState(WizardState _nState );
|
||||
virtual sal_Bool onFinish(sal_Int32 _nResult);
|
||||
virtual sal_Bool onFinish();
|
||||
virtual void enterState(WizardState _nState);
|
||||
|
||||
// from svt::RoadmapWizard
|
||||
|
@@ -28,26 +28,22 @@
|
||||
// MARKER(update_precomp.py): autogen include statement, do not remove
|
||||
#include "precompiled_scripting.hxx"
|
||||
|
||||
#ifndef SCRIPTING_DLGPROV_HXX
|
||||
#include "dlgprov.hxx"
|
||||
#endif
|
||||
#include "dlgevtatt.hxx"
|
||||
#include <com/sun/star/awt/XControlContainer.hpp>
|
||||
#include <com/sun/star/awt/XWindowPeer.hpp>
|
||||
#ifndef _COM_SUN_STAR_IO_XINPUTSTREAMPROVIDER_HXX_
|
||||
#include <com/sun/star/io/XInputStreamProvider.hpp>
|
||||
#endif
|
||||
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
|
||||
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
|
||||
#include <com/sun/star/script/XLibraryContainer.hpp>
|
||||
#ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_
|
||||
#include <cppuhelper/implementationentry.hxx>
|
||||
#endif
|
||||
#include <cppuhelper/exc_hlp.hxx>
|
||||
#include <com/sun/star/beans/XIntrospection.hpp>
|
||||
#include <com/sun/star/resource/XStringResourceSupplier.hpp>
|
||||
#include <com/sun/star/resource/XStringResourceManager.hpp>
|
||||
#include <com/sun/star/beans/XPropertySet.hpp>
|
||||
#include <com/sun/star/ucb/XSimpleFileAccess.hpp>
|
||||
#include "com/sun/star/resource/XStringResourceWithLocation.hpp"
|
||||
#include <com/sun/star/resource/XStringResourceWithLocation.hpp>
|
||||
#include <com/sun/star/document/XEmbeddedScripts.hpp>
|
||||
#include <sfx2/app.hxx>
|
||||
#include <sfx2/objsh.hxx>
|
||||
@@ -691,13 +687,22 @@ static ::rtl::OUString aResourceResolverPropName = ::rtl::OUString::createFromAs
|
||||
//Reference< XDialog > xDialog;
|
||||
Reference< XControl > xCtrl;
|
||||
Reference< XControlModel > xCtrlMod;
|
||||
// add support for basic RTL_FUNCTION
|
||||
if ( m_BasicInfo.get() )
|
||||
xCtrlMod = createDialogModelForBasic();
|
||||
else
|
||||
try
|
||||
{
|
||||
OSL_ENSURE( URL.getLength(), "DialogProviderImpl::getDialog: no URL!" );
|
||||
xCtrlMod = createDialogModel( URL );
|
||||
// add support for basic RTL_FUNCTION
|
||||
if ( m_BasicInfo.get() )
|
||||
xCtrlMod = createDialogModelForBasic();
|
||||
else
|
||||
{
|
||||
OSL_ENSURE( URL.getLength(), "DialogProviderImpl::getDialog: no URL!" );
|
||||
xCtrlMod = createDialogModel( URL );
|
||||
}
|
||||
}
|
||||
catch ( const RuntimeException& ) { throw; }
|
||||
catch ( const Exception& )
|
||||
{
|
||||
const Any aError( ::cppu::getCaughtException() );
|
||||
throw WrappedTargetRuntimeException( ::rtl::OUString(), *this, aError );
|
||||
}
|
||||
if ( xCtrlMod.is() )
|
||||
{
|
||||
|
@@ -653,6 +653,8 @@ void ElementDescriptor::readTreeControlModel( StyleBag * all_styles )
|
||||
|
||||
// collect elements
|
||||
readDefaults();
|
||||
readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
|
||||
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
|
||||
readSelectionTypeAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("SelectionType") ),
|
||||
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":selectiontype") ) );
|
||||
|
||||
|
@@ -930,6 +930,9 @@ void TreeControlElement::endElement()
|
||||
}
|
||||
|
||||
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
|
||||
ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
|
||||
OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
|
||||
_xAttributes );
|
||||
ctx.importSelectionTypeProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("SelectionType") ),
|
||||
OUString( RTL_CONSTASCII_USTRINGPARAM("selectiontype") ),
|
||||
_xAttributes );
|
||||
|
Reference in New Issue
Block a user