Kaydet (Commit) d47f037a authored tarafından Tamás Zolnai's avatar Tamás Zolnai

MSForms: Add some extra comments for the new code

Change-Id: I4b70eb2164032623a12f9e703c660eca1d6768ec
Reviewed-on: https://gerrit.libreoffice.org/68965
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst f8eef913
...@@ -1225,7 +1225,7 @@ void Test::testDropDownFormField() ...@@ -1225,7 +1225,7 @@ void Test::testDropDownFormField()
CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(0), vListEntries.getLength()); CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(0), vListEntries.getLength());
CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(-1), nSelection); CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(-1), nSelection);
} }
else else // The second one has list and also a selected item
{ {
CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(4), vListEntries.getLength()); CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(4), vListEntries.getLength());
CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(1), nSelection); CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(1), nSelection);
......
...@@ -98,6 +98,7 @@ private: ...@@ -98,6 +98,7 @@ private:
virtual void RedoImpl( ::sw::UndoRedoContext & ) override; virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
}; };
/// Handling undo / redo of checkbox and drop-down form field insertion
class SwUndoInsNoTextFieldmark : public SwUndo class SwUndoInsNoTextFieldmark : public SwUndo
{ {
private: private:
...@@ -110,6 +111,7 @@ public: ...@@ -110,6 +111,7 @@ public:
virtual void RedoImpl( ::sw::UndoRedoContext & ) override; virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
}; };
/// Handling undo / redo of text form field insertion
class SwUndoInsTextFieldmark : public SwUndo class SwUndoInsTextFieldmark : public SwUndo
{ {
private: private:
......
...@@ -262,6 +262,8 @@ class SwHistoryBookmark : public SwHistoryHint ...@@ -262,6 +262,8 @@ class SwHistoryBookmark : public SwHistoryHint
std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo; std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo;
}; };
/// History object containing all information used during undo / redo
/// of checkbox and drop-down form field insertion.
class SwHistoryNoTextFieldmark : public SwHistoryHint class SwHistoryNoTextFieldmark : public SwHistoryHint
{ {
public: public:
...@@ -275,6 +277,8 @@ class SwHistoryNoTextFieldmark : public SwHistoryHint ...@@ -275,6 +277,8 @@ class SwHistoryNoTextFieldmark : public SwHistoryHint
const sal_Int32 m_nContent; const sal_Int32 m_nContent;
}; };
/// History object containing all information used during undo / redo
/// of text form field insertion.
class SwHistoryTextFieldmark : public SwHistoryHint class SwHistoryTextFieldmark : public SwHistoryHint
{ {
public: public:
......
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