Kaydet (Commit) a4154870 authored tarafından Noel Grandin's avatar Noel Grandin

convert sw/source/ui/inc/o*.hxx from String to OUString

Change-Id: Iabe90c2dc542c74c7bc890f6618c35d118ee10da
üst 23ab9a8c
...@@ -348,7 +348,7 @@ void SwCaptionPreview::Init() ...@@ -348,7 +348,7 @@ void SwCaptionPreview::Init()
SetFont(aFont); SetFont(aFont);
} }
void SwCaptionPreview::SetPreviewText( const String& rText ) void SwCaptionPreview::SetPreviewText( const OUString& rText )
{ {
if( rText != maText ) if( rText != maText )
{ {
......
...@@ -56,10 +56,10 @@ class SwSpellPopup : public PopupMenu ...@@ -56,10 +56,10 @@ class SwSpellPopup : public PopupMenu
std::map< sal_Int16, OUString > aLangTable_Paragraph; std::map< sal_Int16, OUString > aLangTable_Paragraph;
// std::map< sal_Int16, OUString > aLangTable_Document; // std::map< sal_Int16, OUString > aLangTable_Document;
String aDicNameSingle; OUString aDicNameSingle;
bool bGrammarResults; // show grammar results? Or show spellcheck results? bool bGrammarResults; // show grammar results? Or show spellcheck results?
Image aInfo16; Image aInfo16;
void fillLangPopupMenu( PopupMenu *pPopupMenu, sal_uInt16 nLangStart, void fillLangPopupMenu( PopupMenu *pPopupMenu, sal_uInt16 nLangStart,
::com::sun::star::uno::Sequence< OUString > aSeq, SwWrtShell* pWrtSh, ::com::sun::star::uno::Sequence< OUString > aSeq, SwWrtShell* pWrtSh,
...@@ -71,13 +71,13 @@ public: ...@@ -71,13 +71,13 @@ public:
SwSpellPopup( SwWrtShell *pWrtSh, SwSpellPopup( SwWrtShell *pWrtSh,
const ::com::sun::star::uno::Reference< const ::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XSpellAlternatives > &xAlt, ::com::sun::star::linguistic2::XSpellAlternatives > &xAlt,
const String & rParaText ); const OUString & rParaText );
SwSpellPopup( SwWrtShell *pWrtSh, SwSpellPopup( SwWrtShell *pWrtSh,
const ::com::sun::star::linguistic2::ProofreadingResult &rResult, const ::com::sun::star::linguistic2::ProofreadingResult &rResult,
sal_Int32 nErrorInResult, sal_Int32 nErrorInResult,
const ::com::sun::star::uno::Sequence< OUString > &rSuggestions, const ::com::sun::star::uno::Sequence< OUString > &rSuggestions,
const String & rParaText ); const OUString & rParaText );
sal_uInt16 Execute( const Rectangle& rPopupPos, Window* pWin ); sal_uInt16 Execute( const Rectangle& rPopupPos, Window* pWin );
void Execute( sal_uInt16 nId ); void Execute( sal_uInt16 nId );
......
...@@ -89,13 +89,13 @@ public: ...@@ -89,13 +89,13 @@ public:
class SwCaptionPreview : public Window class SwCaptionPreview : public Window
{ {
private: private:
String maText; OUString maText;
Point maDrawPos; Point maDrawPos;
public: public:
SwCaptionPreview( Window* pParent ); SwCaptionPreview( Window* pParent );
SwCaptionPreview( Window* pParent, const ResId& rResId ); SwCaptionPreview( Window* pParent, const ResId& rResId );
void Init(); void Init();
void SetPreviewText( const String& rText ); void SetPreviewText( const OUString& rText );
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
}; };
......
...@@ -109,7 +109,7 @@ class SwAddPrinterTabPage : public SfxTabPage ...@@ -109,7 +109,7 @@ class SwAddPrinterTabPage : public SfxTabPage
CheckBox* m_pPaperFromSetupCB; CheckBox* m_pPaperFromSetupCB;
ListBox* m_pFaxLB; ListBox* m_pFaxLB;
String sNone; OUString sNone;
sal_Bool bAttrModified; sal_Bool bAttrModified;
sal_Bool bPreview; sal_Bool bPreview;
...@@ -129,7 +129,7 @@ public: ...@@ -129,7 +129,7 @@ public:
virtual sal_Bool FillItemSet( SfxItemSet& rSet ); virtual sal_Bool FillItemSet( SfxItemSet& rSet );
virtual void Reset( const SfxItemSet& rSet ); virtual void Reset( const SfxItemSet& rSet );
void SetFax( const std::vector<String>& ); void SetFax( const std::vector<String>& );
void SelectFax( const String& ); void SelectFax( const OUString& );
void SetPreview(sal_Bool bPrev); void SetPreview(sal_Bool bPrev);
virtual void PageCreated (SfxAllItemSet aSet); virtual void PageCreated (SfxAllItemSet aSet);
...@@ -152,11 +152,11 @@ class SwStdFontTabPage : public SfxTabPage ...@@ -152,11 +152,11 @@ class SwStdFontTabPage : public SfxTabPage
CheckBox* pDocOnlyCB ; CheckBox* pDocOnlyCB ;
PushButton* pStandardPB; PushButton* pStandardPB;
String sShellStd; OUString sShellStd;
String sShellTitle; OUString sShellTitle;
String sShellList; OUString sShellList;
String sShellLabel; OUString sShellLabel;
String sShellIndex; OUString sShellIndex;
SfxPrinter* pPrt; SfxPrinter* pPrt;
FontList* pFontList; FontList* pFontList;
...@@ -181,9 +181,9 @@ class SwStdFontTabPage : public SfxTabPage ...@@ -181,9 +181,9 @@ class SwStdFontTabPage : public SfxTabPage
sal_uInt8 nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL] sal_uInt8 nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL]
String sScriptWestern; OUString sScriptWestern;
String sScriptAsian; OUString sScriptAsian;
String sScriptComplex; OUString sScriptComplex;
DECL_LINK(StandardHdl, void *); DECL_LINK(StandardHdl, void *);
DECL_LINK( ModifyHdl, ComboBox * ); DECL_LINK( ModifyHdl, ComboBox * );
......
...@@ -74,7 +74,7 @@ class SwOutlineTabDialog : public SfxTabDialog ...@@ -74,7 +74,7 @@ class SwOutlineTabDialog : public SfxTabDialog
~SwOutlineTabDialog(); ~SwOutlineTabDialog();
SwNumRule* GetNumRule() {return pNumRule;} SwNumRule* GetNumRule() {return pNumRule;}
sal_uInt16 GetLevel(const String &rFmtName) const; sal_uInt16 GetLevel(const OUString &rFmtName) const;
OUString* GetCollNames() {return aCollNames;} OUString* GetCollNames() {return aCollNames;}
static sal_uInt16 GetActNumLevel() {return nNumLevel;} static sal_uInt16 GetActNumLevel() {return nNumLevel;}
...@@ -95,8 +95,8 @@ class SwOutlineSettingsTabPage : public SfxTabPage ...@@ -95,8 +95,8 @@ class SwOutlineSettingsTabPage : public SfxTabPage
NumericField* m_pStartEdit; NumericField* m_pStartEdit;
NumberingPreview* m_pPreviewWIN; NumberingPreview* m_pPreviewWIN;
String aNoFmtName; OUString aNoFmtName;
String aSaveCollNames[MAXLEVEL]; OUString aSaveCollNames[MAXLEVEL];
SwWrtShell* pSh; SwWrtShell* pSh;
SwNumRule* pNumRule; SwNumRule* pNumRule;
OUString* pCollNames; OUString* pCollNames;
......
...@@ -287,7 +287,7 @@ OUString RetrieveLabelFromCommand( const OUString& aCmdURL ) ...@@ -287,7 +287,7 @@ OUString RetrieveLabelFromCommand( const OUString& aCmdURL )
SwSpellPopup::SwSpellPopup( SwSpellPopup::SwSpellPopup(
SwWrtShell* pWrtSh, SwWrtShell* pWrtSh,
const uno::Reference< linguistic2::XSpellAlternatives > &xAlt, const uno::Reference< linguistic2::XSpellAlternatives > &xAlt,
const String &rParaText const OUString &rParaText
) : PopupMenu( SW_RES(MN_SPELL_POPUP) ) ) : PopupMenu( SW_RES(MN_SPELL_POPUP) )
, pSh( pWrtSh ) , pSh( pWrtSh )
, xSpellAlt(xAlt) , xSpellAlt(xAlt)
...@@ -481,7 +481,7 @@ SwSpellPopup::SwSpellPopup( ...@@ -481,7 +481,7 @@ SwSpellPopup::SwSpellPopup(
const linguistic2::ProofreadingResult &rResult, const linguistic2::ProofreadingResult &rResult,
sal_Int32 nErrorInResult, sal_Int32 nErrorInResult,
const uno::Sequence< OUString > &rSuggestions, const uno::Sequence< OUString > &rSuggestions,
const String &rParaText ) : const OUString &rParaText ) :
PopupMenu( SW_RES(MN_SPELL_POPUP) ), PopupMenu( SW_RES(MN_SPELL_POPUP) ),
pSh( pWrtSh ), pSh( pWrtSh ),
xGrammarResult( rResult ), xGrammarResult( rResult ),
......
...@@ -305,7 +305,7 @@ IMPL_LINK( SwOutlineTabDialog, MenuSelectHdl, Menu *, pMenu ) ...@@ -305,7 +305,7 @@ IMPL_LINK( SwOutlineTabDialog, MenuSelectHdl, Menu *, pMenu )
return 0; return 0;
} }
sal_uInt16 SwOutlineTabDialog::GetLevel(const String &rFmtName) const sal_uInt16 SwOutlineTabDialog::GetLevel(const OUString &rFmtName) const
{ {
for(sal_uInt16 i = 0; i < MAXLEVEL; ++i) for(sal_uInt16 i = 0; i < MAXLEVEL; ++i)
{ {
......
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