From b3332728cf16af9ac1fcb9d604f383b29fd7d023 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 20 Dec 2010 17:10:42 +0000 Subject: Ensure that only the three valid options are possible to use Originally four cryptic possibilties, only three of which would correctly give unique values. So refactor into three possibilties, make self-documenting and lock it down with a cppunit test --- sw/inc/shellres.hxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sw/inc/shellres.hxx') diff --git a/sw/inc/shellres.hxx b/sw/inc/shellres.hxx index ee88b661457a..1589fff584d4 100644 --- a/sw/inc/shellres.hxx +++ b/sw/inc/shellres.hxx @@ -85,11 +85,16 @@ struct SW_DLLPUBLIC ShellResource : public Resource // die AutoFormat-Redline-Kommentare inline const SvStringsDtor& GetAutoFmtNameLst() const; + enum PageNameMode + { + NORMAL_PAGE, + FIRST_PAGE, + FOLLOW_PAGE + }; // returns for the specific filter the new names of pagedescs // This method is for the old code of the specific filters with // now localized names - String GetPageDescName( USHORT nNo, BOOL bFirst = FALSE, - BOOL bFollow = FALSE ); + String GetPageDescName( USHORT nNo, PageNameMode eMode ); ShellResource(); ~ShellResource(); -- cgit