summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-19 12:33:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-19 15:23:15 +0000
commitae4f2c72b7a93085025859cbf1698651831e1b44 (patch)
treee143b83aedd425f9d3513424bc49a95a7f163612 /sfx2/inc
parent8c2da9a4ba786b08d1aa07e01060bbf1eb9f167f (diff)
split out custom properties info page and convert to .ui
The CustomPropertiesWindow could be converted to something that inherits from one of the new containers and remove a load of that custom positioning code but for now just minimally retro-fit the existing manual position setting code of the custom scrolling widget. Change-Id: I6c85286f3652a11bf8c8d827c4986b5b9d745523
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/sfx2/dinfdlg.hxx46
-rw-r--r--sfx2/inc/sfx2/sfx.hrc1
2 files changed, 30 insertions, 17 deletions
diff --git a/sfx2/inc/sfx2/dinfdlg.hxx b/sfx2/inc/sfx2/dinfdlg.hxx
index 3bd64daee6a9..94f196a605ba 100644
--- a/sfx2/inc/sfx2/dinfdlg.hxx
+++ b/sfx2/inc/sfx2/dinfdlg.hxx
@@ -23,18 +23,23 @@
#include "sfx2/dllapi.h"
#include <com/sun/star/util/DateTime.hpp>
-#include <vcl/edit.hxx>
-#include <vcl/field.hxx>
-#include <svtools/stdctrl.hxx>
+#include <com/sun/star/util/Duration.hpp>
+
#include <svl/stritem.hxx>
+#include <svl/zforlist.hxx>
+
+#include <svtools/headbar.hxx>
+#include <svtools/stdctrl.hxx>
#include <svtools/svmedit.hxx>
+#include <unotools/syslocale.hxx>
+
+#include <vcl/edit.hxx>
+#include <vcl/field.hxx>
+#include <vcl/layout.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/scrbar.hxx>
-#include <svtools/headbar.hxx>
-#include <unotools/syslocale.hxx>
-#include <svl/zforlist.hxx>
-#include <com/sun/star/util/Duration.hpp>
+
#include "tabdlg.hxx"
namespace com { namespace sun { namespace star {
@@ -478,7 +483,10 @@ private:
void ValidateLine( CustomPropertyLine* pLine, bool bIsFromTypeBox );
public:
- CustomPropertiesWindow( Window* pParent, const ResId& rResId );
+ CustomPropertiesWindow(Window* pParent,
+ const OUString &rHeaderAccName,
+ const OUString &rHeaderAccType,
+ const OUString &rHeaderAccValue);
~CustomPropertiesWindow();
void InitControls( HeaderBar* pHeaderBar, const ScrollBar* pScrollBar );
@@ -492,16 +500,20 @@ public:
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
GetCustomProperties() const;
void SetRemovedHdl( const Link& rLink ) { m_aRemovedHdl = rLink; }
+
+ void InitRemoveButton(const ScrollBar &rScrollBar);
+ void updateLineWidth();
};
// class CustomPropertiesControl -----------------------------------------
-class CustomPropertiesControl : public Control
+class CustomPropertiesControl : public VclVBox
{
private:
- HeaderBar m_aHeaderBar;
- CustomPropertiesWindow m_aPropertiesWin;
- ScrollBar m_aVertScroll;
+ HeaderBar* m_pHeaderBar;
+ VclHBox* m_pBody;
+ CustomPropertiesWindow* m_pPropertiesWin;
+ ScrollBar* m_pVertScroll;
sal_Int32 m_nThumbPos;
@@ -509,16 +521,18 @@ private:
DECL_LINK( RemovedHdl, void* );
public:
- CustomPropertiesControl( Window* pParent, const ResId& rResId );
+ CustomPropertiesControl(Window* pParent);
~CustomPropertiesControl();
void AddLine( const ::rtl::OUString& sName, com::sun::star::uno::Any& rAny, bool bInteractive );
- inline bool AreAllLinesValid() const { return m_aPropertiesWin.AreAllLinesValid(); }
- inline void ClearAllLines() { m_aPropertiesWin.ClearAllLines(); }
+ inline bool AreAllLinesValid() const { return m_pPropertiesWin->AreAllLinesValid(); }
+ inline void ClearAllLines() { m_pPropertiesWin->ClearAllLines(); }
inline ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
GetCustomProperties() const
- { return m_aPropertiesWin.GetCustomProperties(); }
+ { return m_pPropertiesWin->GetCustomProperties(); }
+ void Init(VclBuilderContainer& rParent);
+ virtual void setAllocation(const Size &rAllocation);
};
// class SfxCustomPropertiesPage -----------------------------------------
diff --git a/sfx2/inc/sfx2/sfx.hrc b/sfx2/inc/sfx2/sfx.hrc
index cd1ecdc05d15..cb31562a25ec 100644
--- a/sfx2/inc/sfx2/sfx.hrc
+++ b/sfx2/inc/sfx2/sfx.hrc
@@ -132,7 +132,6 @@
#define TP_DOCINFODESC (RID_SFX_START+3)
#define TP_DOCINFODOC (RID_SFX_START+4)
-#define TP_DOCINFOUSER (RID_SFX_START+5)
#define TP_DOCINFORELOAD (RID_SFX_START+13)
#define TP_CUSTOMPROPERTIES (RID_SFX_START+14)
#define TP_DOCINFOSECURITY (RID_SFX_START+215)