[Libreoffice-commits] .: svtools/inc svtools/source

Joseph Powers jpowers at kemper.freedesktop.org
Sun Jul 24 06:23:51 PDT 2011


 svtools/inc/svtools/templdlg.hxx   |    8 +-------
 svtools/source/contnr/templwin.cxx |   35 -----------------------------------
 2 files changed, 1 insertion(+), 42 deletions(-)

New commits:
commit 59e712e9dc482604287d39e90f9e94755ab3f059
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Sun Jul 24 06:19:21 2011 -0700

    unusedcode.easy: Class SvtDocumentTemplateDialog cleanup

diff --git a/svtools/inc/svtools/templdlg.hxx b/svtools/inc/svtools/templdlg.hxx
index d0a20b4..716ad4a 100644
--- a/svtools/inc/svtools/templdlg.hxx
+++ b/svtools/inc/svtools/templdlg.hxx
@@ -2,7 +2,7 @@
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -74,14 +74,8 @@ public:
         </ul>
 
     */
-    struct SelectOnly { };
-    SvtDocumentTemplateDialog( Window* _pParent, SelectOnly );
-
     ~SvtDocumentTemplateDialog();
 
-    sal_Bool	IsFileSelected( ) const;
-    String		GetSelectedFileURL( ) const;
-
     void        SelectTemplateFolder();
 
 private:
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx
index 9691a4f..a6035fc 100644
--- a/svtools/source/contnr/templwin.cxx
+++ b/svtools/source/contnr/templwin.cxx
@@ -1693,27 +1693,6 @@ uno::Reference< util::XOfficeInstallationDirectories > SvtTmplDlg_Impl::getOffic
 
 // class SvtDocumentTemplateDialog ---------------------------------------
 
-SvtDocumentTemplateDialog::SvtDocumentTemplateDialog( Window* _pParent, SelectOnly ) :
-    ModalDialog( _pParent, SvtResId( DLG_DOCTEMPLATE ) ),
-
-    aMoreTemplatesLink  ( this, SvtResId( FT_DOCTEMPLATE_LINK ) ),
-    aLine               ( this, SvtResId( FL_DOCTEMPLATE ) ),
-    aManageBtn          ( this, SvtResId( BTN_DOCTEMPLATE_MANAGE ) ),
-    aEditBtn            ( this, SvtResId( BTN_DOCTEMPLATE_EDIT ) ),
-    aOKBtn              ( this, SvtResId( BTN_DOCTEMPLATE_OPEN ) ),
-    aCancelBtn          ( this, SvtResId( BTN_DOCTEMPLATE_CANCEL ) ),
-    aHelpBtn            ( this, SvtResId( BTN_DOCTEMPLATE_HELP ) ),
-    pImpl               ( NULL )
-{
-    FreeResource();
-    InitImpl( );
-
-    // no editing of templates
-    aEditBtn.Hide();
-
-    pImpl->bSelectNoOpen = sal_True;
-}
-
 // ------------------------------------------------------------------------
 
 SvtDocumentTemplateDialog::SvtDocumentTemplateDialog( Window* pParent ) :
@@ -1818,20 +1797,6 @@ SvtDocumentTemplateDialog::~SvtDocumentTemplateDialog()
 
 // ------------------------------------------------------------------------
 
-sal_Bool SvtDocumentTemplateDialog::IsFileSelected( ) const
-{
-    return pImpl->pWin->IsFileSelected();
-}
-
-// ------------------------------------------------------------------------
-
-String SvtDocumentTemplateDialog::GetSelectedFileURL( ) const
-{
-    return pImpl->pWin->GetSelectedFile();
-}
-
-// ------------------------------------------------------------------------
-
 sal_Bool SvtDocumentTemplateDialog::CanEnableEditBtn() const
 {
     sal_Bool bEnable = sal_False;


More information about the Libreoffice-commits mailing list