summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/WidgetDefinition.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-03-22 10:16:39 +0900
committerTomaž Vajngerl <quikee@gmail.com>2019-03-26 01:30:31 +0100
commitd3922a93a096e07ab54e91fd0dd7c86302f33b78 (patch)
tree7469ce6ac7ad379d39b9c38bb0b9bd590b7b54b2 /vcl/source/gdi/WidgetDefinition.cxx
parent068880d65081ec2db1af7643fcb9a3680b3119c0 (diff)
Rename DrawCommand* to WidgetDrawAction*, remove unused circ draw
Change-Id: Icef900e75255d477812a198fdb29e0cdebba35b8 Reviewed-on: https://gerrit.libreoffice.org/69654 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/gdi/WidgetDefinition.cxx')
-rw-r--r--vcl/source/gdi/WidgetDefinition.cxx31
1 files changed, 8 insertions, 23 deletions
diff --git a/vcl/source/gdi/WidgetDefinition.cxx b/vcl/source/gdi/WidgetDefinition.cxx
index 668fe74bf403..6eb6ae7fa3ac 100644
--- a/vcl/source/gdi/WidgetDefinition.cxx
+++ b/vcl/source/gdi/WidgetDefinition.cxx
@@ -134,7 +134,7 @@ void WidgetDefinitionState::addDrawRectangle(Color aStrokeColor, sal_Int32 nStro
Color aFillColor, float fX1, float fY1, float fX2,
float fY2, sal_Int32 nRx, sal_Int32 nRy)
{
- auto pCommand(std::make_shared<RectangleDrawCommand>());
+ auto pCommand(std::make_shared<WidgetDrawActionRectangle>());
pCommand->maStrokeColor = aStrokeColor;
pCommand->maFillColor = aFillColor;
pCommand->mnStrokeWidth = nStrokeWidth;
@@ -144,49 +144,34 @@ void WidgetDefinitionState::addDrawRectangle(Color aStrokeColor, sal_Int32 nStro
pCommand->mfY1 = fY1;
pCommand->mfX2 = fX2;
pCommand->mfY2 = fY2;
- mpDrawCommands.push_back(std::move(pCommand));
-}
-
-void WidgetDefinitionState::addDrawCircle(Color aStrokeColor, sal_Int32 nStrokeWidth,
- Color aFillColor, float fX1, float fY1, float fX2,
- float fY2)
-{
- auto pCommand(std::make_shared<CircleDrawCommand>());
- pCommand->maStrokeColor = aStrokeColor;
- pCommand->maFillColor = aFillColor;
- pCommand->mnStrokeWidth = nStrokeWidth;
- pCommand->mfX1 = fX1;
- pCommand->mfY1 = fY1;
- pCommand->mfX2 = fX2;
- pCommand->mfY2 = fY2;
- mpDrawCommands.push_back(std::move(pCommand));
+ mpWidgetDrawActions.push_back(std::move(pCommand));
}
void WidgetDefinitionState::addDrawLine(Color aStrokeColor, sal_Int32 nStrokeWidth, float fX1,
float fY1, float fX2, float fY2)
{
- auto pCommand(std::make_shared<LineDrawCommand>());
+ auto pCommand(std::make_shared<WidgetDrawActionLine>());
pCommand->maStrokeColor = aStrokeColor;
pCommand->mnStrokeWidth = nStrokeWidth;
pCommand->mfX1 = fX1;
pCommand->mfY1 = fY1;
pCommand->mfX2 = fX2;
pCommand->mfY2 = fY2;
- mpDrawCommands.push_back(std::move(pCommand));
+ mpWidgetDrawActions.push_back(std::move(pCommand));
}
void WidgetDefinitionState::addDrawImage(OUString const& sSource)
{
- auto pCommand(std::make_shared<ImageDrawCommand>());
+ auto pCommand(std::make_shared<WidgetDrawActionImage>());
pCommand->msSource = sSource;
- mpDrawCommands.push_back(std::move(pCommand));
+ mpWidgetDrawActions.push_back(std::move(pCommand));
}
void WidgetDefinitionState::addDrawExternal(OUString const& sSource)
{
- auto pCommand(std::make_unique<ExternalSourceDrawCommand>());
+ auto pCommand(std::make_unique<WidgetDrawActionExternal>());
pCommand->msSource = sSource;
- mpDrawCommands.push_back(std::move(pCommand));
+ mpWidgetDrawActions.push_back(std::move(pCommand));
}
} // end vcl namespace