Kaydet (Commit) 92474c05 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: indentation fixes

Change-Id: I6cdc7cff7c45e58c9b684ff53a8dd84af7cf0c83
üst 99f05d99
......@@ -233,9 +233,9 @@ void ClassificationCategoriesController::removeEntries()
}
}
// WB_NOLABEL means here that the control won't be replaced with a label
// when it wouldn't fit the available space.
ClassificationControl::ClassificationControl(vcl::Window* pParent)
// WB_NOLABEL means here that the control won't be replaced with a label
// when it wouldn't fit the available space.
: Window(pParent, WB_DIALOGCONTROL | WB_NOLABEL)
{
m_pLabels[SfxClassificationPolicyType::IntellectualProperty] = VclPtr<FixedText>::Create(this, WB_CENTER);
......
......@@ -56,7 +56,7 @@ public:
enum TabStopReferencePolicy {TABSTOPS_RELATIVE_TO_INDENT, TABSTOPS_RELATIVE_TO_PAGE};
/**
/**
* @param indexOfSectionNode
* The index of the section node. It is needed to determine whether a page description was given by a node
* before the tox section.
......
......@@ -414,7 +414,7 @@ public:
bool GotoPrevFly( GotoObjFlags eType = GotoObjFlags::FlyAny)
{ return GotoObj( false, eType); }
/// Iterate over flys - for Basic-collections.
/// Iterate over flys - for Basic-collections.
size_t GetFlyCount( FlyCntType eType = FLYCNTTYPE_ALL, bool bIgnoreTextBoxes = false ) const;
const SwFrameFormat* GetFlyNum(size_t nIdx, FlyCntType eType = FLYCNTTYPE_ALL, bool bIgnoreTextBoxes = false) const;
......
......@@ -72,16 +72,16 @@ public:
void Justify();
SwRect &Union( const SwRect& rRect );
SwRect &Intersection( const SwRect& rRect );
SwRect &Union( const SwRect& rRect );
SwRect &Intersection( const SwRect& rRect );
// Same as Intersection, only assume that Rects are overlapping!
SwRect &Intersection_( const SwRect &rRect );
// Same as Intersection, only assume that Rects are overlapping!
SwRect &Intersection_( const SwRect &rRect );
bool IsInside( const Point& rPOINT ) const;
bool IsNear(const Point& rPoint, long nTolerance ) const;
bool IsInside( const SwRect& rRect ) const;
bool IsOver( const SwRect& rRect ) const;
bool IsInside( const Point& rPOINT ) const;
bool IsNear(const Point& rPoint, long nTolerance ) const;
bool IsInside( const SwRect& rRect ) const;
bool IsOver( const SwRect& rRect ) const;
inline bool HasArea() const;
inline bool IsEmpty() const;
inline void Clear();
......
......@@ -114,7 +114,7 @@ public:
virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
//XShape
//XShape
virtual css::awt::Point SAL_CALL getPosition( ) throw(css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setPosition( const css::awt::Point& aPosition ) throw(css::uno::RuntimeException, std::exception) override;
virtual css::awt::Size SAL_CALL getSize( ) throw(css::uno::RuntimeException, std::exception) override;
......
......@@ -53,9 +53,9 @@ MSOWordCommandConvertor::MSOWordCommandConvertor()
msoToOOcmd[ 0x20b ] = ".uno:CloseDoc";
msoToOOcmd[ 0x50 ] = ".uno:Open";
// mso tcid to ooo command string
// mso tcid to ooo command string
// #FIXME and *HUNDREDS* of id's to added here
tcidToOOcmd[ 0x9d9 ] = ".uno:Print";
tcidToOOcmd[ 0x9d9 ] = ".uno:Print";
}
OUString MSOWordCommandConvertor::MSOCommandToOOCommand( sal_Int16 key )
......
......@@ -1790,21 +1790,21 @@ bool SwPostItMgr::ScrollbarHit(const unsigned long aPage,const Point &aPoint)
void SwPostItMgr::CorrectPositions()
{
if ( mbWaitingForCalcRects || mbLayouting || mvPostItFields.empty() )
return;
// find first valid note
SwSidebarWin *pFirstPostIt = nullptr;
for(SwSidebarItem_iterator i = mvPostItFields.begin(); i != mvPostItFields.end() ; ++i)
{
pFirstPostIt = (*i)->pPostIt;
if (pFirstPostIt)
break;
}
//if we have not found a valid note, forget about it and leave
if (!pFirstPostIt)
return;
if ( mbWaitingForCalcRects || mbLayouting || mvPostItFields.empty() )
return;
// find first valid note
SwSidebarWin *pFirstPostIt = nullptr;
for(SwSidebarItem_iterator i = mvPostItFields.begin(); i != mvPostItFields.end() ; ++i)
{
pFirstPostIt = (*i)->pPostIt;
if (pFirstPostIt)
break;
}
//if we have not found a valid note, forget about it and leave
if (!pFirstPostIt)
return;
// yeah, I know, if this is a left page it could be wrong, but finding the page and the note is probably not even faster than just doing it
// check, if anchor overlay object exists.
......
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