summaryrefslogtreecommitdiff
path: root/cui/source/inc/postdlg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-26 00:05:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-26 10:02:05 +0000
commit58ba8835bcf615cb6d3563c24b3d4d69b32f1b4f (patch)
tree99741c3fb37494fed71b0dd67b08c6716352b6c1 /cui/source/inc/postdlg.hxx
parent67f6b20eccc39d94118e81cdc45fcf40bd7bc9d8 (diff)
adapt code to comment .ui conversion
Change-Id: I93f98f50443ab3b2fb0ce9f3126b03c8a3281ad2
Diffstat (limited to 'cui/source/inc/postdlg.hxx')
-rw-r--r--cui/source/inc/postdlg.hxx68
1 files changed, 39 insertions, 29 deletions
diff --git a/cui/source/inc/postdlg.hxx b/cui/source/inc/postdlg.hxx
index 4918714a3545..21b49a9303b5 100644
--- a/cui/source/inc/postdlg.hxx
+++ b/cui/source/inc/postdlg.hxx
@@ -19,9 +19,10 @@
#ifndef _SVX_POSTDLG_HXX
#define _SVX_POSTDLG_HXX
-#include <vcl/group.hxx>
#include <vcl/button.hxx>
#include <vcl/edit.hxx>
+#include <vcl/group.hxx>
+#include <vcl/layout.hxx>
#include <svtools/stdctrl.hxx>
#include <sfx2/basedlgs.hxx>
#include <svtools/svmedit.hxx>
@@ -44,8 +45,8 @@
class SvxPostItDialog : public SfxModalDialog
{
public:
- SvxPostItDialog( Window* pParent, const SfxItemSet& rCoreSet,
- sal_Bool bPrevNext = sal_False, sal_Bool bRedline = sal_False );
+ SvxPostItDialog(Window* pParent, const SfxItemSet& rCoreSet,
+ bool bPrevNext = false, bool bRedline = false);
~SvxPostItDialog();
static sal_uInt16* GetRanges();
@@ -58,38 +59,47 @@ public:
void SetNextHdl( const Link& rLink )
{ aNextHdlLink = rLink; }
- void EnableTravel(sal_Bool bNext, sal_Bool bPrev);
- inline String GetNote() { return aEditED.GetText(); }
- inline void SetNote(const String& rTxt) { aEditED.SetText(rTxt); }
-
- void ShowLastAuthor(const String& rAuthor, const String& rDate);
- inline void DontChangeAuthor() { aAuthorBtn.Enable(sal_False); }
- inline void HideAuthor() { aAuthorFT.Hide(); aAuthorBtn.Hide(); }
- inline void SetReadonlyPostIt(sal_Bool bDisable)
- {
- aOKBtn.Enable( !bDisable );
- aEditED.SetReadOnly( bDisable );
- aAuthorBtn.Enable( !bDisable );
- }
- inline sal_Bool IsOkEnabled() const { return aOKBtn.IsEnabled(); }
+ void EnableTravel(sal_Bool bNext, sal_Bool bPrev);
+ String GetNote()
+ {
+ return m_pEditED->GetText();
+ }
+ void SetNote(const OUString& rTxt)
+ {
+ m_pEditED->SetText(rTxt);
+ }
+ void ShowLastAuthor(const String& rAuthor, const String& rDate);
+ void DontChangeAuthor()
+ {
+ m_pAuthorBtn->Enable(false);
+ }
+ void HideAuthor()
+ {
+ m_pInsertAuthor->Hide();
+ }
+ void SetReadonlyPostIt(bool bDisable)
+ {
+ m_pOKBtn->Enable( !bDisable );
+ m_pEditED->SetReadOnly( bDisable );
+ m_pAuthorBtn->Enable( !bDisable );
+ }
+ bool IsOkEnabled() const
+ {
+ return m_pOKBtn->IsEnabled();
+ }
private:
- FixedLine aPostItFL;
- FixedText aLastEditLabelFT;
- FixedInfo aLastEditFT;
+ FixedText* m_pLastEditFT;
- FixedText aEditFT;
- MultiLineEdit aEditED;
+ MultiLineEdit* m_pEditED;
- FixedText aAuthorFT;
- PushButton aAuthorBtn;
+ VclContainer* m_pInsertAuthor;
+ PushButton* m_pAuthorBtn;
- OKButton aOKBtn;
- CancelButton aCancelBtn;
- HelpButton aHelpBtn;
+ OKButton* m_pOKBtn;
- ImageButton aPrevBtn;
- ImageButton aNextBtn;
+ PushButton* m_pPrevBtn;
+ PushButton* m_pNextBtn;
const SfxItemSet& rSet;
SfxItemSet* pOutSet;