LibreOffice Module sw (master) 1
justify.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11#include <sal/types.h>
12
13namespace sw::Justify
14{
19SW_DLLPUBLIC sal_Int32 GetModelPosition(const std::vector<sal_Int32>& rKernArray, sal_Int32 nLen,
20 tools::Long nX);
31SW_DLLPUBLIC void SpaceDistribution(std::vector<sal_Int32>& rKernArray, const OUString& rText,
32 sal_Int32 nStt, sal_Int32 nLen, tools::Long nSpaceAdd,
33 tools::Long nKern, bool bNoHalfSpace);
34
37// they can be closer to the next ideograph.
50SW_DLLPUBLIC tools::Long SnapToGrid(std::vector<sal_Int32>& rKernArray, const OUString& rText,
51 sal_Int32 nStt, sal_Int32 nLen, tools::Long nGridWidth,
52 bool bForceLeft);
53
61SW_DLLPUBLIC void SnapToGridEdge(std::vector<sal_Int32>& rKernArray, sal_Int32 nLen,
62 tools::Long nGridWidth, tools::Long nSpace, tools::Long nKern);
63}
64
65/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SnapToGridEdge(std::vector< sal_Int32 > &rKernArray, sal_Int32 nLen, tools::Long nGridWidth, tools::Long nSpace, tools::Long nKern)
Snap ideographs to text grids edge ( used when snap to char is off ): space will be distributed ( in ...
Definition: justify.cxx:206
tools::Long SnapToGrid(std::vector< sal_Int32 > &rKernArray, const OUString &rText, sal_Int32 nStt, sal_Int32 nLen, tools::Long nGridWidth, bool bForceLeft)
Snap ideographs to text grids: a) Ideographic open brackets are aligned to the rightmost edge of span...
Definition: justify.cxx:172
sal_Int32 GetModelPosition(const std::vector< sal_Int32 > &rKernArray, sal_Int32 nLen, tools::Long nX)
Get model position base on given kern array.
Definition: justify.cxx:76
void SpaceDistribution(std::vector< sal_Int32 > &rKernArray, const OUString &rText, sal_Int32 nStt, sal_Int32 nLen, tools::Long nSpaceAdd, tools::Long nKern, bool bNoHalfSpace)
Distribute space between words and letters.
Definition: justify.cxx:100
long Long
#define SW_DLLPUBLIC
Definition: swdllapi.h:28