summaryrefslogtreecommitdiff
path: root/sw/inc/hhcwrp.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-04-04 07:13:07 +0000
committerRüdiger Timm <rt@openoffice.org>2005-04-04 07:13:07 +0000
commit755a35956e2c095d1dfc6e4dae46dae3bbc34e1d (patch)
treec3a2ec7499debd0983f7563eff159bd87f345a31 /sw/inc/hhcwrp.hxx
parentea88ace8078c6e8a889248f19c2c894e9298cd22 (diff)
INTEGRATION: CWS tl07 (1.2.184); FILE MERGED
2005/01/19 15:40:20 tl 1.2.184.2: #i37058# text conversion: improvments for secondary Chinese languages 2005/01/06 11:44:03 tl 1.2.184.1: #118436# look for start of word when text conversion is invoked without a selection
Diffstat (limited to 'sw/inc/hhcwrp.hxx')
-rw-r--r--sw/inc/hhcwrp.hxx33
1 files changed, 19 insertions, 14 deletions
diff --git a/sw/inc/hhcwrp.hxx b/sw/inc/hhcwrp.hxx
index 33b6888efec6..740014cd32aa 100644
--- a/sw/inc/hhcwrp.hxx
+++ b/sw/inc/hhcwrp.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hhcwrp.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-09-17 13:27:29 $
+ * last change: $Author: rt $ $Date: 2005-04-04 08:13:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,20 +72,24 @@
class SwView;
class Window;
class SwWrtShell;
+struct SwConversionArgs;
//////////////////////////////////////////////////////////////////////
class SwHHCWrapper : public svx::HangulHanjaConversion
{
- rtl::OUString aConvText; // convertible text part found last time
- xub_StrLen nLastPos; // starting position of the last found text part
- // (sth that gets not moved like SwPaM or
- // SwPosition by replace operations)
- sal_Int32 nUnitOffset;
-
SwView * pView;
Window* pWin;
SwWrtShell &rWrtShell;
+
+ SwConversionArgs *pConvArgs; // object for arguments (and results) needed
+ // to find of next convertible text portion
+
+ xub_StrLen nLastPos; // starting position of the last found text part
+ // (needs to be sth that gets not moved like
+ // SwPaM or SwPosition by replace operations!)
+ sal_Int32 nUnitOffset;
+
USHORT nPageCount; // page count for progress bar
USHORT nPageStart; // first checked page
@@ -93,7 +97,7 @@ class SwHHCWrapper : public svx::HangulHanjaConversion
sal_Bool bIsStart;
sal_Bool bIsOtherCntnt;
sal_Bool bStartChk;
- sal_Bool bIsSelection;
+ sal_Bool bIsSelection; // true if only the selected text should be converted
sal_Bool bInfoBox; // true if message should be displayed at the end
sal_Bool bIsConvSpecial; // true if special regions: header, footer, ... should be converted
sal_Bool bStartDone;
@@ -106,9 +110,9 @@ class SwHHCWrapper : public svx::HangulHanjaConversion
// from SwSpellWrapper copied and modified
sal_Bool HasOtherCnt_impl();
- void ConvStart_impl( SvxSpellArea eSpell ); // former SpellStart
- void ConvEnd_impl(); // former SpellEnd
- sal_Bool ConvContinue_impl(); // former SpellContinue
+ void ConvStart_impl( SwConversionArgs *pConvArgs, SvxSpellArea eSpell ); // former SpellStart
+ void ConvEnd_impl( SwConversionArgs *pConvArgs ); // former SpellEnd
+ sal_Bool ConvContinue_impl( SwConversionArgs *pConvArgs ); // former SpellContinue
void SelectNewUnit_impl( const sal_Int32 nUnitStart,
const sal_Int32 nUnitEnd );
@@ -117,13 +121,14 @@ class SwHHCWrapper : public svx::HangulHanjaConversion
inline void SetDrawObj( BOOL bNew ) { bIsDrawObj = bNew; }
protected:
- virtual void GetNextPortion( ::rtl::OUString& /* [out] */ rNextPortion );
+ virtual void GetNextPortion( ::rtl::OUString& rNextPortion, LanguageType& rLangOfPortion );
virtual void HandleNewUnit( const sal_Int32 nUnitStart,
const sal_Int32 nUnitEnd );
virtual void ReplaceUnit(
const sal_Int32 nUnitStart, const sal_Int32 nUnitEnd,
const ::rtl::OUString& rReplaceWith,
- ReplacementAction eAction );
+ ReplacementAction eAction,
+ LanguageType *pNewUnitLanguage );
virtual sal_Bool HasRubySupport() const;