separate character and old document dialog building to stop a segfault

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@993 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Allan Rae 2000-08-31 05:01:52 +00:00
parent 5495b8803f
commit 9bb14183f4
4 changed files with 64 additions and 49 deletions

View File

@ -1,3 +1,9 @@
2000-08-31 Allan Rae <rae@lyx.org>
* src/lyx_gui.C (create_forms): build combo_language2 which is part of
character dialog separately from old document dialogs combo_language.
Stops a segfault.
2000-08-30 Dekel Tsur <dekel@math.tau.ac.il> 2000-08-30 Dekel Tsur <dekel@math.tau.ac.il>
* src/converter.[Ch]: New file for converting between different * src/converter.[Ch]: New file for converting between different

View File

@ -19,9 +19,11 @@ src/bullet_forms_cb.C
src/Chktex.C src/Chktex.C
src/ColorHandler.C src/ColorHandler.C
src/combox.C src/combox.C
src/converter.C
src/credits.C src/credits.C
src/credits_form.C src/credits_form.C
src/CutAndPaste.C src/CutAndPaste.C
src/exporter.C
src/ext_l10n.h src/ext_l10n.h
src/filedlg.C src/filedlg.C
src/FontLoader.C src/FontLoader.C

View File

@ -18,8 +18,10 @@ _("Save As|A");
_("Revert to saved|R"); _("Revert to saved|R");
_("View dvi|d"); _("View dvi|d");
_("View Postscript|w"); _("View Postscript|w");
_("View");
_("Update dvi|v"); _("Update dvi|v");
_("Update Postscript|U"); _("Update Postscript|U");
_("Update");
_("Build program|B"); _("Build program|B");
_("Print...|P"); _("Print...|P");
_("Fax...|F"); _("Fax...|F");
@ -165,18 +167,17 @@ _("Credits...|e");
_("Version...|V"); _("Version...|V");
_(""); _("");
_("A&A"); _("A&A");
_("ACT");
_("AT_RISE:");
_("Abstract"); _("Abstract");
_("Accepted"); _("Accepted");
_("Acknowledgement"); _("Acknowledgement");
_("Acknowledgement(s)");
_("Acknowledgement*"); _("Acknowledgement*");
_("Acknowledgement-numbered"); _("Acknowledgement-numbered");
_("Acknowledgement-unnumbered"); _("Acknowledgement(s)");
_("Acknowledgements"); _("Acknowledgements");
_("Acknowledgement-unnumbered");
_("Acknowledgments"); _("Acknowledgments");
_("Acnowledgement"); _("Acnowledgement");
_("ACT");
_("Addchap"); _("Addchap");
_("Addchap*"); _("Addchap*");
_("Addition"); _("Addition");
@ -194,15 +195,15 @@ _("Anlagen");
_("Anrede"); _("Anrede");
_("Appendices"); _("Appendices");
_("Appendix"); _("Appendix");
_("AT_RISE:");
_("Author"); _("Author");
_("AuthorRunning");
_("Author_Email"); _("Author_Email");
_("Author_Running"); _("Author_Running");
_("AuthorRunning");
_("Author_URL"); _("Author_URL");
_("Axiom"); _("Axiom");
_("Axiom-numbered"); _("Axiom-numbered");
_("Axiom-plain"); _("Axiom-plain");
_("BLZ");
_("Backaddress"); _("Backaddress");
_("Bank"); _("Bank");
_("BankAccount"); _("BankAccount");
@ -210,12 +211,13 @@ _("BankCode");
_("Betreff"); _("Betreff");
_("Bibliography"); _("Bibliography");
_("Biography"); _("Biography");
_("BLZ");
_("Brieftext"); _("Brieftext");
_("CC");
_("CURTAIN");
_("Caption"); _("Caption");
_("Case"); _("Case");
_("Case-numbered"); _("Case-numbered");
_("CC");
_("cc");
_("CenteredCaption"); _("CenteredCaption");
_("Chapter"); _("Chapter");
_("Chapter*"); _("Chapter*");
@ -255,6 +257,7 @@ _("Criterion-plain");
_("CrossList"); _("CrossList");
_("Current"); _("Current");
_("Current_Address"); _("Current_Address");
_("CURTAIN");
_("Customer"); _("Customer");
_("Data"); _("Data");
_("Date"); _("Date");
@ -269,10 +272,10 @@ _("Definition-unnumbered");
_("Description"); _("Description");
_("Dialogue"); _("Dialogue");
_("EMail"); _("EMail");
_("EXT.");
_("Email"); _("Email");
_("Encl"); _("Encl");
_("Encl."); _("Encl.");
_("encl");
_("End_All_Slides"); _("End_All_Slides");
_("Enumerate"); _("Enumerate");
_("Example"); _("Example");
@ -283,43 +286,48 @@ _("Example-unnumbered");
_("Exercise"); _("Exercise");
_("Exercise-numbered"); _("Exercise-numbered");
_("Exercise-plain"); _("Exercise-plain");
_("EXT.");
_("Extratitle"); _("Extratitle");
_("FADE_IN:");
_("FADE_OUT:");
_("Fact"); _("Fact");
_("Fact*"); _("Fact*");
_("Fact-numbered"); _("Fact-numbered");
_("Fact-plain"); _("Fact-plain");
_("Fact-unnumbered"); _("Fact-unnumbered");
_("FADE_IN:");
_("FADE_OUT:");
_("FigCaption"); _("FigCaption");
_("first");
_("FirstAuthor"); _("FirstAuthor");
_("FirstName"); _("FirstName");
_("FitBitmap"); _("FitBitmap");
_("FitFigure"); _("FitFigure");
_("Foilhead"); _("Foilhead");
_("foilhead");
_("Footernote"); _("Footernote");
_("FourAffiliations"); _("FourAffiliations");
_("FourAuthors"); _("FourAuthors");
_("Gruss"); _("Gruss");
_("HTTP");
_("Headnote"); _("Headnote");
_("INT."); _("HTTP");
_("Idea"); _("Idea");
_("IhrSchreiben"); _("IhrSchreiben");
_("IhrZeichen"); _("IhrZeichen");
_("Institute"); _("Institute");
_("Institution"); _("Institution");
_("INT.");
_("InvisibleText"); _("InvisibleText");
_("Invoice"); _("Invoice");
_("Itemize"); _("Itemize");
_("Journal"); _("Journal");
_("journal");
_("Keywords"); _("Keywords");
_("Konto"); _("Konto");
_("LaTeX");
_("LaTeX_Title");
_("Labeling"); _("Labeling");
_("Land"); _("Land");
_("landscape");
_("LandscapeSlide"); _("LandscapeSlide");
_("LaTeX");
_("LaTeX_Title");
_("Lemma"); _("Lemma");
_("Lemma*"); _("Lemma*");
_("Lemma-numbered"); _("Lemma-numbered");
@ -338,8 +346,10 @@ _("MarkBoth");
_("MathLetters"); _("MathLetters");
_("MeinZeichen"); _("MeinZeichen");
_("Minisec"); _("Minisec");
_("MyRef"); _("modying");
_("msnumber");
_("My_Address"); _("My_Address");
_("MyRef");
_("Myref"); _("Myref");
_("Name"); _("Name");
_("Narrative"); _("Narrative");
@ -349,18 +359,18 @@ _("Note");
_("Note*"); _("Note*");
_("Note-numbered"); _("Note-numbered");
_("Note-plain"); _("Note-plain");
_("Note-unnumbered");
_("NoteToEditor"); _("NoteToEditor");
_("Notetoeditor"); _("Notetoeditor");
_("Note-unnumbered");
_("Offprint"); _("Offprint");
_("Offprints"); _("Offprints");
_("Offsets"); _("Offsets");
_("offsets");
_("Oggetto"); _("Oggetto");
_("Opening"); _("Opening");
_("Ort"); _("Ort");
_("Overlay"); _("Overlay");
_("PACS"); _("PACS");
_("PS");
_("Paragraph"); _("Paragraph");
_("Paragraph*"); _("Paragraph*");
_("Paragraph-numbered"); _("Paragraph-numbered");
@ -371,8 +381,8 @@ _("Petit");
_("Phone"); _("Phone");
_("Place"); _("Place");
_("PlaceFigure"); _("PlaceFigure");
_("PlaceTable");
_("Placefigure"); _("Placefigure");
_("PlaceTable");
_("Placetable"); _("Placetable");
_("PortraitSlide"); _("PortraitSlide");
_("PostalCommend"); _("PostalCommend");
@ -389,11 +399,12 @@ _("Proposition*");
_("Proposition-numbered"); _("Proposition-numbered");
_("Proposition-plain"); _("Proposition-plain");
_("Proposition-unnumbered"); _("Proposition-unnumbered");
_("PS");
_("ps");
_("Publishers"); _("Publishers");
_("Question"); _("Question");
_("Quotation"); _("Quotation");
_("Quote"); _("Quote");
_("REVTEX_Title");
_("Received"); _("Received");
_("Recieved"); _("Recieved");
_("Recieved/Accepted"); _("Recieved/Accepted");
@ -403,17 +414,17 @@ _("Remark");
_("Remark*"); _("Remark*");
_("Remark-numbered"); _("Remark-numbered");
_("Remark-plain"); _("Remark-plain");
_("Remark-unnumbered");
_("Remarks"); _("Remarks");
_("Remark-unnumbered");
_("RetourAdresse"); _("RetourAdresse");
_("ReturnAddress"); _("ReturnAddress");
_("RightHeader"); _("REVTEX_Title");
_("Right_Address"); _("Right_Address");
_("RightHeader");
_("Rotatefoilhead"); _("Rotatefoilhead");
_("Running_LaTeX_Title"); _("Running_LaTeX_Title");
_("SCENE"); _("SCENE");
_("SCENE*"); _("SCENE*");
_("SGML");
_("Scrap"); _("Scrap");
_("Section"); _("Section");
_("Section*"); _("Section*");
@ -421,10 +432,11 @@ _("Section-numbered");
_("Send"); _("Send");
_("Send_To_Address"); _("Send_To_Address");
_("Seriate"); _("Seriate");
_("SGML");
_("ShortFoilhead"); _("ShortFoilhead");
_("Shortfoilhead");
_("ShortRotatefoilhead"); _("ShortRotatefoilhead");
_("ShortTitle"); _("ShortTitle");
_("Shortfoilhead");
_("Signature"); _("Signature");
_("Slide"); _("Slide");
_("Slide*"); _("Slide*");
@ -440,26 +452,26 @@ _("State");
_("Strasse"); _("Strasse");
_("Street"); _("Street");
_("Style"); _("Style");
_("SubSection"); _("style");
_("SubTitle");
_("Subitle"); _("Subitle");
_("Subject"); _("Subject");
_("Subjectclass"); _("Subjectclass");
_("Subparagraph"); _("Subparagraph");
_("Subparagraph*"); _("Subparagraph*");
_("SubSection");
_("Subsection"); _("Subsection");
_("Subsection*"); _("Subsection*");
_("Subsection-numbered"); _("Subsection-numbered");
_("Subsubsection"); _("Subsubsection");
_("Subsubsection*"); _("Subsubsection*");
_("Subsubsection-numbered"); _("Subsubsection-numbered");
_("SubTitle");
_("Subtitle"); _("Subtitle");
_("Suggested"); _("Suggested");
_("Summary"); _("Summary");
_("Summary-numbered"); _("Summary-numbered");
_("Surname"); _("Surname");
_("TOC_Author"); _("surname");
_("TOC_Title");
_("TableComments"); _("TableComments");
_("TableRefs"); _("TableRefs");
_("Telefax"); _("Telefax");
@ -471,8 +483,8 @@ _("Theorem");
_("Theorem*"); _("Theorem*");
_("Theorem-numbered"); _("Theorem-numbered");
_("Theorem-plain"); _("Theorem-plain");
_("Theorem-unnumbered");
_("TheoremTemplate"); _("TheoremTemplate");
_("Theorem-unnumbered");
_("Thesaurus"); _("Thesaurus");
_("ThickLine"); _("ThickLine");
_("This"); _("This");
@ -480,39 +492,29 @@ _("ThreeAffiliations");
_("ThreeAuthors"); _("ThreeAuthors");
_("TickList"); _("TickList");
_("Title"); _("Title");
_("Title_Running");
_("Titlehead"); _("Titlehead");
_("Title_Running");
_("TOC_Author");
_("TOC_Title");
_("Town"); _("Town");
_("Trans_Keywords");
_("Transition"); _("Transition");
_("Trans_Keywords");
_("Translated"); _("Translated");
_("TranslatedAbstract"); _("TranslatedAbstract");
_("Translated_Title"); _("Translated_Title");
_("Translator"); _("Translator");
_("TwoAffiliations"); _("TwoAffiliations");
_("TwoAuthors"); _("TwoAuthors");
_("URL");
_("Unterschrift"); _("Unterschrift");
_("Uppertitleback"); _("Uppertitleback");
_("URL");
_("Use"); _("Use");
_("Verbatim"); _("Verbatim");
_("Verse"); _("Verse");
_("Verteiler"); _("Verteiler");
_("VisibleText"); _("VisibleText");
_("YourMail"); _("YourMail");
_("YourRef");
_("Yourmail"); _("Yourmail");
_("YourRef");
_("Yourref"); _("Yourref");
_("Zusatz"); _("Zusatz");
_("cc");
_("encl");
_("first");
_("foilhead");
_("journal");
_("landscape");
_("modying");
_("msnumber");
_("offsets");
_("ps");
_("style");
_("surname");

