This is my first patch to the source code so don't beat me when I did it wrong, 
just tell me how it's done correctly and I'll learn my lesson.

Add fancyplain to Page Style list:
http://bugzilla.lyx.org/show_bug.cgi?id=2629

Opinions?
regards Uwe
Index: src/bufferparams.C
===================================================================
--- src/bufferparams.C	(revision 16619)
+++ src/bufferparams.C	(working copy)
@@ -975,6 +978,10 @@
 			os << "\\usepackage{fancyhdr}\n";
 			texrow.newline();
 		}
+		if (pagestyle == "fancyplain") {
+			os << "\\usepackage{fancyhdr}\n";
+			texrow.newline();
+		}
 		os << "\\pagestyle{" << from_ascii(pagestyle) << "}\n";
 		texrow.newline();
 	}
Index: src/frontends/qt4/QDocumentDialog.C
===================================================================
--- src/frontends/qt4/QDocumentDialog.C	(revision 16619)
+++ src/frontends/qt4/QDocumentDialog.C	(working copy)
@@ -189,6 +189,7 @@
 	pageLayoutModule->pagestyleCO->addItem(qt_("plain"));
 	pageLayoutModule->pagestyleCO->addItem(qt_("headings"));
 	pageLayoutModule->pagestyleCO->addItem(qt_("fancy"));
+	pageLayoutModule->pagestyleCO->addItem(qt_("fancyplain"));
 	addCheckedLineEdit(form_->bcview(), pageLayoutModule->paperheightLE,
 		pageLayoutModule->paperheightL);
 	addCheckedLineEdit(form_->bcview(), pageLayoutModule->paperwidthLE,
Index: src/lyxtextclass.C
===================================================================
--- src/lyxtextclass.C	(revision 16619)
+++ src/lyxtextclass.C	(working copy)
@@ -112,7 +112,7 @@
 	pagestyle_ = "default";
 	defaultfont_ = LyXFont(LyXFont::ALL_SANE);
 	opt_fontsize_ = "10|11|12";
-	opt_pagestyle_ = "empty|plain|headings|fancy";
+	opt_pagestyle_ = "empty|plain|headings|fancy|fancyplain";
 	provides_ = nothing;
 	titletype_ = TITLE_COMMAND_AFTER;
 	titlename_ = "maketitle";

Reply via email to