summaryrefslogtreecommitdiff
path: root/sw/source/ui/lingu
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/lingu')
-rw-r--r--sw/source/ui/lingu/hhcwrp.cxx8
-rw-r--r--sw/source/ui/lingu/hyp.cxx8
-rw-r--r--sw/source/ui/lingu/olmenu.cxx34
-rw-r--r--sw/source/ui/lingu/olmenu.hrc2
-rw-r--r--sw/source/ui/lingu/olmenu.src14
-rw-r--r--sw/source/ui/lingu/sdrhhcwrap.cxx16
-rw-r--r--sw/source/ui/lingu/sdrhhcwrap.hxx14
7 files changed, 48 insertions, 48 deletions
diff --git a/sw/source/ui/lingu/hhcwrp.cxx b/sw/source/ui/lingu/hhcwrp.cxx
index 887405d2c5fb..775651c8329e 100644
--- a/sw/source/ui/lingu/hhcwrp.cxx
+++ b/sw/source/ui/lingu/hhcwrp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@
#include <doc.hxx>
#include <docsh.hxx>
#include <txatritr.hxx>
-#include <mdiexp.hxx> // Progress
+#include <mdiexp.hxx> // Progress
#include <edtwin.hxx>
#include <crsskip.hxx>
#include <index.hxx>
@@ -544,7 +544,7 @@ void SwHHCWrapper::ReplaceUnit(
if (pNewUnitLanguage)
{
//OSL_ENSURE(!IsSimilarChinese( *pNewUnitLanguage, nOldLang ),
- // "similar language should not be changed!");
+ // "similar language should not be changed!");
aSet.Put( SvxLanguageItem( *pNewUnitLanguage, RES_CHRATR_CJK_LANGUAGE ) );
}
@@ -595,7 +595,7 @@ void SwHHCWrapper::Convert()
pSttPos->nNode.GetNode().GetTxtNode(), pSttPos->nContent,
pEndPos->nNode.GetNode().GetTxtNode(), pEndPos->nContent );
}
- else // we are not in the text (maybe a graphic or OLE object is selected) let's start from the top
+ else // we are not in the text (maybe a graphic or OLE object is selected) let's start from the top
{
// get PaM that points to the start of the document
SwNode& rNode = pView->GetDocShell()->GetDoc()->GetNodes().GetEndOfContent();
diff --git a/sw/source/ui/lingu/hyp.cxx b/sw/source/ui/lingu/hyp.cxx
index d066fff361a9..ea0d7e143334 100644
--- a/sw/source/ui/lingu/hyp.cxx
+++ b/sw/source/ui/lingu/hyp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,8 +49,8 @@
#include <unomid.h>
-#define HYPHHERE '-'
-#define PSH (&pView->GetWrtShell())
+#define HYPHHERE '-'
+#define PSH (&pView->GetWrtShell())
using namespace ::com::sun::star;
using ::rtl::OUString;
@@ -157,7 +157,7 @@ sal_Bool SwHyphWrapper::SpellMore()
void SwHyphWrapper::InsertHyphen( const sal_uInt16 nPos )
{
if( nPos)
- PSH->InsertSoftHyph( nPos + 1); // does nPos == 1 really mean
+ PSH->InsertSoftHyph( nPos + 1); // does nPos == 1 really mean
// insert hyphen after first char?
// (instead of nPos == 0)
else
diff --git a/sw/source/ui/lingu/olmenu.cxx b/sw/source/ui/lingu/olmenu.cxx
index 65f7abf985fe..52d469bd3779 100644
--- a/sw/source/ui/lingu/olmenu.cxx
+++ b/sw/source/ui/lingu/olmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -128,7 +128,7 @@ LanguageType lcl_CheckLanguage(
sal_Bool bIsParaText )
{
LanguageType nLang = LANGUAGE_NONE;
- if (bIsParaText) // check longer texts with language-guessing...
+ if (bIsParaText) // check longer texts with language-guessing...
{
if (!xLangGuess.is())
return nLang;
@@ -153,7 +153,7 @@ LanguageType lcl_CheckLanguage(
if (nLang == LANGUAGE_DONTKNOW)
nLang = LANGUAGE_NONE;
}
- else // check single word
+ else // check single word
{
if (!xSpell.is())
return nLang;
@@ -226,7 +226,7 @@ void SwSpellPopup::fillLangPopupMenu(
return;
SvtLanguageTable aLanguageTable;
-
+
// set of languages to be displayed in the sub menus
std::set< OUString > aLangItems;
@@ -442,7 +442,7 @@ bGrammarResults(false)
pMenu->InsertItem( nAutoCorrItemId, aEntry );
pMenu->SetHelpId( nAutoCorrItemId, HID_LINGU_AUTOCORR);
-
+
++nAutoCorrItemId;
++nItemId;
}
@@ -575,7 +575,7 @@ bGrammarResults(false)
SetItemImage( MN_SPELLING_DLG, rImg );
//////////////////////////////////////////////////////////////////////////////////
-
+
RemoveDisabledEntries( TRUE, TRUE );
}
@@ -731,7 +731,7 @@ void SwSpellPopup::Execute( USHORT nId )
return;
if (/*bGrammarResults && */nId == MN_SHORT_COMMENT)
- return; // nothing to do since it is the error message (short comment)
+ return; // nothing to do since it is the error message (short comment)
if ((MN_SUGGESTION_START <= nId && nId <= MN_SUGGESTION_END) ||
(MN_AUTOCORR_START <= nId && nId <= MN_AUTOCORR_END))
@@ -772,7 +772,7 @@ void SwSpellPopup::Execute( USHORT nId )
pSh->DelLeft();
pSh->Insert( aTmp );
-
+
/* #102505# EndAction/EndUndo moved down since insertion
of temporary auto correction is now undoable two and
must reside in the same undo group.*/
@@ -809,24 +809,24 @@ void SwSpellPopup::Execute( USHORT nId )
pSh->GetView().GetViewFrame()->GetDispatcher()->
Execute( FN_SPELL_GRAMMAR_DIALOG, SFX_CALLMODE_ASYNCHRON );
}
- }
+ }
else if (nId == MN_IGNORE_SELECTION)
{
SwPaM *pPaM = pSh->GetCrsr();
if (pPaM)
pSh->IgnoreGrammarErrorAt( *pPaM );
- }
+ }
else if (nId == MN_IGNORE_WORD)
{
uno::Reference< linguistic2::XDictionary > xDictionary( SvxGetIgnoreAllList(), uno::UNO_QUERY );
linguistic::AddEntryToDic( xDictionary,
xSpellAlt->getWord(), sal_False, aEmptyStr, LANGUAGE_NONE );
- }
+ }
else if (MN_DICTIONARIES_START <= nId && nId <= MN_DICTIONARIES_END)
{
OUString aWord( xSpellAlt->getWord() );
// OSL_ENSURE( nDicIdx < aDics.getLength(), "dictionary index out of range" );
-
+
PopupMenu *pMenu = GetPopupMenu(MN_ADD_TO_DIC);
String aDicName ( pMenu->GetItemText(nId) );
@@ -851,18 +851,18 @@ void SwSpellPopup::Execute( USHORT nId )
nAddRes );
}
}
- }
- else
+ }
+ else
{
// Set language for selection or for paragraph...
-
+
SfxItemSet aCoreSet( pSh->GetView().GetPool(),
RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE,
RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CJK_LANGUAGE,
RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_CTL_LANGUAGE,
0 );
String aNewLangTxt;
-
+
if (MN_SET_LANGUAGE_SELECTION_START <= nId && nId <= MN_SET_LANGUAGE_SELECTION_END)
{
//Set language for current selection
@@ -917,7 +917,7 @@ void SwSpellPopup::Execute( USHORT nId )
lcl_CharDialog( *pSh, true, nId, 0, 0 );
pSh->Pop( FALSE ); // restore cursor
}
- }
+ }
pSh->EnterStdMode();
}
diff --git a/sw/source/ui/lingu/olmenu.hrc b/sw/source/ui/lingu/olmenu.hrc
index 887f8a2ad3af..6afce9516bfd 100644
--- a/sw/source/ui/lingu/olmenu.hrc
+++ b/sw/source/ui/lingu/olmenu.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sw/source/ui/lingu/olmenu.src b/sw/source/ui/lingu/olmenu.src
index b8d9124d2e52..9173509a69f6 100644
--- a/sw/source/ui/lingu/olmenu.src
+++ b/sw/source/ui/lingu/olmenu.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -113,25 +113,25 @@ String STR_HYP_OK
};
String STR_LANGSTATUS_NONE
{
- Text [ en-US ] = "None (Do not check spelling)" ;
+ Text [ en-US ] = "None (Do not check spelling)" ;
};
String STR_RESET_TO_DEFAULT_LANGUAGE
{
- Text [ en-US ] = "Reset to Default Language" ;
- Text [ x-comment ] = " ";
+ Text [ en-US ] = "Reset to Default Language" ;
+ Text [ x-comment ] = " ";
};
String STR_LANGSTATUS_MORE
{
- Text [ en-US ] = "More..." ;
+ Text [ en-US ] = "More..." ;
};
String STR_IGNORE_SELECTION
{
- Text [ en-US ] = "Ignore" ;
+ Text [ en-US ] = "Ignore" ;
};
Image IMG_INFO_16
{
ImageBitmap = Bitmap { File = "info_16.png" ; };
MASKCOLOR
-};
+};
diff --git a/sw/source/ui/lingu/sdrhhcwrap.cxx b/sw/source/ui/lingu/sdrhhcwrap.cxx
index a724f4d5cff4..95d886343422 100644
--- a/sw/source/ui/lingu/sdrhhcwrap.cxx
+++ b/sw/source/ui/lingu/sdrhhcwrap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
#include <docsh.hxx> // " " "
#include <wrtsh.hxx> // MakeVisible
#include <view.hxx>
-#include <dcontact.hxx> // Spelling von DrawObj
+#include <dcontact.hxx> // Spelling von DrawObj
#include <doc.hxx> // " " "
#include <docary.hxx>
#include <edtwin.hxx>
@@ -89,7 +89,7 @@ SdrHHCWrapper::SdrHHCWrapper( SwView* pVw,
pOutlView->GetOutliner()->SetRefDevice(pView->GetWrtShell().getIDocumentDeviceAccess()->getPrinter( false ));
// Hack: Es sollten alle SdrTextObj-Attribute an die EditEngine
- // uebertragen werden.
+ // uebertragen werden.
pOutlView->SetBackgroundColor( Color( COL_WHITE ) );
@@ -97,7 +97,7 @@ SdrHHCWrapper::SdrHHCWrapper( SwView* pVw,
Point aPoint( 0, 0 );
Rectangle aRect( aPoint, aSize );
pOutlView->SetOutputArea( aRect );
-// SetText( NULL );
+// SetText( NULL );
ClearModifyFlag();
}
@@ -110,9 +110,9 @@ SdrHHCWrapper::~SdrHHCWrapper()
pSdrView->SdrEndTextEdit( sal_True );
SetUpdateMode(sal_False);
pOutlView->SetOutputArea( Rectangle( Point(), Size(1, 1) ) );
-// SetPaperSize( Size(1, 1) );
-// SetText(NULL);
-// pTextObj = NULL;
+// SetPaperSize( Size(1, 1) );
+// SetText(NULL);
+// pTextObj = NULL;
}
RemoveView( pOutlView );
delete pOutlView;
@@ -212,7 +212,7 @@ sal_Bool SdrHHCWrapper::ConvertNextDocument()
SetPaperSize( pTextObj->GetLogicRect().GetSize() );
SetUpdateMode(sal_True);
pView->GetWrtShell().MakeVisible(pTextObj->GetLogicRect());
-
+
pSdrView->SdrBeginTextEdit(pTextObj, pPV, &pView->GetEditWin(), sal_False, this, pOutlView, sal_True, sal_True);
}
else
diff --git a/sw/source/ui/lingu/sdrhhcwrap.hxx b/sw/source/ui/lingu/sdrhhcwrap.hxx
index c9e202dcfc56..0803ba0eb3f2 100644
--- a/sw/source/ui/lingu/sdrhhcwrap.hxx
+++ b/sw/source/ui/lingu/sdrhhcwrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,10 +41,10 @@ class SdrHHCWrapper : public SdrOutliner
{
// modified version of SdrSpeller
- SwView* pView;
- SdrTextObj* pTextObj;
- OutlinerView* pOutlView;
- SdrObjListIter* pListIter;
+ SwView* pView;
+ SdrTextObj* pTextObj;
+ OutlinerView* pOutlView;
+ SdrObjListIter* pListIter;
sal_Int32 nOptions;
sal_uInt16 nDocIndex;
LanguageType nSourceLang;
@@ -53,11 +53,11 @@ class SdrHHCWrapper : public SdrOutliner
sal_Bool bIsInteractive;
public:
- SdrHHCWrapper( SwView* pVw,
+ SdrHHCWrapper( SwView* pVw,
LanguageType nSourceLanguage, LanguageType nTargetLanguage,
const Font* pTargetFnt,
sal_Int32 nConvOptions, sal_Bool bInteractive );
-
+
virtual ~SdrHHCWrapper();
virtual sal_Bool ConvertNextDocument();