/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TextGridMode.idl,v $ * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef __com_sun_star_text_TextGridMode_idl__ #define __com_sun_star_text_TextGridMode_idl__ //============================================================================= module com { module sun { module star { module text { //============================================================================= /** this set of constants describes different modes for text grids */ published constants TextGridMode { //------------------------------------------------------------------------- /** no text grid */ const short NONE = 0; //------------------------------------------------------------------------- /** line positions will be determined by the grid */ const short LINES = 1; //------------------------------------------------------------------------- /** character and line positions will be determined by the grid */ const short LINES_AND_CHARS = 2; //Grid Compatibility with MS Word, , 2010.04.30 //In ODF, the saved key word for grid type is "style:layout-grid-mode" //which is a attribute of "style:page-layout". Now, there are five values //can be set for style:layour-grid-mode, "none", "line", "both", "word-line" //and "word-both". "line" is corresponding with "text::TextGridMode::LINES", //"both" is corresponding with "text::TextGridMode::LINES_AND_CHARS", "word-line" //is corresponding with "text::TextGridMode::WORD_LINES", "word-both" is corresponding //with "text::TextGridMode::WORD_LINES_AND_CHARS" const short WORD_LINES = 3; const short WORD_LINES_AND_CHARS = 4; //End Grid Compatibility }; //============================================================================= }; }; }; }; #endif