mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Remove unused functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40034 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b1b2e2387a
commit
b787d0090b
@ -3396,60 +3396,6 @@ QString GuiPreferences::browse(QString const & file,
|
||||
}
|
||||
|
||||
|
||||
// We support less paper sizes than the document dialog
|
||||
// Therefore this adjustment is needed.
|
||||
PAPER_SIZE GuiPreferences::toPaperSize(int i) const
|
||||
{
|
||||
switch (i) {
|
||||
case 0:
|
||||
return PAPER_DEFAULT;
|
||||
case 1:
|
||||
return PAPER_USLETTER;
|
||||
case 2:
|
||||
return PAPER_USLEGAL;
|
||||
case 3:
|
||||
return PAPER_USEXECUTIVE;
|
||||
case 4:
|
||||
return PAPER_A3;
|
||||
case 5:
|
||||
return PAPER_A4;
|
||||
case 6:
|
||||
return PAPER_A5;
|
||||
case 7:
|
||||
return PAPER_B5;
|
||||
default:
|
||||
// should not happen
|
||||
return PAPER_DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int GuiPreferences::fromPaperSize(PAPER_SIZE papersize) const
|
||||
{
|
||||
switch (papersize) {
|
||||
case PAPER_DEFAULT:
|
||||
return 0;
|
||||
case PAPER_USLETTER:
|
||||
return 1;
|
||||
case PAPER_USLEGAL:
|
||||
return 2;
|
||||
case PAPER_USEXECUTIVE:
|
||||
return 3;
|
||||
case PAPER_A3:
|
||||
return 4;
|
||||
case PAPER_A4:
|
||||
return 5;
|
||||
case PAPER_A5:
|
||||
return 6;
|
||||
case PAPER_B5:
|
||||
return 7;
|
||||
default:
|
||||
// should not happen
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Dialog * createGuiPreferences(GuiView & lv) { return new GuiPreferences(lv); }
|
||||
|
||||
|
||||
|
@ -103,11 +103,6 @@ public:
|
||||
/// update the screen fonts after change
|
||||
void updateScreenFonts();
|
||||
|
||||
/// adjust the prefs paper sizes
|
||||
PAPER_SIZE toPaperSize(int i) const;
|
||||
/// adjust the prefs paper sizes
|
||||
int fromPaperSize(PAPER_SIZE papersize) const;
|
||||
|
||||
LyXRC & rc() { return rc_; }
|
||||
Converters & converters() { return converters_; }
|
||||
Formats & formats() { return formats_; }
|
||||
|
Loading…
Reference in New Issue
Block a user