summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorayhanyalcinsoy <ayhanyalcinsoy@pisilinux.org>2020-01-11 15:54:49 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2020-02-02 15:40:45 +0100
commit0298a702b32bdc4c4711cf31461169e549153b39 (patch)
treeded77f5bcebc37036c1cd6872a5a50238109dc76 /sw/qa
parent220cdd6f2c178a115dd2776658fdaaf826315eed (diff)
tdf#129568 Rename Default Style to Default Paragraph/Page/Table Style
Change-Id: I21672c9b78e52c3c9b2687cb2c0ab21dcf67f19a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86538 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/layout/layout.cxx2
-rw-r--r--sw/qa/extras/odfimport/odfimport.cxx6
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport9.cxx4
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx4
-rw-r--r--sw/qa/extras/rtfimport/rtfimport.cxx12
-rw-r--r--sw/qa/extras/tiledrendering/tiledrendering.cxx10
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx8
-rw-r--r--sw/qa/extras/uiwriter/uiwriter2.cxx2
-rw-r--r--sw/qa/extras/ww8export/ww8export3.cxx4
-rw-r--r--sw/qa/uitest/writer_tests3/insertPageFooter.py4
-rw-r--r--sw/qa/uitest/writer_tests5/tdf107494.py8
11 files changed, 32 insertions, 32 deletions
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx
index 746b8a068aaf..4ed828a0fb56 100644
--- a/sw/qa/extras/layout/layout.cxx
+++ b/sw/qa/extras/layout/layout.cxx
@@ -462,7 +462,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testRedlineFlysInHeader)
SwWrtShell* pWrtShell = pTextDoc->GetDocShell()->GetWrtShell();
SwRootFrame* pLayout(pWrtShell->GetLayout());
CPPUNIT_ASSERT(!pLayout->IsHideRedlines());
- pWrtShell->ChangeHeaderOrFooter("Default Style", /*bHeader*/ true, /*bOn*/ true, false);
+ pWrtShell->ChangeHeaderOrFooter("Default Page Style", /*bHeader*/ true, /*bOn*/ true, false);
CPPUNIT_ASSERT(
pWrtShell
->IsInHeaderFooter()); // assume this is supposed to put cursor in the new header...
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx
index 7e4e4a252ae7..56df38c6d686 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -253,7 +253,7 @@ DECLARE_ODFIMPORT_TEST(testTdf41542_borderlessPadding, "tdf41542_borderlessPaddi
DECLARE_ODFIMPORT_TEST(testPageStyleLayoutDefault, "hello.odt")
{
- uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Page Style"), uno::UNO_QUERY);
// This was style::PageStyleLayout_MIRRORED.
CPPUNIT_ASSERT_EQUAL(style::PageStyleLayout_ALL, getProperty<style::PageStyleLayout>(xPropertySet, "PageStyleLayout"));
}
@@ -363,7 +363,7 @@ DECLARE_ODFIMPORT_TEST(testTdf74524, "tdf74524.odt")
DECLARE_ODFIMPORT_TEST(testPageStyleLayoutRight, "hello.odt")
{
- uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Page Style"), uno::UNO_QUERY);
// This caused a crash.
xPropertySet->setPropertyValue("PageStyleLayout", uno::makeAny(style::PageStyleLayout_RIGHT));
}
@@ -424,7 +424,7 @@ DECLARE_ODFIMPORT_TEST(testFdo79269_header, "fdo79269_header.odt")
DECLARE_ODFIMPORT_TEST(testPageBackground, "PageBackground.odt")
{
- uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Page Style"), uno::UNO_QUERY);
// The background image was lost
CPPUNIT_ASSERT_EQUAL(drawing::FillStyle_BITMAP, getProperty<drawing::FillStyle>(xPropertySet, "FillStyle"));
CPPUNIT_ASSERT_EQUAL(OUString("Sky"), getProperty<OUString>(xPropertySet, "FillBitmapName"));
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
index d0579508fabe..149b5dc3e3cd 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
@@ -229,7 +229,7 @@ DECLARE_OOXMLEXPORT_TEST(testKern, "kern.docx")
// This failed: kerning was also enabled for the second paragraph.
CPPUNIT_ASSERT(!getProperty<bool>(getRun(getParagraph(2), 1), "CharAutoKerning"));
- uno::Reference<beans::XPropertySet> xStyle(getStyles("ParagraphStyles")->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xStyle(getStyles("ParagraphStyles")->getByName("Default Paragraph Style"), uno::UNO_QUERY);
//tdf107801: kerning normally isn't enabled by default for .docx
CPPUNIT_ASSERT_EQUAL_MESSAGE("AutoKern should be false", false, getProperty<bool>(xStyle, "CharAutoKerning"));
}
@@ -239,7 +239,7 @@ DECLARE_OOXMLEXPORT_TEST(testTdf89377, "tdf89377_tableWithBreakBeforeParaStyle.d
// the paragraph style should set table's text-flow break-before-page
CPPUNIT_ASSERT_EQUAL( 3, getPages() );
- uno::Reference<beans::XPropertySet> xStyle(getStyles("ParagraphStyles")->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xStyle(getStyles("ParagraphStyles")->getByName("Default Paragraph Style"), uno::UNO_QUERY);
//tdf107801: kerning info wasn't exported previously.
CPPUNIT_ASSERT_EQUAL_MESSAGE("AutoKern should be true", true, getProperty<bool>(xStyle, "CharAutoKerning"));
}
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 4f4412e2678f..5e758f642624 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -658,7 +658,7 @@ DECLARE_OOXMLIMPORT_TEST(testN820504, "n820504.docx")
uno::Reference<style::XStyleFamiliesSupplier> xFamiliesSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XNameAccess> xFamiliesAccess = xFamiliesSupplier->getStyleFamilies();
uno::Reference<container::XNameAccess> xStylesAccess(xFamiliesAccess->getByName("ParagraphStyles"), uno::UNO_QUERY);
- uno::Reference<beans::XPropertySet> xStyle(xStylesAccess->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xStyle(xStylesAccess->getByName("Default Paragraph Style"), uno::UNO_QUERY);
// The problem was that the CharColor was set to AUTO (-1) even if we have some default char color set
CPPUNIT_ASSERT_EQUAL(sal_Int32(4040635), getProperty<sal_Int32>(xStyle, "CharColor"));
@@ -1437,7 +1437,7 @@ DECLARE_OOXMLIMPORT_TEST(testTdf87533_bidi, "tdf87533_bidi.docx")
// check: "Default Style" master-style has RTL
{
- const uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Style"), uno::UNO_QUERY);
+ const uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Page Style"), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(sal_Int32(text::WritingMode2::RL_TB), getProperty<sal_Int32>(xPropertySet, writingMode));
}
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 32ab5666ef0b..4e9b5e0a7002 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -1448,12 +1448,12 @@ CPPUNIT_TEST_FIXTURE(Test, testImportHeaderFooter)
CPPUNIT_ASSERT_EQUAL(OUString("First Page Header"), aActual);
uno::Reference<text::XText> xHeaderTextLeft = getProperty<uno::Reference<text::XText>>(
- getStyles("PageStyles")->getByName("Default Style"), "HeaderTextLeft");
+ getStyles("PageStyles")->getByName("Default Page Style"), "HeaderTextLeft");
aActual = xHeaderTextLeft->getString();
CPPUNIT_ASSERT_EQUAL(OUString("Header even"), aActual);
uno::Reference<text::XText> xHeaderTextRight = getProperty<uno::Reference<text::XText>>(
- getStyles("PageStyles")->getByName("Default Style"), "HeaderTextRight");
+ getStyles("PageStyles")->getByName("Default Page Style"), "HeaderTextRight");
aActual = xHeaderTextRight->getString();
CPPUNIT_ASSERT_EQUAL(OUString("Header uneven"), aActual);
@@ -1463,12 +1463,12 @@ CPPUNIT_TEST_FIXTURE(Test, testImportHeaderFooter)
CPPUNIT_ASSERT_EQUAL(OUString("First Page Footer"), aActual);
uno::Reference<text::XText> xFooterTextLeft = getProperty<uno::Reference<text::XText>>(
- getStyles("PageStyles")->getByName("Default Style"), "FooterTextLeft");
+ getStyles("PageStyles")->getByName("Default Page Style"), "FooterTextLeft");
aActual = xFooterTextLeft->getString();
CPPUNIT_ASSERT_EQUAL(OUString("Footer even"), aActual);
uno::Reference<text::XText> xFooterTextRight = getProperty<uno::Reference<text::XText>>(
- getStyles("PageStyles")->getByName("Default Style"), "FooterTextRight");
+ getStyles("PageStyles")->getByName("Default Page Style"), "FooterTextRight");
aActual = xFooterTextRight->getString();
CPPUNIT_ASSERT_EQUAL(OUString("Footer uneven"), aActual);
}
@@ -1478,7 +1478,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf108947)
load(mpTestDocumentPath, "tdf108947.rtf");
//Check if Headers/Footers contain what they should in this document
uno::Reference<text::XText> xHeaderTextRight = getProperty<uno::Reference<text::XText>>(
- getStyles("PageStyles")->getByName("Default Style"), "HeaderTextRight");
+ getStyles("PageStyles")->getByName("Default Page Style"), "HeaderTextRight");
OUString aActual = xHeaderTextRight->getString();
CPPUNIT_ASSERT_EQUAL(OUString(""), aActual);
@@ -1486,7 +1486,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf108947)
#if HAVE_MORE_FONTS
OUString aExpected = SAL_NEWLINE_STRING SAL_NEWLINE_STRING "Header Page 2 ?";
uno::Reference<text::XText> xHeaderTextLeft = getProperty<uno::Reference<text::XText>>(
- getStyles("PageStyles")->getByName("Default Style"), "HeaderTextLeft");
+ getStyles("PageStyles")->getByName("Default Page Style"), "HeaderTextLeft");
aActual = xHeaderTextLeft->getString();
CPPUNIT_ASSERT_EQUAL(aExpected, aActual);
#endif
diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx
index 8993111dbb41..16196e1327ba 100644
--- a/sw/qa/extras/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx
@@ -2035,7 +2035,7 @@ void checkPageHeaderOrFooter(const SfxViewShell* pViewShell, sal_uInt16 nWhich,
if (bValue)
{
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), aSeq.getLength());
- CPPUNIT_ASSERT_EQUAL(OUString("Default Style"), aSeq[0]);
+ CPPUNIT_ASSERT_EQUAL(OUString("Default Page Style"), aSeq[0]);
}
else
CPPUNIT_ASSERT(!aSeq.hasElements());
@@ -2053,7 +2053,7 @@ void SwTiledRenderingTest::testPageHeader()
checkPageHeaderOrFooter(pViewShell, FN_INSERT_PAGEHEADER, false);
// Insert Page Header
{
- SfxStringItem aStyle(FN_INSERT_PAGEHEADER, "Default Style");
+ SfxStringItem aStyle(FN_INSERT_PAGEHEADER, "Default Page Style");
SfxBoolItem aItem(FN_PARAM_1, true);
pViewShell->GetDispatcher()->ExecuteList(FN_INSERT_PAGEHEADER, SfxCallMode::API | SfxCallMode::SYNCHRON, {&aStyle, &aItem});
}
@@ -2062,7 +2062,7 @@ void SwTiledRenderingTest::testPageHeader()
// Remove Page Header
{
- SfxStringItem aStyle(FN_INSERT_PAGEHEADER, "Default Style");
+ SfxStringItem aStyle(FN_INSERT_PAGEHEADER, "Default Page Style");
SfxBoolItem aItem(FN_PARAM_1, false);
pViewShell->GetDispatcher()->ExecuteList(FN_INSERT_PAGEHEADER, SfxCallMode::API | SfxCallMode::SYNCHRON, {&aStyle, &aItem});
}
@@ -2080,7 +2080,7 @@ void SwTiledRenderingTest::testPageFooter()
checkPageHeaderOrFooter(pViewShell, FN_INSERT_PAGEFOOTER, false);
// Insert Page Footer
{
- SfxStringItem aPageStyle(FN_INSERT_PAGEFOOTER, "Default Style");
+ SfxStringItem aPageStyle(FN_INSERT_PAGEFOOTER, "Default Page Style");
SfxBoolItem aItem(FN_PARAM_1, true);
pViewShell->GetDispatcher()->ExecuteList(FN_INSERT_PAGEFOOTER, SfxCallMode::API | SfxCallMode::SYNCHRON, {&aPageStyle, &aItem});
}
@@ -2089,7 +2089,7 @@ void SwTiledRenderingTest::testPageFooter()
// Remove Page Footer
{
- SfxStringItem aPageStyle(FN_INSERT_PAGEFOOTER, "Default Style");
+ SfxStringItem aPageStyle(FN_INSERT_PAGEFOOTER, "Default Page Style");
SfxBoolItem aItem(FN_PARAM_1, false);
pViewShell->GetDispatcher()->ExecuteList(FN_INSERT_PAGEFOOTER, SfxCallMode::API | SfxCallMode::SYNCHRON, {&aPageStyle, &aItem});
}
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 8ef96faa47dc..0782cef8a209 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -1137,7 +1137,7 @@ void SwUiWriterTest::testWatermarkPosition()
SwDoc* pDoc = createDoc("watermark-position.odt");
SwEditShell* pEditShell = pDoc->GetEditShell();
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
- const OUString rPageStyleName = "Default Style";
+ const OUString rPageStyleName = "Default Page Style";
uno::Reference<frame::XModel> xModel = pDoc->GetDocShell()->GetBaseModel();
uno::Reference<style::XStyleFamiliesSupplier> xStyleFamiliesSupplier(xModel, uno::UNO_QUERY);
uno::Reference<container::XNameAccess> xStyleFamilies = xStyleFamiliesSupplier->getStyleFamilies();
@@ -1803,7 +1803,7 @@ void SwUiWriterTest::testTextCursorInvalidation()
// can't go right in empty header
CPPUNIT_ASSERT(!xCursor->goRight(1, false));
// this does not actually delete the header: xPageStyle->setPropertyValue("HeaderIsOn", uno::makeAny(false));
- pWrtShell->ChangeHeaderOrFooter("Default Style", true, false, false);
+ pWrtShell->ChangeHeaderOrFooter("Default Page Style", true, false, false);
// must be disposed after deleting header
CPPUNIT_ASSERT_THROW(xCursor->goRight(1, false), uno::RuntimeException);
}
@@ -2576,7 +2576,7 @@ void SwUiWriterTest::testTdf60967()
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
SwPaM* pCursor = pDoc->GetEditShell()->GetCursor();
sw::UndoManager& rUndoManager = pDoc->GetUndoManager();
- pWrtShell->ChangeHeaderOrFooter("Default Style", true, true, true);
+ pWrtShell->ChangeHeaderOrFooter("Default Page Style", true, true, true);
//Inserting table
SwInsertTableOptions TableOpt(SwInsertTableFlags::DefaultBorder, 0);
pWrtShell->InsertTable(TableOpt, 2, 2);
@@ -6520,7 +6520,7 @@ void SwUiWriterTest::testTdf108048()
uno::Sequence<beans::PropertyValue> aPropertyValues = comphelper::InitPropertySequence({
{ "Kind", uno::makeAny(sal_Int16(3)) },
- { "TemplateName", uno::makeAny(OUString("Default Style")) },
+ { "TemplateName", uno::makeAny(OUString("Default Page Style")) },
{ "PageNumber", uno::makeAny(sal_uInt16(6)) }, // Even number to avoid auto-inserted blank page
{ "PageNumberFilled", uno::makeAny(true) },
});
diff --git a/sw/qa/extras/uiwriter/uiwriter2.cxx b/sw/qa/extras/uiwriter/uiwriter2.cxx
index 190b82f51cd0..80e6019d7a79 100644
--- a/sw/qa/extras/uiwriter/uiwriter2.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter2.cxx
@@ -1114,7 +1114,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testRTLparaStyle_LocaleArabic)
reload("Office Open XML Text", "tdf116404_paraStyleFrameDir.docx");
uno::Reference<beans::XPropertySet> xPageStyle(
- getStyles("ParagraphStyles")->getByName("Default Style"), uno::UNO_QUERY_THROW);
+ getStyles("ParagraphStyles")->getByName("Default Paragraph Style"), uno::UNO_QUERY_THROW);
// Test the text Direction value for the -none- based paragraph styles
CPPUNIT_ASSERT_EQUAL_MESSAGE("RTL Writing Mode", sal_Int32(1),
getProperty<sal_Int32>(xPageStyle, "WritingMode"));
diff --git a/sw/qa/extras/ww8export/ww8export3.cxx b/sw/qa/extras/ww8export/ww8export3.cxx
index 103476d25407..af21711d0136 100644
--- a/sw/qa/extras/ww8export/ww8export3.cxx
+++ b/sw/qa/extras/ww8export/ww8export3.cxx
@@ -55,7 +55,7 @@ DECLARE_WW8EXPORT_TEST(testTdf37778_readonlySection, "tdf37778_readonlySection.d
DECLARE_WW8EXPORT_TEST(testTdf122429_header, "tdf122429_header.doc")
{
uno::Reference<container::XNameAccess> pageStyles = getStyles("PageStyles");
- uno::Reference<style::XStyle> pageStyle(pageStyles->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<style::XStyle> pageStyle(pageStyles->getByName("Default Page Style"), uno::UNO_QUERY);
bool headerIsOn = getProperty<bool>(pageStyle, "HeaderIsOn");
CPPUNIT_ASSERT(headerIsOn);
}
@@ -63,7 +63,7 @@ DECLARE_WW8EXPORT_TEST(testTdf122429_header, "tdf122429_header.doc")
DECLARE_WW8EXPORT_TEST(testTdf122460_header, "tdf122460_header.odt")
{
uno::Reference<container::XNameAccess> pageStyles = getStyles("PageStyles");
- uno::Reference<style::XStyle> pageStyle(pageStyles->getByName("Default Style"), uno::UNO_QUERY);
+ uno::Reference<style::XStyle> pageStyle(pageStyles->getByName("Default Page Style"), uno::UNO_QUERY);
bool headerIsOn = getProperty<bool>(pageStyle, "HeaderIsOn");
CPPUNIT_ASSERT(headerIsOn);
}
diff --git a/sw/qa/uitest/writer_tests3/insertPageFooter.py b/sw/qa/uitest/writer_tests3/insertPageFooter.py
index fd9b31368d6f..94bd3e23e1ce 100644
--- a/sw/qa/uitest/writer_tests3/insertPageFooter.py
+++ b/sw/qa/uitest/writer_tests3/insertPageFooter.py
@@ -18,7 +18,7 @@ class WriterInsertPageFooter(UITestCase):
document.StyleFamilies.PageStyles.Standard.FooterIsOn, False)
self.xUITest.executeCommand(
- ".uno:InsertPageFooter?PageStyle:string=Default%20Style&On:bool=true")
+ ".uno:InsertPageFooter?PageStyle:string=Default%20Page%20Style&On:bool=true")
self.assertEqual(
document.StyleFamilies.PageStyles.Standard.FooterIsOn, True)
@@ -30,7 +30,7 @@ class WriterInsertPageFooter(UITestCase):
document.StyleFamilies.PageStyles.Standard.FooterIsOn, True)
self.ui_test.execute_dialog_through_command(
- ".uno:InsertPageFooter?PageStyle:string=Default%20Style&On:bool=false")
+ ".uno:InsertPageFooter?PageStyle:string=Default%20Page%20Style&On:bool=false")
xDialog = self.xUITest.getTopFocusWindow()
diff --git a/sw/qa/uitest/writer_tests5/tdf107494.py b/sw/qa/uitest/writer_tests5/tdf107494.py
index df6dba08bf24..0828e26bfbd1 100644
--- a/sw/qa/uitest/writer_tests5/tdf107494.py
+++ b/sw/qa/uitest/writer_tests5/tdf107494.py
@@ -25,7 +25,7 @@ class tdf107494(UITestCase):
xWriterDoc = self.xUITest.getTopFocusWindow()
#insert header
self.assertEqual(document.StyleFamilies.PageStyles.Standard.HeaderIsOn, False)
- self.xUITest.executeCommand(".uno:InsertPageHeader?PageStyle:string=Default%20Style&On:bool=true")
+ self.xUITest.executeCommand(".uno:InsertPageHeader?PageStyle:string=Default%20Page%20Style&On:bool=true")
self.assertEqual(document.StyleFamilies.PageStyles.Standard.HeaderIsOn, True)
#insert image
text = document.getText()
@@ -46,7 +46,7 @@ class tdf107494(UITestCase):
textGraphic.Graphic = graphic
text.insertTextContent(cursor, textGraphic, False)
# Delete the header
- self.ui_test.execute_dialog_through_command(".uno:InsertPageHeader?PageStyle:string=Default%20Style&On:bool=false")
+ self.ui_test.execute_dialog_through_command(".uno:InsertPageHeader?PageStyle:string=Default%20Page%20Style&On:bool=false")
xDialog = self.xUITest.getTopFocusWindow() #question dialog
xOption = xDialog.getChild("yes")
xOption.executeAction("CLICK", tuple())
@@ -61,7 +61,7 @@ class tdf107494(UITestCase):
xWriterDoc = self.xUITest.getTopFocusWindow()
#insert footer
self.assertEqual(document.StyleFamilies.PageStyles.Standard.FooterIsOn, False)
- self.xUITest.executeCommand(".uno:InsertPageFooter?PageStyle:string=Default%20Style&On:bool=true")
+ self.xUITest.executeCommand(".uno:InsertPageFooter?PageStyle:string=Default%20Page%20Style&On:bool=true")
self.assertEqual(document.StyleFamilies.PageStyles.Standard.FooterIsOn, True)
#insert image
text = document.getText()
@@ -82,7 +82,7 @@ class tdf107494(UITestCase):
textGraphic.Graphic = graphic
text.insertTextContent(cursor, textGraphic, False)
# Delete the footer
- self.ui_test.execute_dialog_through_command(".uno:InsertPageFooter?PageStyle:string=Default%20Style&On:bool=false")
+ self.ui_test.execute_dialog_through_command(".uno:InsertPageFooter?PageStyle:string=Default%20Page%20Style&On:bool=false")
xDialog = self.xUITest.getTopFocusWindow() #question dialog
xOption = xDialog.getChild("yes")
xOption.executeAction("CLICK", tuple())