xref: /AOO42X/main/svx/source/sidebar/line/LineWidthControl.hxx (revision 9bce9b0d387299c68bd81d539e1478357a103de5)
18dcb2a10SAndre Fischer /**************************************************************
28dcb2a10SAndre Fischer  *
38dcb2a10SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
48dcb2a10SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
58dcb2a10SAndre Fischer  * distributed with this work for additional information
68dcb2a10SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
78dcb2a10SAndre Fischer  * to you under the Apache License, Version 2.0 (the
88dcb2a10SAndre Fischer  * "License"); you may not use this file except in compliance
98dcb2a10SAndre Fischer  * with the License.  You may obtain a copy of the License at
108dcb2a10SAndre Fischer  *
118dcb2a10SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
128dcb2a10SAndre Fischer  *
138dcb2a10SAndre Fischer  * Unless required by applicable law or agreed to in writing,
148dcb2a10SAndre Fischer  * software distributed under the License is distributed on an
158dcb2a10SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
168dcb2a10SAndre Fischer  * KIND, either express or implied.  See the License for the
178dcb2a10SAndre Fischer  * specific language governing permissions and limitations
188dcb2a10SAndre Fischer  * under the License.
198dcb2a10SAndre Fischer  *
208dcb2a10SAndre Fischer  *************************************************************/
218dcb2a10SAndre Fischer 
228dcb2a10SAndre Fischer #include "svx/sidebar/PopupControl.hxx"
238dcb2a10SAndre Fischer #include "LineWidthValueSet.hxx"
248dcb2a10SAndre Fischer #include <svl/poolitem.hxx>
258dcb2a10SAndre Fischer #include <vcl/fixed.hxx>
268dcb2a10SAndre Fischer #include <vcl/field.hxx>
278dcb2a10SAndre Fischer 
288dcb2a10SAndre Fischer class SfxBindings;
298dcb2a10SAndre Fischer 
308dcb2a10SAndre Fischer namespace svx { namespace sidebar {
318dcb2a10SAndre Fischer 
328dcb2a10SAndre Fischer class LinePropertyPanel;
338dcb2a10SAndre Fischer 
348dcb2a10SAndre Fischer class LineWidthControl
358dcb2a10SAndre Fischer     : public svx::sidebar::PopupControl
368dcb2a10SAndre Fischer {
378dcb2a10SAndre Fischer public:
388dcb2a10SAndre Fischer     LineWidthControl (Window* pParent, LinePropertyPanel& rPanel);
398dcb2a10SAndre Fischer     virtual ~LineWidthControl (void);
408dcb2a10SAndre Fischer 
418dcb2a10SAndre Fischer     virtual void GetFocus();
428dcb2a10SAndre Fischer     virtual void Paint(const Rectangle& rect);
438dcb2a10SAndre Fischer 
448dcb2a10SAndre Fischer     void SetWidthSelect( long lValue, bool bValuable, SfxMapUnit eMapUnit);
458dcb2a10SAndre Fischer     ValueSet& GetValueSet();
468dcb2a10SAndre Fischer     bool IsCloseByEdit();
478dcb2a10SAndre Fischer     long GetTmpCustomWidth();
488dcb2a10SAndre Fischer 
498dcb2a10SAndre Fischer private:
508dcb2a10SAndre Fischer     LinePropertyPanel& mrLinePropertyPanel;
518dcb2a10SAndre Fischer     SfxBindings*                        mpBindings;
528dcb2a10SAndre Fischer     LineWidthValueSet maVSWidth;
538dcb2a10SAndre Fischer     FixedText                           maFTCus;
548dcb2a10SAndre Fischer     FixedText                           maFTWidth;
558dcb2a10SAndre Fischer     MetricField                         maMFWidth;
568dcb2a10SAndre Fischer     SfxMapUnit                          meMapUnit;
578dcb2a10SAndre Fischer     XubString*                          rStr;
588dcb2a10SAndre Fischer     XubString                           mstrPT; //
598dcb2a10SAndre Fischer     long                                mnCustomWidth;
608dcb2a10SAndre Fischer     bool                                mbCustom;
61*926f14f6SPedro Giffuni     bool                                mbCloseByEdit;
62*926f14f6SPedro Giffuni     long                                mnTmpCustomWidth;
638dcb2a10SAndre Fischer     bool                                mbVSFocus;
648dcb2a10SAndre Fischer 
658dcb2a10SAndre Fischer     Image                               maIMGCus;
668dcb2a10SAndre Fischer     Image                               maIMGCusGray;
678dcb2a10SAndre Fischer 
688dcb2a10SAndre Fischer     void Initialize();
698dcb2a10SAndre Fischer     DECL_LINK(VSSelectHdl, void *);
708dcb2a10SAndre Fischer     DECL_LINK(MFModifyHdl, void *);
718dcb2a10SAndre Fischer };
728dcb2a10SAndre Fischer 
738dcb2a10SAndre Fischer } } // end of namespace svx::sidebar
744e8031e0SArmin Le Grand 
754e8031e0SArmin Le Grand // eof
76