Kaydet (Commit) eded5821 authored tarafından Michael Stahl's avatar Michael Stahl

sw: prefix members of SwScriptInfo

Change-Id: I1272d53d602052b09101bed8cf0fb4a19fecf52d
üst e9d95865
...@@ -50,7 +50,7 @@ private: ...@@ -50,7 +50,7 @@ private:
}; };
//TODO - This is sorted, so should probably be a std::set rather than vector. //TODO - This is sorted, so should probably be a std::set rather than vector.
// But we also use random access (probably unnecessarily). // But we also use random access (probably unnecessarily).
std::vector<ScriptChangeInfo> aScriptChanges; std::vector<ScriptChangeInfo> m_ScriptChanges;
//! Records a single change in direction. //! Records a single change in direction.
struct DirectionChangeInfo struct DirectionChangeInfo
{ {
...@@ -58,12 +58,12 @@ private: ...@@ -58,12 +58,12 @@ private:
sal_uInt8 type; //!< Direction that we change to. sal_uInt8 type; //!< Direction that we change to.
DirectionChangeInfo(sal_Int32 pos, sal_uInt8 typ) : position(pos), type(typ) {}; DirectionChangeInfo(sal_Int32 pos, sal_uInt8 typ) : position(pos), type(typ) {};
}; };
std::vector<DirectionChangeInfo> aDirectionChanges; std::vector<DirectionChangeInfo> m_DirectionChanges;
std::deque< sal_Int32 > aKashida; std::deque< sal_Int32 > m_Kashida;
std::deque< sal_Int32 > aKashidaInvalid; std::deque< sal_Int32 > m_KashidaInvalid;
std::deque< sal_Int32 > aNoKashidaLine; std::deque< sal_Int32 > m_NoKashidaLine;
std::deque< sal_Int32 > aNoKashidaLineEnd; std::deque< sal_Int32 > m_NoKashidaLineEnd;
std::deque< sal_Int32 > aHiddenChg; std::deque< sal_Int32 > m_HiddenChg;
//! Records a single change in compression. //! Records a single change in compression.
struct CompressionChangeInfo struct CompressionChangeInfo
{ {
...@@ -72,13 +72,13 @@ private: ...@@ -72,13 +72,13 @@ private:
CompType type; //!< Type of compression that we change to. CompType type; //!< Type of compression that we change to.
CompressionChangeInfo(sal_Int32 pos, sal_Int32 len, CompType typ) : position(pos), length(len), type(typ) {}; CompressionChangeInfo(sal_Int32 pos, sal_Int32 len, CompType typ) : position(pos), length(len), type(typ) {};
}; };
std::vector<CompressionChangeInfo> aCompressionChanges; std::vector<CompressionChangeInfo> m_CompressionChanges;
#ifdef DBG_UTIL #ifdef DBG_UTIL
CompType DbgCompType( const sal_Int32 nPos ) const; CompType DbgCompType( const sal_Int32 nPos ) const;
#endif #endif
sal_Int32 nInvalidityPos; sal_Int32 m_nInvalidityPos;
sal_uInt8 nDefaultDir; sal_uInt8 m_nDefaultDir;
void UpdateBidiInfo( const OUString& rText ); void UpdateBidiInfo( const OUString& rText );
...@@ -103,75 +103,75 @@ public: ...@@ -103,75 +103,75 @@ public:
// set/get position from which data is invalid // set/get position from which data is invalid
void SetInvalidityA(const sal_Int32 nPos) void SetInvalidityA(const sal_Int32 nPos)
{ {
if (nPos < nInvalidityPos) if (nPos < m_nInvalidityPos)
nInvalidityPos = nPos; m_nInvalidityPos = nPos;
} }
sal_Int32 GetInvalidityA() const sal_Int32 GetInvalidityA() const
{ {
return nInvalidityPos; return m_nInvalidityPos;
} }
// get default direction for paragraph // get default direction for paragraph
sal_uInt8 GetDefaultDir() const { return nDefaultDir; }; sal_uInt8 GetDefaultDir() const { return m_nDefaultDir; };
// array operations, nCnt refers to array position // array operations, nCnt refers to array position
size_t CountScriptChg() const { return aScriptChanges.size(); } size_t CountScriptChg() const { return m_ScriptChanges.size(); }
sal_Int32 GetScriptChg( const size_t nCnt ) const sal_Int32 GetScriptChg( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aScriptChanges.size(),"No ScriptChange today!"); assert(nCnt < m_ScriptChanges.size());
return aScriptChanges[nCnt].position; return m_ScriptChanges[nCnt].position;
} }
sal_uInt8 GetScriptType( const size_t nCnt ) const sal_uInt8 GetScriptType( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aScriptChanges.size(),"No ScriptType today!"); assert( nCnt < m_ScriptChanges.size());
return aScriptChanges[nCnt].type; return m_ScriptChanges[nCnt].type;
} }
size_t CountDirChg() const { return aDirectionChanges.size(); } size_t CountDirChg() const { return m_DirectionChanges.size(); }
sal_Int32 GetDirChg( const size_t nCnt ) const sal_Int32 GetDirChg( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aDirectionChanges.size(),"No DirChange today!"); assert(nCnt < m_DirectionChanges.size());
return aDirectionChanges[ nCnt ].position; return m_DirectionChanges[ nCnt ].position;
} }
sal_uInt8 GetDirType( const size_t nCnt ) const sal_uInt8 GetDirType( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aDirectionChanges.size(),"No DirType today!"); assert(nCnt < m_DirectionChanges.size());
return aDirectionChanges[ nCnt ].type; return m_DirectionChanges[ nCnt ].type;
} }
size_t CountKashida() const size_t CountKashida() const
{ {
return aKashida.size(); return m_Kashida.size();
} }
sal_Int32 GetKashida(const size_t nCnt) const sal_Int32 GetKashida(const size_t nCnt) const
{ {
OSL_ENSURE( nCnt < aKashida.size(),"No Kashidas today!"); assert(nCnt < m_Kashida.size());
return aKashida[nCnt]; return m_Kashida[nCnt];
} }
size_t CountCompChg() const { return aCompressionChanges.size(); }; size_t CountCompChg() const { return m_CompressionChanges.size(); };
sal_Int32 GetCompStart( const size_t nCnt ) const sal_Int32 GetCompStart( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aCompressionChanges.size(),"No CompressionStart today!"); assert(nCnt < m_CompressionChanges.size());
return aCompressionChanges[ nCnt ].position; return m_CompressionChanges[ nCnt ].position;
} }
sal_Int32 GetCompLen( const size_t nCnt ) const sal_Int32 GetCompLen( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aCompressionChanges.size(),"No CompressionLen today!"); assert(nCnt < m_CompressionChanges.size());
return aCompressionChanges[ nCnt ].length; return m_CompressionChanges[ nCnt ].length;
} }
CompType GetCompType( const size_t nCnt ) const CompType GetCompType( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aCompressionChanges.size(),"No CompressionType today!"); assert(nCnt < m_CompressionChanges.size());
return aCompressionChanges[ nCnt ].type; return m_CompressionChanges[ nCnt ].type;
} }
size_t CountHiddenChg() const { return aHiddenChg.size(); }; size_t CountHiddenChg() const { return m_HiddenChg.size(); };
sal_Int32 GetHiddenChg( const size_t nCnt ) const sal_Int32 GetHiddenChg( const size_t nCnt ) const
{ {
OSL_ENSURE( nCnt < aHiddenChg.size(),"No HiddenChg today!"); assert(nCnt < m_HiddenChg.size());
return aHiddenChg[ nCnt ]; return m_HiddenChg[ nCnt ];
} }
static void CalcHiddenRanges(const SwTextNode& rNode, MultiSelection& rHiddenMulti); static void CalcHiddenRanges(const SwTextNode& rNode, MultiSelection& rHiddenMulti);
static void selectHiddenTextProperty(const SwTextNode& rNode, MultiSelection &rHiddenMulti); static void selectHiddenTextProperty(const SwTextNode& rNode, MultiSelection &rHiddenMulti);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment