diff --git a/extensions/source/abpilot/abpfinalpage.cxx b/extensions/source/abpilot/abpfinalpage.cxx index 0be3156f4329..ccbd9b637bde 100644 --- a/extensions/source/abpilot/abpfinalpage.cxx +++ b/extensions/source/abpilot/abpfinalpage.cxx @@ -49,7 +49,9 @@ namespace abp get(m_pLocation, "location"); get(m_pBrowse, "browse"); get(m_pRegisterName, "available"); + get(m_pEmbed, "embed"); get(m_pNameLabel, "nameft"); + get(m_pLocationLabel, "locationft"); get(m_pName, "name"); get(m_pDuplicateNameError, "warning"); m_pLocationController = new svx::DatabaseLocationInputController(_pParent->getORB(), @@ -59,6 +61,9 @@ namespace abp m_pLocation->SetModifyHdl( LINK(this, FinalPage, OnNameModified) ); m_pRegisterName->SetClickHdl( LINK( this, FinalPage, OnRegister ) ); m_pRegisterName->Check(true); + m_pEmbed->SetClickHdl( LINK( this, FinalPage, OnEmbed ) ); + m_pEmbed->Check(true); + OnEmbed(m_pEmbed); } FinalPage::~FinalPage() @@ -72,7 +77,9 @@ namespace abp m_pLocation.clear(); m_pBrowse.clear(); m_pRegisterName.clear(); + m_pEmbed.clear(); m_pNameLabel.clear(); + m_pLocationLabel.clear(); m_pName.clear(); m_pDuplicateNameError.clear(); AddressBookSourcePage::dispose(); @@ -219,6 +226,15 @@ namespace abp return 0L; } + IMPL_LINK_NOARG(FinalPage, OnEmbed) + { + bool bEmbed = m_pEmbed->IsChecked(); + m_pLocationLabel->Enable(!bEmbed); + m_pLocation->Enable(!bEmbed); + m_pBrowse->Enable(!bEmbed); + return 0L; + } + } // namespace abp diff --git a/extensions/source/abpilot/abpfinalpage.hxx b/extensions/source/abpilot/abpfinalpage.hxx index d601e8d3e48d..ceb1d0b66353 100644 --- a/extensions/source/abpilot/abpfinalpage.hxx +++ b/extensions/source/abpilot/abpfinalpage.hxx @@ -38,7 +38,9 @@ namespace abp VclPtr< ::svt::OFileURLControl> m_pLocation; VclPtr m_pBrowse; VclPtr m_pRegisterName; + VclPtr m_pEmbed; VclPtr m_pNameLabel; + VclPtr m_pLocationLabel; VclPtr m_pName; VclPtr m_pDuplicateNameError; @@ -67,6 +69,7 @@ namespace abp private: DECL_LINK( OnNameModified, Edit* ); DECL_LINK(OnRegister, void *); + DECL_LINK(OnEmbed, void *); bool isValidName() const; void implCheckName(); diff --git a/extensions/uiconfig/sabpilot/ui/datasourcepage.ui b/extensions/uiconfig/sabpilot/ui/datasourcepage.ui index cce60fe384b8..0339bd75e5df 100644 --- a/extensions/uiconfig/sabpilot/ui/datasourcepage.ui +++ b/extensions/uiconfig/sabpilot/ui/datasourcepage.ui @@ -33,6 +33,20 @@ Now, just enter the name under which you want to register the data source in %PR False True 6 + + + Embed this address book definition into the current document. + True + True + False + 0 + True + + + 0 + 0 + + True @@ -40,7 +54,7 @@ Now, just enter the name under which you want to register the data source in %PR True 12 - + True False 0 @@ -92,7 +106,7 @@ Now, just enter the name under which you want to register the data source in %PR 0 - 0 + 1 1 1 @@ -108,7 +122,7 @@ Now, just enter the name under which you want to register the data source in %PR 0 - 1 + 2 1 1 @@ -190,7 +204,7 @@ Now, just enter the name under which you want to register the data source in %PR 0 - 2 + 3 1 1