ooodev.format.inner.common.border_width_impl module

class ooodev.format.inner.common.border_width_impl.BorderWidthImpl(nFlags, nRate1, nRate2, nRateGap)[source]

Bases: object

Border Width Implementation

Parameters:
__init__(nFlags, nRate1, nRate2, nRateGap)[source]
Parameters:
Return type:

None

get_gap(nWidth)[source]
Return type:

int

Parameters:

nWidth (int) –

get_line1(nWidth)[source]
Return type:

int

Parameters:

nWidth (int) –

get_line2(nWidth)[source]
Return type:

int

Parameters:

nWidth (int) –

guess_width(nLine1, nLine2, nGap)[source]
Return type:

int

Parameters:
  • nLine1 (int) –

  • nLine2 (int) –

  • nGap (int) –

lcl_guessed_width(nTested, nRate, bChanging)[source]
Return type:

float

Parameters:
  • nTested (int) –

  • nRate (float) –

  • bChanging (bool) –

MINGAPWIDTH = 2
class ooodev.format.inner.common.border_width_impl.BorderWidthImplFlags(value)[source]

Bases: IntFlag

An enumeration.

CHANGE_DIST = 4
CHANGE_LINE1 = 1
CHANGE_LINE2 = 2