summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/TextDirectionListBox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/dialogs/TextDirectionListBox.cxx')
-rw-r--r--chart2/source/controller/dialogs/TextDirectionListBox.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/chart2/source/controller/dialogs/TextDirectionListBox.cxx b/chart2/source/controller/dialogs/TextDirectionListBox.cxx
index af699e4e3d49..25efde3be919 100644
--- a/chart2/source/controller/dialogs/TextDirectionListBox.cxx
+++ b/chart2/source/controller/dialogs/TextDirectionListBox.cxx
@@ -22,6 +22,7 @@
#include "Strings.hrc"
#include <svl/languageoptions.hxx>
#include <vcl/window.hxx>
+#include <vcl/builder.hxx>
namespace chart
{
@@ -41,6 +42,26 @@ TextDirectionListBox::TextDirectionListBox( Window* pParent, const ResId& rResId
}
}
+TextDirectionListBox::TextDirectionListBox( Window* pParent, Window* pWindow1, Window* pWindow2 ) :
+ svx::FrameDirectionListBox( pParent, WB_BORDER | WB_TABSTOP | WB_DROPDOWN)
+{
+ InsertEntryValue( SCH_RESSTR( STR_TEXT_DIRECTION_LTR ), FRMDIR_HORI_LEFT_TOP );
+ InsertEntryValue( SCH_RESSTR( STR_TEXT_DIRECTION_RTL ), FRMDIR_HORI_RIGHT_TOP );
+ InsertEntryValue( SCH_RESSTR( STR_TEXT_DIRECTION_SUPER ), FRMDIR_ENVIRONMENT );
+
+ if( !SvtLanguageOptions().IsCTLFontEnabled() )
+ {
+ Hide();
+ if( pWindow1 ) pWindow1->Hide();
+ if( pWindow2 ) pWindow2->Hide();
+ }
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeTextDirectionListBox(Window *pParent, VclBuilder::stringmap &)
+ {
+ return new TextDirectionListBox(pParent);
+ }
+
TextDirectionListBox::~TextDirectionListBox()
{
}