Skip to main content ::
::
KOffice API Docs
::
Skip to Link Menu
/
KOffice
/
API Docs
/
lib
lib
lib
kofficeui
KoZoomMode.h
1
/* This file is part of the KDE project
2
Copyright (C) 2005 Johannes Schaub <litb_devel@web.de>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
* Boston, MA 02110-1301, USA.
18
*/
19
20
#ifndef _KOZOOMMODE_H_
21
#define _KOZOOMMODE_H_
22
23
#include <tqstring.h>
24
#include "koffice_export.h"
25
29
class
KOFFICEUI_EXPORT
KoZoomMode
30
{
31
public
:
32
enum
Mode
33
{
34
ZOOM_WIDTH = 0,
35
ZOOM_PAGE = 1,
36
ZOOM_CONSTANT = 2
37
};
38
41
static
Mode toMode(
const
TQString& mode);
42
44
static
TQString toString(Mode mode);
45
48
static
bool
isConstant
(
const
TQString& mode)
49
{
return
toMode(mode) == ZOOM_CONSTANT; }
50
private
:
51
static
const
char
* modes[];
52
};
53
54
#endif
KoZoomMode
The ZoomMode container.
Definition
KoZoomMode.h:30
KoZoomMode::Mode
Mode
Definition
KoZoomMode.h:33
KoZoomMode::isConstant
static bool isConstant(const TQString &mode)
Definition
KoZoomMode.h:48
lib
Skip menu "lib"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
lib
Skip menu "lib"
chalk
example
filters
interfaces
karbon
kchart
kdgantt
kexi
kformula
kivio
koshell
kplato
kpresenter
kspread
kword
lib