• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_Ruler.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #ifndef AP_RULER_H
00021 #define AP_RULER_H
00022 
00023 // Common utilities for the left and top rulers.
00024 
00025 #include "ut_types.h"
00026 #include "gr_Graphics.h"
00027 
00028 class ABI_EXPORT ap_RulerTicks
00029 {
00030 public:
00031     ap_RulerTicks(GR_Graphics * pG, UT_Dimension dim);
00032     UT_sint32 snapPixelToGrid(UT_sint32 dist);
00033     double scalePixelDistanceToUnits(UT_sint32 dist);
00034 
00035     GR_Graphics *   m_pG;
00036 
00037 
00038     UT_uint32       tickUnit;
00039     UT_uint32       tickUnitScale;
00040     UT_uint32       tickLong;
00041     UT_uint32       tickLabel;
00042     UT_uint32       tickScale;
00043 
00044     UT_uint32       dragDelta;
00045 
00046     UT_Dimension    dimType;
00047     double          dBasicUnit;
00048 };
00049 
00050 #endif /* AP_RULER_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1