summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations
diff options
context:
space:
mode:
authorKatarina Behrens <bubli@bubli.org>2013-07-31 20:54:00 +0200
committerKatarina Behrens <bubli@bubli.org>2013-07-31 21:02:27 +0200
commit83ff6c0f4101fe4f25c2b4a58c70b40de8cc2ff2 (patch)
tree71846cad355a9ac0db043f8550c9f0b2a3dbcde4 /sd/source/ui/animations
parenta90c2e73ea4788ee58e9dab2b0f44467306d67dd (diff)
sidebar: fix widget positioning when replacing controls
by introducing placeholder VclHBox Sadly, I've been unable to do away w/ the original ugly code that draws replacement widget over the original one :( (SetPosPixel, SetZOrder etc.) It is still being done, but now in correct position on screen. Change-Id: I51bd1f411621081b42da25b52f1a4d6b56c1e7f6
Diffstat (limited to 'sd/source/ui/animations')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx3
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.hxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 347f960f612a..10bb39d29db6 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -174,6 +174,7 @@ CustomAnimationPane::CustomAnimationPane( ::Window* pParent, ViewShellBase& rBas
get(mpFTStart, "start_effect");
get(mpLBStart, "start_effect_list");
get(mpFTProperty, "effect_property");
+ get(mpPlaceholderBox, "placeholder");
get(mpLBProperty, "effect_property_list");
get(mpPBPropertyMore, "more_properties");
@@ -538,7 +539,7 @@ void CustomAnimationPane::updateControls()
pSubControl = mpLBProperty->getSubControl();
if( !pSubControl || (pSubControl->getControlType() != mnPropertyType) )
{
- pSubControl = PropertySubControl::create( mnPropertyType, this, aValue, pEffect->getPresetId(), LINK( this, CustomAnimationPane, implPropertyHdl ) );
+ pSubControl = PropertySubControl::create( mnPropertyType, mpPlaceholderBox, aValue, pEffect->getPresetId(), LINK( this, CustomAnimationPane, implPropertyHdl ) );
mpLBProperty->setSubControl( pSubControl );
}
else
diff --git a/sd/source/ui/animations/CustomAnimationPane.hxx b/sd/source/ui/animations/CustomAnimationPane.hxx
index ed8cc569cc12..e00d3c50c589 100644
--- a/sd/source/ui/animations/CustomAnimationPane.hxx
+++ b/sd/source/ui/animations/CustomAnimationPane.hxx
@@ -23,6 +23,7 @@
#include <com/sun/star/drawing/XDrawView.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <vcl/dialog.hxx>
+#include <vcl/layout.hxx>
#include <svx/sidebar/PanelLayout.hxx>
#include <sfx2/sidebar/ControlFactory.hxx>
#include "CustomAnimationPreset.hxx"
@@ -133,6 +134,7 @@ private:
FixedText* mpFTStart;
ListBox* mpLBStart;
FixedText* mpFTProperty;
+ VclHBox* mpPlaceholderBox;
PropertyControl* mpLBProperty;
PushButton* mpPBPropertyMore;
FixedText* mpFTSpeed;