Kaydet (Commit) 698153d9 authored tarafından Miklos Vajna's avatar Miklos Vajna

Indentation fixes

Change-Id: I903fcd36878cd0b74757805bcbdb414feb713d7b
üst 313fe1f7
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
*/ */
static SwFrameFormat* getOtherTextBoxFormat(const SwFrameFormat* pFormat, sal_uInt16 nType); static SwFrameFormat* getOtherTextBoxFormat(const SwFrameFormat* pFormat, sal_uInt16 nType);
/// If we have an associated TextFrame, then return that. /// If we have an associated TextFrame, then return that.
static SwFrameFormat* getOtherTextBoxFormat(css::uno::Reference<css::drawing::XShape> const & xShape); static SwFrameFormat* getOtherTextBoxFormat(css::uno::Reference<css::drawing::XShape> const& xShape);
/// Return the textbox rectangle of a draw shape (in twips). /// Return the textbox rectangle of a draw shape (in twips).
static Rectangle getTextRectangle(SwFrameFormat* pShape, bool bAbsolute = true); static Rectangle getTextRectangle(SwFrameFormat* pShape, bool bAbsolute = true);
......
...@@ -106,7 +106,7 @@ public: ...@@ -106,7 +106,7 @@ public:
const SwRangeRedline* GetRedline() const {return pRedline;} const SwRangeRedline* GetRedline() const {return pRedline;}
protected: protected:
//SwClient //SwClient
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override; virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
}; };
#endif #endif
......
...@@ -85,7 +85,7 @@ public: ...@@ -85,7 +85,7 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override;
protected: protected:
//SwClient //SwClient
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override; virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
}; };
#endif #endif
......
...@@ -58,7 +58,7 @@ void SwTextBoxHelper::create(SwFrameFormat* pShape) ...@@ -58,7 +58,7 @@ void SwTextBoxHelper::create(SwFrameFormat* pShape)
// Link FLY and DRAW formats, so it becomes a text box (needed for syncProperty calls). // Link FLY and DRAW formats, so it becomes a text box (needed for syncProperty calls).
uno::Reference<text::XTextFrame> xRealTextFrame(xTextFrame, uno::UNO_QUERY); uno::Reference<text::XTextFrame> xRealTextFrame(xTextFrame, uno::UNO_QUERY);
SwXTextFrame* pTextFrame = dynamic_cast<SwXTextFrame *>(xRealTextFrame.get()); SwXTextFrame* pTextFrame = dynamic_cast<SwXTextFrame*>(xRealTextFrame.get());
assert(nullptr != pTextFrame); assert(nullptr != pTextFrame);
SwFrameFormat* pFormat = pTextFrame->GetFrameFormat(); SwFrameFormat* pFormat = pTextFrame->GetFrameFormat();
...@@ -128,24 +128,24 @@ void SwTextBoxHelper::destroy(SwFrameFormat* pShape) ...@@ -128,24 +128,24 @@ void SwTextBoxHelper::destroy(SwFrameFormat* pShape)
bool SwTextBoxHelper::isTextBox(const SwFrameFormat* pShape, sal_uInt16 nType) bool SwTextBoxHelper::isTextBox(const SwFrameFormat* pShape, sal_uInt16 nType)
{ {
assert(nType == RES_FLYFRMFMT || nType == RES_DRAWFRMFMT); assert(nType == RES_FLYFRMFMT || nType == RES_DRAWFRMFMT);
if (!pShape || pShape->Which() != nType || !pShape->GetAttrSet().HasItem(RES_CNTNT)) if (!pShape || pShape->Which() != nType || !pShape->GetAttrSet().HasItem(RES_CNTNT))
return false; return false;
sal_uInt16 nOtherType = (pShape->Which() == RES_FLYFRMFMT) ? RES_DRAWFRMFMT : RES_FLYFRMFMT; sal_uInt16 nOtherType = (pShape->Which() == RES_FLYFRMFMT) ? RES_DRAWFRMFMT : RES_FLYFRMFMT;
SwFrameFormat* pFormat = pShape->GetOtherTextBoxFormat(); SwFrameFormat* pFormat = pShape->GetOtherTextBoxFormat();
if (!pFormat) if (!pFormat)
return false; return false;
assert(pFormat->Which() == nOtherType); assert(pFormat->Which() == nOtherType);
if (pFormat->Which() != nOtherType) if (pFormat->Which() != nOtherType)
return false; return false;
const SwFormatContent& rContent = pShape->GetContent(); const SwFormatContent& rContent = pShape->GetContent();
if (!pFormat->GetAttrSet().HasItem(RES_CNTNT) || pFormat->GetContent() != rContent) if (!pFormat->GetAttrSet().HasItem(RES_CNTNT) || pFormat->GetContent() != rContent)
return false; return false;
return true; return true;
} }
bool SwTextBoxHelper::isTextBox(const SdrObject* pObject) bool SwTextBoxHelper::isTextBox(const SdrObject* pObject)
...@@ -226,7 +226,7 @@ sal_Int32 SwTextBoxHelper::getOrdNum(const SdrObject* pObject) ...@@ -226,7 +226,7 @@ sal_Int32 SwTextBoxHelper::getOrdNum(const SdrObject* pObject)
void SwTextBoxHelper::getShapeWrapThrough(const SwFrameFormat* pTextBox, bool& rWrapThrough) void SwTextBoxHelper::getShapeWrapThrough(const SwFrameFormat* pTextBox, bool& rWrapThrough)
{ {
SwFrameFormat *pShape = SwTextBoxHelper::getOtherTextBoxFormat(pTextBox, RES_FLYFRMFMT); SwFrameFormat* pShape = SwTextBoxHelper::getOtherTextBoxFormat(pTextBox, RES_FLYFRMFMT);
if (pShape) if (pShape)
rWrapThrough = pShape->GetSurround().GetSurround() == SURROUND_THROUGHT; rWrapThrough = pShape->GetSurround().GetSurround() == SURROUND_THROUGHT;
} }
...@@ -238,13 +238,13 @@ SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(const SwFrameFormat* pForm ...@@ -238,13 +238,13 @@ SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(const SwFrameFormat* pForm
return pFormat->GetOtherTextBoxFormat(); return pFormat->GetOtherTextBoxFormat();
} }
SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(uno::Reference<drawing::XShape> const & xShape) SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(uno::Reference<drawing::XShape> const& xShape)
{ {
SwXShape* pShape = dynamic_cast<SwXShape*>(xShape.get()); SwXShape* pShape = dynamic_cast<SwXShape*>(xShape.get());
if (!pShape) if (!pShape)
return nullptr; return nullptr;
SwFrameFormat *pFormat = pShape->GetFrameFormat(); SwFrameFormat* pFormat = pShape->GetFrameFormat();
return getOtherTextBoxFormat(pFormat, RES_DRAWFRMFMT); return getOtherTextBoxFormat(pFormat, RES_DRAWFRMFMT);
} }
......
...@@ -115,7 +115,7 @@ void SigningTest::setUp() ...@@ -115,7 +115,7 @@ void SigningTest::setUp()
// Set up cert8.db in workdir/CppunitTest/ // Set up cert8.db in workdir/CppunitTest/
OUString aSourceDir = m_directories.getURLFromSrc(DATA_DIRECTORY); OUString aSourceDir = m_directories.getURLFromSrc(DATA_DIRECTORY);
OUString aTargetDir = m_directories.getURLFromWorkdir( OUString aTargetDir = m_directories.getURLFromWorkdir(
"/CppunitTest/xmlsecurity_signing.test.user/"); "/CppunitTest/xmlsecurity_signing.test.user/");
osl::File::copy(aSourceDir + "cert8.db", aTargetDir + "cert8.db"); osl::File::copy(aSourceDir + "cert8.db", aTargetDir + "cert8.db");
OUString aTargetPath; OUString aTargetPath;
osl::FileBase::getSystemPathFromFileURL(aTargetDir, aTargetPath); osl::FileBase::getSystemPathFromFileURL(aTargetDir, aTargetPath);
......
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