1+ /* **************************************************************************
2+ qgscomposermultiframe.h
3+ ------------------------------------------------------------
4+ begin : Julli 2012
5+ copyright : (C) 2012 by Marco Hugentobler
6+ email : marco dot hugentobler at sourcepole dot ch
7+ ***************************************************************************
8+ * *
9+ * This program is free software; you can redistribute it and/or modify *
10+ * it under the terms of the GNU General Public License as published by *
11+ * the Free Software Foundation; either version 2 of the License, or *
12+ * (at your option) any later version. *
13+ * *
14+ ***************************************************************************/
15+
116#ifndef QGSCOMPOSERMULTIFRAME_H
217#define QGSCOMPOSERMULTIFRAME_H
318
@@ -11,26 +26,26 @@ class QgsComposition;
1126class QgsComposerMultiFrame : public QObject
1227{
1328 Q_OBJECT
14- public:
29+ public:
1530
16- enum ResizeMode
17- {
18- ExtendToNextPage = 0 , // duplicates last frame to next page to fit the total size
19- UseExistingFrames //
20- };
31+ enum ResizeMode
32+ {
33+ ExtendToNextPage = 0 , // duplicates last frame to next page to fit the total size
34+ UseExistingFrames //
35+ };
2136
22- QgsComposerMultiFrame ( QgsComposition* c );
23- virtual ~QgsComposerMultiFrame ();
24- virtual QSizeF totalSize () = 0;
37+ QgsComposerMultiFrame ( QgsComposition* c );
38+ virtual ~QgsComposerMultiFrame ();
39+ virtual QSizeF totalSize () const = 0;
2540
26- protected:
27- QgsComposition* mComposition ;
28- QList<QgsComposerItem*> mFrameItems ;
41+ protected:
42+ QgsComposition* mComposition ;
43+ QList<QgsComposerItem*> mFrameItems ;
2944
30- void recalculateFrameSizes ();
45+ void recalculateFrameSizes ();
3146
32- private:
33- QgsComposerMultiFrame (); // forbidden
47+ private:
48+ QgsComposerMultiFrame (); // forbidden
3449};
3550
3651#endif // QGSCOMPOSERMULTIFRAME_H
0 commit comments