This is modifying comments to meet doxygen standards
Change-Id: I73cd4c901aa003abec43f55948c184672d2e14ff Reviewed-on: https://gerrit.libreoffice.org/338 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jan Holesovsky <kendy@suse.cz> Reviewed-by: Jan Holesovsky <kendy@suse.cz>
This commit is contained in:
committed by
Jan Holesovsky
parent
44e8b1c8ad
commit
ad760dad21
@@ -234,7 +234,8 @@ class IDocumentMarkAccess
|
|||||||
virtual ::sw::mark::IFieldmark* getFieldmarkBefore(const SwPosition& pos) const =0;
|
virtual ::sw::mark::IFieldmark* getFieldmarkBefore(const SwPosition& pos) const =0;
|
||||||
virtual ::sw::mark::IFieldmark* getFieldmarkAfter(const SwPosition& pos) const =0;
|
virtual ::sw::mark::IFieldmark* getFieldmarkAfter(const SwPosition& pos) const =0;
|
||||||
|
|
||||||
// Returns the MarkType used to create the mark
|
/** Returns the MarkType used to create the mark
|
||||||
|
*/
|
||||||
static MarkType SAL_DLLPUBLIC_EXPORT GetType(const ::sw::mark::IMark& rMark);
|
static MarkType SAL_DLLPUBLIC_EXPORT GetType(const ::sw::mark::IMark& rMark);
|
||||||
protected:
|
protected:
|
||||||
virtual ~IDocumentMarkAccess() {};
|
virtual ~IDocumentMarkAccess() {};
|
||||||
|
@@ -53,11 +53,11 @@
|
|||||||
typedef sal_uInt16 RedlineMode_t;
|
typedef sal_uInt16 RedlineMode_t;
|
||||||
namespace nsRedlineMode_t
|
namespace nsRedlineMode_t
|
||||||
{
|
{
|
||||||
const RedlineMode_t REDLINE_NONE = 0; // no RedlineMode
|
const RedlineMode_t REDLINE_NONE = 0; ///< no RedlineMode
|
||||||
const RedlineMode_t REDLINE_ON = 0x01;// RedlineMode on
|
const RedlineMode_t REDLINE_ON = 0x01;///< RedlineMode on
|
||||||
const RedlineMode_t REDLINE_IGNORE = 0x02;// ignore Redlines
|
const RedlineMode_t REDLINE_IGNORE = 0x02;///< ignore Redlines
|
||||||
const RedlineMode_t REDLINE_SHOW_INSERT = 0x10;// show all inserts
|
const RedlineMode_t REDLINE_SHOW_INSERT = 0x10;///< show all inserts
|
||||||
const RedlineMode_t REDLINE_SHOW_DELETE = 0x20;// show all deletes
|
const RedlineMode_t REDLINE_SHOW_DELETE = 0x20;///< show all deletes
|
||||||
const RedlineMode_t REDLINE_SHOW_MASK = REDLINE_SHOW_INSERT | REDLINE_SHOW_DELETE;
|
const RedlineMode_t REDLINE_SHOW_MASK = REDLINE_SHOW_INSERT | REDLINE_SHOW_DELETE;
|
||||||
|
|
||||||
// For internal management:
|
// For internal management:
|
||||||
|
@@ -67,24 +67,24 @@ typedef sal_Bool (*FnForEach)( const ElementPtr&, void* pArgs );
|
|||||||
#define COMPRESSLVL 80
|
#define COMPRESSLVL 80
|
||||||
|
|
||||||
struct BlockInfo { // block info:
|
struct BlockInfo { // block info:
|
||||||
BigPtrArray* pBigArr; // in this array the block is located
|
BigPtrArray* pBigArr; ///< in this array the block is located
|
||||||
ElementPtr* pData; // data block
|
ElementPtr* pData; ///< data block
|
||||||
sal_uLong nStart, nEnd; // start- and end index
|
sal_uLong nStart, nEnd; ///< start- and end index
|
||||||
sal_uInt16 nElem; // number of elements
|
sal_uInt16 nElem; ///< number of elements
|
||||||
};
|
};
|
||||||
|
|
||||||
class SW_DLLPUBLIC BigPtrArray
|
class SW_DLLPUBLIC BigPtrArray
|
||||||
{
|
{
|
||||||
BlockInfo** ppInf; // block info
|
BlockInfo** ppInf; // block info
|
||||||
sal_uLong nSize; // number of elements
|
sal_uLong nSize; ///< number of elements
|
||||||
sal_uInt16 nMaxBlock; // current max. number of blocks
|
sal_uInt16 nMaxBlock; ///< current max. number of blocks
|
||||||
sal_uInt16 nBlock; // number of blocks
|
sal_uInt16 nBlock; ///< number of blocks
|
||||||
sal_uInt16 nCur; // last block
|
sal_uInt16 nCur; ///< last block
|
||||||
|
|
||||||
sal_uInt16 Index2Block( sal_uLong ) const; // block search
|
sal_uInt16 Index2Block( sal_uLong ) const; ///< block search
|
||||||
BlockInfo* InsBlock( sal_uInt16 ); // insert block
|
BlockInfo* InsBlock( sal_uInt16 ); ///< insert block
|
||||||
void BlockDel( sal_uInt16 ); // some blocks were deleted
|
void BlockDel( sal_uInt16 ); ///< some blocks were deleted
|
||||||
void UpdIndex( sal_uInt16 ); // recalculate indices
|
void UpdIndex( sal_uInt16 ); ///< recalculate indices
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// fill all blocks
|
// fill all blocks
|
||||||
|
@@ -51,8 +51,8 @@ class SW_DLLPUBLIC SwBreakIt : private ::boost::noncopyable
|
|||||||
com::sun::star::lang::Locale * m_pLocale;
|
com::sun::star::lang::Locale * m_pLocale;
|
||||||
com::sun::star::i18n::ForbiddenCharacters * m_pForbidden;
|
com::sun::star::i18n::ForbiddenCharacters * m_pForbidden;
|
||||||
|
|
||||||
LanguageType aLast; // language of the current locale
|
LanguageType aLast; ///< language of the current locale
|
||||||
LanguageType aForbiddenLang; // language of the current forbiddenChar struct
|
LanguageType aForbiddenLang; ///< language of the current forbiddenChar struct
|
||||||
|
|
||||||
void _GetLocale( const LanguageType aLang );
|
void _GetLocale( const LanguageType aLang );
|
||||||
void _GetForbidden( const LanguageType aLang );
|
void _GetForbidden( const LanguageType aLang );
|
||||||
|
@@ -75,8 +75,8 @@ class SW_DLLPUBLIC SwClient : ::boost::noncopyable
|
|||||||
friend class SwModify;
|
friend class SwModify;
|
||||||
friend class SwClientIter;
|
friend class SwClientIter;
|
||||||
|
|
||||||
SwClient *pLeft, *pRight; // double-linked list of other clients
|
SwClient *pLeft, *pRight; ///< double-linked list of other clients
|
||||||
SwModify *pRegisteredIn; // event source
|
SwModify *pRegisteredIn; ///< event source
|
||||||
|
|
||||||
// in general clients should not be removed when their SwModify sends out Modify()
|
// in general clients should not be removed when their SwModify sends out Modify()
|
||||||
// notifications; in some rare cases this is necessary, but only the concrete SwClient
|
// notifications; in some rare cases this is necessary, but only the concrete SwClient
|
||||||
@@ -198,9 +198,8 @@ public:
|
|||||||
|
|
||||||
SwClient* GetToTell() { return pToTell; }
|
SwClient* GetToTell() { return pToTell; }
|
||||||
|
|
||||||
// get Client information
|
/** get Client information */
|
||||||
virtual sal_Bool GetInfo( SfxPoolItem & ) const;
|
virtual sal_Bool GetInfo( SfxPoolItem & ) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNewValue );
|
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNewValue );
|
||||||
virtual void SwClientNotify( const SwModify& rModify, const SfxHint& rHint );
|
virtual void SwClientNotify( const SwModify& rModify, const SfxHint& rHint );
|
||||||
@@ -209,8 +208,8 @@ protected:
|
|||||||
|
|
||||||
class SwClientIter
|
class SwClientIter
|
||||||
{
|
{
|
||||||
friend SwClient* SwModify::Remove(SwClient *); // for pointer adjustments
|
friend SwClient* SwModify::Remove(SwClient *); ///< for pointer adjustments
|
||||||
friend void SwModify::Add(SwClient *pDepend); // for pointer adjustments
|
friend void SwModify::Add(SwClient *pDepend); ///< for pointer adjustments
|
||||||
|
|
||||||
const SwModify& rRoot;
|
const SwModify& rRoot;
|
||||||
|
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
class SW_DLLPUBLIC SwTblBoxNumFormat : public SfxUInt32Item
|
class SW_DLLPUBLIC SwTblBoxNumFormat : public SfxUInt32Item
|
||||||
{
|
{
|
||||||
sal_Bool bAuto; // automatically given flag
|
sal_Bool bAuto; ///< automatically given flag
|
||||||
public:
|
public:
|
||||||
SwTblBoxNumFormat( sal_uInt32 nFormat = NUMBERFORMAT_TEXT,
|
SwTblBoxNumFormat( sal_uInt32 nFormat = NUMBERFORMAT_TEXT,
|
||||||
sal_Bool bAuto = sal_False );
|
sal_Bool bAuto = sal_False );
|
||||||
|
@@ -47,9 +47,9 @@ class SwTblCalcPara
|
|||||||
sal_uInt16 nStackCnt, nMaxSize;
|
sal_uInt16 nStackCnt, nMaxSize;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SwTableSortBoxes *pBoxStk; // stack for recognizing recursion
|
SwTableSortBoxes *pBoxStk; ///< stack for recognizing recursion
|
||||||
SwCalc& rCalc; // current Calculator
|
SwCalc& rCalc; ///< current Calculator
|
||||||
const SwTable* pTbl; // current table
|
const SwTable* pTbl; ///< current table
|
||||||
|
|
||||||
SwTblCalcPara( SwCalc& rCalculator, const SwTable& rTable );
|
SwTblCalcPara( SwCalc& rCalculator, const SwTable& rTable );
|
||||||
~SwTblCalcPara();
|
~SwTblCalcPara();
|
||||||
@@ -97,9 +97,9 @@ typedef void (SwTableFormula:: *FnScanFormel)( const SwTable&, String&,
|
|||||||
protected:
|
protected:
|
||||||
enum NameType { EXTRNL_NAME, INTRNL_NAME, REL_NAME };
|
enum NameType { EXTRNL_NAME, INTRNL_NAME, REL_NAME };
|
||||||
|
|
||||||
String sFormel; // current formula
|
String sFormel; ///< current formula
|
||||||
NameType eNmType; // current display method
|
NameType eNmType; ///< current display method
|
||||||
sal_Bool bValidValue; // sal_True: recalculate formula
|
sal_Bool bValidValue; ///< sal_True: recalculate formula
|
||||||
|
|
||||||
// find the node in which the formula is located
|
// find the node in which the formula is located
|
||||||
// TextFeld -> TextNode,
|
// TextFeld -> TextNode,
|
||||||
@@ -129,13 +129,13 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// create from the internal formula (for CORE) the external formula (for UI)
|
/// create from the internal formula (for CORE) the external formula (for UI)
|
||||||
void PtrToBoxNm( const SwTable* pTbl );
|
void PtrToBoxNm( const SwTable* pTbl );
|
||||||
// create from the external formula the internal
|
/// create from the external formula the internal
|
||||||
void BoxNmToPtr( const SwTable* pTbl );
|
void BoxNmToPtr( const SwTable* pTbl );
|
||||||
// create from the external/internal formula the relative formula
|
/// create from the external/internal formula the relative formula
|
||||||
void ToRelBoxNm( const SwTable* pTbl );
|
void ToRelBoxNm( const SwTable* pTbl );
|
||||||
// gets called before/after merging/splitting of tables
|
/// gets called before/after merging/splitting of tables
|
||||||
void ToSplitMergeBoxNm( SwTableFmlUpdate& rTblUpd );
|
void ToSplitMergeBoxNm( SwTableFmlUpdate& rTblUpd );
|
||||||
|
|
||||||
bool IsIntrnlName() const { return eNmType == INTRNL_NAME; }
|
bool IsIntrnlName() const { return eNmType == INTRNL_NAME; }
|
||||||
|
@@ -39,11 +39,11 @@ class SwTxtNode;
|
|||||||
enum SwChapterFormat
|
enum SwChapterFormat
|
||||||
{
|
{
|
||||||
CF_BEGIN,
|
CF_BEGIN,
|
||||||
CF_NUMBER = CF_BEGIN, // only the chapter number
|
CF_NUMBER = CF_BEGIN, ///< only the chapter number
|
||||||
CF_TITLE, // only the title
|
CF_TITLE, ///< only the title
|
||||||
CF_NUM_TITLE, // number and title
|
CF_NUM_TITLE, ///< number and title
|
||||||
CF_NUMBER_NOPREPST, // only chapter number without post-/prefix
|
CF_NUMBER_NOPREPST, ///< only chapter number without post-/prefix
|
||||||
CF_NUM_NOPREPST_TITLE, // chapter number without post-/prefix and title
|
CF_NUM_NOPREPST_TITLE, ///< chapter number without post-/prefix and title
|
||||||
CF_END
|
CF_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -111,8 +111,8 @@ struct SwContentAtPos
|
|||||||
SW_SMARTTAG = 0x0800,
|
SW_SMARTTAG = 0x0800,
|
||||||
SW_FORMCTRL = 0x1000
|
SW_FORMCTRL = 0x1000
|
||||||
#ifdef DBG_UTIL
|
#ifdef DBG_UTIL
|
||||||
,SW_CURR_ATTRS = 0x4000 // only for debugging
|
,SW_CURR_ATTRS = 0x4000 ///< only for debugging
|
||||||
,SW_TABLEBOXVALUE = 0x8000 // only for debugging
|
,SW_TABLEBOXVALUE = 0x8000 ///< only for debugging
|
||||||
#endif
|
#endif
|
||||||
} eCntntAtPos;
|
} eCntntAtPos;
|
||||||
|
|
||||||
@@ -166,40 +166,40 @@ public:
|
|||||||
|
|
||||||
/* for calling UpdateCrsr */
|
/* for calling UpdateCrsr */
|
||||||
enum CrsrFlag {
|
enum CrsrFlag {
|
||||||
UPDOWN = (1 << 0), // keep Up/Down on columns
|
UPDOWN = (1 << 0), ///< keep Up/Down on columns
|
||||||
SCROLLWIN = (1 << 1), // scroll window
|
SCROLLWIN = (1 << 1), ///< scroll window
|
||||||
CHKRANGE = (1 << 2), // check overlapping PaMs
|
CHKRANGE = (1 << 2), ///< check overlapping PaMs
|
||||||
NOCALRECT = (1 << 3), // don't recalculate CharRect
|
NOCALRECT = (1 << 3), ///< don't recalculate CharRect
|
||||||
READONLY = (1 << 4) // make visible in spite of Readonly
|
READONLY = (1 << 4) ///< make visible in spite of Readonly
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
SwRect aCharRect; // Char-SRectangle on which the cursor is located
|
SwRect aCharRect; ///< Char-SRectangle on which the cursor is located
|
||||||
Point aCrsrHeight; // height & offset from visible Cursor
|
Point aCrsrHeight; ///< height & offset from visible Cursor
|
||||||
Point aOldRBPos; // Right/Bottom of last VisArea
|
Point aOldRBPos; ///< Right/Bottom of last VisArea
|
||||||
// (used in Invalidate by Cursor)
|
// (used in Invalidate by Cursor)
|
||||||
|
|
||||||
Link aFlyMacroLnk; // Link will be called, if the Crsr is set
|
Link aFlyMacroLnk; /*!< Link will be called, if the Crsr is set
|
||||||
// into a fly. A macro can be then becalled
|
into a fly. A macro can be then becalled */
|
||||||
Link aChgLnk; // link will be called by every attribut/
|
Link aChgLnk; /*!< link will be called by every attribut/
|
||||||
// format changes at cursor position.
|
format changes at cursor position.*/
|
||||||
Link aGrfArrivedLnk; // Link calls to UI if a graphic is arrived
|
Link aGrfArrivedLnk; ///< Link calls to UI if a graphic is arrived
|
||||||
|
|
||||||
SwShellCrsr* pCurCrsr; // current cursor
|
SwShellCrsr* pCurCrsr; ///< current cursor
|
||||||
SwShellCrsr* pCrsrStk; // stack for the cursor
|
SwShellCrsr* pCrsrStk; ///< stack for the cursor
|
||||||
SwVisCrsr *pVisCrsr; // the visible cursor
|
SwVisCrsr *pVisCrsr; ///< the visible cursor
|
||||||
|
|
||||||
IBlockCursor *pBlockCrsr; // interface of cursor for block (=rectangular) selection
|
IBlockCursor *pBlockCrsr; ///< interface of cursor for block (=rectangular) selection
|
||||||
|
|
||||||
SwShellTableCrsr* pTblCrsr; // table Crsr; only in tables when the
|
SwShellTableCrsr* pTblCrsr; /*!< table Crsr; only in tables when the
|
||||||
// selection lays over 2 columns
|
selection lays over 2 columns */
|
||||||
|
|
||||||
SwNodeIndex* pBoxIdx; // for recognizing of the changed
|
SwNodeIndex* pBoxIdx; ///< for recognizing of the changed
|
||||||
SwTableBox* pBoxPtr; // table row
|
SwTableBox* pBoxPtr; ///< table row
|
||||||
|
|
||||||
long nUpDownX; // try to move the cursor on up/down always
|
long nUpDownX; /*!< try to move the cursor on up/down always
|
||||||
// in the same column
|
in the same column */
|
||||||
long nLeftFrmPos;
|
long nLeftFrmPos;
|
||||||
sal_uLong nAktNode; // save CursorPos at Start-Action
|
sal_uLong nAktNode; // save CursorPos at Start-Action
|
||||||
xub_StrLen nAktCntnt;
|
xub_StrLen nAktCntnt;
|
||||||
@@ -213,24 +213,24 @@ private:
|
|||||||
* (via Find()) can be realised.
|
* (via Find()) can be realised.
|
||||||
*/
|
*/
|
||||||
sal_uInt16 nCrsrMove;
|
sal_uInt16 nCrsrMove;
|
||||||
sal_uInt16 nBasicActionCnt; // Actions which are parenthesized by Basic
|
sal_uInt16 nBasicActionCnt; ///< Actions which are parenthesized by Basic
|
||||||
CrsrMoveState eMvState; // Status for Crsr-Travelling - GetCrsrOfst
|
CrsrMoveState eMvState; ///< Status for Crsr-Travelling - GetCrsrOfst
|
||||||
|
|
||||||
String sMarkedListId;
|
String sMarkedListId;
|
||||||
int nMarkedListLevel;
|
int nMarkedListLevel;
|
||||||
|
|
||||||
sal_Bool bHasFocus : 1; // Shell is "active" in a window
|
sal_Bool bHasFocus : 1; ///< Shell is "active" in a window
|
||||||
sal_Bool bSVCrsrVis : 1; // SV-Cursor visible/invisible
|
sal_Bool bSVCrsrVis : 1; ///< SV-Cursor visible/invisible
|
||||||
sal_Bool bChgCallFlag : 1; // attribute change inside Start- and EndAction
|
sal_Bool bChgCallFlag : 1; ///< attribute change inside Start- and EndAction
|
||||||
sal_Bool bVisPortChgd : 1; // in VisPortChg-Call
|
sal_Bool bVisPortChgd : 1; ///< in VisPortChg-Call
|
||||||
// (used in Invalidate by the Cursor)
|
// (used in Invalidate by the Cursor)
|
||||||
|
|
||||||
sal_Bool bCallChgLnk : 1; // flag for derived classes
|
sal_Bool bCallChgLnk : 1; ///< flag for derived classes
|
||||||
// TRUE -> call ChgLnk
|
// TRUE -> call ChgLnk
|
||||||
// access only via SwChgLinkFlag
|
// access only via SwChgLinkFlag
|
||||||
sal_Bool bAllProtect : 1; // Flag for areas
|
sal_Bool bAllProtect : 1; ///< Flag for areas
|
||||||
// TRUE -> everything protected / hidden
|
// TRUE -> everything protected / hidden
|
||||||
sal_Bool bInCMvVisportChgd : 1; // Flag for CrsrMoves
|
sal_Bool bInCMvVisportChgd : 1; ///< Flag for CrsrMoves
|
||||||
// TRUE -> view was moved
|
// TRUE -> view was moved
|
||||||
sal_Bool bGCAttr : 1; // TRUE -> non expanded attributes exist.
|
sal_Bool bGCAttr : 1; // TRUE -> non expanded attributes exist.
|
||||||
sal_Bool bIgnoreReadonly : 1; // TRUE -> make the cursor visible on next
|
sal_Bool bIgnoreReadonly : 1; // TRUE -> make the cursor visible on next
|
||||||
@@ -322,13 +322,13 @@ public:
|
|||||||
virtual SwPaM & GetCurrentShellCursor();
|
virtual SwPaM & GetCurrentShellCursor();
|
||||||
|
|
||||||
SwPaM * CreateCrsr();
|
SwPaM * CreateCrsr();
|
||||||
// delete the current cursor and make the following into the current
|
///< delete the current cursor and make the following into the current
|
||||||
sal_Bool DestroyCrsr();
|
sal_Bool DestroyCrsr();
|
||||||
// transform TableCursor to normal cursor, nullify Tablemode
|
///< transform TableCursor to normal cursor, nullify Tablemode
|
||||||
void TblCrsrToCursor();
|
void TblCrsrToCursor();
|
||||||
// enter block mode, change normal cursor into block cursor
|
///< enter block mode, change normal cursor into block cursor
|
||||||
void CrsrToBlockCrsr();
|
void CrsrToBlockCrsr();
|
||||||
// leave block mode, change block cursor into normal cursor
|
///< leave block mode, change block cursor into normal cursor
|
||||||
void BlockCrsrToCrsr();
|
void BlockCrsrToCrsr();
|
||||||
|
|
||||||
// SelAll() selects the document body content
|
// SelAll() selects the document body content
|
||||||
@@ -659,14 +659,14 @@ public:
|
|||||||
SwShellTableCrsr* GetTableCrsr() { return pTblCrsr; }
|
SwShellTableCrsr* GetTableCrsr() { return pTblCrsr; }
|
||||||
sal_uInt16 UpdateTblSelBoxes();
|
sal_uInt16 UpdateTblSelBoxes();
|
||||||
|
|
||||||
sal_Bool GotoFtnTxt(); // jump from content to footnote
|
sal_Bool GotoFtnTxt(); ///< jump from content to footnote
|
||||||
sal_Bool GotoFtnAnchor(); // jump from footnote to anchor
|
sal_Bool GotoFtnAnchor(); ///< jump from footnote to anchor
|
||||||
sal_Bool GotoPrevFtnAnchor();
|
sal_Bool GotoPrevFtnAnchor();
|
||||||
sal_Bool GotoNextFtnAnchor();
|
sal_Bool GotoNextFtnAnchor();
|
||||||
|
|
||||||
sal_Bool GotoFlyAnchor(); // jump from the frame to the anchor
|
sal_Bool GotoFlyAnchor(); ///< jump from the frame to the anchor
|
||||||
sal_Bool GotoHeaderTxt(); // jump from the content to the header
|
sal_Bool GotoHeaderTxt(); ///< jump from the content to the header
|
||||||
sal_Bool GotoFooterTxt(); // jump from the content to the footer
|
sal_Bool GotoFooterTxt(); ///< jump from the content to the footer
|
||||||
// jump to the header/footer of the given or current PageDesc
|
// jump to the header/footer of the given or current PageDesc
|
||||||
sal_Bool SetCrsrInHdFt( sal_uInt16 nDescNo = USHRT_MAX,
|
sal_Bool SetCrsrInHdFt( sal_uInt16 nDescNo = USHRT_MAX,
|
||||||
sal_Bool bInHeader = sal_True );
|
sal_Bool bInHeader = sal_True );
|
||||||
|
@@ -36,21 +36,21 @@
|
|||||||
|
|
||||||
enum SwFillMode
|
enum SwFillMode
|
||||||
{
|
{
|
||||||
FILL_TAB, // default, fill with tabs
|
FILL_TAB, ///< default, fill with tabs
|
||||||
FILL_SPACE, // fill with spaces and tabs
|
FILL_SPACE, ///< fill with spaces and tabs
|
||||||
FILL_MARGIN, // only align left, center, right
|
FILL_MARGIN, ///< only align left, center, right
|
||||||
FILL_INDENT // by left paragraph indention
|
FILL_INDENT ///< by left paragraph indention
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SwFillCrsrPos
|
struct SwFillCrsrPos
|
||||||
{
|
{
|
||||||
SwRect aCrsr; // position and size of the ShadowCursor
|
SwRect aCrsr; ///< position and size of the ShadowCursor
|
||||||
sal_uInt16 nParaCnt; // number of paragraphs to insert
|
sal_uInt16 nParaCnt; ///< number of paragraphs to insert
|
||||||
sal_uInt16 nTabCnt; // number of tabs respectively size of indentation
|
sal_uInt16 nTabCnt; ///< number of tabs respectively size of indentation
|
||||||
sal_uInt16 nSpaceCnt; // number of spaces to insert
|
sal_uInt16 nSpaceCnt; ///< number of spaces to insert
|
||||||
sal_uInt16 nColumnCnt; // number of necessary column breaks
|
sal_uInt16 nColumnCnt; ///< number of necessary column breaks
|
||||||
sal_Int16 eOrient; // paragraph alignment
|
sal_Int16 eOrient; ///< paragraph alignment
|
||||||
SwFillMode eMode; // desired fill-up rule
|
SwFillMode eMode; ///< desired fill-up rule
|
||||||
SwFillCrsrPos( SwFillMode eMd = FILL_TAB ) :
|
SwFillCrsrPos( SwFillMode eMd = FILL_TAB ) :
|
||||||
nParaCnt( 0 ), nTabCnt( 0 ), nSpaceCnt( 0 ), nColumnCnt( 0 ),
|
nParaCnt( 0 ), nTabCnt( 0 ), nSpaceCnt( 0 ), nColumnCnt( 0 ),
|
||||||
eOrient( com::sun::star::text::HoriOrientation::NONE ), eMode( eMd )
|
eOrient( com::sun::star::text::HoriOrientation::NONE ), eMode( eMd )
|
||||||
@@ -67,10 +67,10 @@ struct SwFillCrsrPos
|
|||||||
|
|
||||||
struct Sw2LinesPos
|
struct Sw2LinesPos
|
||||||
{
|
{
|
||||||
SwRect aLine; // Position and size of the line
|
SwRect aLine; ///< Position and size of the line
|
||||||
SwRect aPortion; // Position and size of the multi portion
|
SwRect aPortion; ///< Position and size of the multi portion
|
||||||
SwRect aPortion2; // needed for nested multi portions
|
SwRect aPortion2; ///< needed for nested multi portions
|
||||||
sal_uInt8 nMultiType; // Multiportion type
|
sal_uInt8 nMultiType; ///< Multiportion type
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -123,38 +123,38 @@ struct SwSpecialPos
|
|||||||
// CrsrTravelling-States (for GetCrsrOfst)
|
// CrsrTravelling-States (for GetCrsrOfst)
|
||||||
enum CrsrMoveState
|
enum CrsrMoveState
|
||||||
{
|
{
|
||||||
MV_NONE, // default
|
MV_NONE, ///< default
|
||||||
MV_UPDOWN, // Crsr Up/Down
|
MV_UPDOWN, ///< Crsr Up/Down
|
||||||
MV_RIGHTMARGIN, // at right margin
|
MV_RIGHTMARGIN, ///< at right margin
|
||||||
MV_LEFTMARGIN, // at left margin
|
MV_LEFTMARGIN, ///< at left margin
|
||||||
MV_SETONLYTEXT, // stay with the cursor inside text
|
MV_SETONLYTEXT, ///< stay with the cursor inside text
|
||||||
MV_TBLSEL // not in repeated headlines
|
MV_TBLSEL ///< not in repeated headlines
|
||||||
};
|
};
|
||||||
|
|
||||||
// struct for later extensions
|
// struct for later extensions
|
||||||
struct SwCrsrMoveState
|
struct SwCrsrMoveState
|
||||||
{
|
{
|
||||||
SwFillCrsrPos *pFill; // for automatic filling with tabs etc
|
SwFillCrsrPos *pFill; ///< for automatic filling with tabs etc
|
||||||
Sw2LinesPos *p2Lines; // for selections inside/around 2line portions
|
Sw2LinesPos *p2Lines; ///< for selections inside/around 2line portions
|
||||||
SwSpecialPos* pSpecialPos; // for positions inside fields
|
SwSpecialPos* pSpecialPos; ///< for positions inside fields
|
||||||
Point aRealHeight; // contains then the position/height of the cursor
|
Point aRealHeight; ///< contains then the position/height of the cursor
|
||||||
CrsrMoveState eState;
|
CrsrMoveState eState;
|
||||||
sal_uInt8 nCursorBidiLevel;
|
sal_uInt8 nCursorBidiLevel;
|
||||||
sal_Bool bStop;
|
sal_Bool bStop;
|
||||||
sal_Bool bRealHeight; // should the real height be calculated?
|
sal_Bool bRealHeight; ///< should the real height be calculated?
|
||||||
sal_Bool bFieldInfo; // should be fields recognized?
|
sal_Bool bFieldInfo; ///< should be fields recognized?
|
||||||
sal_Bool bPosCorr; // Point had to be corrected
|
sal_Bool bPosCorr; ///< Point had to be corrected
|
||||||
sal_Bool bFtnNoInfo; // recognized footnote numbering
|
sal_Bool bFtnNoInfo; ///< recognized footnote numbering
|
||||||
sal_Bool bExactOnly; // let GetCrsrOfst look for exact matches only,
|
sal_Bool bExactOnly; ///< let GetCrsrOfst look for exact matches only,
|
||||||
// i.e. never let it run into GetCntntPos
|
// i.e. never let it run into GetCntntPos
|
||||||
sal_Bool bFillRet; // only used temporary in FillMode
|
sal_Bool bFillRet; ///< only used temporary in FillMode
|
||||||
sal_Bool bSetInReadOnly; // ReadOnly areas may be entered
|
sal_Bool bSetInReadOnly; ///< ReadOnly areas may be entered
|
||||||
sal_Bool bRealWidth; // Calculation of the width required
|
sal_Bool bRealWidth; ///< Calculation of the width required
|
||||||
sal_Bool b2Lines; // Check 2line portions and fill p2Lines
|
sal_Bool b2Lines; ///< Check 2line portions and fill p2Lines
|
||||||
sal_Bool bNoScroll; // No scrolling of undersized textframes
|
sal_Bool bNoScroll; ///< No scrolling of undersized textframes
|
||||||
sal_Bool bPosMatchesBounds; // GetCrsrOfst should not return the next
|
sal_Bool bPosMatchesBounds; /*!< GetCrsrOfst should not return the next
|
||||||
// position if screen position is inside second
|
position if screen position is inside second
|
||||||
// have of bound rect
|
have of bound rect */
|
||||||
|
|
||||||
sal_Bool bCntntCheck; // #i43742# Cursor position over content?
|
sal_Bool bCntntCheck; // #i43742# Cursor position over content?
|
||||||
|
|
||||||
|
@@ -88,11 +88,11 @@ extern SwPosRegion fnRegionStart, fnRegionEnd;
|
|||||||
*/
|
*/
|
||||||
enum FindRanges
|
enum FindRanges
|
||||||
{
|
{
|
||||||
FND_IN_BODY = 0x00, // Find "one" only in body text.
|
FND_IN_BODY = 0x00, ///< Find "one" only in body text.
|
||||||
FND_IN_OTHER = 0x02, // Find "all" in Footer/Header/Fly...
|
FND_IN_OTHER = 0x02, ///< Find "all" in Footer/Header/Fly...
|
||||||
FND_IN_SEL = 0x04, // Find in selections.
|
FND_IN_SEL = 0x04, ///< Find in selections.
|
||||||
FND_IN_BODYONLY = 0x08, // Find only in body - only in combination with FND_IN_SELALL !!!
|
FND_IN_BODYONLY = 0x08, ///< Find only in body - only in combination with FND_IN_SELALL !!!
|
||||||
FND_IN_SELALL = 0x01 // All (only in non-body and selections).
|
FND_IN_SELALL = 0x01 ///< All (only in non-body and selections).
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user