2 * Copyright 2006, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Stephan Aßmus <superstippi@gmx.de>
12 #include "PathContainer.h"
13 #include "StyleContainer.h"
17 : fStyleIndexOffset(0),
29 Importer::Init(Icon
* icon
)
31 fStyleIndexOffset
= 0;
34 if (!icon
|| icon
->InitCheck() < B_OK
)
37 fStyleIndexOffset
= icon
->Styles()->CountStyles();
38 fPathIndexOffset
= icon
->Paths()->CountPaths();
45 Importer::StyleIndexFor(int32 savedIndex
) const
47 return savedIndex
+ fStyleIndexOffset
;
52 Importer::PathIndexFor(int32 savedIndex
) const
54 return savedIndex
+ fPathIndexOffset
;