LibreOffice Module sw (master)  1
Classes | Enumerations
crstate.hxx File Reference
#include <com/sun/star/text/HoriOrientation.hpp>
#include <tools/gen.hxx>
#include "swrect.hxx"
#include <memory>
Include dependency graph for crstate.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SwFillCursorPos
 
struct  Sw2LinesPos
 
struct  SwSpecialPos
 
struct  SwCursorMoveState
 

Enumerations

enum  SwFillMode {
  FILL_TAB,
  FILL_TAB_SPACE,
  FILL_SPACE,
  FILL_MARGIN,
  FILL_INDENT
}
 
enum  MultiPortionType : sal_uInt8 {
  MultiPortionType::TWOLINE = 0,
  MultiPortionType::BIDI = 1,
  MultiPortionType::ROT_270 = 3,
  MultiPortionType::RUBY = 4,
  MultiPortionType::ROT_90 = 7
}
 
enum  SwSPExtendRange : sal_uInt8 {
  SwSPExtendRange::NONE,
  SwSPExtendRange::BEFORE,
  SwSPExtendRange::BEHIND
}
 SwSpecialPos. More...
 
enum  CursorMoveState {
  MV_NONE,
  MV_UPDOWN,
  MV_RIGHTMARGIN,
  MV_LEFTMARGIN,
  MV_SETONLYTEXT,
  MV_TBLSEL
}
 

Enumeration Type Documentation

Enumerator
MV_NONE 

default

MV_UPDOWN 

Cursor Up/Down.

MV_RIGHTMARGIN 

at right margin

MV_LEFTMARGIN 

at left margin

MV_SETONLYTEXT 

stay with the cursor inside text

MV_TBLSEL 

not in repeated headlines

Definition at line 121 of file crstate.hxx.

enum MultiPortionType : sal_uInt8
strong
Enumerator
TWOLINE 
BIDI 
ROT_270 
RUBY 
ROT_90 

Definition at line 55 of file crstate.hxx.

enum SwFillMode
Enumerator
FILL_TAB 

default, fill with tabs

FILL_TAB_SPACE 

fill with spaces and tabs

FILL_SPACE 

fill with spaces

FILL_MARGIN 

only align left, center, right

FILL_INDENT 

by left paragraph indention

Definition at line 28 of file crstate.hxx.

enum SwSPExtendRange : sal_uInt8
strong

SwSpecialPos.

This structure is used to pass some additional information during the call of SwTextFrame::GetCharRect(). An SwSpecialPos defines a position inside a portion which does not have a representation in the core string or which is only represented by one position, e.g., field portions, number portions, ergo sum and quo vadis portions.

nCharOfst - The offset inside the special portion. Fields and its follow fields are treated as one long special portion. nLineOfst - The number of lines between the beginning of the special portion and nCharOfst. A line offset required to be nCharOfst relative to the beginning of the line. nExtendRange - Setting this identifies portions which are in front or behind the core string (number portion, quo vadis)

Examples 1)

Get the position of the second character inside a number portion:
    nCharOfst = 2; nLineOfst = 0; nExtendRange = SP_EXTEND_RANGE_BEFORE;
    Call SwTextFrame:::GetCharRect with core string position 0.

Example 2)

Field A - Length = 5
Follow field B - Length = 9
Get the position of the third character in follow field B, core position
of field A is 33.
    nCharOfst = 7; nLineOfst = 0; nExtendRange = SP_EXTEND_RANGE_NONE;
    Call SwTextFrame:::GetCharRect with core string position 33.
Enumerator
NONE 
BEFORE 
BEHIND 

Definition at line 103 of file crstate.hxx.