diff options
author | Frank Schönheit <fs@openoffice.org> | 2000-11-24 12:03:02 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2000-11-24 12:03:02 +0000 |
commit | e806af8b1b25eb8664d37ed29657ead9c68f0cde (patch) | |
tree | 62b55e62e9a74eb0e34b9e713b181461ab0dffa5 /sfx2/source/doc/docvor.cxx | |
parent | 17cceb9da6338a02159398091186b2f87be36065 (diff) |
#80569# added a possibility to open an AddressBookSourceAssignmentDialog
Diffstat (limited to 'sfx2/source/doc/docvor.cxx')
-rw-r--r-- | sfx2/source/doc/docvor.cxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/sfx2/source/doc/docvor.cxx b/sfx2/source/doc/docvor.cxx index be891a390e1c..04965fc1bb6c 100644 --- a/sfx2/source/doc/docvor.cxx +++ b/sfx2/source/doc/docvor.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docvor.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mba $ $Date: 2000-11-16 15:55:40 $ + * last change: $Author: fs $ $Date: 2000-11-24 13:03:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -112,6 +112,13 @@ #include "docvor.hrc" #include "docfilt.hxx" +#ifndef _SVT_DOC_ADDRESSTEMPLATE_HXX_ +#include <svtools/addresstemplate.hxx> +#endif +#ifndef _COMPHELPER_PROCESSFACTORY_HXX_ +#include <comphelper/processfactory.hxx> +#endif + static const char cDelim = ':'; BOOL SfxOrganizeListBox_Impl::bDropMoveOk=TRUE; @@ -154,6 +161,7 @@ friend class SfxOrganizeListBox_Impl; OKButton aOkBtn; MenuButton aEditBtn; HelpButton aHelpBtn; + PushButton aAddressTemplateBtn; PushButton aFilesBtn; // FixedText aDefaultTemplateLabel; @@ -176,6 +184,7 @@ friend class SfxOrganizeListBox_Impl; DECL_LINK( MenuSelect_Impl, Menu * ); DECL_LINK( MenuActivate_Impl, Menu * ); DECL_LINK( AddFiles_Impl, Button * ); + DECL_LINK( OnAddressTemplateClicked, Button * ); BOOL DontDelete_Impl( SvLBoxEntry *pEntry); void OkHdl(Button *); @@ -196,6 +205,7 @@ SfxOrganizeDlg_Impl::SfxOrganizeDlg_Impl( SfxTemplateOrganizeDlg* pParent, aLeftLb( this, pParent, WB_BORDER | WB_TABSTOP | WB_HSCROLL, SfxOrganizeListBox_Impl::VIEW_TEMPLATES ), aRightLb( this, pParent, WB_BORDER | WB_TABSTOP | WB_HSCROLL, SfxOrganizeListBox_Impl::VIEW_FILES ), aFilesBtn( pParent, ResId( BTN_FILES ) ), + aAddressTemplateBtn( pParent, ResId( BTN_ADDRESSTEMPLATE ) ), aEditAcc( ResId( ACC_EDIT ) ), aEditBtn( pParent, ResId( BTN_EDIT ) ), aMgr(&aLeftLb, &aRightLb, pTempl), @@ -246,6 +256,8 @@ SfxOrganizeDlg_Impl::SfxOrganizeDlg_Impl( SfxTemplateOrganizeDlg* pParent, aFilesBtn.SetClickHdl( LINK(this,SfxOrganizeDlg_Impl, AddFiles_Impl)); + aAddressTemplateBtn.SetClickHdl( + LINK(this,SfxOrganizeDlg_Impl, OnAddressTemplateClicked)); aLeftTypLb.SetSelectHdl( LINK(this, SfxOrganizeDlg_Impl, LeftListBoxSelect_Impl)); aRightTypLb.SetSelectHdl( @@ -1902,6 +1914,15 @@ IMPL_LINK( SfxOrganizeDlg_Impl, RightListBoxSelect_Impl, ListBox *, pBox ) //------------------------------------------------------------------------- +IMPL_LINK( SfxOrganizeDlg_Impl, OnAddressTemplateClicked, Button *, pButton ) +{ + svt::AddressBookSourceDialog aDialog(pDialog, ::comphelper::getProcessServiceFactory()); + aDialog.Execute(); + return 0L; +} + +//------------------------------------------------------------------------- + IMPL_LINK( SfxOrganizeDlg_Impl, AddFiles_Impl, Button *, pButton ) /* [Beschreibung] |