~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to kivio/kiviopart/kivio_config.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#define KIVIO_CONFIG_H
21
21
 
22
22
#include <ksimpleconfig.h>
 
23
#include <koGlobal.h>
23
24
#include <qcolor.h>
24
25
#include <qstring.h>
25
26
#include <qpixmap.h>
26
27
 
27
 
#include "tkpagelayout.h"
28
28
#include "kivio_icon_view.h"
29
29
 
30
30
class KivioView;
43
43
  void save(QDomElement&);
44
44
  void load(const QDomElement&);
45
45
 
46
 
  TKPageLayout defaultPageLayout() { return defPageLayout; }
47
 
  TKPageLayout globalDefaultPageLayout() { return globalDefPageLayout; }
 
46
  KoPageLayout defaultPageLayout()const  { return defPageLayout; }
 
47
  KoPageLayout globalDefaultPageLayout()const { return globalDefPageLayout; }
48
48
 
49
 
  void setDefaultPageLayout(TKPageLayout);
50
 
  void setGlobalDefaultPageLayout(TKPageLayout);
 
49
  void setDefaultPageLayout(const KoPageLayout&);
 
50
  void setGlobalDefaultPageLayout(const KoPageLayout&);
51
51
 
52
52
  void setup(KivioView*);
53
53
  void paperLayoutSetup(KivioView*);
54
54
 
55
 
  void setGlobalStencilsBarVisual(KivioIconViewVisual);
56
 
  KivioIconViewVisual stencilsBarVisual() { return globalDefStencilBarVisual; }
57
 
 
58
55
private:
59
 
  TKPageLayout defPageLayout;
60
 
  TKPageLayout globalDefPageLayout;
61
 
  KivioIconViewVisual globalDefStencilBarVisual;
 
56
  KoPageLayout defPageLayout;
 
57
  KoPageLayout globalDefPageLayout;
62
58
};
63
59
 
64
60
class KivioConfig : public KSimpleConfig
84
80
    static KivioConfig *config() { return s_config; }
85
81
 
86
82
public:
87
 
    QPixmap *stencilBGPixmap() { return m_pStencilBGPixmap; }
88
 
    QColor stencilBGColor() { return m_stencilBGColor; }
89
 
    StencilBGType stencilBGType() { return m_stencilBGType; }
90
 
    QPixmap *connectorTargetPixmap() { return m_pConnectorTargetPixmap; }
91
 
    QPixmap *lockPixmap() { return m_pLockPixmap; }
 
83
    QPixmap *stencilBGPixmap()const { return m_pStencilBGPixmap; }
 
84
    QColor stencilBGColor()const { return m_stencilBGColor; }
 
85
    StencilBGType stencilBGType()const { return m_stencilBGType; }
 
86
    QPixmap *connectorTargetPixmap()const { return m_pConnectorTargetPixmap; }
 
87
    QPixmap *lockPixmap()const { return m_pLockPixmap; }
92
88
 
93
89
protected:
94
90
    static KivioConfig *s_config;
98
94
    QString m_stencilBGFile;            // Holds the bg pixmap filename of the stencil dock
99
95
    QColor m_stencilBGColor;            // Holds the color of the stencil dock bg
100
96
    QPixmap *m_pStencilBGPixmap;        // Holds the pixmap of the stencil dock bg.
101
 
    
 
97
 
102
98
    QPixmap *m_pConnectorTargetPixmap;  // Holds the pixmap of the KivioConnectorObject
103
99
    QPixmap *m_pLockPixmap;             // Holds the pixmap of the lock pixmap
104
100
};