Kaydet (Commit) 5a739fba authored tarafından Caolán McNamara's avatar Caolán McNamara

rename back now originals are fully replaced

Change-Id: I1911055f9bf6bd636561209cadfb1dbf5650affa
Reviewed-on: https://gerrit.libreoffice.org/60057
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 587899f9
...@@ -96,7 +96,7 @@ private: ...@@ -96,7 +96,7 @@ private:
bool mbDelPrinter : 1; bool mbDelPrinter : 1;
bool mbEnableDrawingLayerFillStyles : 1; bool mbEnableDrawingLayerFillStyles : 1;
PageWindow m_aBspWin; SvxPageWindow m_aBspWin;
// paper format // paper format
std::unique_ptr<SvxPaperSizeListBox> m_xPaperSizeBox; std::unique_ptr<SvxPaperSizeListBox> m_xPaperSizeBox;
......
...@@ -68,7 +68,7 @@ protected: ...@@ -68,7 +68,7 @@ protected:
bool mbDisableQueryBox : 1; bool mbDisableQueryBox : 1;
bool mbEnableDrawingLayerFillStyles : 1; bool mbEnableDrawingLayerFillStyles : 1;
PageWindow m_aBspWin; SvxPageWindow m_aBspWin;
std::unique_ptr<weld::Label> m_xPageLbl; std::unique_ptr<weld::Label> m_xPageLbl;
std::unique_ptr<weld::CheckButton> m_xTurnOnBox; std::unique_ptr<weld::CheckButton> m_xTurnOnBox;
std::unique_ptr<weld::CheckButton> m_xCntSharedBox; std::unique_ptr<weld::CheckButton> m_xCntSharedBox;
......
...@@ -28,7 +28,7 @@ class SvxBoxItem; ...@@ -28,7 +28,7 @@ class SvxBoxItem;
enum class SvxPageUsage; enum class SvxPageUsage;
enum class SvxFrameDirection; enum class SvxFrameDirection;
class SVX_DLLPUBLIC PageWindow : public weld::CustomWidgetController class SVX_DLLPUBLIC SvxPageWindow : public weld::CustomWidgetController
{ {
private: private:
Size aWinSize; Size aWinSize;
...@@ -76,9 +76,9 @@ protected: ...@@ -76,9 +76,9 @@ protected:
const tools::Rectangle& rPaintRange, const tools::Rectangle& rDefineRange); const tools::Rectangle& rPaintRange, const tools::Rectangle& rDefineRange);
public: public:
PageWindow(); SvxPageWindow();
virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override; virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
virtual ~PageWindow() override; virtual ~SvxPageWindow() override;
void setHeaderFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes) void setHeaderFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes)
{ {
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define CELL_WIDTH 1600L #define CELL_WIDTH 1600L
#define CELL_HEIGHT 800L #define CELL_HEIGHT 800L
PageWindow::PageWindow() : SvxPageWindow::SvxPageWindow() :
aWinSize(), aWinSize(),
aSize(), aSize(),
nTop(0), nTop(0),
...@@ -66,11 +66,11 @@ PageWindow::PageWindow() : ...@@ -66,11 +66,11 @@ PageWindow::PageWindow() :
{ {
} }
PageWindow::~PageWindow() SvxPageWindow::~SvxPageWindow()
{ {
} }
void PageWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) void SvxPageWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&)
{ {
rRenderContext.Push(PushFlags::MAPMODE); rRenderContext.Push(PushFlags::MAPMODE);
rRenderContext.SetMapMode(MapMode(MapUnit::MapTwip)); rRenderContext.SetMapMode(MapMode(MapUnit::MapTwip));
...@@ -127,7 +127,7 @@ void PageWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangl ...@@ -127,7 +127,7 @@ void PageWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangl
rRenderContext.Pop(); rRenderContext.Pop();
} }
void PageWindow::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg, const bool bSecond, const bool bEnabled) void SvxPageWindow::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg, const bool bSecond, const bool bEnabled)
{ {
const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings(); const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
const Color& rFieldColor = rStyleSettings.GetFieldColor(); const Color& rFieldColor = rStyleSettings.GetFieldColor();
...@@ -320,7 +320,7 @@ void PageWindow::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg, ...@@ -320,7 +320,7 @@ void PageWindow::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg,
} }
} }
void PageWindow::drawFillAttributes(vcl::RenderContext& rRenderContext, void SvxPageWindow::drawFillAttributes(vcl::RenderContext& rRenderContext,
const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes, const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes,
const tools::Rectangle& rPaintRange, const tools::Rectangle& rPaintRange,
const tools::Rectangle& rDefineRange) const tools::Rectangle& rDefineRange)
...@@ -378,22 +378,22 @@ void PageWindow::drawFillAttributes(vcl::RenderContext& rRenderContext, ...@@ -378,22 +378,22 @@ void PageWindow::drawFillAttributes(vcl::RenderContext& rRenderContext,
} }
void PageWindow::EnableFrameDirection(bool bEnable) void SvxPageWindow::EnableFrameDirection(bool bEnable)
{ {
bFrameDirection = bEnable; bFrameDirection = bEnable;
} }
void PageWindow::SetFrameDirection(SvxFrameDirection nDirection) void SvxPageWindow::SetFrameDirection(SvxFrameDirection nDirection)
{ {
nFrameDirection = nDirection; nFrameDirection = nDirection;
} }
void PageWindow::ResetBackground() void SvxPageWindow::ResetBackground()
{ {
bResetBackground = true; bResetBackground = true;
} }
void PageWindow::SetDrawingArea(weld::DrawingArea* pDrawingArea) void SvxPageWindow::SetDrawingArea(weld::DrawingArea* pDrawingArea)
{ {
OutputDevice& rRefDevice = pDrawingArea->get_ref_device(); OutputDevice& rRefDevice = pDrawingArea->get_ref_device();
// Count in Twips by default // Count in Twips by default
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <svx/unobrushitemhelper.hxx> #include <svx/unobrushitemhelper.hxx>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
void PageExample::UpdateExample( const SfxItemSet& rSet ) void SwPageExample::UpdateExample( const SfxItemSet& rSet )
{ {
if (SfxItemState::DEFAULT <= rSet.GetItemState(RES_FRAMEDIR)) if (SfxItemState::DEFAULT <= rSet.GetItemState(RES_FRAMEDIR))
{ {
...@@ -196,7 +196,7 @@ void PageExample::UpdateExample( const SfxItemSet& rSet ) ...@@ -196,7 +196,7 @@ void PageExample::UpdateExample( const SfxItemSet& rSet )
void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg, void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg,
const bool bSecond, const bool bEnabled) const bool bSecond, const bool bEnabled)
{ {
PageExample::DrawPage(rRenderContext, rOrg, bSecond, bEnabled); SwPageExample::DrawPage(rRenderContext, rOrg, bSecond, bEnabled);
if (!pColMgr) if (!pColMgr)
return; return;
sal_uInt16 nColumnCount = pColMgr->GetCount(); sal_uInt16 nColumnCount = pColMgr->GetCount();
...@@ -506,7 +506,7 @@ SwPageGridExample::SwPageGridExample() ...@@ -506,7 +506,7 @@ SwPageGridExample::SwPageGridExample()
void SwPageGridExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg, void SwPageGridExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOrg,
const bool bSecond, const bool bEnabled) const bool bSecond, const bool bEnabled)
{ {
PageExample::DrawPage(rRenderContext, rOrg, bSecond, bEnabled); SwPageExample::DrawPage(rRenderContext, rOrg, bSecond, bEnabled);
if (!pGridItem || !pGridItem->GetGridType()) if (!pGridItem || !pGridItem->GetGridType())
return; return;
...@@ -609,7 +609,7 @@ void SwPageGridExample::UpdateExample( const SfxItemSet& rSet ) ...@@ -609,7 +609,7 @@ void SwPageGridExample::UpdateExample( const SfxItemSet& rSet )
//get the grid information //get the grid information
if (SfxItemState::DEFAULT <= rSet.GetItemState(RES_TEXTGRID)) if (SfxItemState::DEFAULT <= rSet.GetItemState(RES_TEXTGRID))
pGridItem.reset(static_cast<SwTextGridItem*>(rSet.Get(RES_TEXTGRID).Clone())); pGridItem.reset(static_cast<SwTextGridItem*>(rSet.Get(RES_TEXTGRID).Clone()));
PageExample::UpdateExample(rSet); SwPageExample::UpdateExample(rSet);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
class SwColMgr; class SwColMgr;
class SfxItemSet; class SfxItemSet;
class SW_DLLPUBLIC PageExample : public PageWindow class SW_DLLPUBLIC SwPageExample : public SvxPageWindow
{ {
protected: protected:
bool m_bVertical; bool m_bVertical;
public: public:
PageExample() SwPageExample()
: m_bVertical(false) : m_bVertical(false)
{ {
SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4)); SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));
...@@ -43,7 +43,7 @@ public: ...@@ -43,7 +43,7 @@ public:
void UpdateExample( const SfxItemSet& rSet ); void UpdateExample( const SfxItemSet& rSet );
}; };
class SW_DLLPUBLIC SwPageGridExample : public PageExample class SW_DLLPUBLIC SwPageGridExample : public SwPageExample
{ {
std::unique_ptr<SwTextGridItem> pGridItem; std::unique_ptr<SwTextGridItem> pGridItem;
protected: protected:
...@@ -58,11 +58,11 @@ public: ...@@ -58,11 +58,11 @@ public:
}; };
class SW_DLLPUBLIC SwColExample : public PageExample class SW_DLLPUBLIC SwColExample : public SwPageExample
{ {
SwColMgr* pColMgr; SwColMgr* pColMgr;
using PageExample::UpdateExample; using SwPageExample::UpdateExample;
protected: protected:
virtual void DrawPage(vcl::RenderContext& rRenderContext, virtual void DrawPage(vcl::RenderContext& rRenderContext,
...@@ -79,7 +79,7 @@ public: ...@@ -79,7 +79,7 @@ public:
void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr ) void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr )
{ {
pColMgr = pMgr; pColMgr = pMgr;
PageExample::UpdateExample(rSet); SwPageExample::UpdateExample(rSet);
} }
}; };
......
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