convert include/svdpntv.hxx from String to OUString

And remove SdrCreateView::SetActiveLayer and SdrCreateView::GetActiveLayer,
since they are already declared in the SdrPaintView superclass.

Change-Id: I1bc87229628bd4490e7c9497c97ac5d38ae595fa
This commit is contained in:
Noel Grandin 2013-08-30 14:32:42 +02:00
parent f4b76b7b16
commit 10f96c28ba
4 changed files with 15 additions and 17 deletions

View File

@ -84,10 +84,8 @@ public:
virtual sal_Bool MouseMove(const MouseEvent& rMEvt, Window* pWin); virtual sal_Bool MouseMove(const MouseEvent& rMEvt, Window* pWin);
void SetActiveLayer(const String& rName) { aAktLayer=rName; } void SetMeasureLayer(const OUString& rName) { aMeasureLayer=rName; }
const String& GetActiveLayer() const { return aAktLayer; } const OUString& GetMeasureLayer() const { return aMeasureLayer; }
void SetMeasureLayer(const String& rName) { aMeasureLayer=rName; }
const String& GetMeasureLayer() const { return aMeasureLayer; }
// If the MeasureLayer is not set (empty string), then use the active layer for measuring. // If the MeasureLayer is not set (empty string), then use the active layer for measuring.
void SetEditMode(SdrViewEditMode eMode) { SdrDragView::SetEditMode(eMode); CheckEdgeMode(); } void SetEditMode(SdrViewEditMode eMode) { SdrDragView::SetEditMode(eMode); CheckEdgeMode(); }

View File

@ -139,8 +139,8 @@ protected:
OutputDevice* pDragWin; OutputDevice* pDragWin;
SfxStyleSheet* pDefaultStyleSheet; SfxStyleSheet* pDefaultStyleSheet;
String aAktLayer; // Aktueller Zeichenlayer OUString aAktLayer; // Aktueller Zeichenlayer
String aMeasureLayer; // Aktueller Layer fuer Bemassung OUString aMeasureLayer; // Aktueller Layer fuer Bemassung
// Container aPagV; // Liste von SdrPageViews // Container aPagV; // Liste von SdrPageViews
@ -356,11 +356,11 @@ public:
void SetLayerVisible(const OUString& rName, bool bShow=true); void SetLayerVisible(const OUString& rName, bool bShow=true);
bool IsLayerVisible(const OUString& rName) const; bool IsLayerVisible(const OUString& rName) const;
void SetLayerLocked(const String& rName, sal_Bool bLock=sal_True); void SetLayerLocked(const OUString& rName, sal_Bool bLock=sal_True);
bool IsLayerLocked(const String& rName) const; bool IsLayerLocked(const OUString& rName) const;
void SetLayerPrintable(const String& rName, sal_Bool bPrn=sal_True); void SetLayerPrintable(const OUString& rName, sal_Bool bPrn=sal_True);
bool IsLayerPrintable(const String& rName) const; bool IsLayerPrintable(const OUString& rName) const;
// PrePaint call forwarded from app windows // PrePaint call forwarded from app windows
void PrePaint(); void PrePaint();
@ -444,8 +444,8 @@ public:
virtual void InvalidateOneWin(Window& rWin); virtual void InvalidateOneWin(Window& rWin);
virtual void InvalidateOneWin(Window& rWin, const Rectangle& rRect); virtual void InvalidateOneWin(Window& rWin, const Rectangle& rRect);
void SetActiveLayer(const String& rName) { aAktLayer=rName; } void SetActiveLayer(const OUString& rName) { aAktLayer=rName; }
const String& GetActiveLayer() const { return aAktLayer; } const OUString& GetActiveLayer() const { return aAktLayer; }
// Verlassen einer betretenen Objektgruppe aller sichtbaren Seiten. // Verlassen einer betretenen Objektgruppe aller sichtbaren Seiten.
// (wie MsDos chdir ..) // (wie MsDos chdir ..)

View File

@ -407,7 +407,7 @@ sal_Bool SdrCreateView::ImpBegCreateObj(sal_uInt32 nInvent, sal_uInt16 nIdent, c
{ // otherwise no side registered! { // otherwise no side registered!
String aLay(aAktLayer); String aLay(aAktLayer);
if(nInvent == SdrInventor && nIdent == OBJ_MEASURE && aMeasureLayer.Len()) if(nInvent == SdrInventor && nIdent == OBJ_MEASURE && !aMeasureLayer.isEmpty())
{ {
aLay = aMeasureLayer; aLay = aMeasureLayer;
} }

View File

@ -529,7 +529,7 @@ bool SdrPaintView::IsLayerVisible(const OUString& rName) const
return false; return false;
} }
void SdrPaintView::SetLayerLocked(const XubString& rName, sal_Bool bLock) void SdrPaintView::SetLayerLocked(const OUString& rName, sal_Bool bLock)
{ {
if(mpPageView) if(mpPageView)
{ {
@ -537,7 +537,7 @@ void SdrPaintView::SetLayerLocked(const XubString& rName, sal_Bool bLock)
} }
} }
bool SdrPaintView::IsLayerLocked(const XubString& rName) const bool SdrPaintView::IsLayerLocked(const OUString& rName) const
{ {
if(mpPageView) if(mpPageView)
{ {
@ -547,7 +547,7 @@ bool SdrPaintView::IsLayerLocked(const XubString& rName) const
return false; return false;
} }
void SdrPaintView::SetLayerPrintable(const XubString& rName, sal_Bool bPrn) void SdrPaintView::SetLayerPrintable(const OUString& rName, sal_Bool bPrn)
{ {
if(mpPageView) if(mpPageView)
{ {
@ -555,7 +555,7 @@ void SdrPaintView::SetLayerPrintable(const XubString& rName, sal_Bool bPrn)
} }
} }
bool SdrPaintView::IsLayerPrintable(const XubString& rName) const bool SdrPaintView::IsLayerPrintable(const OUString& rName) const
{ {
if(mpPageView) if(mpPageView)
{ {