~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/source_exporter/exporter.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
 
95
95
  // decide where to insert in "File" menu
96
96
  size_t printPos = file->GetMenuItemCount() - 4; // the default location
97
 
  int printID = file->FindItem(_("Print"));
 
97
  int printID = file->FindItem(_("Print..."));
98
98
 
99
99
  if (printID != wxNOT_FOUND)
100
100
  {
185
185
 
186
186
  EditorManager *em = Manager::Get()->GetEditorManager();
187
187
  cbEditor *cb = em->GetBuiltinActiveEditor();
188
 
  wxString filename = wxFileSelector(_("Choose the filename"), _T(""), wxFileName(cb->GetFilename()).GetName() + _T(".") + default_extension, default_extension, wildcard, wxSAVE | wxOVERWRITE_PROMPT);
 
188
  wxString filename = wxFileSelector(_("Choose the filename"), _T(""), wxFileName(cb->GetFilename()).GetName() + _T(".") + default_extension, default_extension, wildcard, wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
189
189
 
190
190
  if (filename.IsEmpty())
191
191
  {
194
194
 
195
195
  cbStyledTextCtrl* ed = cb->GetControl();
196
196
  wxMemoryBuffer mb = ed->GetStyledText(0, ed->GetLength() - 1);
 
197
 
 
198
  int lineCount = -1;
 
199
 
 
200
  if (wxMessageBox(_("Would you like to have the line numbers printed in the exported file?"), _("Export line numbers"), wxYES_NO | wxYES_DEFAULT | wxICON_QUESTION) == wxYES)
 
201
  {
 
202
    lineCount = cb->GetControl()->GetLineCount();
 
203
  }
 
204
 
197
205
  EditorColourSet *ecs = cb->GetColourSet();
198
206
 
199
 
  exp->Export(filename, cb->GetFilename(), mb, ecs);
 
207
  exp->Export(filename, cb->GetFilename(), mb, ecs, lineCount);
200
208
}