uitest: annotate a few draw/impress windows
Change-Id: I6352842535fddc99d30a4d0180ac01e7f8d5cd48
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "SlideSorterViewShell.hxx"
|
||||
#include "FrameView.hxx"
|
||||
#include "facreg.hxx"
|
||||
#include "Window.hxx"
|
||||
|
||||
#include <sfx2/viewfrm.hxx>
|
||||
#include <vcl/wrkwin.hxx>
|
||||
@@ -341,6 +342,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell (
|
||||
&rWindow,
|
||||
PK_STANDARD,
|
||||
pFrameView));
|
||||
pViewShell->GetContentWindow()->set_id("impress_win");
|
||||
}
|
||||
else if (rsViewURL.equals(FrameworkHelper::msDrawViewURL))
|
||||
{
|
||||
@@ -350,6 +352,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell (
|
||||
*mpBase,
|
||||
&rWindow,
|
||||
pFrameView));
|
||||
pViewShell->GetContentWindow()->set_id("draw_win");
|
||||
}
|
||||
else if (rsViewURL.equals(FrameworkHelper::msOutlineViewURL))
|
||||
{
|
||||
@@ -359,6 +362,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell (
|
||||
*mpBase,
|
||||
&rWindow,
|
||||
pFrameView));
|
||||
pViewShell->GetContentWindow()->set_id("outline_win");
|
||||
}
|
||||
else if (rsViewURL.equals(FrameworkHelper::msNotesViewURL))
|
||||
{
|
||||
@@ -369,6 +373,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell (
|
||||
&rWindow,
|
||||
PK_NOTES,
|
||||
pFrameView));
|
||||
pViewShell->GetContentWindow()->set_id("notes_win");
|
||||
}
|
||||
else if (rsViewURL.equals(FrameworkHelper::msHandoutViewURL))
|
||||
{
|
||||
@@ -379,6 +384,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell (
|
||||
&rWindow,
|
||||
PK_HANDOUT,
|
||||
pFrameView));
|
||||
pViewShell->GetContentWindow()->set_id("handout_win");
|
||||
}
|
||||
else if (rsViewURL.equals(FrameworkHelper::msPresentationViewURL))
|
||||
{
|
||||
@@ -388,6 +394,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell (
|
||||
*mpBase,
|
||||
&rWindow,
|
||||
pFrameView));
|
||||
pViewShell->GetContentWindow()->set_id("presentation_win");
|
||||
}
|
||||
else if (rsViewURL.equals(FrameworkHelper::msSlideSorterURL))
|
||||
{
|
||||
|
@@ -142,6 +142,8 @@ public:
|
||||
*/
|
||||
inline vcl::Window* GetParentWindow() const { return mpParentWindow; }
|
||||
|
||||
sd::Window* GetContentWindow() const;
|
||||
|
||||
inline ::sd::View* GetView() const { return mpView; }
|
||||
inline SdrView* GetDrawView() const;
|
||||
SD_DLLPUBLIC DrawDocShell* GetDocSh() const;
|
||||
|
@@ -123,6 +123,7 @@ SlideSorterViewShell::SlideSorterViewShell (
|
||||
mpSlideSorter(),
|
||||
mbIsArrangeGUIElementsPending(true)
|
||||
{
|
||||
GetContentWindow()->set_id("slidesorter");
|
||||
meShellType = ST_SLIDE_SORTER;
|
||||
|
||||
if (pFrameViewArgument != nullptr)
|
||||
|
@@ -1604,6 +1604,11 @@ void ViewShell::NotifyAccUpdate( )
|
||||
GetViewShellBase().GetDrawController().NotifyAccUpdate();
|
||||
}
|
||||
|
||||
sd::Window* ViewShell::GetContentWindow() const
|
||||
{
|
||||
return mpContentWindow.get();
|
||||
}
|
||||
|
||||
} // end of namespace sd
|
||||
|
||||
//===== ViewShellObjectBarFactory =============================================
|
||||
|
Reference in New Issue
Block a user