lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master ff144846 1/4: Suppress print-preview and page


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ff144846 1/4: Suppress print-preview and page-setup commands
Date: Wed, 10 Aug 2022 10:53:48 -0400 (EDT)

branch: master
commit ff1448462588cc003949da9208c0a65c0686ad37
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Suppress print-preview and page-setup commands
    
    Suppressed these long-obsolete commands. See:
      https://lists.nongnu.org/archive/html/lmi/2022-08/msg00010.html
---
 census_view.cpp       | 2 +-
 illustration_view.cpp | 4 ++--
 menu_commands.html    | 4 ++++
 menus.xrc             | 2 ++
 toolbar.xrc           | 2 ++
 5 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/census_view.cpp b/census_view.cpp
index f9bf34ff..7c086a26 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -970,7 +970,7 @@ BEGIN_EVENT_TABLE(CensusView, ViewEx)
     EVT_UPDATE_UI(XRCID("print_case_to_disk"   
),CensusView::UponUpdateAlwaysEnabled    )
     EVT_UPDATE_UI(XRCID("print_spreadsheet"    
),CensusView::UponUpdateAlwaysEnabled    )
     EVT_UPDATE_UI(XRCID("print_group_roster"   
),CensusView::UponUpdateAlwaysEnabled    )
-    EVT_UPDATE_UI(XRCID("print_group_quote"    
),CensusView::UponUpdateAlwaysEnabled    )
+    EVT_UPDATE_UI(XRCID("print_group_quote"    
),CensusView::UponUpdateAlwaysDisabled   )
     EVT_UPDATE_UI(XRCID("copy_census"          
),CensusView::UponUpdateColumnValuesVary )
     EVT_UPDATE_UI(XRCID("paste_census"         
),CensusView::UponUpdateAlwaysEnabled    )
     EVT_UPDATE_UI(XRCID("add_cell"             
),CensusView::UponUpdateAlwaysEnabled    )
diff --git a/illustration_view.cpp b/illustration_view.cpp
index 3eda390f..75f32ba3 100644
--- a/illustration_view.cpp
+++ b/illustration_view.cpp
@@ -72,8 +72,8 @@ BEGIN_EVENT_TABLE(IllustrationView, ViewEx)
     EVT_UPDATE_UI(wxID_SAVE                     
,IllustrationView::UponUpdateFileSave     )
     EVT_UPDATE_UI(wxID_SAVEAS                   
,IllustrationView::UponUpdateFileSaveAs   )
     EVT_UPDATE_UI(wxID_PRINT                    
,IllustrationView::UponUpdateIllustration )
-    EVT_UPDATE_UI(wxID_PAGE_SETUP               
,IllustrationView::UponUpdateIllustration )
-    EVT_UPDATE_UI(wxID_PREVIEW                  
,IllustrationView::UponUpdateIllustration )
+    EVT_UPDATE_UI(wxID_PAGE_SETUP               
,IllustrationView::UponUpdateInapplicable )
+    EVT_UPDATE_UI(wxID_PREVIEW                  
,IllustrationView::UponUpdateInapplicable )
     EVT_UPDATE_UI(XRCID("print_pdf"            
),IllustrationView::UponUpdateIllustration )
     EVT_UPDATE_UI(XRCID("edit_cell"            
),IllustrationView::UponUpdateProperties   )
     EVT_UPDATE_UI(XRCID("edit_class"           
),IllustrationView::UponUpdateInapplicable )
diff --git a/menu_commands.html b/menu_commands.html
index 2785628b..296891d5 100644
--- a/menu_commands.html
+++ b/menu_commands.html
@@ -129,6 +129,7 @@ Print the current document.
 See other print commands on the
 <a href="menu_commands.html#menu_census_print">Census menu</a>.
 </p>
+<!--
 <p>
 <p><a name="menu_file_print_other"></a>
 <img src="print-options.png" alt="[print-options.png]">
@@ -147,6 +148,7 @@ to everything you print in <tt>lmi</tt>.
 <p>
 See what this document looks like when printed.
 </p>
+-->
 <p>
 <img src="save-pdf.png" alt="[save-pdf.png]">
 &nbsp;
@@ -302,6 +304,7 @@ a spreadsheet file.
 Run every cell, and write a one-line summary of each to a spreadsheet
 file.
 </p>
+<!--
 <p>
 <img src="quote.png" alt="[quote.png]">
 &nbsp;
@@ -311,6 +314,7 @@ file.
 Write a group premium quote to a PDF file. You can only do this for
 new business.
 </p>
+-->
 <p>
 <img src="copy-census.png" alt="[copy-census.png]">
 &nbsp;
diff --git a/menus.xrc b/menus.xrc
index f0a9c171..cf40752d 100644
--- a/menus.xrc
+++ b/menus.xrc
@@ -66,6 +66,7 @@
         <bitmap platform="win" stock_id="wxART_PRINT"/>
         <help>Print this document</help>
     </object>
+<!--
     <object class="wxMenuItem" name="wxID_PAGE_SETUP">
         <label>Page set_up...\tCtrl-U</label>
         <bitmap platform="win" stock_id="print-options"/>
@@ -76,6 +77,7 @@
         <bitmap platform="win" stock_id="print-preview"/>
         <help>See what this document will look like when printed</help>
     </object>
+-->
     <object class="wxMenuItem" name="print_pdf">
         <label>Pr_int to PDF\tCtrl-I</label>
         <bitmap platform="win" stock_id="save-pdf"/>
diff --git a/toolbar.xrc b/toolbar.xrc
index 3f3d643f..f8603fd1 100644
--- a/toolbar.xrc
+++ b/toolbar.xrc
@@ -48,11 +48,13 @@
         <bitmap stock_id="wxART_PRINT"/>
         <longhelp>Print this document</longhelp>
     </object>
+<!--
     <object class="tool" name="wxID_PREVIEW">
         <tooltip>Print preview</tooltip>
         <bitmap stock_id="print-preview"/>
         <longhelp>See what this document will look like when printed</longhelp>
     </object>
+-->
     <object class="tool" name="print_pdf">
         <tooltip>Print to PDF</tooltip>
         <bitmap stock_id="save-pdf"/>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]