Kaydet (Commit) 6d3507b0 authored tarafından Miklos Vajna's avatar Miklos Vajna

SfxTabDialog ctors: take an OUString

Change-Id: I91b9b2ffd19b2412ac01dd12429d6460b4c4812c
üst 949b6ef2
...@@ -30,8 +30,8 @@ SvxBorderBackgroundDlg::SvxBorderBackgroundDlg(vcl::Window *pParent, ...@@ -30,8 +30,8 @@ SvxBorderBackgroundDlg::SvxBorderBackgroundDlg(vcl::Window *pParent,
bool bEnableDrawingLayerFillStyles) bool bEnableDrawingLayerFillStyles)
: SfxTabDialog(pParent, : SfxTabDialog(pParent,
bEnableDrawingLayerFillStyles bEnableDrawingLayerFillStyles
? OString("BorderAreaTransparencyDialog") ? OUString("BorderAreaTransparencyDialog")
: OString("BorderBackgroundDialog"), : OUString("BorderBackgroundDialog"),
bEnableDrawingLayerFillStyles bEnableDrawingLayerFillStyles
? OUString("cui/ui/borderareatransparencydialog.ui") ? OUString("cui/ui/borderareatransparencydialog.ui")
: OUString("cui/ui/borderbackgrounddialog.ui"), : OUString("cui/ui/borderbackgrounddialog.ui"),
......
...@@ -37,7 +37,7 @@ protected: ...@@ -37,7 +37,7 @@ protected:
virtual const SfxItemSet* GetRefreshedSet() SAL_OVERRIDE; virtual const SfxItemSet* GetRefreshedSet() SAL_OVERRIDE;
public: public:
SfxStyleDialog(vcl::Window* pParent, const OString& rID, SfxStyleDialog(vcl::Window* pParent, const OUString& rID,
const OUString& rUIXMLDescription, SfxStyleSheetBase&); const OUString& rUIXMLDescription, SfxStyleSheetBase&);
virtual ~SfxStyleDialog(); virtual ~SfxStyleDialog();
......
...@@ -124,10 +124,10 @@ protected: ...@@ -124,10 +124,10 @@ protected:
public: public:
SfxTabDialog(vcl::Window* pParent, SfxTabDialog(vcl::Window* pParent,
const OString& rID, const OUString& rUIXMLDescription, const OUString& rID, const OUString& rUIXMLDescription,
const SfxItemSet * = 0, bool bEditFmt = false); const SfxItemSet * = 0, bool bEditFmt = false);
SfxTabDialog(SfxViewFrame *pViewFrame, vcl::Window* pParent, SfxTabDialog(SfxViewFrame *pViewFrame, vcl::Window* pParent,
const OString& rID, const OUString& rUIXMLDescription, const OUString& rID, const OUString& rUIXMLDescription,
const SfxItemSet * = 0, bool bEditFmt = false); const SfxItemSet * = 0, bool bEditFmt = false);
virtual ~SfxTabDialog(); virtual ~SfxTabDialog();
......
...@@ -37,9 +37,9 @@ namespace rptui ...@@ -37,9 +37,9 @@ namespace rptui
|* |*
\************************************************************************/ \************************************************************************/
ORptPageDialog::ORptPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, const OString &rDialog) ORptPageDialog::ORptPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, const OUString &rDialog)
: SfxTabDialog (pParent, rDialog, OUString("modules/dbreport/ui/") + : SfxTabDialog (pParent, rDialog, OUString("modules/dbreport/ui/") +
OStringToOUString(rDialog, RTL_TEXTENCODING_UTF8).toAsciiLowerCase() + rDialog.toAsciiLowerCase() +
OUString(".ui"), pAttr) OUString(".ui"), pAttr)
, rOutAttrs(*pAttr) , rOutAttrs(*pAttr)
{ {
......
...@@ -37,7 +37,7 @@ private: ...@@ -37,7 +37,7 @@ private:
void operator =(const ORptPageDialog&); void operator =(const ORptPageDialog&);
public: public:
ORptPageDialog(vcl::Window* pParent, const SfxItemSet* pAttr, const OString &rDialog); ORptPageDialog(vcl::Window* pParent, const SfxItemSet* pAttr, const OUString &rDialog);
}; };
} // namespace rptui } // namespace rptui
......
...@@ -2498,8 +2498,8 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _ ...@@ -2498,8 +2498,8 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _
{ // want the dialog to be destroyed before our set { // want the dialog to be destroyed before our set
ORptPageDialog aDlg(getView(), pDescriptor.get(),_xSection.is() ORptPageDialog aDlg(getView(), pDescriptor.get(),_xSection.is()
? OString("BackgroundDialog") ? OUString("BackgroundDialog")
: OString("PageDialog")); : OUString("PageDialog"));
if (RET_OK == aDlg.Execute()) if (RET_OK == aDlg.Execute())
{ {
......
...@@ -203,7 +203,7 @@ private: ...@@ -203,7 +203,7 @@ private:
ScRefHdlrImplBase( TParentWindow* pParent, TResId nResId, const TArg &rArg, SfxBindings *pB = NULL ); ScRefHdlrImplBase( TParentWindow* pParent, TResId nResId, const TArg &rArg, SfxBindings *pB = NULL );
template<class TParentWindow, class TArg> template<class TParentWindow, class TArg>
ScRefHdlrImplBase( TParentWindow* pParent, const OString& rID, const OUString& rUIXMLDescription, const TArg &rArg, SfxBindings *pB = NULL ); ScRefHdlrImplBase( TParentWindow* pParent, const OUString& rID, const OUString& rUIXMLDescription, const TArg &rArg, SfxBindings *pB = NULL );
virtual ~ScRefHdlrImplBase(); virtual ~ScRefHdlrImplBase();
...@@ -238,7 +238,7 @@ ScRefHdlrImplBase<TWindow,bBindRef>::ScRefHdlrImplBase( TParentWindow* pParent, ...@@ -238,7 +238,7 @@ ScRefHdlrImplBase<TWindow,bBindRef>::ScRefHdlrImplBase( TParentWindow* pParent,
template<class TWindow, bool bBindRef > template<class TWindow, bool bBindRef >
template<class TParentWindow, class TArg> template<class TParentWindow, class TArg>
ScRefHdlrImplBase<TWindow,bBindRef>::ScRefHdlrImplBase( TParentWindow* pParent, const OString& rID, const OUString& rUIXMLDescription, const TArg &rArg, SfxBindings *pB ) ScRefHdlrImplBase<TWindow,bBindRef>::ScRefHdlrImplBase( TParentWindow* pParent, const OUString& rID, const OUString& rUIXMLDescription, const TArg &rArg, SfxBindings *pB )
: TWindow( pParent, rID, rUIXMLDescription, rArg ), : TWindow( pParent, rID, rUIXMLDescription, rArg ),
ScRefHandler( *static_cast<TWindow*>(this), pB, bBindRef ) ScRefHandler( *static_cast<TWindow*>(this), pB, bBindRef )
{ {
......
...@@ -31,7 +31,7 @@ class ScHFEditDlg : public SfxTabDialog ...@@ -31,7 +31,7 @@ class ScHFEditDlg : public SfxTabDialog
protected: protected:
ScHFEditDlg(SfxViewFrame* pFrame, vcl::Window* pParent, ScHFEditDlg(SfxViewFrame* pFrame, vcl::Window* pParent,
const SfxItemSet& rCoreSet, const OUString& rPageStyle, const SfxItemSet& rCoreSet, const OUString& rPageStyle,
const OString& rID, const OUString& rUIXMLDescription ); const OUString& rID, const OUString& rUIXMLDescription );
public: public:
virtual void PageCreated( sal_uInt16 nId, SfxTabPage& rPage ) SAL_OVERRIDE; virtual void PageCreated( sal_uInt16 nId, SfxTabPage& rPage ) SAL_OVERRIDE;
}; };
......
...@@ -45,7 +45,7 @@ ScHFEditDlg::ScHFEditDlg( SfxViewFrame* pFrameP, ...@@ -45,7 +45,7 @@ ScHFEditDlg::ScHFEditDlg( SfxViewFrame* pFrameP,
vcl::Window* pParent, vcl::Window* pParent,
const SfxItemSet& rCoreSet, const SfxItemSet& rCoreSet,
const OUString& rPageStyle, const OUString& rPageStyle,
const OString& rID, const OUString& rUIXMLDescription ) const OUString& rID, const OUString& rUIXMLDescription )
: SfxTabDialog( pFrameP, pParent, rID, rUIXMLDescription, &rCoreSet ) : SfxTabDialog( pFrameP, pParent, rID, rUIXMLDescription, &rCoreSet )
{ {
eNumType = static_cast<const SvxPageItem&>(rCoreSet.Get(ATTR_PAGE)).GetNumType(); eNumType = static_cast<const SvxPageItem&>(rCoreSet.Get(ATTR_PAGE)).GetNumType();
......
...@@ -45,8 +45,8 @@ ScStyleDlg::ScStyleDlg( vcl::Window* pParent, ...@@ -45,8 +45,8 @@ ScStyleDlg::ScStyleDlg( vcl::Window* pParent,
: SfxStyleDialog ( pParent, : SfxStyleDialog ( pParent,
nRscId == RID_SCDLG_STYLES_PAR ? nRscId == RID_SCDLG_STYLES_PAR ?
OString("ParaTemplateDialog") : OUString("ParaTemplateDialog") :
OString("PageTemplateDialog"), OUString("PageTemplateDialog"),
nRscId == RID_SCDLG_STYLES_PAR ? nRscId == RID_SCDLG_STYLES_PAR ?
OUString("modules/scalc/ui/paratemplatedialog.ui") : OUString("modules/scalc/ui/paratemplatedialog.ui") :
OUString("modules/scalc/ui/pagetemplatedialog.ui"), OUString("modules/scalc/ui/pagetemplatedialog.ui"),
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
SfxStyleDialog::SfxStyleDialog SfxStyleDialog::SfxStyleDialog
( (
vcl::Window* pParent, // Parent vcl::Window* pParent, // Parent
const OString& rID, const OUString& rUIXMLDescription, const OUString& rID, const OUString& rUIXMLDescription,
SfxStyleSheetBase& rStyle // stylesheet to be processed SfxStyleSheetBase& rStyle // stylesheet to be processed
) )
......
...@@ -311,12 +311,12 @@ SfxTabDialog::SfxTabDialog ...@@ -311,12 +311,12 @@ SfxTabDialog::SfxTabDialog
( (
SfxViewFrame* pViewFrame, // Frame, to which the Dialog belongs SfxViewFrame* pViewFrame, // Frame, to which the Dialog belongs
vcl::Window* pParent, // Parent Window vcl::Window* pParent, // Parent Window
const OString& rID, const OUString& rUIXMLDescription, //Dialog Name, Dialog .ui path const OUString& rID, const OUString& rUIXMLDescription, //Dialog Name, Dialog .ui path
const SfxItemSet* pItemSet, // Itemset with the data; const SfxItemSet* pItemSet, // Itemset with the data;
// can be NULL, when Pages are onDemand // can be NULL, when Pages are onDemand
bool bEditFmt // when yes -> additional Button for standard bool bEditFmt // when yes -> additional Button for standard
) )
: TabDialog(pParent, rID, rUIXMLDescription) : TabDialog(pParent, OUStringToOString(rID, RTL_TEXTENCODING_UTF8), rUIXMLDescription)
, pFrame(pViewFrame) , pFrame(pViewFrame)
, pSet(pItemSet) , pSet(pItemSet)
, pOutSet(0) , pOutSet(0)
...@@ -340,12 +340,12 @@ SfxTabDialog::SfxTabDialog ...@@ -340,12 +340,12 @@ SfxTabDialog::SfxTabDialog
( (
vcl::Window* pParent, // Parent Window vcl::Window* pParent, // Parent Window
const OString& rID, const OUString& rUIXMLDescription, //Dialog Name, Dialog .ui path const OUString& rID, const OUString& rUIXMLDescription, //Dialog Name, Dialog .ui path
const SfxItemSet* pItemSet, // Itemset with the data; const SfxItemSet* pItemSet, // Itemset with the data;
// can be NULL, when Pages are onDemand // can be NULL, when Pages are onDemand
bool bEditFmt // when yes -> additional Button for standard bool bEditFmt // when yes -> additional Button for standard
) )
: TabDialog(pParent, rID, rUIXMLDescription) : TabDialog(pParent, OUStringToOString(rID, RTL_TEXTENCODING_UTF8), rUIXMLDescription)
, pFrame(0) , pFrame(0)
, pSet(pItemSet) , pSet(pItemSet)
, pOutSet(0) , pOutSet(0)
......
...@@ -74,7 +74,7 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent, ...@@ -74,7 +74,7 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent,
SwWrtShell* pActShell, SwWrtShell* pActShell,
bool bNew) bool bNew)
: SfxStyleDialog(pParent, : SfxStyleDialog(pParent,
OString("TemplateDialog") + OString::number(nRegion), OUString("TemplateDialog") + OUString::number(nRegion),
OUString("modules/swriter/ui/templatedialog") + OUString("modules/swriter/ui/templatedialog") +
OUString::number(nRegion) + ".ui", OUString::number(nRegion) + ".ui",
rBase) rBase)
......
...@@ -53,7 +53,7 @@ SwFrmDlg::SwFrmDlg( SfxViewFrame* pViewFrame, ...@@ -53,7 +53,7 @@ SwFrmDlg::SwFrmDlg( SfxViewFrame* pViewFrame,
const OString& sDefPage, const OString& sDefPage,
const OUString* pStr) const OUString* pStr)
: SfxTabDialog(pViewFrame, pParent, OUStringToOString(sResType, RTL_TEXTENCODING_UTF8), : SfxTabDialog(pViewFrame, pParent, sResType,
OUString("modules/swriter/ui/") + OUString("modules/swriter/ui/") +
sResType.toAsciiLowerCase() + sResType.toAsciiLowerCase() +
(".ui"), &rCoreSet, pStr != 0) (".ui"), &rCoreSet, pStr != 0)
......
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