summaryrefslogtreecommitdiff
path: root/sw/inc/shellres.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-20 17:10:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-20 17:10:42 +0000
commitb3332728cf16af9ac1fcb9d604f383b29fd7d023 (patch)
treee413cbe98777fb7f25f20d2ee22081f7874e0bf4 /sw/inc/shellres.hxx
parent25a8024703ce8aae4935dd59162104f224a0664d (diff)
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
Diffstat (limited to 'sw/inc/shellres.hxx')
-rw-r--r--sw/inc/shellres.hxx9
1 files changed, 7 insertions, 2 deletions
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();