diff options
-rw-r--r-- | sfx2/source/doc/docvor.cxx | 25 | ||||
-rw-r--r-- | sfx2/source/doc/docvor.hrc | 5 | ||||
-rw-r--r-- | sfx2/source/doc/docvor.src | 12 |
3 files changed, 36 insertions, 6 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] diff --git a/sfx2/source/doc/docvor.hrc b/sfx2/source/doc/docvor.hrc index 55579e7595d4..d1d0132ace30 100644 --- a/sfx2/source/doc/docvor.hrc +++ b/sfx2/source/doc/docvor.hrc @@ -2,9 +2,9 @@ * * $RCSfile: docvor.hrc,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:52:32 $ + * 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 @@ -82,6 +82,7 @@ #define LB_LEFT_TYP 2 #define BTN_EDIT 105 #define BTN_FILES 3 +#define BTN_ADDRESSTEMPLATE 4 #define LB_LEFT 1 #define FT_DEFAULT_TEMPLATE_LABEL 20 #define FT_DEFAULT_TEMPLATE 21 diff --git a/sfx2/source/doc/docvor.src b/sfx2/source/doc/docvor.src index b6308ad8564a..10f5c8ac3304 100644 --- a/sfx2/source/doc/docvor.src +++ b/sfx2/source/doc/docvor.src @@ -2,9 +2,9 @@ * * $RCSfile: docvor.src,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: kz $ $Date: 2000-10-27 17:03:45 $ + * 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 @@ -153,6 +153,14 @@ ModalDialog DLG_ORGANIZE Text[ turkish ] = "Dosya"; Text[ language_user1 ] = " "; }; + PushButton BTN_ADDRESSTEMPLATE + { + Pos = MAP_APPFONT ( 205 , 124 ) ; + Size = MAP_APPFONT ( 60 , 14 ) ; + Text = "~Adressbuch..." ; + Text [ english ] = "~Address Book..." ; + Text [ english_us ] = "~Address Book..." ; + }; ListBox LB_LEFT_TYP { Border = TRUE ; |