summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/inc/model/SlideSorterModel.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slidesorter/inc/model/SlideSorterModel.hxx')
-rw-r--r--sd/source/ui/slidesorter/inc/model/SlideSorterModel.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/slidesorter/inc/model/SlideSorterModel.hxx b/sd/source/ui/slidesorter/inc/model/SlideSorterModel.hxx
index 9dfd861fd5cf..a5fa4a6e0c42 100644
--- a/sd/source/ui/slidesorter/inc/model/SlideSorterModel.hxx
+++ b/sd/source/ui/slidesorter/inc/model/SlideSorterModel.hxx
@@ -59,8 +59,8 @@ namespace sd { namespace slidesorter { namespace model {
class DocumentPageContainer;
-inline sal_Int32 FromCoreIndex (const USHORT nCoreIndex) { return (nCoreIndex-1)/2; }
-inline USHORT ToCoreIndex (const sal_Int32 nIndex) { return nIndex*2+1; }
+inline sal_Int32 FromCoreIndex (const sal_uInt16 nCoreIndex) { return (nCoreIndex-1)/2; }
+inline sal_uInt16 ToCoreIndex (const sal_Int32 nIndex) { return nIndex*2+1; }
/** The model of the slide sorter gives access to the slides that are to be
displayed in the slide sorter view. Via the SetDocumentSlides() method
@@ -86,7 +86,7 @@ public:
previous page descriptor list is replaced by a new one which
has to be repainted.
@return
- A return value of <TRUE/> indicates that the edit mode has
+ A return value of <sal_True/> indicates that the edit mode has
changed and thus the page descriptor list has been set up
to reflect that change. A repaint is necessary.
*/
@@ -112,8 +112,8 @@ public:
The index of the requested slide. The valid values
are 0 to GetPageCount()-1.
@param bCreate
- When <TRUE/> and the requested page descriptor is missing then
- it is created. When <FALSE/> then an empty reference is
+ When <sal_True/> and the requested page descriptor is missing then
+ it is created. When <sal_False/> then an empty reference is
returned for missing descriptors.
@return
When the given index is not valid, i.e. lower then zero or
@@ -155,7 +155,7 @@ public:
the n*2+1 magic. Only when a special model is set, like a custom
slide show, then the returned value is different.
*/
- USHORT GetCoreIndex (const sal_Int32 nIndex) const;
+ sal_uInt16 GetCoreIndex (const sal_Int32 nIndex) const;
/** Call this method after the document has changed its structure. This
will get the model in sync with the SdDrawDocument. This method
@@ -221,7 +221,7 @@ public:
/** Typically called from controller::Listener this method handles the
insertion and deletion of single pages.
@return
- Returns <TRUE/> when the given page is relevant for the current
+ Returns <sal_True/> when the given page is relevant for the current
page kind and edit mode.
*/
bool NotifyPageEvent (const SdrPage* pPage);