View File

@ -374,6 +374,15 @@ void LyXGUI::create_forms()
fl_end_form(); fl_end_form();
lyxerr[Debug::INIT] << "Initializing form_character...done" << endl; lyxerr[Debug::INIT] << "Initializing form_character...done" << endl;
// build up the combox entries
combo_language2->addto(_("No change"));
combo_language2->addto(_("Reset"));
for(Languages::const_iterator cit = languages.begin();
cit != languages.end(); ++cit) {
combo_language2->addto((*cit).second.lang().c_str());
}
combo_language2->select_text(_("No change"));
#ifdef USE_OLD_DOCUMENT_LAYOUT #ifdef USE_OLD_DOCUMENT_LAYOUT
// the document form // the document form
fd_form_document = create_form_form_document(); fd_form_document = create_form_form_document();
@ -397,14 +406,10 @@ void LyXGUI::create_forms()
// "default" is not part of the languages array any more. // "default" is not part of the languages array any more.
combo_language->addto("default"); combo_language->addto("default");
combo_language2->addto(_("No change"));
combo_language2->addto(_("Reset"));
for(Languages::const_iterator cit = languages.begin(); for(Languages::const_iterator cit = languages.begin();
cit != languages.end(); ++cit) { cit != languages.end(); ++cit) {
combo_language->addto((*cit).second.lang().c_str()); combo_language->addto((*cit).second.lang().c_str());
combo_language2->addto((*cit).second.lang().c_str());
} }
combo_language2->select_text(_("No change"));
// not really necessary, but we can do it anyway. // not really necessary, but we can do it anyway.
fl_addto_choice(fd_form_document->choice_fontsize, "default|10|11|12"); fl_addto_choice(fd_form_document->choice_fontsize, "default|10|11|12");